mezon-js-protobuf 1.6.77 → 1.6.78

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
@@ -191,6 +191,8 @@ export interface Account {
191
191
  logo: string;
192
192
  /** Splash screen url */
193
193
  splash_screen: string;
194
+ /** E2ee public key */
195
+ public_key: string;
194
196
  }
195
197
 
196
198
  /** Obtain a new authentication token using a refresh token. */
@@ -1407,6 +1409,8 @@ export interface UpdateAccountRequest {
1407
1409
  logo: string;
1408
1410
  /** splash screen */
1409
1411
  splash_screen: string;
1412
+ /** e2ee public key */
1413
+ public_key: string;
1410
1414
  }
1411
1415
 
1412
1416
  /** Update fields in a given group. */
@@ -3848,6 +3852,7 @@ function createBaseAccount(): Account {
3848
3852
  disable_time: undefined,
3849
3853
  logo: "",
3850
3854
  splash_screen: "",
3855
+ public_key: "",
3851
3856
  };
3852
3857
  }
3853
3858
 
@@ -3880,6 +3885,9 @@ export const Account = {
3880
3885
  if (message.splash_screen !== "") {
3881
3886
  writer.uint32(74).string(message.splash_screen);
3882
3887
  }
3888
+ if (message.public_key !== "") {
3889
+ writer.uint32(82).string(message.public_key);
3890
+ }
3883
3891
  return writer;
3884
3892
  },
3885
3893
 
@@ -3953,6 +3961,13 @@ export const Account = {
3953
3961
 
3954
3962
  message.splash_screen = reader.string();
3955
3963
  continue;
3964
+ case 10:
3965
+ if (tag !== 82) {
3966
+ break;
3967
+ }
3968
+
3969
+ message.public_key = reader.string();
3970
+ continue;
3956
3971
  }
3957
3972
  if ((tag & 7) === 4 || tag === 0) {
3958
3973
  break;
@@ -3975,6 +3990,7 @@ export const Account = {
3975
3990
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
3976
3991
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
3977
3992
  splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
3993
+ public_key: isSet(object.public_key) ? globalThis.String(object.public_key) : "",
3978
3994
  };
3979
3995
  },
3980
3996
 
@@ -4007,6 +4023,9 @@ export const Account = {
4007
4023
  if (message.splash_screen !== "") {
4008
4024
  obj.splash_screen = message.splash_screen;
4009
4025
  }
4026
+ if (message.public_key !== "") {
4027
+ obj.public_key = message.public_key;
4028
+ }
4010
4029
  return obj;
4011
4030
  },
4012
4031
 
@@ -4024,6 +4043,7 @@ export const Account = {
4024
4043
  message.disable_time = object.disable_time ?? undefined;
4025
4044
  message.logo = object.logo ?? "";
4026
4045
  message.splash_screen = object.splash_screen ?? "";
4046
+ message.public_key = object.public_key ?? "";
4027
4047
  return message;
4028
4048
  },
4029
4049
  };
@@ -13274,6 +13294,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
13274
13294
  dob: undefined,
13275
13295
  logo: "",
13276
13296
  splash_screen: "",
13297
+ public_key: "",
13277
13298
  };
13278
13299
  }
13279
13300
 
@@ -13309,6 +13330,9 @@ export const UpdateAccountRequest = {
13309
13330
  if (message.splash_screen !== "") {
13310
13331
  writer.uint32(82).string(message.splash_screen);
13311
13332
  }
13333
+ if (message.public_key !== "") {
13334
+ writer.uint32(90).string(message.public_key);
13335
+ }
13312
13336
  return writer;
13313
13337
  },
13314
13338
 
@@ -13389,6 +13413,13 @@ export const UpdateAccountRequest = {
13389
13413
 
13390
13414
  message.splash_screen = reader.string();
13391
13415
  continue;
13416
+ case 11:
13417
+ if (tag !== 90) {
13418
+ break;
13419
+ }
13420
+
13421
+ message.public_key = reader.string();
13422
+ continue;
13392
13423
  }
13393
13424
  if ((tag & 7) === 4 || tag === 0) {
13394
13425
  break;
@@ -13410,6 +13441,7 @@ export const UpdateAccountRequest = {
13410
13441
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
13411
13442
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
13412
13443
  splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
13444
+ public_key: isSet(object.public_key) ? globalThis.String(object.public_key) : "",
13413
13445
  };
13414
13446
  },
13415
13447
 
@@ -13445,6 +13477,9 @@ export const UpdateAccountRequest = {
13445
13477
  if (message.splash_screen !== "") {
13446
13478
  obj.splash_screen = message.splash_screen;
13447
13479
  }
13480
+ if (message.public_key !== "") {
13481
+ obj.public_key = message.public_key;
13482
+ }
13448
13483
  return obj;
13449
13484
  },
13450
13485
 
