@citec-spbu/contracts 1.0.6 → 1.0.7

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.
@@ -20,7 +20,7 @@ export interface ValidateJwtRequest {
20
20
  }
21
21
  export interface ValidateJwtResponse {
22
22
  valid: boolean;
23
- accountId: string;
23
+ accountId?: string | undefined;
24
24
  }
25
25
  export interface RefreshRequest {
26
26
  refreshToken: string;
package/gen/ts/auth.ts CHANGED
@@ -34,7 +34,7 @@ export interface ValidateJwtRequest {
34
34
 
35
35
  export interface ValidateJwtResponse {
36
36
  valid: boolean;
37
- accountId: string;
37
+ accountId?: string | undefined;
38
38
  }
39
39
 
40
40
  export interface RefreshRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citec-spbu/contracts",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/proto/auth.proto CHANGED
@@ -28,7 +28,9 @@ message ValidateJwtRequest {
28
28
 
29
29
  message ValidateJwtResponse {
30
30
  bool valid = 1;
31
- string account_id = 2;
31
+ oneof account {
32
+ string account_id = 2;
33
+ }
32
34
  }
33
35
 
34
36
  message RefreshRequest {