@platfformx/proto-contracts 1.0.5 → 1.0.6

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.
@@ -25,7 +25,10 @@ export interface CreateAccountRequest {
25
25
  }
26
26
 
27
27
  export interface CreateAccountResponse {
28
- result: AuthResult | undefined;
28
+ userId: string;
29
+ accessToken: string;
30
+ refreshToken: string;
31
+ user: UserProfile | undefined;
29
32
  }
30
33
 
31
34
  /** Authenticate credentials */
@@ -34,7 +37,10 @@ export interface AuthenticationRequest {
34
37
  }
35
38
 
36
39
  export interface AuthenticationResponse {
37
- result: AuthResult | undefined;
40
+ userId: string;
41
+ accessToken: string;
42
+ refreshToken: string;
43
+ user: UserProfile | undefined;
38
44
  }
39
45
 
40
46
  /** AuthenticateWithOAuth */
@@ -44,7 +50,10 @@ export interface OAuthSessionRequest {
44
50
  }
45
51
 
46
52
  export interface OAuthSessionResponse {
47
- result: AuthResult | undefined;
53
+ userId: string;
54
+ accessToken: string;
55
+ refreshToken: string;
56
+ user: UserProfile | undefined;
48
57
  isNewUser: boolean;
49
58
  }
50
59
 
@@ -72,13 +81,6 @@ export interface UserProfile {
72
81
  displayName?: string | undefined;
73
82
  }
74
83
 
75
- export interface AuthResult {
76
- userId: string;
77
- accessToken: string;
78
- refreshToken: string;
79
- user: UserProfile | undefined;
80
- }
81
-
82
84
  export const AUTH_SERVICE_V1_PACKAGE_NAME = "auth_service.v1";
83
85
 
84
86
  export interface AuthServiceClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -15,7 +15,10 @@ message CreateAccountRequest {
15
15
  }
16
16
 
17
17
  message CreateAccountResponse {
18
- AuthResult result = 1;
18
+ string user_id = 1;
19
+ string access_token = 2;
20
+ string refresh_token = 3;
21
+ UserProfile user = 4;
19
22
  }
20
23
 
21
24
  // Authenticate credentials
@@ -24,7 +27,10 @@ message AuthenticationRequest {
24
27
  }
25
28
 
26
29
  message AuthenticationResponse {
27
- AuthResult result = 1;
30
+ string user_id = 1;
31
+ string access_token = 2;
32
+ string refresh_token = 3;
33
+ UserProfile user = 4;
28
34
  }
29
35
 
30
36
  // AuthenticateWithOAuth
@@ -33,8 +39,11 @@ message OAuthSessionRequest {
33
39
  string token = 2;
34
40
  }
35
41
  message OAuthSessionResponse {
36
- AuthResult result = 1;
37
- bool is_new_user = 2;
42
+ string user_id = 1;
43
+ string access_token = 2;
44
+ string refresh_token = 3;
45
+ UserProfile user = 4;
46
+ bool is_new_user = 5;
38
47
  }
39
48
  // Tokens
40
49
  message TokenRefreshRequest {
@@ -68,9 +77,3 @@ message UserProfile {
68
77
  optional string display_name = 4;
69
78
  }
70
79
 
71
- message AuthResult {
72
- string user_id = 1;
73
- string access_token = 2;
74
- string refresh_token = 3;
75
- UserProfile user = 4;
76
- }