@platfformx/proto-contracts 1.0.19 → 1.0.21

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;
@@ -87,6 +87,11 @@ 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.19",
3
+ "version": "1.0.21",
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,10 @@ message ResetPasswordResponse {
102
102
 
103
103
  }
104
104
  message ForgotPasswordRequest {
105
- string email = 1;
105
+ oneof identifier {
106
+ string email = 1;
107
+ string phone = 2;
108
+ }
106
109
  }
107
110
  message ForgotPasswordResponse {
108
111
  bool ok = 1;
@@ -116,6 +119,13 @@ enum OAuthProvider {
116
119
  OAUTH_PROVIDER_TELEGRAM = 3;
117
120
  }
118
121
  message UserCredentials {
122
+ oneof identifier {
123
+ string email = 1;
124
+ string phone = 2;
125
+ }
126
+ string password = 4;
127
+ }
128
+ message UserCredentialsLogin {
119
129
  oneof identifier {
120
130
  string email = 1;
121
131
  string phone = 2;