mezon-js-protobuf 1.5.51 → 1.5.52

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.
@@ -790,6 +790,12 @@ export interface UserProfileRedis {
790
790
  avatar: string;
791
791
  /** Display name */
792
792
  display_name: string;
793
+ /** about me */
794
+ about_me: string;
795
+ /** custom status */
796
+ custom_status: string;
797
+ /** create time */
798
+ create_time_second: number;
793
799
  /** FCM token */
794
800
  fcm_tokens: FCMTokens[];
795
801
  }
@@ -10903,6 +10909,9 @@ export declare const UserProfileRedis: {
10903
10909
  username?: string | undefined;
10904
10910
  avatar?: string | undefined;
10905
10911
  display_name?: string | undefined;
10912
+ about_me?: string | undefined;
10913
+ custom_status?: string | undefined;
10914
+ create_time_second?: number | undefined;
10906
10915
  fcm_tokens?: {
10907
10916
  device_id?: string | undefined;
10908
10917
  token_id?: string | undefined;
@@ -10912,6 +10921,9 @@ export declare const UserProfileRedis: {
10912
10921
  username?: string | undefined;
10913
10922
  avatar?: string | undefined;
10914
10923
  display_name?: string | undefined;
10924
+ about_me?: string | undefined;
10925
+ custom_status?: string | undefined;
10926
+ create_time_second?: number | undefined;
10915
10927
  fcm_tokens?: ({
10916
10928
  device_id?: string | undefined;
10917
10929
  token_id?: string | undefined;
@@ -10931,6 +10943,9 @@ export declare const UserProfileRedis: {
10931
10943
  username?: string | undefined;
10932
10944
  avatar?: string | undefined;
10933
10945
  display_name?: string | undefined;
10946
+ about_me?: string | undefined;
10947
+ custom_status?: string | undefined;
10948
+ create_time_second?: number | undefined;
10934
10949
  fcm_tokens?: {
10935
10950
  device_id?: string | undefined;
10936
10951
  token_id?: string | undefined;
@@ -10940,6 +10955,9 @@ export declare const UserProfileRedis: {
10940
10955
  username?: string | undefined;
10941
10956
  avatar?: string | undefined;
10942
10957
  display_name?: string | undefined;
10958
+ about_me?: string | undefined;
10959
+ custom_status?: string | undefined;
10960
+ create_time_second?: number | undefined;
10943
10961
  fcm_tokens?: ({
10944
10962
  device_id?: string | undefined;
10945
10963
  token_id?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.51",
3
+ "version": "1.5.52",
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
@@ -1066,6 +1066,12 @@ export interface UserProfileRedis {
1066
1066
  avatar: string;
1067
1067
  /** Display name */
1068
1068
  display_name: string;
1069
+ /** about me */
1070
+ about_me: string;
1071
+ /** custom status */
1072
+ custom_status: string;
1073
+ /** create time */
1074
+ create_time_second: number;
1069
1075
  /** FCM token */
1070
1076
  fcm_tokens: FCMTokens[];
1071
1077
  }
@@ -8774,7 +8780,16 @@ export const UserProfileUpdatedEvent = {
8774
8780
  };
8775
8781
 
8776
8782
  function createBaseUserProfileRedis(): UserProfileRedis {
8777
- return { user_id: "", username: "", avatar: "", display_name: "", fcm_tokens: [] };
8783
+ return {
8784
+ user_id: "",
8785
+ username: "",
8786
+ avatar: "",
8787
+ display_name: "",
8788
+ about_me: "",
8789
+ custom_status: "",
8790
+ create_time_second: 0,
8791
+ fcm_tokens: [],
8792
+ };
8778
8793
  }
8779
8794
 
8780
8795
  export const UserProfileRedis = {
@@ -8791,8 +8806,17 @@ export const UserProfileRedis = {
8791
8806
  if (message.display_name !== "") {
8792
8807
  writer.uint32(34).string(message.display_name);
8793
8808
  }
8809
+ if (message.about_me !== "") {
8810
+ writer.uint32(42).string(message.about_me);
8811
+ }
8812
+ if (message.custom_status !== "") {
8813
+ writer.uint32(50).string(message.custom_status);
8814
+ }
8815
+ if (message.create_time_second !== 0) {
8816
+ writer.uint32(56).uint32(message.create_time_second);
8817
+ }
8794
8818
  for (const v of message.fcm_tokens) {
8795
- FCMTokens.encode(v!, writer.uint32(42).fork()).ldelim();
8819
+ FCMTokens.encode(v!, writer.uint32(66).fork()).ldelim();
8796
8820
  }
8797
8821
  return writer;
8798
8822
  },
@@ -8837,6 +8861,27 @@ export const UserProfileRedis = {
8837
8861
  break;
8838
8862
  }
8839
8863
 
8864
+ message.about_me = reader.string();
8865
+ continue;
8866
+ case 6:
8867
+ if (tag !== 50) {
8868
+ break;
8869
+ }
8870
+
8871
+ message.custom_status = reader.string();
8872
+ continue;
8873
+ case 7:
8874
+ if (tag !== 56) {
8875
+ break;
8876
+ }
8877
+
8878
+ message.create_time_second = reader.uint32();
8879
+ continue;
8880
+ case 8:
8881
+ if (tag !== 66) {
8882
+ break;
8883
+ }
8884
+
8840
8885
  message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
8841
8886
  continue;
8842
8887
  }
@@ -8854,6 +8899,9 @@ export const UserProfileRedis = {
8854
8899
  username: isSet(object.username) ? globalThis.String(object.username) : "",
8855
8900
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
8856
8901
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
8902
+ about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
8903
+ custom_status: isSet(object.custom_status) ? globalThis.String(object.custom_status) : "",
8904
+ create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
8857
8905
  fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens)
8858
8906
  ? object.fcm_tokens.map((e: any) => FCMTokens.fromJSON(e))
8859
8907
  : [],
@@ -8874,6 +8922,15 @@ export const UserProfileRedis = {
8874
8922
  if (message.display_name !== "") {
8875
8923
  obj.display_name = message.display_name;
8876
8924
  }
8925
+ if (message.about_me !== "") {
8926
+ obj.about_me = message.about_me;
8927
+ }
8928
+ if (message.custom_status !== "") {
8929
+ obj.custom_status = message.custom_status;
8930
+ }
8931
+ if (message.create_time_second !== 0) {
8932
+ obj.create_time_second = Math.round(message.create_time_second);
8933
+ }
8877
8934
  if (message.fcm_tokens?.length) {
8878
8935
  obj.fcm_tokens = message.fcm_tokens.map((e) => FCMTokens.toJSON(e));
8879
8936
  }
@@ -8889,6 +8946,9 @@ export const UserProfileRedis = {
8889
8946
  message.username = object.username ?? "";
8890
8947
  message.avatar = object.avatar ?? "";
8891
8948
  message.display_name = object.display_name ?? "";
8949
+ message.about_me = object.about_me ?? "";
8950
+ message.custom_status = object.custom_status ?? "";
8951
+ message.create_time_second = object.create_time_second ?? 0;
8892
8952
  message.fcm_tokens = object.fcm_tokens?.map((e) => FCMTokens.fromPartial(e)) || [];
8893
8953
  return message;
8894
8954
  },