mezon-js-protobuf 1.5.52 → 1.5.54

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
@@ -1331,6 +1331,8 @@ export interface Session {
1331
1331
  token: string;
1332
1332
  /** Refresh token that can be used for session token renewal. */
1333
1333
  refresh_token: string;
1334
+ /** User id */
1335
+ user_id: string;
1334
1336
  }
1335
1337
 
1336
1338
  /** Update a user's account details. */
@@ -11797,7 +11799,7 @@ export const Rpc = {
11797
11799
  };
11798
11800
 
11799
11801
  function createBaseSession(): Session {
11800
- return { created: false, token: "", refresh_token: "" };
11802
+ return { created: false, token: "", refresh_token: "", user_id: "" };
11801
11803
  }
11802
11804
 
11803
11805
  export const Session = {
@@ -11811,6 +11813,9 @@ export const Session = {
11811
11813
  if (message.refresh_token !== "") {
11812
11814
  writer.uint32(26).string(message.refresh_token);
11813
11815
  }
11816
+ if (message.user_id !== "") {
11817
+ writer.uint32(34).string(message.user_id);
11818
+ }
11814
11819
  return writer;
11815
11820
  },
11816
11821
 
@@ -11842,6 +11847,13 @@ export const Session = {
11842
11847
 
11843
11848
  message.refresh_token = reader.string();
11844
11849
  continue;
11850
+ case 4:
11851
+ if (tag !== 34) {
11852
+ break;
11853
+ }
11854
+
11855
+ message.user_id = reader.string();
11856
+ continue;
11845
11857
  }
11846
11858
  if ((tag & 7) === 4 || tag === 0) {
11847
11859
  break;
@@ -11856,6 +11868,7 @@ export const Session = {
11856
11868
  created: isSet(object.created) ? globalThis.Boolean(object.created) : false,
11857
11869
  token: isSet(object.token) ? globalThis.String(object.token) : "",
11858
11870
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
11871
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
11859
11872
  };
11860
11873
  },
11861
11874
 
@@ -11870,6 +11883,9 @@ export const Session = {
11870
11883
  if (message.refresh_token !== "") {
11871
11884
  obj.refresh_token = message.refresh_token;
11872
11885
  }
11886
+ if (message.user_id !== "") {
11887
+ obj.user_id = message.user_id;
11888
+ }
11873
11889
  return obj;
11874
11890
  },
11875
11891
 
@@ -11881,6 +11897,7 @@ export const Session = {
11881
11897
  message.created = object.created ?? false;
11882
11898
  message.token = object.token ?? "";
11883
11899
  message.refresh_token = object.refresh_token ?? "";
11900
+ message.user_id = object.user_id ?? "";
11884
11901
  return message;
11885
11902
  },
11886
11903
  };
@@ -973,6 +973,8 @@ export interface Session {
973
973
  token: string;
974
974
  /** Refresh token that can be used for session token renewal. */
975
975
  refresh_token: string;
976
+ /** User id */
977
+ user_id: string;
976
978
  }
977
979
  /** Update a user's account details. */
978
980
  export interface UpdateAccountRequest {
@@ -7328,19 +7330,23 @@ export declare const Session: {
7328
7330
  created?: boolean | undefined;
7329
7331
  token?: string | undefined;
7330
7332
  refresh_token?: string | undefined;
7333
+ user_id?: string | undefined;
7331
7334
  } & {
7332
7335
  created?: boolean | undefined;
7333
7336
  token?: string | undefined;
7334
7337
  refresh_token?: string | undefined;
7338
+ user_id?: string | undefined;
7335
7339
  } & { [K in Exclude<keyof I, keyof Session>]: never; }>(base?: I | undefined): Session;
7336
7340
  fromPartial<I_1 extends {
7337
7341
  created?: boolean | undefined;
7338
7342
  token?: string | undefined;
7339
7343
  refresh_token?: string | undefined;
7344
+ user_id?: string | undefined;
7340
7345
  } & {
7341
7346
  created?: boolean | undefined;
7342
7347
  token?: string | undefined;
7343
7348
  refresh_token?: string | undefined;
7349
+ user_id?: string | undefined;
7344
7350
  } & { [K_1 in Exclude<keyof I_1, keyof Session>]: never; }>(object: I_1): Session;
7345
7351
  };
7346
7352
  export declare const UpdateAccountRequest: {