mezon-js-protobuf 1.8.37 → 1.8.39

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
@@ -1093,8 +1093,10 @@ export interface User {
1093
1093
  location: string;
1094
1094
  /** The timezone set by the user. */
1095
1095
  timezone: string;
1096
- /** Additional information stored as a JSON object. */
1096
+ /** custom status */
1097
1097
  user_status: string;
1098
+ /** online, offline, invisible, idle, do not disturb */
1099
+ status: string;
1098
1100
  /** Indicates whether the user is currently online. */
1099
1101
  online: boolean;
1100
1102
  /** The phone number */
@@ -1664,6 +1666,8 @@ export interface UpdateChannelDescRequest {
1664
1666
  age_restricted: number;
1665
1667
  /** */
1666
1668
  e2ee: number;
1669
+ /** channel avatar */
1670
+ channel_avatar: string;
1667
1671
  }
1668
1672
 
1669
1673
  /** Update fields in a given channel. */
@@ -10667,6 +10671,7 @@ function createBaseUser(): User {
10667
10671
  location: "",
10668
10672
  timezone: "",
10669
10673
  user_status: "",
10674
+ status: "",
10670
10675
  online: false,
10671
10676
  phone_number: "",
10672
10677
  edge_count: 0,
@@ -10707,38 +10712,41 @@ export const User = {
10707
10712
  if (message.user_status !== "") {
10708
10713
  writer.uint32(66).string(message.user_status);
10709
10714
  }
10715
+ if (message.status !== "") {
10716
+ writer.uint32(74).string(message.status);
10717
+ }
10710
10718
  if (message.online !== false) {
10711
- writer.uint32(72).bool(message.online);
10719
+ writer.uint32(80).bool(message.online);
10712
10720
  }
10713
10721
  if (message.phone_number !== "") {
10714
- writer.uint32(82).string(message.phone_number);
10722
+ writer.uint32(90).string(message.phone_number);
10715
10723
  }
10716
10724
  if (message.edge_count !== 0) {
10717
- writer.uint32(88).int32(message.edge_count);
10725
+ writer.uint32(96).int32(message.edge_count);
10718
10726
  }
10719
10727
  if (message.create_time !== undefined) {
10720
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
10728
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(106).fork()).ldelim();
10721
10729
  }
10722
10730
  if (message.update_time !== undefined) {
10723
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
10731
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(114).fork()).ldelim();
10724
10732
  }
10725
10733
  if (message.about_me !== "") {
10726
- writer.uint32(114).string(message.about_me);
10734
+ writer.uint32(122).string(message.about_me);
10727
10735
  }
10728
10736
  if (message.join_time !== undefined) {
10729
- Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
10737
+ Timestamp.encode(toTimestamp(message.join_time), writer.uint32(130).fork()).ldelim();
10730
10738
  }
10731
10739
  if (message.is_mobile !== false) {
10732
- writer.uint32(128).bool(message.is_mobile);
10740
+ writer.uint32(136).bool(message.is_mobile);
10733
10741
  }
10734
10742
  if (message.dob !== undefined) {
10735
- Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
10743
+ Timestamp.encode(toTimestamp(message.dob), writer.uint32(146).fork()).ldelim();
10736
10744
  }
10737
10745
  if (message.mezon_id !== "") {
10738
- writer.uint32(146).string(message.mezon_id);
10746
+ writer.uint32(154).string(message.mezon_id);
10739
10747
  }
10740
10748
  for (const v of message.list_nick_names) {
10741
- writer.uint32(154).string(v!);
10749
+ writer.uint32(162).string(v!);
10742
10750
  }
10743
10751
  return writer;
10744
10752
  },