@@ -13463,6 +13498,7 @@ export const UpdateAccountRequest = {
13463
13498
  message.dob = object.dob ?? undefined;
13464
13499
  message.logo = object.logo ?? "";
13465
13500
  message.splash_screen = object.splash_screen ?? "";
13501
+ message.public_key = object.public_key ?? "";
13466
13502
  return message;
13467
13503
  },
13468
13504
  };
@@ -68,7 +68,6 @@ export interface SocketOpenHandler {
68
68
  */
69
69
  export declare class WebSocketAdapterText implements WebSocketAdapter {
70
70
  private _socket?;
71
- private _pcRef?;
72
71
  get onClose(): SocketCloseHandler | null;
73
72
  set onClose(value: SocketCloseHandler | null);
74
73
  get onError(): SocketErrorHandler | null;
@@ -63,6 +63,8 @@ export interface Account {
63
63
  logo: string;
64
64
  /** Splash screen url */
65
65
  splash_screen: string;
66
+ /** E2ee public key */
67
+ public_key: string;
66
68
  }
67
69
  /** Obtain a new authentication token using a refresh token. */
68
70
  export interface AccountRefresh {
@@ -1024,6 +1026,8 @@ export interface UpdateAccountRequest {
1024
1026
  logo: string;
1025
1027
  /** splash screen */
1026
1028
  splash_screen: string;
1029
+ /** e2ee public key */
1030
+ public_key: string;
1027
1031
  }
1028
1032
  /** Update fields in a given group. */
1029
1033
  export interface UpdateGroupRequest {
@@ -3128,6 +3132,7 @@ export declare const Account: {
3128
3132
  disable_time?: Date | undefined;
3129
3133
  logo?: string | undefined;
3130
3134
  splash_screen?: string | undefined;
3135
+ public_key?: string | undefined;
3131
3136
  } & {
3132
3137
  user?: ({
3133
3138
  id?: string | undefined;
@@ -3204,6 +3209,7 @@ export declare const Account: {
3204
3209
  disable_time?: Date | undefined;
3205
3210
  logo?: string | undefined;
3206
3211
  splash_screen?: string | undefined;
3212
+ public_key?: string | undefined;
3207
3213
  } & { [K_4 in Exclude<keyof I, keyof Account>]: never; }>(base?: I | undefined): Account;
3208
3214
  fromPartial<I_1 extends {
3209
3215
  user?: {
@@ -3242,6 +3248,7 @@ export declare const Account: {
3242
3248
  disable_time?: Date | undefined;
3243
3249
  logo?: string | undefined;
3244
3250
  splash_screen?: string | undefined;
3251
+ public_key?: string | undefined;
3245
3252
  } & {
3246
3253
  user?: ({
3247
3254
  id?: string | undefined;
@@ -3318,6 +3325,7 @@ export declare const Account: {
3318
3325
  disable_time?: Date | undefined;
3319
3326
  logo?: string | undefined;
3320
3327
  splash_screen?: string | undefined;
3328
+ public_key?: string | undefined;
3321
3329
  } & { [K_9 in Exclude<keyof I_1, keyof Account>]: never; }>(object: I_1): Account;
3322
3330
  };
3323
3331
  export declare const AccountRefresh: {
@@ -8522,6 +8530,7 @@ export declare const UpdateAccountRequest: {
8522
8530
  dob?: Date | undefined;
8523
8531
  logo?: string | undefined;
8524
8532
  splash_screen?: string | undefined;
8533
+ public_key?: string | undefined;
8525
8534
  } & {
8526
8535
  username?: string | undefined;
8527
8536
  display_name?: string | undefined;
@@ -8533,6 +8542,7 @@ export declare const UpdateAccountRequest: {
8533
8542
  dob?: Date | undefined;
8534
8543
  logo?: string | undefined;
8535
8544
  splash_screen?: string | undefined;
8545
+ public_key?: string | undefined;
8536
8546
  } & { [K in Exclude<keyof I, keyof UpdateAccountRequest>]: never; }>(base?: I | undefined): UpdateAccountRequest;
8537
8547
  fromPartial<I_1 extends {
8538
8548
  username?: string | undefined;
@@ -8545,6 +8555,7 @@ export declare const UpdateAccountRequest: {
8545
8555
  dob?: Date | undefined;
8546
8556
  logo?: string | undefined;
8547
8557
  splash_screen?: string | undefined;
8558
+ public_key?: string | undefined;
8548
8559
  } & {
8549
8560
  username?: string | undefined;
8550
8561
  display_name?: string | undefined;
@@ -8556,6 +8567,7 @@ export declare const UpdateAccountRequest: {
8556
8567
  dob?: Date | undefined;
8557
8568
  logo?: string | undefined;
8558
8569
  splash_screen?: string | undefined;
8570
+ public_key?: string | undefined;
8559
8571
  } & { [K_1 in Exclude<keyof I_1, keyof UpdateAccountRequest>]: never; }>(object: I_1): UpdateAccountRequest;
8560
8572
  };
8561
8573
  export declare const UpdateGroupRequest: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.77",
3
+ "version": "1.6.78",
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",