mezon-js-protobuf 1.8.36 → 1.8.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.36",
3
+ "version": "1.8.37",
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
@@ -1455,16 +1455,14 @@ export interface UserProfileRedis {
1455
1455
  display_name: string;
1456
1456
  /** about me */
1457
1457
  about_me: string;
1458
- /** custom status */
1459
- custom_status: string;
1458
+ /** user status */
1459
+ user_status: string;
1460
1460
  /** create time */
1461
1461
  create_time_second: number;
1462
1462
  /** FCM token */
1463
1463
  fcm_tokens: FCMTokens[];
1464
1464
  /** isOnline */
1465
1465
  online: boolean;
1466
- /** Metadata */
1467
- metadata: string;
1468
1466
  /** is disabled */
1469
1467
  is_disabled: boolean;
1470
1468
  /** clans */
@@ -11835,11 +11833,10 @@ function createBaseUserProfileRedis(): UserProfileRedis {
11835
11833
  avatar: "",
11836
11834
  display_name: "",
11837
11835
  about_me: "",
11838
- custom_status: "",
11836
+ user_status: "",
11839
11837
  create_time_second: 0,
11840
11838
  fcm_tokens: [],
11841
11839
  online: false,
11842
- metadata: "",
11843
11840
  is_disabled: false,
11844
11841
  joined_clans: [],
11845
11842
  pubkey: "",
@@ -11868,8 +11865,8 @@ export const UserProfileRedis = {
11868
11865
  if (message.about_me !== "") {
11869
11866
  writer.uint32(42).string(message.about_me);
11870
11867
  }
11871
- if (message.custom_status !== "") {
11872
- writer.uint32(50).string(message.custom_status);
11868
+ if (message.user_status !== "") {
11869
+ writer.uint32(50).string(message.user_status);
11873
11870
  }
11874
11871
  if (message.create_time_second !== 0) {
11875
11872
  writer.uint32(56).uint32(message.create_time_second);
@@ -11880,32 +11877,29 @@ export const UserProfileRedis = {
11880
11877
  if (message.online !== false) {
11881
11878
  writer.uint32(72).bool(message.online);
11882
11879
  }
11883
- if (message.metadata !== "") {
11884
- writer.uint32(82).string(message.metadata);
11885
- }
11886
11880
  if (message.is_disabled !== false) {
11887
- writer.uint32(88).bool(message.is_disabled);
11881
+ writer.uint32(80).bool(message.is_disabled);
11888
11882
  }
11889
11883
  for (const v of message.joined_clans) {
11890
- writer.uint32(98).string(v!);
11884
+ writer.uint32(90).string(v!);
11891
11885
  }
11892
11886
  if (message.pubkey !== "") {
11893
- writer.uint32(106).string(message.pubkey);
11887
+ writer.uint32(98).string(message.pubkey);
11894
11888
  }
11895
11889
  if (message.mezon_id !== "") {
11896
- writer.uint32(114).string(message.mezon_id);
11890
+ writer.uint32(106).string(message.mezon_id);
11897
11891
  }
11898
11892
  if (message.app_token !== "") {
11899
- writer.uint32(122).string(message.app_token);
11893
+ writer.uint32(114).string(message.app_token);
11900
11894
  }
11901
11895
  if (message.app_url !== "") {
11902
- writer.uint32(130).string(message.app_url);
11896
+ writer.uint32(122).string(message.app_url);
11903
11897
  }
11904
11898
  if (message.is_bot !== false) {
11905
- writer.uint32(136).bool(message.is_bot);
11899
+ writer.uint32(128).bool(message.is_bot);
11906
11900
  }
11907
11901
  if (message.voip_token !== "") {
11908
- writer.uint32(146).string(message.voip_token);
11902
+ writer.uint32(138).string(message.voip_token);
11909
11903
  }
11910
11904
  return writer;
11911
11905
  },
@@ -11957,7 +11951,7 @@ export const UserProfileRedis = {
11957
11951
  break;
11958
11952
  }
11959
11953
 
11960
- message.custom_status = reader.string();
11954
+ message.user_status = reader.string();
11961
11955
  continue;
11962
11956
  case 7:
11963
11957
  if (tag !== 56) {
@@ -11981,63 +11975,56 @@ export const UserProfileRedis = {
11981
11975
  message.online = reader.bool();
11982
11976
  continue;
11983
11977
  case 10:
11984
- if (tag !== 82) {
11978
+ if (tag !== 80) {
11985
11979
  break;
11986
11980
  }
11987
11981
 
11988
- message.metadata = reader.string();
11982
+ message.is_disabled = reader.bool();
11989
11983
  continue;
11990
11984
  case 11:
11991
- if (tag !== 88) {
11985
+ if (tag !== 90) {
11992
11986
  break;
11993
11987
  }
11994
11988
 
11995
- message.is_disabled = reader.bool();
11989
+ message.joined_clans.push(reader.string());
11996
11990
  continue;
11997
11991
  case 12:
11998
11992
  if (tag !== 98) {
11999
11993
  break;
12000
11994
  }
12001
11995
 
12002
- message.joined_clans.push(reader.string());
11996
+ message.pubkey = reader.string();
12003
11997
  continue;
12004
11998
  case 13:
12005
11999
  if (tag !== 106) {
12006
12000
  break;
12007
12001
  }
12008
12002
 
12009
- message.pubkey = reader.string();
12003
+ message.mezon_id = reader.string();
12010
12004
  continue;
12011
12005
  case 14:
12012
12006
  if (tag !== 114) {
12013
12007
  break;
12014
12008
  }
12015
12009
 
12016
- message.mezon_id = reader.string();
12010
+ message.app_token = reader.string();
12017
12011
  continue;
12018
12012
  case 15:
12019
12013
  if (tag !== 122) {
12020
12014
  break;
12021
12015
  }
12022
12016
 
12023
- message.app_token = reader.string();
12024
- continue;
12025
- case 16:
12026
- if (tag !== 130) {
12027
- break;
12028
- }
12029
-
12030
12017
  message.app_url = reader.string();
12031
12018
  continue;
12032
- case 17:
12033
- if (tag !== 136) {
12019
+ case 16:
12020
+ if (tag !== 128) {
12034
12021
  break;
12035
12022
  }
12036
12023
 
12037
12024
  message.is_bot = reader.bool();
12038
12025
  continue;
12039
- case 18:
12040
- if (tag !== 146) {
12026
+ case 17:
12027
+ if (tag !== 138) {
12041
12028
  break;
12042
12029
  }
12043
12030
 
@@ -12059,13 +12046,12 @@ export const UserProfileRedis = {
12059
12046
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
12060
12047
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
12061
12048
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
12062
- custom_status: isSet(object.custom_status) ? globalThis.String(object.custom_status) : "",
12049
+ user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
12063
12050
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
12064
12051
  fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens)
12065
12052
  ? object.fcm_tokens.map((e: any) => FCMTokens.fromJSON(e))
12066
12053
  : [],
12067
12054
  online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
12068
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
12069
12055
  is_disabled: isSet(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
12070
12056
  joined_clans: globalThis.Array.isArray(object?.joined_clans)
12071
12057
  ? object.joined_clans.map((e: any) => globalThis.String(e))
@@ -12096,8 +12082,8 @@ export const UserProfileRedis = {
12096
12082
  if (message.about_me !== "") {
12097
12083
  obj.about_me = message.about_me;
12098
12084
  }
12099
- if (message.custom_status !== "") {
12100
- obj.custom_status = message.custom_status;
12085
+ if (message.user_status !== "") {
12086
+ obj.user_status = message.user_status;
12101
12087
  }
12102
12088
  if (message.create_time_second !== 0) {
12103
12089
  obj.create_time_second = Math.round(message.create_time_second);
@@ -12108,9 +12094,6 @@ export const UserProfileRedis = {
12108
12094
  if (message.online !== false) {
12109
12095
  obj.online = message.online;
12110
12096
  }
12111
- if (message.metadata !== "") {
12112
- obj.metadata = message.metadata;
12113
- }
12114
12097
  if (message.is_disabled !== false) {
12115
12098
  obj.is_disabled = message.is_disabled;
12116
12099
  }
@@ -12148,11 +12131,10 @@ export const UserProfileRedis = {
12148
12131
  message.avatar = object.avatar ?? "";
12149
12132
  message.display_name = object.display_name ?? "";
12150
12133
  message.about_me = object.about_me ?? "";
12151
- message.custom_status = object.custom_status ?? "";
12134
+ message.user_status = object.user_status ?? "";
12152
12135
  message.create_time_second = object.create_time_second ?? 0;
12153
12136
  message.fcm_tokens = object.fcm_tokens?.map((e) => FCMTokens.fromPartial(e)) || [];
12154
12137
  message.online = object.online ?? false;
12155
- message.metadata = object.metadata ?? "";
12156
12138
  message.is_disabled = object.is_disabled ?? false;
12157
12139
  message.joined_clans = object.joined_clans?.map((e) => e) || [];
12158
12140
  message.pubkey = object.pubkey ?? "";