@@ -10807,80 +10815,87 @@ export const User = {
10807
10815
  message.user_status = reader.string();
10808
10816
  continue;
10809
10817
  case 9:
10810
- if (tag !== 72) {
10818
+ if (tag !== 74) {
10811
10819
  break;
10812
10820
  }
10813
10821
 
10814
- message.online = reader.bool();
10822
+ message.status = reader.string();
10815
10823
  continue;
10816
10824
  case 10:
10817
- if (tag !== 82) {
10825
+ if (tag !== 80) {
10818
10826
  break;
10819
10827
  }
10820
10828
 
10821
- message.phone_number = reader.string();
10829
+ message.online = reader.bool();
10822
10830
  continue;
10823
10831
  case 11:
10824
- if (tag !== 88) {
10832
+ if (tag !== 90) {
10825
10833
  break;
10826
10834
  }
10827
10835
 
10828
- message.edge_count = reader.int32();
10836
+ message.phone_number = reader.string();
10829
10837
  continue;
10830
10838
  case 12:
10831
- if (tag !== 98) {
10839
+ if (tag !== 96) {
10832
10840
  break;
10833
10841
  }
10834
10842
 
10835
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10843
+ message.edge_count = reader.int32();
10836
10844
  continue;
10837
10845
  case 13:
10838
10846
  if (tag !== 106) {
10839
10847
  break;
10840
10848
  }
10841
10849
 
10842
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10850
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10843
10851
  continue;
10844
10852
  case 14:
10845
10853
  if (tag !== 114) {
10846
10854
  break;
10847
10855
  }
10848
10856
 
10849
- message.about_me = reader.string();
10857
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10850
10858
  continue;
10851
10859
  case 15:
10852
10860
  if (tag !== 122) {
10853
10861
  break;
10854
10862
  }
10855
10863
 
10856
- message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10864
+ message.about_me = reader.string();
10857
10865
  continue;
10858
10866
  case 16:
10859
- if (tag !== 128) {
10867
+ if (tag !== 130) {
10860
10868
  break;
10861
10869
  }
10862
10870
 
10863
- message.is_mobile = reader.bool();
10871
+ message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10864
10872
  continue;
10865
10873
  case 17:
10866
- if (tag !== 138) {
10874
+ if (tag !== 136) {
10867
10875
  break;
10868
10876
  }
10869
10877
 
10870
- message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10878
+ message.is_mobile = reader.bool();
10871
10879
  continue;
10872
10880
  case 18:
10873
10881
  if (tag !== 146) {
10874
10882
  break;
10875
10883
  }
10876
10884
 
10877
- message.mezon_id = reader.string();
10885
+ message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
10878
10886
  continue;
10879
10887
  case 19:
10880
10888
  if (tag !== 154) {
10881
10889
  break;
10882
10890
  }
10883
10891
 
10892
+ message.mezon_id = reader.string();
10893
+ continue;
10894
+ case 20:
10895
+ if (tag !== 162) {
10896
+ break;
10897
+ }
10898
+
10884
10899
  message.list_nick_names.push(reader.string());
10885
10900
  continue;
10886
10901
  }
@@ -10902,6 +10917,7 @@ export const User = {
10902
10917
  location: isSet(object.location) ? globalThis.String(object.location) : "",
10903
10918
  timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
10904
10919
  user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
10920
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
10905
10921
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
10906
10922
  phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
10907
10923
  edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
@@ -10944,6 +10960,9 @@ export const User = {
10944
10960
  if (message.user_status !== "") {
10945
10961
  obj.user_status = message.user_status;
10946
10962
  }
10963
+ if (message.status !== "") {
10964
+ obj.status = message.status;
10965
+ }
10947
10966
  if (message.online !== false) {
10948
10967
  obj.online = message.online;
10949
10968
  }
@@ -10993,6 +11012,7 @@ export const User = {
10993
11012
  message.location = object.location ?? "";
10994
11013
  message.timezone = object.timezone ?? "";
10995
11014
  message.user_status = object.user_status ?? "";
11015
+ message.status = object.status ?? "";
10996
11016
  message.online = object.online ?? false;
10997
11017
  message.phone_number = object.phone_number ?? "";
10998
11018
  message.edge_count = object.edge_count ?? 0;
@@ -15475,6 +15495,7 @@ function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
15475
15495
  topic: "",
15476
15496
  age_restricted: 0,
15477
15497
  e2ee: 0,
15498
+ channel_avatar: "",
15478
15499
  };
15479
15500
  }
15480
15501
 
@@ -15504,6 +15525,9 @@ export const UpdateChannelDescRequest = {
15504
15525
  if (message.e2ee !== 0) {
15505
15526
  writer.uint32(64).int32(message.e2ee);
15506
15527
  }
15528
+ if (message.channel_avatar !== "") {
15529
+ writer.uint32(74).string(message.channel_avatar);
15530
+ }
15507
15531
  return writer;
15508
15532
  },
15509
15533
 
@@ -15570,6 +15594,13 @@ export const UpdateChannelDescRequest = {
15570
15594
 
15571
15595
  message.e2ee = reader.int32();
15572
15596
  continue;
15597
+ case 9:
15598
+ if (tag !== 74) {
15599
+ break;
15600
+ }
15601
+
15602
+ message.channel_avatar = reader.string();
15603
+ continue;
15573
15604
  }
15574
15605
  if ((tag & 7) === 4 || tag === 0) {
15575
15606
  break;
@@ -15589,6 +15620,7 @@ export const UpdateChannelDescRequest = {
15589
15620
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
15590
15621
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
15591
15622
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
15623
+ channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
15592
15624
  };
15593
15625
  },
15594
15626
 
@@ -15618,6 +15650,9 @@ export const UpdateChannelDescRequest = {
15618
15650
  if (message.e2ee !== 0) {
15619
15651
  obj.e2ee = Math.round(message.e2ee);
15620
15652
  }
15653
+ if (message.channel_avatar !== "") {
15654
+ obj.channel_avatar = message.channel_avatar;
15655
+ }
15621
15656
  return obj;
15622
15657
  },
15623
15658
 
@@ -15634,6 +15669,7 @@ export const UpdateChannelDescRequest = {
15634
15669
  message.topic = object.topic ?? "";
15635
15670
  message.age_restricted = object.age_restricted ?? 0;
15636
15671
  message.e2ee = object.e2ee ?? 0;
15672
+ message.channel_avatar = object.channel_avatar ?? "";
15637
15673
  return message;
15638
15674
  },
15639
15675
  };