mezon-js-protobuf 1.8.23 → 1.8.25

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,21 @@ 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:
1425
+ | string
1426
+ | undefined;
1427
+ /** string description */
1428
+ description: string;
1429
+ /** about */
1430
+ about: string;
1411
1431
  }
1412
1432
 
1413
1433
  /** Delete a clan the user has access to. */
@@ -1922,8 +1942,14 @@ export interface NotificationSetting {
1922
1942
 
1923
1943
  /** */
1924
1944
  export interface DeletePinMessage {
1945
+ /** */
1946
+ id: string;
1925
1947
  /** */
1926
1948
  message_id: string;
1949
+ /** */
1950
+ channel_id: string;
1951
+ /** */
1952
+ clan_id: string;
1927
1953
  }
1928
1954
 
1929
1955
  /** */
@@ -2379,11 +2405,11 @@ export interface SearchMessageDocument {
2379
2405
  /** The message ID. */
2380
2406
  message_id: string;
2381
2407
  /** The channel ID. */
2382
- channel_id: number;
2408
+ channel_id: string;
2383
2409
  /** The clan ID. */
2384
- clan_id: number;
2410
+ clan_id: string;
2385
2411
  /** The user ID of sender. */
2386
- sender_id: number;
2412
+ sender_id: string;
2387
2413
  /** Message content */
2388
2414
  content: string;
2389
2415
  /** Mention users */
@@ -3317,9 +3343,9 @@ export interface TokenSentEvent {
3317
3343
  amount: number;
3318
3344
  /** note */
3319
3345
  note: string;
3320
- /** */
3346
+ /** extra attribute */
3321
3347
  extra_attribute: string;
3322
- /** */
3348
+ /** transaction id */
3323
3349
  transaction_id: string;
3324
3350
  }
3325
3351
 
@@ -12225,6 +12251,8 @@ function createBaseClanDesc(): ClanDesc {
12225
12251
  welcome_channel_id: "",
12226
12252
  onboarding_banner: "",
12227
12253
  clan_order: 0,
12254
+ is_community: false,
12255
+ community_banner: "",
12228
12256
  };
12229
12257
  }
12230
12258
 
@@ -12263,6 +12291,12 @@ export const ClanDesc = {
12263
12291
  if (message.clan_order !== 0) {
12264
12292
  writer.uint32(88).int32(message.clan_order);
12265
12293
  }
12294
+ if (message.is_community !== false) {
12295
+ writer.uint32(96).bool(message.is_community);
12296
+ }
12297
+ if (message.community_banner !== "") {
12298
+ writer.uint32(106).string(message.community_banner);
12299
+ }
12266
12300
  return writer;
12267
12301
  },
12268
12302
 
@@ -12350,6 +12384,20 @@ export const ClanDesc = {
12350
12384
 
12351
12385
  message.clan_order = reader.int32();
12352
12386
  continue;
12387
+ case 12:
12388
+ if (tag !== 96) {
12389
+ break;
12390
+ }
12391
+
12392
+ message.is_community = reader.bool();
12393
+ continue;
12394
+ case 13:
12395
+ if (tag !== 106) {
12396
+ break;
12397
+ }
12398
+
12399
+ message.community_banner = reader.string();
12400
+ continue;
12353
12401
  }
12354
12402
  if ((tag & 7) === 4 || tag === 0) {
12355
12403
  break;
@@ -12372,6 +12420,8 @@ export const ClanDesc = {
12372
12420
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
12373
12421
  onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
12374
12422
  clan_order: isSet(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
12423
+ is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
12424
+ community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
12375
12425
  };
12376
12426
  },
12377
12427
 
@@ -12410,6 +12460,12 @@ export const ClanDesc = {
12410
12460
  if (message.clan_order !== 0) {
12411
12461
  obj.clan_order = Math.round(message.clan_order);
12412
12462
  }
12463
+ if (message.is_community !== false) {
12464
+ obj.is_community = message.is_community;
12465
+ }
12466
+ if (message.community_banner !== "") {
12467
+ obj.community_banner = message.community_banner;
12468
+ }
12413
12469
  return obj;
12414
12470
  },
12415
12471
 
@@ -12429,6 +12485,8 @@ export const ClanDesc = {
12429
12485
  message.welcome_channel_id = object.welcome_channel_id ?? "";
12430
12486
  message.onboarding_banner = object.onboarding_banner ?? "";
12431
12487
  message.clan_order = object.clan_order ?? 0;
12488
+ message.is_community = object.is_community ?? false;
12489
+ message.community_banner = object.community_banner ?? "";
12432
12490
  return message;
12433
12491
  },
12434
12492
  };
@@ -12527,11 +12585,15 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
12527
12585
  clan_id: "",
12528
12586
  clan_name: "",
12529
12587
  logo: "",
12530
- banner: "",
12588
+ banner: undefined,
12531
12589
  status: 0,
12532
12590
  is_onboarding: undefined,
12533
12591
  welcome_channel_id: "",
12534
- onboarding_banner: "",
12592
+ onboarding_banner: undefined,
12593
+ is_community: undefined,
12594
+ community_banner: undefined,
12595
+ description: "",
12596
+ about: "",
12535
12597
  };
