mezon-js-protobuf 1.8.38 → 1.8.40

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.38",
3
+ "version": "1.8.40",
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
@@ -1459,6 +1459,8 @@ export interface UserProfileRedis {
1459
1459
  about_me: string;
1460
1460
  /** user status */
1461
1461
  user_status: string;
1462
+ /** status online, offline, invisible, idle, do not disturb */
1463
+ status: string;
1462
1464
  /** create time */
1463
1465
  create_time_second: number;
1464
1466
  /** FCM token */
@@ -11852,6 +11854,7 @@ function createBaseUserProfileRedis(): UserProfileRedis {
11852
11854
  display_name: "",
11853
11855
  about_me: "",
11854
11856
  user_status: "",
11857
+ status: "",
11855
11858
  create_time_second: 0,
11856
11859
  fcm_tokens: [],
11857
11860
  online: false,
@@ -11886,38 +11889,41 @@ export const UserProfileRedis = {
11886
11889
  if (message.user_status !== "") {
11887
11890
  writer.uint32(50).string(message.user_status);
11888
11891
  }
11892
+ if (message.status !== "") {
11893
+ writer.uint32(58).string(message.status);
11894
+ }
11889
11895
  if (message.create_time_second !== 0) {
11890
- writer.uint32(56).uint32(message.create_time_second);
11896
+ writer.uint32(64).uint32(message.create_time_second);
11891
11897
  }
11892
11898
  for (const v of message.fcm_tokens) {
11893
- FCMTokens.encode(v!, writer.uint32(66).fork()).ldelim();
11899
+ FCMTokens.encode(v!, writer.uint32(74).fork()).ldelim();
11894
11900
  }
11895
11901
  if (message.online !== false) {
11896
- writer.uint32(72).bool(message.online);
11902
+ writer.uint32(80).bool(message.online);
11897
11903
  }
11898
11904
  if (message.is_disabled !== false) {
11899
- writer.uint32(80).bool(message.is_disabled);
11905
+ writer.uint32(88).bool(message.is_disabled);
11900
11906
  }
11901
11907
  for (const v of message.joined_clans) {
11902
- writer.uint32(90).string(v!);
11908
+ writer.uint32(98).string(v!);
11903
11909
  }
11904
11910
  if (message.pubkey !== "") {
11905
- writer.uint32(98).string(message.pubkey);
11911
+ writer.uint32(106).string(message.pubkey);
11906
11912
  }
11907
11913
  if (message.mezon_id !== "") {
11908
- writer.uint32(106).string(message.mezon_id);
11914
+ writer.uint32(114).string(message.mezon_id);
11909
11915
  }
11910
11916
  if (message.app_token !== "") {
11911
- writer.uint32(114).string(message.app_token);
11917
+ writer.uint32(122).string(message.app_token);
11912
11918
  }
11913
11919
  if (message.app_url !== "") {
11914
- writer.uint32(122).string(message.app_url);
11920
+ writer.uint32(130).string(message.app_url);
11915
11921
  }
11916
11922
  if (message.is_bot !== false) {
11917
- writer.uint32(128).bool(message.is_bot);
11923
+ writer.uint32(136).bool(message.is_bot);
11918
11924
  }
11919
11925
  if (message.voip_token !== "") {
11920
- writer.uint32(138).string(message.voip_token);
11926
+ writer.uint32(146).string(message.voip_token);
11921
11927
  }
11922
11928
  return writer;
11923
11929
  },
@@ -11972,77 +11978,84 @@ export const UserProfileRedis = {
11972
11978
  message.user_status = reader.string();
11973
11979
  continue;
11974
11980
  case 7:
11975
- if (tag !== 56) {
11981
+ if (tag !== 58) {
11976
11982
  break;
11977
11983
  }
11978
11984
 
11979
- message.create_time_second = reader.uint32();
11985
+ message.status = reader.string();
11980
11986
  continue;
11981
11987
  case 8:
11982
- if (tag !== 66) {
11988
+ if (tag !== 64) {
11983
11989
  break;
11984
11990
  }
11985
11991
 
11986
- message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
11992
+ message.create_time_second = reader.uint32();
11987
11993
  continue;
11988
11994
  case 9:
11989
- if (tag !== 72) {
11995
+ if (tag !== 74) {
11990
11996
  break;
11991
11997
  }
11992
11998
 
11993
- message.online = reader.bool();
11999
+ message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
11994
12000
  continue;
11995
12001
  case 10:
11996
12002
  if (tag !== 80) {
11997
12003
  break;
11998
12004
  }
11999
12005
 
12000
- message.is_disabled = reader.bool();
12006
+ message.online = reader.bool();
12001
12007
  continue;
12002
12008
  case 11:
12003
- if (tag !== 90) {
12009
+ if (tag !== 88) {
12004
12010
  break;
12005
12011
  }
12006
12012
 
12007
- message.joined_clans.push(reader.string());
12013
+ message.is_disabled = reader.bool();
12008
12014
  continue;
12009
12015
  case 12:
12010
12016
  if (tag !== 98) {
12011
12017
  break;
12012
12018
  }
12013
12019
 
12014
- message.pubkey = reader.string();
12020
+ message.joined_clans.push(reader.string());
12015
12021
  continue;
12016
12022
  case 13:
12017
12023
  if (tag !== 106) {
12018
12024
  break;
12019
12025
  }
12020
12026
 
12021
- message.mezon_id = reader.string();
12027
+ message.pubkey = reader.string();
12022
12028
  continue;
12023
12029
  case 14:
12024
12030
  if (tag !== 114) {
12025
12031
  break;
12026
12032
  }
12027
12033
 
12028
- message.app_token = reader.string();
12034
+ message.mezon_id = reader.string();
12029
12035
  continue;
12030
12036
  case 15:
12031
12037
  if (tag !== 122) {
12032
12038
  break;
12033
12039
  }
12034
12040
 
12035
- message.app_url = reader.string();
12041
+ message.app_token = reader.string();
12036
12042
  continue;
12037
12043
  case 16:
12038
- if (tag !== 128) {
12044
+ if (tag !== 130) {
12039
12045
  break;
12040
12046
  }
12041
12047
 
12042
- message.is_bot = reader.bool();
12048
+ message.app_url = reader.string();
12043
12049
  continue;
12044
12050
  case 17:
12045
- if (tag !== 138) {
12051
+ if (tag !== 136) {
12052
+ break;
12053
+ }
12054
+
12055
+ message.is_bot = reader.bool();
12056
+ continue;
12057
+ case 18:
12058
+ if (tag !== 146) {
12046
12059
  break;
12047
12060
  }
12048
12061
 
@@ -12065,6 +12078,7 @@ export const UserProfileRedis = {
12065
12078
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
12066
12079
  about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
12067
12080
  user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
12081
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
12068
12082
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
12069
12083
  fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens)
12070
12084
  ? object.fcm_tokens.map((e: any) => FCMTokens.fromJSON(e))
@@ -12103,6 +12117,9 @@ export const UserProfileRedis = {
12103
12117
  if (message.user_status !== "") {
12104
12118
  obj.user_status = message.user_status;
12105
12119
  }
12120
+ if (message.status !== "") {
12121
+ obj.status = message.status;
12122
+ }
12106
12123
  if (message.create_time_second !== 0) {
12107
12124
  obj.create_time_second = Math.round(message.create_time_second);
12108
12125
  }
@@ -12150,6 +12167,7 @@ export const UserProfileRedis = {
12150
12167
  message.display_name = object.display_name ?? "";
12151
12168
  message.about_me = object.about_me ?? "";
12152
12169
  message.user_status = object.user_status ?? "";
12170
+ message.status = object.status ?? "";
12153
12171
  message.create_time_second = object.create_time_second ?? 0;
12154
12172
  message.fcm_tokens = object.fcm_tokens?.map((e) => FCMTokens.fromPartial(e)) || [];
12155
12173
  message.online = object.online ?? false;