@platfformx/proto-contracts 1.0.18 → 1.0.20

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 CreateAccountResponse {
20
20
  }
21
21
  /** Authenticate credentials */
22
22
  export interface AuthenticationRequest {
23
- credentials: UserCredentials | undefined;
23
+ credentials: UserCredentialsLogin | undefined;
24
24
  }
25
25
  export interface AuthenticationResponse {
26
26
  userId: string;
@@ -81,12 +81,17 @@ export interface ResetPasswordResponse {
81
81
  ok: boolean;
82
82
  }
83
83
  export interface ForgotPasswordRequest {
84
- email: boolean;
84
+ email: string;
85
85
  }
86
86
  export interface ForgotPasswordResponse {
87
87
  ok: boolean;
88
88
  }
89
89
  export interface UserCredentials {
90
+ email?: string | undefined;
91
+ phone?: string | undefined;
92
+ password: string;
93
+ }
94
+ export interface UserCredentialsLogin {
90
95
  email?: string | undefined;
91
96
  phone?: string | undefined;
92
97
  username?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@ message CreateAccountResponse {
31
31
 
32
32
  // Authenticate credentials
33
33
  message AuthenticationRequest {
34
- UserCredentials credentials = 1;
34
+ UserCredentialsLogin credentials = 1;
35
35
  }
36
36
 
37
37
  message AuthenticationResponse {
@@ -102,7 +102,7 @@ message ResetPasswordResponse {
102
102
 
103
103
  }
104
104
  message ForgotPasswordRequest {
105
- bool email = 1;
105
+ string email = 1;
106
106
  }
107
107
  message ForgotPasswordResponse {
108
108
  bool ok = 1;
@@ -116,6 +116,13 @@ enum OAuthProvider {
116
116
  OAUTH_PROVIDER_TELEGRAM = 3;
117
117
  }
118
118
  message UserCredentials {
119
+ oneof identifier {
120
+ string email = 1;
121
+ string phone = 2;
122
+ }
123
+ string password = 4;
124
+ }
125
+ message UserCredentialsLogin {
119
126
  oneof identifier {
120
127
  string email = 1;
121
128
  string phone = 2;