12536
12598
  }
12537
12599
 
@@ -12546,8 +12608,8 @@ export const UpdateClanDescRequest = {
12546
12608
  if (message.logo !== "") {
12547
12609
  writer.uint32(26).string(message.logo);
12548
12610
  }
12549
- if (message.banner !== "") {
12550
- writer.uint32(34).string(message.banner);
12611
+ if (message.banner !== undefined) {
12612
+ StringValue.encode({ value: message.banner! }, writer.uint32(34).fork()).ldelim();
12551
12613
  }
12552
12614
  if (message.status !== 0) {
12553
12615
  writer.uint32(40).int32(message.status);
@@ -12558,8 +12620,20 @@ export const UpdateClanDescRequest = {
12558
12620
  if (message.welcome_channel_id !== "") {
12559
12621
  writer.uint32(58).string(message.welcome_channel_id);
12560
12622
  }
12561
- if (message.onboarding_banner !== "") {
12562
- writer.uint32(66).string(message.onboarding_banner);
12623
+ if (message.onboarding_banner !== undefined) {
12624
+ StringValue.encode({ value: message.onboarding_banner! }, writer.uint32(66).fork()).ldelim();
12625
+ }
12626
+ if (message.is_community !== undefined) {
12627
+ BoolValue.encode({ value: message.is_community! }, writer.uint32(74).fork()).ldelim();
12628
+ }
12629
+ if (message.community_banner !== undefined) {
12630
+ StringValue.encode({ value: message.community_banner! }, writer.uint32(82).fork()).ldelim();
12631
+ }
12632
+ if (message.description !== "") {
12633
+ writer.uint32(90).string(message.description);
12634
+ }
12635
+ if (message.about !== "") {
12636
+ writer.uint32(98).string(message.about);
12563
12637
  }
12564
12638
  return writer;
12565
12639
  },
@@ -12597,7 +12671,7 @@ export const UpdateClanDescRequest = {
12597
12671
  break;
12598
12672
  }
12599
12673
 
12600
- message.banner = reader.string();
12674
+ message.banner = StringValue.decode(reader, reader.uint32()).value;
12601
12675
  continue;
12602
12676
  case 5:
12603
12677
  if (tag !== 40) {
@@ -12625,7 +12699,35 @@ export const UpdateClanDescRequest = {
12625
12699
  break;
12626
12700
  }
12627
12701
 
12628
- message.onboarding_banner = reader.string();
12702
+ message.onboarding_banner = StringValue.decode(reader, reader.uint32()).value;
12703
+ continue;
12704
+ case 9:
12705
+ if (tag !== 74) {
12706
+ break;
12707
+ }
12708
+
12709
+ message.is_community = BoolValue.decode(reader, reader.uint32()).value;
12710
+ continue;
12711
+ case 10:
12712
+ if (tag !== 82) {
12713
+ break;
12714
+ }
12715
+
12716
+ message.community_banner = StringValue.decode(reader, reader.uint32()).value;
12717
+ continue;
12718
+ case 11:
12719
+ if (tag !== 90) {
12720
+ break;
12721
+ }
12722
+
12723
+ message.description = reader.string();
12724
+ continue;
12725
+ case 12:
12726
+ if (tag !== 98) {
12727
+ break;
12728
+ }
12729
+
12730
+ message.about = reader.string();
12629
12731
  continue;
12630
12732
  }
12631
12733
  if ((tag & 7) === 4 || tag === 0) {
@@ -12641,11 +12743,15 @@ export const UpdateClanDescRequest = {
12641
12743
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12642
12744
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
12643
12745
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
12644
- banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
12746
+ banner: isSet(object.banner) ? String(object.banner) : undefined,
12645
12747
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
12646
12748
  is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
12647
12749
  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) : "",
12750
+ onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
12751
+ is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
12752
+ community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
12753
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
12754
+ about: isSet(object.about) ? globalThis.String(object.about) : "",
12649
12755
  };
12650
12756
  },
12651
12757
 
@@ -12660,7 +12766,7 @@ export const UpdateClanDescRequest = {
12660
12766
  if (message.logo !== "") {
12661
12767
  obj.logo = message.logo;
12662
12768
  }
12663
- if (message.banner !== "") {
12769
+ if (message.banner !== undefined) {
12664
12770
  obj.banner = message.banner;
12665
12771
  }
12666
12772
  if (message.status !== 0) {
@@ -12672,9 +12778,21 @@ export const UpdateClanDescRequest = {
12672
12778
  if (message.welcome_channel_id !== "") {
12673
12779
  obj.welcome_channel_id = message.welcome_channel_id;
12674
12780
  }
12675
- if (message.onboarding_banner !== "") {
12781
+ if (message.onboarding_banner !== undefined) {
12676
12782
  obj.onboarding_banner = message.onboarding_banner;
12677
12783
  }
12784
+ if (message.is_community !== undefined) {
12785
+ obj.is_community = message.is_community;
12786
+ }
12787
+ if (message.community_banner !== undefined) {
12788
+ obj.community_banner = message.community_banner;
12789
+ }
12790
+ if (message.description !== "") {
12791
+ obj.description = message.description;
12792
+ }
12793
+ if (message.about !== "") {
12794
+ obj.about = message.about;
12795
+ }
12678
12796
  return obj;
12679
12797
  },
12680
12798
 
@@ -12686,11 +12804,15 @@ export const UpdateClanDescRequest = {
12686
12804
  message.clan_id = object.clan_id ?? "";
12687
12805
  message.clan_name = object.clan_name ?? "";
12688
12806
  message.logo = object.logo ?? "";
12689
- message.banner = object.banner ?? "";
12807
+ message.banner = object.banner ?? undefined;
12690
12808
  message.status = object.status ?? 0;
12691
12809
  message.is_onboarding = object.is_onboarding ?? undefined;
12692
12810
  message.welcome_channel_id = object.welcome_channel_id ?? "";
12693
- message.onboarding_banner = object.onboarding_banner ?? "";
12811
+ message.onboarding_banner = object.onboarding_banner ?? undefined;
12812
+ message.is_community = object.is_community ?? undefined;
12813
+ message.community_banner = object.community_banner ?? undefined;
12814
+ message.description = object.description ?? "";
12815
+ message.about = object.about ?? "";
12694
12816
  return message;
12695
12817
  },
12696
12818
  };
@@ -17554,13 +17676,22 @@ export const NotificationSetting = {
17554
17676
  };
17555
17677
 
17556
17678
  function createBaseDeletePinMessage(): DeletePinMessage {
17557
- return { message_id: "" };
17679
+ return { id: "", message_id: "", channel_id: "", clan_id: "" };
17558
17680
  }
17559
17681
 
17560
17682
  export const DeletePinMessage = {
17561
17683
  encode(message: DeletePinMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17684
+ if (message.id !== "") {
17685
+ writer.uint32(10).string(message.id);
17686
+ }
17562
17687
  if (message.message_id !== "") {
17563
- writer.uint32(10).string(message.message_id);
17688
+ writer.uint32(18).string(message.message_id);
17689
+ }
17690
+ if (message.channel_id !== "") {
17691
+ writer.uint32(26).string(message.channel_id);
17692
+ }
17693
+ if (message.clan_id !== "") {
17694
+ writer.uint32(34).string(message.clan_id);
17564
17695
  }
17565
17696
  return writer;
17566
17697
  },
@@ -17577,8 +17708,29 @@ export const DeletePinMessage = {
17577
17708
  break;
17578
17709
  }
17579
17710
 
17711
+ message.id = reader.string();
17712
+ continue;
17713
+ case 2:
17714
+ if (tag !== 18) {
17715
+ break;
17716
+ }
17717
+
17580
17718
  message.message_id = reader.string();
17581
17719
  continue;
17720
+ case 3:
17721
+ if (tag !== 26) {
17722
+ break;
17723
+ }
17724
+
17725
+ message.channel_id = reader.string();
17726
+ continue;
17727
+ case 4:
17728
+ if (tag !== 34) {
17729
+ break;
17730
+ }
17731
+
17732
+ message.clan_id = reader.string();
17733
+ continue;
17582
17734
  }
17583
17735
  if ((tag & 7) === 4 || tag === 0) {
17584
17736
  break;
@@ -17589,14 +17741,28 @@ export const DeletePinMessage = {
17589
17741
  },
17590
17742
 
17591
17743
  fromJSON(object: any): DeletePinMessage {
17592
- return { message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "" };
17744
+ return {
17745
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
17746
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
17747
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
17748
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
17749
+ };
17593
17750
  },
17594
17751
 
17595
17752
  toJSON(message: DeletePinMessage): unknown {
17596
17753
  const obj: any = {};
17754
+ if (message.id !== "") {
17755
+ obj.id = message.id;
17756
+ }
17597
17757
  if (message.message_id !== "") {
17598
17758
  obj.message_id = message.message_id;
17599
17759
  }
17760
+ if (message.channel_id !== "") {
17761
+ obj.channel_id = message.channel_id;
17762
+ }
17763
+ if (message.clan_id !== "") {
17764
+ obj.clan_id = message.clan_id;
17765
+ }
17600
17766
  return obj;
17601
17767
  },
17602
17768
 
@@ -17605,7 +17771,10 @@ export const DeletePinMessage = {
17605
17771
  },
17606
17772
  fromPartial<I extends Exact<DeepPartial<DeletePinMessage>, I>>(object: I): DeletePinMessage {
17607
17773
  const message = createBaseDeletePinMessage();
17774
+ message.id = object.id ?? "";
17608
17775
  message.message_id = object.message_id ?? "";
17776
+ message.channel_id = object.channel_id ?? "";
17777
+ message.clan_id = object.clan_id ?? "";
17609
17778
  return message;
17610
17779
  },
17611
17780
  };
@@ -22120,9 +22289,9 @@ export const FilterParam = {
22120
22289
  function createBaseSearchMessageDocument(): SearchMessageDocument {
22121
22290
  return {
22122
22291
  message_id: "",
22123
- channel_id: 0,
22124
- clan_id: 0,
22125
- sender_id: 0,
22292
+ channel_id: "",
22293
+ clan_id: "",
22294
+ sender_id: "",
22126
22295
  content: "",
22127
22296
  mentions: "",
22128
22297
  reactions: "",
@@ -22144,14 +22313,14 @@ export const SearchMessageDocument = {
22144
22313
  if (message.message_id !== "") {
22145
22314
  writer.uint32(10).string(message.message_id);
22146
22315
  }
22147
- if (message.channel_id !== 0) {
22148
- writer.uint32(16).int64(message.channel_id);
22316
+ if (message.channel_id !== "") {
22317
+ writer.uint32(18).string(message.channel_id);
22149
22318
  }
22150
- if (message.clan_id !== 0) {
22151
- writer.uint32(24).int64(message.clan_id);
22319
+ if (message.clan_id !== "") {
22320
+ writer.uint32(26).string(message.clan_id);
22152
22321
  }
22153
- if (message.sender_id !== 0) {
22154
- writer.uint32(32).int64(message.sender_id);
22322
+ if (message.sender_id !== "") {
22323
+ writer.uint32(34).string(message.sender_id);
22155
22324
  }
22156
22325
  if (message.content !== "") {
22157
22326
  writer.uint32(42).string(message.content);
@@ -22210,25 +22379,25 @@ export const SearchMessageDocument = {
22210
22379
  message.message_id = reader.string();
22211
22380
  continue;
22212
22381
  case 2:
22213
- if (tag !== 16) {
22382
+ if (tag !== 18) {
22214
22383
  break;
22215
22384
  }
22216
22385
 
22217
- message.channel_id = longToNumber(reader.int64() as Long);
22386
+ message.channel_id = reader.string();
22218
22387
  continue;
22219
22388
  case 3:
22220
- if (tag !== 24) {
22389
+ if (tag !== 26) {
22221
22390
  break;
22222
22391
  }
22223
22392
 
22224
- message.clan_id = longToNumber(reader.int64() as Long);
22393
+ message.clan_id = reader.string();
22225
22394
  continue;
22226
22395
  case 4:
22227
- if (tag !== 32) {
22396
+ if (tag !== 34) {
22228
22397
  break;
22229
22398
  }
22230
22399
 
22231
- message.sender_id = longToNumber(reader.int64() as Long);
22400
+ message.sender_id = reader.string();
22232
22401
  continue;
22233
22402
  case 5:
22234
22403
  if (tag !== 42) {
@@ -22333,9 +22502,9 @@ export const SearchMessageDocument = {
22333
22502
  fromJSON(object: any): SearchMessageDocument {
22334
22503
  return {
22335
22504
  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,
22505
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22506
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22507
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
22339
22508
  content: isSet(object.content) ? globalThis.String(object.content) : "",
22340
22509
  mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
22341
22510
  reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
@@ -22359,14 +22528,14 @@ export const SearchMessageDocument = {
22359
22528
  if (message.message_id !== "") {
22360
22529
  obj.message_id = message.message_id;
22361
22530
  }
22362
- if (message.channel_id !== 0) {
22363
- obj.channel_id = Math.round(message.channel_id);
22531
+ if (message.channel_id !== "") {
22532
+ obj.channel_id = message.channel_id;
22364
22533
  }
22365
- if (message.clan_id !== 0) {
22366
- obj.clan_id = Math.round(message.clan_id);
22534
+ if (message.clan_id !== "") {
22535
+ obj.clan_id = message.clan_id;
22367
22536
  }
22368
- if (message.sender_id !== 0) {
22369
- obj.sender_id = Math.round(message.sender_id);
22537
+ if (message.sender_id !== "") {
22538
+ obj.sender_id = message.sender_id;
22370
22539
  }
22371
22540
  if (message.content !== "") {
22372
22541
  obj.content = message.content;
@@ -22416,9 +22585,9 @@ export const SearchMessageDocument = {
22416
22585
  fromPartial<I extends Exact<DeepPartial<SearchMessageDocument>, I>>(object: I): SearchMessageDocument {
22417
22586
  const message = createBaseSearchMessageDocument();
22418
22587
  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;
22588
+ message.channel_id = object.channel_id ?? "";
22589
+ message.clan_id = object.clan_id ?? "";
22590
+ message.sender_id = object.sender_id ?? "";
22422
22591
  message.content = object.content ?? "";
22423
22592
  message.mentions = object.mentions ?? "";
22424
22593
  message.reactions = object.reactions ?? "";