mezon-js-protobuf 1.4.67 → 1.4.68

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
@@ -540,6 +540,8 @@ export interface ChannelMessage {
540
540
  /** The category name */
541
541
  category_name: string;
542
542
  /** The clan nick name */
543
+ display_name: string;
544
+ /** The clan nick name */
543
545
  clan_nick: string;
544
546
  /** Emoji reaction */
545
547
  reactions: string;
@@ -5363,6 +5365,7 @@ function createBaseChannelMessage(): ChannelMessage {
5363
5365
  channel_label: "",
5364
5366
  clan_logo: "",
5365
5367
  category_name: "",
5368
+ display_name: "",
5366
5369
  clan_nick: "",
5367
5370
  reactions: "",
5368
5371
  mentions: "",
@@ -5413,23 +5416,26 @@ export const ChannelMessage = {
5413
5416
  if (message.category_name !== "") {
5414
5417
  writer.uint32(106).string(message.category_name);
5415
5418
  }
5419
+ if (message.display_name !== "") {
5420
+ writer.uint32(114).string(message.display_name);
5421
+ }
5416
5422
  if (message.clan_nick !== "") {
5417
- writer.uint32(114).string(message.clan_nick);
5423
+ writer.uint32(122).string(message.clan_nick);
5418
5424
  }
5419
5425
  if (message.reactions !== "") {
5420
- writer.uint32(122).string(message.reactions);
5426
+ writer.uint32(130).string(message.reactions);
5421
5427
  }
5422
5428
  if (message.mentions !== "") {
5423
- writer.uint32(130).string(message.mentions);
5429
+ writer.uint32(138).string(message.mentions);
5424
5430
  }
5425
5431
  if (message.attachments !== "") {
5426
- writer.uint32(138).string(message.attachments);
5432
+ writer.uint32(146).string(message.attachments);
5427
5433
  }
5428
5434
  if (message.references !== "") {
5429
- writer.uint32(146).string(message.references);
5435
+ writer.uint32(154).string(message.references);
5430
5436
  }
5431
5437
  if (message.referenced_message !== "") {
5432
- writer.uint32(154).string(message.referenced_message);
5438
+ writer.uint32(162).string(message.referenced_message);
5433
5439
  }
5434
5440
  return writer;
5435
5441
  },
@@ -5481,21 +5487,24 @@ export const ChannelMessage = {
5481
5487
  message.category_name = reader.string();
5482
5488
  break;
5483
5489
  case 14:
5484
- message.clan_nick = reader.string();
5490
+ message.display_name = reader.string();
5485
5491
  break;
5486
5492
  case 15:
5487
- message.reactions = reader.string();
5493
+ message.clan_nick = reader.string();
5488
5494
  break;
5489
5495
  case 16:
5490
- message.mentions = reader.string();
5496
+ message.reactions = reader.string();
5491
5497
  break;
5492
5498
  case 17:
5493
- message.attachments = reader.string();
5499
+ message.mentions = reader.string();
5494
5500
  break;
5495
5501
  case 18:
5496
- message.references = reader.string();
5502
+ message.attachments = reader.string();
5497
5503
  break;
5498
5504
  case 19:
5505
+ message.references = reader.string();
5506
+ break;
5507
+ case 20:
5499
5508
  message.referenced_message = reader.string();
5500
5509
  break;
5501
5510
  default:
@@ -5521,6 +5530,7 @@ export const ChannelMessage = {
5521
5530
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
5522
5531
  clan_logo: isSet(object.clan_logo) ? String(object.clan_logo) : "",
5523
5532
  category_name: isSet(object.category_name) ? String(object.category_name) : "",
5533
+ display_name: isSet(object.display_name) ? String(object.display_name) : "",
5524
5534
  clan_nick: isSet(object.clan_nick) ? String(object.clan_nick) : "",
5525
5535
  reactions: isSet(object.reactions) ? String(object.reactions) : "",
5526
5536
  mentions: isSet(object.mentions) ? String(object.mentions) : "",
@@ -5545,6 +5555,7 @@ export const ChannelMessage = {
5545
5555
  message.channel_label !== undefined && (obj.channel_label = message.channel_label);
5546
5556
  message.clan_logo !== undefined && (obj.clan_logo = message.clan_logo);
5547
5557
  message.category_name !== undefined && (obj.category_name = message.category_name);
5558
+ message.display_name !== undefined && (obj.display_name = message.display_name);
5548
5559
  message.clan_nick !== undefined && (obj.clan_nick = message.clan_nick);
5549
5560
  message.reactions !== undefined && (obj.reactions = message.reactions);
5550
5561
  message.mentions !== undefined && (obj.mentions = message.mentions);
@@ -5573,6 +5584,7 @@ export const ChannelMessage = {
5573
5584
  message.channel_label = object.channel_label ?? "";
5574
5585
  message.clan_logo = object.clan_logo ?? "";
5575
5586
  message.category_name = object.category_name ?? "";
5587
+ message.display_name = object.display_name ?? "";
5576
5588
  message.clan_nick = object.clan_nick ?? "";
5577
5589
  message.reactions = object.reactions ?? "";
5578
5590
  message.mentions = object.mentions ?? "";
@@ -364,6 +364,8 @@ export interface ChannelMessage {
364
364
  /** The category name */
365
365
  category_name: string;
366
366
  /** The clan nick name */
367
+ display_name: string;
368
+ /** The clan nick name */
367
369
  clan_nick: string;
368
370
  /** Emoji reaction */
369
371
  reactions: string;
@@ -3530,6 +3532,7 @@ export declare const ChannelMessage: {
3530
3532
  channel_label?: string | undefined;
3531
3533
  clan_logo?: string | undefined;
3532
3534
  category_name?: string | undefined;
3535
+ display_name?: string | undefined;
3533
3536
  clan_nick?: string | undefined;
3534
3537
  reactions?: string | undefined;
3535
3538
  mentions?: string | undefined;
@@ -3550,6 +3553,7 @@ export declare const ChannelMessage: {
3550
3553
  channel_label?: string | undefined;
3551
3554
  clan_logo?: string | undefined;
3552
3555
  category_name?: string | undefined;
3556
+ display_name?: string | undefined;
3553
3557
  clan_nick?: string | undefined;
3554
3558
  reactions?: string | undefined;
3555
3559
  mentions?: string | undefined;
@@ -3571,6 +3575,7 @@ export declare const ChannelMessage: {
3571
3575
  channel_label?: string | undefined;
3572
3576
  clan_logo?: string | undefined;
3573
3577
  category_name?: string | undefined;
3578
+ display_name?: string | undefined;
3574
3579
  clan_nick?: string | undefined;
3575
3580
  reactions?: string | undefined;
3576
3581
  mentions?: string | undefined;
@@ -3591,6 +3596,7 @@ export declare const ChannelMessage: {
3591
3596
  channel_label?: string | undefined;
3592
3597
  clan_logo?: string | undefined;
3593
3598
  category_name?: string | undefined;
3599
+ display_name?: string | undefined;
3594
3600
  clan_nick?: string | undefined;
3595
3601
  reactions?: string | undefined;
3596
3602
  mentions?: string | undefined;
@@ -3815,6 +3821,7 @@ export declare const ChannelMessageList: {
3815
3821
  channel_label?: string | undefined;
3816
3822
  clan_logo?: string | undefined;
3817
3823
  category_name?: string | undefined;
3824
+ display_name?: string | undefined;
3818
3825
  clan_nick?: string | undefined;
3819
3826
  reactions?: string | undefined;
3820
3827
  mentions?: string | undefined;
@@ -3847,6 +3854,7 @@ export declare const ChannelMessageList: {
3847
3854
  channel_label?: string | undefined;
3848
3855
  clan_logo?: string | undefined;
3849
3856
  category_name?: string | undefined;
3857
+ display_name?: string | undefined;
3850
3858
  clan_nick?: string | undefined;
3851
3859
  reactions?: string | undefined;
3852
3860
  mentions?: string | undefined;
@@ -3867,6 +3875,7 @@ export declare const ChannelMessageList: {
3867
3875
  channel_label?: string | undefined;
3868
3876
  clan_logo?: string | undefined;
3869
3877
  category_name?: string | undefined;
3878
+ display_name?: string | undefined;
3870
3879
  clan_nick?: string | undefined;
3871
3880
  reactions?: string | undefined;
3872
3881
  mentions?: string | undefined;
@@ -3887,6 +3896,7 @@ export declare const ChannelMessageList: {
3887
3896
  channel_label?: string | undefined;
3888
3897
  clan_logo?: string | undefined;
3889
3898
  category_name?: string | undefined;
3899
+ display_name?: string | undefined;
3890
3900
  clan_nick?: string | undefined;
3891
3901
  reactions?: string | undefined;
3892
3902
  mentions?: string | undefined;
@@ -3907,6 +3917,7 @@ export declare const ChannelMessageList: {
3907
3917
  channel_label?: string | undefined;
3908
3918
  clan_logo?: string | undefined;
3909
3919
  category_name?: string | undefined;
3920
+ display_name?: string | undefined;
3910
3921
  clan_nick?: string | undefined;
3911
3922
  reactions?: string | undefined;
3912
3923
  mentions?: string | undefined;
@@ -3949,6 +3960,7 @@ export declare const ChannelMessageList: {
3949
3960
  channel_label?: string | undefined;
3950
3961
  clan_logo?: string | undefined;
3951
3962
  category_name?: string | undefined;
3963
+ display_name?: string | undefined;
3952
3964
  clan_nick?: string | undefined;
3953
3965
  reactions?: string | undefined;
3954
3966
  mentions?: string | undefined;
@@ -3981,6 +3993,7 @@ export declare const ChannelMessageList: {
3981
3993
  channel_label?: string | undefined;
3982
3994
  clan_logo?: string | undefined;
3983
3995
  category_name?: string | undefined;
3996
+ display_name?: string | undefined;
3984
3997
  clan_nick?: string | undefined;
3985
3998
  reactions?: string | undefined;
3986
3999
  mentions?: string | undefined;
@@ -4001,6 +4014,7 @@ export declare const ChannelMessageList: {
4001
4014
  channel_label?: string | undefined;
4002
4015
  clan_logo?: string | undefined;
4003
4016
  category_name?: string | undefined;
4017
+ display_name?: string | undefined;
4004
4018
  clan_nick?: string | undefined;
4005
4019
  reactions?: string | undefined;
4006
4020
  mentions?: string | undefined;
@@ -4021,6 +4035,7 @@ export declare const ChannelMessageList: {
4021
4035
  channel_label?: string | undefined;
4022
4036
  clan_logo?: string | undefined;
4023
4037
  category_name?: string | undefined;
4038
+ display_name?: string | undefined;
4024
4039
  clan_nick?: string | undefined;
4025
4040
  reactions?: string | undefined;
4026
4041
  mentions?: string | undefined;
@@ -4041,6 +4056,7 @@ export declare const ChannelMessageList: {
4041
4056
  channel_label?: string | undefined;
4042
4057
  clan_logo?: string | undefined;
4043
4058
  category_name?: string | undefined;
4059
+ display_name?: string | undefined;
4044
4060
  clan_nick?: string | undefined;
4045
4061
  reactions?: string | undefined;
4046
4062
  mentions?: string | undefined;
@@ -597,10 +597,16 @@ export interface UserProfileRedis {
597
597
  username: string;
598
598
  /** Avatar to follow. */
599
599
  avatar: string;
600
+ /** Display name */
601
+ display_name: string;
602
+ /** FCM token */
603
+ fcm_tokens: FCMTokens[];
604
+ }
605
+ export interface FCMTokens {
600
606
  /** deviceID to follow. */
601
- deviceID: string;
607
+ device_id: string;
602
608
  /** tokenID to follow. */
603
- tokenID: string;
609
+ token_id: string;
604
610
  }
605
611
  export declare const Envelope: {
606
612
  encode(message: Envelope, writer?: _m0.Writer): _m0.Writer;
@@ -659,6 +665,7 @@ export declare const Envelope: {
659
665
  channel_label?: string | undefined;
660
666
  clan_logo?: string | undefined;
661
667
  category_name?: string | undefined;
668
+ display_name?: string | undefined;
662
669
  clan_nick?: string | undefined;
663
670
  reactions?: string | undefined;
664
671
  mentions?: string | undefined;
@@ -1053,6 +1060,7 @@ export declare const Envelope: {
1053
1060
  channel_label?: string | undefined;
1054
1061
  clan_logo?: string | undefined;
1055
1062
  category_name?: string | undefined;
1063
+ display_name?: string | undefined;
1056
1064
  clan_nick?: string | undefined;
1057
1065
  reactions?: string | undefined;
1058
1066
  mentions?: string | undefined;
@@ -1073,6 +1081,7 @@ export declare const Envelope: {
1073
1081
  channel_label?: string | undefined;
1074
1082
  clan_logo?: string | undefined;
1075
1083
  category_name?: string | undefined;
1084
+ display_name?: string | undefined;
1076
1085
  clan_nick?: string | undefined;
1077
1086
  reactions?: string | undefined;
1078
1087
  mentions?: string | undefined;
@@ -1904,6 +1913,7 @@ export declare const Envelope: {
1904
1913
  channel_label?: string | undefined;
1905
1914
  clan_logo?: string | undefined;
1906
1915
  category_name?: string | undefined;
1916
+ display_name?: string | undefined;
1907
1917
  clan_nick?: string | undefined;
1908
1918
  reactions?: string | undefined;
1909
1919
  mentions?: string | undefined;
@@ -2298,6 +2308,7 @@ export declare const Envelope: {
2298
2308
  channel_label?: string | undefined;
2299
2309
  clan_logo?: string | undefined;
2300
2310
  category_name?: string | undefined;
2311
+ display_name?: string | undefined;
2301
2312
  clan_nick?: string | undefined;
2302
2313
  reactions?: string | undefined;
2303
2314
  mentions?: string | undefined;
@@ -2318,6 +2329,7 @@ export declare const Envelope: {
2318
2329
  channel_label?: string | undefined;
2319
2330
  clan_logo?: string | undefined;
2320
2331
  category_name?: string | undefined;
2332
+ display_name?: string | undefined;
2321
2333
  clan_nick?: string | undefined;
2322
2334
  reactions?: string | undefined;
2323
2335
  mentions?: string | undefined;
@@ -5297,28 +5309,78 @@ export declare const UserProfileRedis: {
5297
5309
  user_id?: string | undefined;
5298
5310
  username?: string | undefined;
5299
5311
  avatar?: string | undefined;
5300
- deviceID?: string | undefined;
5301
- tokenID?: string | undefined;
5312
+ display_name?: string | undefined;
5313
+ fcm_tokens?: {
5314
+ device_id?: string | undefined;
5315
+ token_id?: string | undefined;
5316
+ }[] | undefined;
5302
5317
  } & {
5303
5318
  user_id?: string | undefined;
5304
5319
  username?: string | undefined;
5305
5320
  avatar?: string | undefined;
5306
- deviceID?: string | undefined;
5307
- tokenID?: string | undefined;
5308
- } & { [K in Exclude<keyof I, keyof UserProfileRedis>]: never; }>(base?: I | undefined): UserProfileRedis;
5321
+ display_name?: string | undefined;
5322
+ fcm_tokens?: ({
5323
+ device_id?: string | undefined;
5324
+ token_id?: string | undefined;
5325
+ }[] & ({
5326
+ device_id?: string | undefined;
5327
+ token_id?: string | undefined;
5328
+ } & {
5329
+ device_id?: string | undefined;
5330
+ token_id?: string | undefined;
5331
+ } & { [K in Exclude<keyof I["fcm_tokens"][number], keyof FCMTokens>]: never; })[] & { [K_1 in Exclude<keyof I["fcm_tokens"], keyof {
5332
+ device_id?: string | undefined;
5333
+ token_id?: string | undefined;
5334
+ }[]>]: never; }) | undefined;
5335
+ } & { [K_2 in Exclude<keyof I, keyof UserProfileRedis>]: never; }>(base?: I | undefined): UserProfileRedis;
5309
5336
  fromPartial<I_1 extends {
5310
5337
  user_id?: string | undefined;
5311
5338
  username?: string | undefined;
5312
5339
  avatar?: string | undefined;
5313
- deviceID?: string | undefined;
5314
- tokenID?: string | undefined;
5340
+ display_name?: string | undefined;
5341
+ fcm_tokens?: {
5342
+ device_id?: string | undefined;
5343
+ token_id?: string | undefined;
5344
+ }[] | undefined;
5315
5345
  } & {
5316
5346
  user_id?: string | undefined;
5317
5347
  username?: string | undefined;
5318
5348
  avatar?: string | undefined;
5319
- deviceID?: string | undefined;
5320
- tokenID?: string | undefined;
5321
- } & { [K_1 in Exclude<keyof I_1, keyof UserProfileRedis>]: never; }>(object: I_1): UserProfileRedis;
5349
+ display_name?: string | undefined;
5350
+ fcm_tokens?: ({
5351
+ device_id?: string | undefined;
5352
+ token_id?: string | undefined;
5353
+ }[] & ({
5354
+ device_id?: string | undefined;
5355
+ token_id?: string | undefined;
5356
+ } & {
5357
+ device_id?: string | undefined;
5358
+ token_id?: string | undefined;
5359
+ } & { [K_3 in Exclude<keyof I_1["fcm_tokens"][number], keyof FCMTokens>]: never; })[] & { [K_4 in Exclude<keyof I_1["fcm_tokens"], keyof {
5360
+ device_id?: string | undefined;
5361
+ token_id?: string | undefined;
5362
+ }[]>]: never; }) | undefined;
5363
+ } & { [K_5 in Exclude<keyof I_1, keyof UserProfileRedis>]: never; }>(object: I_1): UserProfileRedis;
5364
+ };
5365
+ export declare const FCMTokens: {
5366
+ encode(message: FCMTokens, writer?: _m0.Writer): _m0.Writer;
5367
+ decode(input: _m0.Reader | Uint8Array, length?: number): FCMTokens;
5368
+ fromJSON(object: any): FCMTokens;
5369
+ toJSON(message: FCMTokens): unknown;
5370
+ create<I extends {
5371
+ device_id?: string | undefined;
5372
+ token_id?: string | undefined;
5373
+ } & {
5374
+ device_id?: string | undefined;
5375
+ token_id?: string | undefined;
5376
+ } & { [K in Exclude<keyof I, keyof FCMTokens>]: never; }>(base?: I | undefined): FCMTokens;
5377
+ fromPartial<I_1 extends {
5378
+ device_id?: string | undefined;
5379
+ token_id?: string | undefined;
5380
+ } & {
5381
+ device_id?: string | undefined;
5382
+ token_id?: string | undefined;
5383
+ } & { [K_1 in Exclude<keyof I_1, keyof FCMTokens>]: never; }>(object: I_1): FCMTokens;
5322
5384
  };
5323
5385
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
5324
5386
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -2541,6 +2541,7 @@ function createBaseChannelMessage() {
2541
2541
  channel_label: "",
2542
2542
  clan_logo: "",
2543
2543
  category_name: "",
2544
+ display_name: "",
2544
2545
  clan_nick: "",
2545
2546
  reactions: "",
2546
2547
  mentions: "",
@@ -2590,23 +2591,26 @@ var ChannelMessage = {
2590
2591
  if (message.category_name !== "") {
2591
2592
  writer.uint32(106).string(message.category_name);
2592
2593
  }
2594
+ if (message.display_name !== "") {
2595
+ writer.uint32(114).string(message.display_name);
2596
+ }
2593
2597
  if (message.clan_nick !== "") {
2594
- writer.uint32(114).string(message.clan_nick);
2598
+ writer.uint32(122).string(message.clan_nick);
2595
2599
  }
2596
2600
  if (message.reactions !== "") {
2597
- writer.uint32(122).string(message.reactions);
2601
+ writer.uint32(130).string(message.reactions);
2598
2602
  }
2599
2603
  if (message.mentions !== "") {
2600
- writer.uint32(130).string(message.mentions);
2604
+ writer.uint32(138).string(message.mentions);
2601
2605
  }
2602
2606
  if (message.attachments !== "") {
2603
- writer.uint32(138).string(message.attachments);
2607
+ writer.uint32(146).string(message.attachments);
2604
2608
  }
2605
2609
  if (message.references !== "") {
2606
- writer.uint32(146).string(message.references);
2610
+ writer.uint32(154).string(message.references);
2607
2611
  }
2608
2612
  if (message.referenced_message !== "") {
2609
- writer.uint32(154).string(message.referenced_message);
2613
+ writer.uint32(162).string(message.referenced_message);
2610
2614
  }
2611
2615
  return writer;
2612
2616
  },
@@ -2657,21 +2661,24 @@ var ChannelMessage = {
2657
2661
  message.category_name = reader.string();
2658
2662
  break;
2659
2663
  case 14:
2660
- message.clan_nick = reader.string();
2664
+ message.display_name = reader.string();
2661
2665
  break;
2662
2666
  case 15:
2663
- message.reactions = reader.string();
2667
+ message.clan_nick = reader.string();
2664
2668
  break;
2665
2669
  case 16:
2666
- message.mentions = reader.string();
2670
+ message.reactions = reader.string();
2667
2671
  break;
2668
2672
  case 17:
2669
- message.attachments = reader.string();
2673
+ message.mentions = reader.string();
2670
2674
  break;
2671
2675
  case 18:
2672
- message.references = reader.string();
2676
+ message.attachments = reader.string();
2673
2677
  break;
2674
2678
  case 19:
2679
+ message.references = reader.string();
2680
+ break;
2681
+ case 20:
2675
2682
  message.referenced_message = reader.string();
2676
2683
  break;
2677
2684
  default:
@@ -2696,6 +2703,7 @@ var ChannelMessage = {
2696
2703
  channel_label: isSet3(object.channel_label) ? String(object.channel_label) : "",
2697
2704
  clan_logo: isSet3(object.clan_logo) ? String(object.clan_logo) : "",
2698
2705
  category_name: isSet3(object.category_name) ? String(object.category_name) : "",
2706
+ display_name: isSet3(object.display_name) ? String(object.display_name) : "",
2699
2707
  clan_nick: isSet3(object.clan_nick) ? String(object.clan_nick) : "",
2700
2708
  reactions: isSet3(object.reactions) ? String(object.reactions) : "",
2701
2709
  mentions: isSet3(object.mentions) ? String(object.mentions) : "",
@@ -2719,6 +2727,7 @@ var ChannelMessage = {
2719
2727
  message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
2720
2728
  message.clan_logo !== void 0 && (obj.clan_logo = message.clan_logo);
2721
2729
  message.category_name !== void 0 && (obj.category_name = message.category_name);
2730
+ message.display_name !== void 0 && (obj.display_name = message.display_name);
2722
2731
  message.clan_nick !== void 0 && (obj.clan_nick = message.clan_nick);
2723
2732
  message.reactions !== void 0 && (obj.reactions = message.reactions);
2724
2733
  message.mentions !== void 0 && (obj.mentions = message.mentions);
@@ -2731,7 +2740,7 @@ var ChannelMessage = {
2731
2740
  return ChannelMessage.fromPartial(base != null ? base : {});
2732
2741
  },
2733
2742
  fromPartial(object) {
2734
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2743
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
2735
2744
  const message = createBaseChannelMessage();
2736
2745
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
2737
2746
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -2746,12 +2755,13 @@ var ChannelMessage = {
2746
2755
  message.channel_label = (_k = object.channel_label) != null ? _k : "";
2747
2756
  message.clan_logo = (_l = object.clan_logo) != null ? _l : "";
2748
2757
  message.category_name = (_m = object.category_name) != null ? _m : "";
2749
- message.clan_nick = (_n = object.clan_nick) != null ? _n : "";
2750
- message.reactions = (_o = object.reactions) != null ? _o : "";
2751
- message.mentions = (_p = object.mentions) != null ? _p : "";
2752
- message.attachments = (_q = object.attachments) != null ? _q : "";
2753
- message.references = (_r = object.references) != null ? _r : "";
2754
- message.referenced_message = (_s = object.referenced_message) != null ? _s : "";
2758
+ message.display_name = (_n = object.display_name) != null ? _n : "";
2759
+ message.clan_nick = (_o = object.clan_nick) != null ? _o : "";
2760
+ message.reactions = (_p = object.reactions) != null ? _p : "";
2761
+ message.mentions = (_q = object.mentions) != null ? _q : "";
2762
+ message.attachments = (_r = object.attachments) != null ? _r : "";
2763
+ message.references = (_s = object.references) != null ? _s : "";
2764
+ message.referenced_message = (_t = object.referenced_message) != null ? _t : "";
2755
2765
  return message;
2756
2766
  }
2757
2767
  };
@@ -2528,6 +2528,7 @@ function createBaseChannelMessage() {
2528
2528
  channel_label: "",
2529
2529
  clan_logo: "",
2530
2530
  category_name: "",
2531
+ display_name: "",
2531
2532
  clan_nick: "",
2532
2533
  reactions: "",
2533
2534
  mentions: "",
@@ -2577,23 +2578,26 @@ var ChannelMessage = {
2577
2578
  if (message.category_name !== "") {
2578
2579
  writer.uint32(106).string(message.category_name);
2579
2580
  }
2581
+ if (message.display_name !== "") {
2582
+ writer.uint32(114).string(message.display_name);
2583
+ }
2580
2584
  if (message.clan_nick !== "") {
2581
- writer.uint32(114).string(message.clan_nick);
2585
+ writer.uint32(122).string(message.clan_nick);
2582
2586
  }
2583
2587
  if (message.reactions !== "") {
2584
- writer.uint32(122).string(message.reactions);
2588
+ writer.uint32(130).string(message.reactions);
2585
2589
  }
2586
2590
  if (message.mentions !== "") {
2587
- writer.uint32(130).string(message.mentions);
2591
+ writer.uint32(138).string(message.mentions);
2588
2592
  }
2589
2593
  if (message.attachments !== "") {
2590
- writer.uint32(138).string(message.attachments);
2594
+ writer.uint32(146).string(message.attachments);
2591
2595
  }
2592
2596
  if (message.references !== "") {
2593
- writer.uint32(146).string(message.references);
2597
+ writer.uint32(154).string(message.references);
2594
2598
  }
2595
2599
  if (message.referenced_message !== "") {
2596
- writer.uint32(154).string(message.referenced_message);
2600
+ writer.uint32(162).string(message.referenced_message);
2597
2601
  }
2598
2602
  return writer;
2599
2603
  },
@@ -2644,21 +2648,24 @@ var ChannelMessage = {
2644
2648
  message.category_name = reader.string();
2645
2649
  break;
2646
2650
  case 14:
2647
- message.clan_nick = reader.string();
2651
+ message.display_name = reader.string();
2648
2652
  break;
2649
2653
  case 15:
2650
- message.reactions = reader.string();
2654
+ message.clan_nick = reader.string();
2651
2655
  break;
2652
2656
  case 16:
2653
- message.mentions = reader.string();
2657
+ message.reactions = reader.string();
2654
2658
  break;
2655
2659
  case 17:
2656
- message.attachments = reader.string();
2660
+ message.mentions = reader.string();
2657
2661
  break;
2658
2662
  case 18:
2659
- message.references = reader.string();
2663
+ message.attachments = reader.string();
2660
2664
  break;
2661
2665
  case 19:
2666
+ message.references = reader.string();
2667
+ break;
2668
+ case 20:
2662
2669
  message.referenced_message = reader.string();
2663
2670
  break;
2664
2671
  default:
@@ -2683,6 +2690,7 @@ var ChannelMessage = {
2683
2690
  channel_label: isSet3(object.channel_label) ? String(object.channel_label) : "",
2684
2691
  clan_logo: isSet3(object.clan_logo) ? String(object.clan_logo) : "",
2685
2692
  category_name: isSet3(object.category_name) ? String(object.category_name) : "",
2693
+ display_name: isSet3(object.display_name) ? String(object.display_name) : "",
2686
2694
  clan_nick: isSet3(object.clan_nick) ? String(object.clan_nick) : "",
2687
2695
  reactions: isSet3(object.reactions) ? String(object.reactions) : "",
2688
2696
  mentions: isSet3(object.mentions) ? String(object.mentions) : "",
@@ -2706,6 +2714,7 @@ var ChannelMessage = {
2706
2714
  message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
2707
2715
  message.clan_logo !== void 0 && (obj.clan_logo = message.clan_logo);
2708
2716
  message.category_name !== void 0 && (obj.category_name = message.category_name);
2717
+ message.display_name !== void 0 && (obj.display_name = message.display_name);
2709
2718
  message.clan_nick !== void 0 && (obj.clan_nick = message.clan_nick);
2710
2719
  message.reactions !== void 0 && (obj.reactions = message.reactions);
2711
2720
  message.mentions !== void 0 && (obj.mentions = message.mentions);
@@ -2718,7 +2727,7 @@ var ChannelMessage = {
2718
2727
  return ChannelMessage.fromPartial(base != null ? base : {});
2719
2728
  },
2720
2729
  fromPartial(object) {
2721
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2730
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
2722
2731
  const message = createBaseChannelMessage();
2723
2732
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
2724
2733
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -2733,12 +2742,13 @@ var ChannelMessage = {
2733
2742
  message.channel_label = (_k = object.channel_label) != null ? _k : "";
2734
2743
  message.clan_logo = (_l = object.clan_logo) != null ? _l : "";
2735
2744
  message.category_name = (_m = object.category_name) != null ? _m : "";
2736
- message.clan_nick = (_n = object.clan_nick) != null ? _n : "";
2737
- message.reactions = (_o = object.reactions) != null ? _o : "";
2738
- message.mentions = (_p = object.mentions) != null ? _p : "";
2739
- message.attachments = (_q = object.attachments) != null ? _q : "";
2740
- message.references = (_r = object.references) != null ? _r : "";
2741
- message.referenced_message = (_s = object.referenced_message) != null ? _s : "";
2745
+ message.display_name = (_n = object.display_name) != null ? _n : "";
2746
+ message.clan_nick = (_o = object.clan_nick) != null ? _o : "";
2747
+ message.reactions = (_p = object.reactions) != null ? _p : "";
2748
+ message.mentions = (_q = object.mentions) != null ? _q : "";
2749
+ message.attachments = (_r = object.attachments) != null ? _r : "";
2750
+ message.references = (_s = object.references) != null ? _s : "";
2751
+ message.referenced_message = (_t = object.referenced_message) != null ? _t : "";
2742
2752
  return message;
2743
2753
  }
2744
2754
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.4.67",
3
+ "version": "1.4.68",
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",
package/rtapi/realtime.ts CHANGED
@@ -793,10 +793,17 @@ export interface UserProfileRedis {
793
793
  username: string;
794
794
  /** Avatar to follow. */
795
795
  avatar: string;
796
+ /** Display name */
797
+ display_name: string;
798
+ /** FCM token */
799
+ fcm_tokens: FCMTokens[];
800
+ }
801
+
802
+ export interface FCMTokens {
796
803
  /** deviceID to follow. */
797
- deviceID: string;
804
+ device_id: string;
798
805
  /** tokenID to follow. */
799
- tokenID: string;
806
+ token_id: string;
800
807
  }
801
808
 
802
809
  function createBaseEnvelope(): Envelope {
@@ -5037,7 +5044,7 @@ export const UserChannelAdded = {
5037
5044
  };
5038
5045
 
5039
5046
  function createBaseUserProfileRedis(): UserProfileRedis {
5040
- return { user_id: "", username: "", avatar: "", deviceID: "", tokenID: "" };
5047
+ return { user_id: "", username: "", avatar: "", display_name: "", fcm_tokens: [] };
5041
5048
  }
5042
5049
 
5043
5050
  export const UserProfileRedis = {
@@ -5051,11 +5058,11 @@ export const UserProfileRedis = {
5051
5058
  if (message.avatar !== "") {
5052
5059
  writer.uint32(26).string(message.avatar);
5053
5060
  }
5054
- if (message.deviceID !== "") {
5055
- writer.uint32(34).string(message.deviceID);
5061
+ if (message.display_name !== "") {
5062
+ writer.uint32(34).string(message.display_name);
5056
5063
  }
5057
- if (message.tokenID !== "") {
5058
- writer.uint32(42).string(message.tokenID);
5064
+ for (const v of message.fcm_tokens) {
5065
+ FCMTokens.encode(v!, writer.uint32(42).fork()).ldelim();
5059
5066
  }
5060
5067
  return writer;
5061
5068
  },
@@ -5077,10 +5084,10 @@ export const UserProfileRedis = {
5077
5084
  message.avatar = reader.string();
5078
5085
  break;
5079
5086
  case 4:
5080
- message.deviceID = reader.string();
5087
+ message.display_name = reader.string();
5081
5088
  break;
5082
5089
  case 5:
5083
- message.tokenID = reader.string();
5090
+ message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
5084
5091
  break;
5085
5092
  default:
5086
5093
  reader.skipType(tag & 7);
@@ -5095,8 +5102,8 @@ export const UserProfileRedis = {
5095
5102
  user_id: isSet(object.user_id) ? String(object.user_id) : "",
5096
5103
  username: isSet(object.username) ? String(object.username) : "",
5097
5104
  avatar: isSet(object.avatar) ? String(object.avatar) : "",
5098
- deviceID: isSet(object.deviceID) ? String(object.deviceID) : "",
5099
- tokenID: isSet(object.tokenID) ? String(object.tokenID) : "",
5105
+ display_name: isSet(object.display_name) ? String(object.display_name) : "",
5106
+ fcm_tokens: Array.isArray(object?.fcm_tokens) ? object.fcm_tokens.map((e: any) => FCMTokens.fromJSON(e)) : [],
5100
5107
  };
5101
5108
  },
5102
5109
 
@@ -5105,8 +5112,12 @@ export const UserProfileRedis = {
5105
5112
  message.user_id !== undefined && (obj.user_id = message.user_id);
5106
5113
  message.username !== undefined && (obj.username = message.username);
5107
5114
  message.avatar !== undefined && (obj.avatar = message.avatar);
5108
- message.deviceID !== undefined && (obj.deviceID = message.deviceID);
5109
- message.tokenID !== undefined && (obj.tokenID = message.tokenID);
5115
+ message.display_name !== undefined && (obj.display_name = message.display_name);
5116
+ if (message.fcm_tokens) {
5117
+ obj.fcm_tokens = message.fcm_tokens.map((e) => e ? FCMTokens.toJSON(e) : undefined);
5118
+ } else {
5119
+ obj.fcm_tokens = [];
5120
+ }
5110
5121
  return obj;
5111
5122
  },
5112
5123
 
@@ -5119,8 +5130,70 @@ export const UserProfileRedis = {
5119
5130
  message.user_id = object.user_id ?? "";
5120
5131
  message.username = object.username ?? "";
5121
5132
  message.avatar = object.avatar ?? "";
5122
- message.deviceID = object.deviceID ?? "";
5123
- message.tokenID = object.tokenID ?? "";
5133
+ message.display_name = object.display_name ?? "";
5134
+ message.fcm_tokens = object.fcm_tokens?.map((e) => FCMTokens.fromPartial(e)) || [];
5135
+ return message;
5136
+ },
5137
+ };
5138
+
5139
+ function createBaseFCMTokens(): FCMTokens {
5140
+ return { device_id: "", token_id: "" };
5141
+ }
5142
+
5143
+ export const FCMTokens = {
5144
+ encode(message: FCMTokens, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
5145
+ if (message.device_id !== "") {
5146
+ writer.uint32(10).string(message.device_id);
5147
+ }
5148
+ if (message.token_id !== "") {
5149
+ writer.uint32(18).string(message.token_id);
5150
+ }
5151
+ return writer;
5152
+ },
5153
+
5154
+ decode(input: _m0.Reader | Uint8Array, length?: number): FCMTokens {
5155
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
5156
+ let end = length === undefined ? reader.len : reader.pos + length;
5157
+ const message = createBaseFCMTokens();
5158
+ while (reader.pos < end) {
5159
+ const tag = reader.uint32();
5160
+ switch (tag >>> 3) {
5161
+ case 1:
5162
+ message.device_id = reader.string();
5163
+ break;
5164
+ case 2:
5165
+ message.token_id = reader.string();
5166
+ break;
5167
+ default:
5168
+ reader.skipType(tag & 7);
5169
+ break;
5170
+ }
5171
+ }
5172
+ return message;
5173
+ },
5174
+
5175
+ fromJSON(object: any): FCMTokens {
5176
+ return {
5177
+ device_id: isSet(object.device_id) ? String(object.device_id) : "",
5178
+ token_id: isSet(object.token_id) ? String(object.token_id) : "",
5179
+ };
5180
+ },
5181
+
5182
+ toJSON(message: FCMTokens): unknown {
5183
+ const obj: any = {};
5184
+ message.device_id !== undefined && (obj.device_id = message.device_id);
5185
+ message.token_id !== undefined && (obj.token_id = message.token_id);
5186
+ return obj;
5187
+ },
5188
+
5189
+ create<I extends Exact<DeepPartial<FCMTokens>, I>>(base?: I): FCMTokens {
5190
+ return FCMTokens.fromPartial(base ?? {});
5191
+ },
5192
+
5193
+ fromPartial<I extends Exact<DeepPartial<FCMTokens>, I>>(object: I): FCMTokens {
5194
+ const message = createBaseFCMTokens();
5195
+ message.device_id = object.device_id ?? "";
5196
+ message.token_id = object.token_id ?? "";
5124
5197
  return message;
5125
5198
  },
5126
5199
  };