@platfformx/proto-contracts 1.0.19 → 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:
|
|
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
|
@@ -31,7 +31,7 @@ message CreateAccountResponse {
|
|
|
31
31
|
|
|
32
32
|
// Authenticate credentials
|
|
33
33
|
message AuthenticationRequest {
|
|
34
|
-
|
|
34
|
+
UserCredentialsLogin credentials = 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message AuthenticationResponse {
|
|
@@ -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;
|