@platfformx/proto-contracts 1.0.21 → 1.0.23
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "auth_service.v1";
|
|
3
|
-
/** Shared */
|
|
4
3
|
export declare enum OAuthProvider {
|
|
5
4
|
OAUTH_PROVIDER_UNSPECIFIED = 0,
|
|
6
5
|
OAUTH_PROVIDER_GOOGLE = 1,
|
|
@@ -74,18 +73,24 @@ export interface AddIdentifierResponse {
|
|
|
74
73
|
}
|
|
75
74
|
/** reset + forgot password */
|
|
76
75
|
export interface ResetPasswordRequest {
|
|
77
|
-
token: string;
|
|
78
76
|
newPassword: string;
|
|
77
|
+
token?: string | undefined;
|
|
78
|
+
sms?: SmsCredentialsReset | undefined;
|
|
79
79
|
}
|
|
80
80
|
export interface ResetPasswordResponse {
|
|
81
81
|
ok: boolean;
|
|
82
82
|
}
|
|
83
83
|
export interface ForgotPasswordRequest {
|
|
84
|
-
email
|
|
84
|
+
email?: string | undefined;
|
|
85
|
+
phone?: string | undefined;
|
|
85
86
|
}
|
|
86
87
|
export interface ForgotPasswordResponse {
|
|
87
88
|
ok: boolean;
|
|
88
89
|
}
|
|
90
|
+
export interface SmsCredentialsReset {
|
|
91
|
+
phone: string;
|
|
92
|
+
opt: string;
|
|
93
|
+
}
|
|
89
94
|
export interface UserCredentials {
|
|
90
95
|
email?: string | undefined;
|
|
91
96
|
phone?: string | undefined;
|
|
@@ -10,7 +10,6 @@ exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
12
|
exports.protobufPackage = "auth_service.v1";
|
|
13
|
-
/** Shared */
|
|
14
13
|
var OAuthProvider;
|
|
15
14
|
(function (OAuthProvider) {
|
|
16
15
|
OAuthProvider[OAuthProvider["OAUTH_PROVIDER_UNSPECIFIED"] = 0] = "OAUTH_PROVIDER_UNSPECIFIED";
|
package/package.json
CHANGED
|
@@ -94,8 +94,11 @@ message AddIdentifierResponse{
|
|
|
94
94
|
|
|
95
95
|
// reset + forgot password
|
|
96
96
|
message ResetPasswordRequest {
|
|
97
|
-
string
|
|
98
|
-
|
|
97
|
+
string newPassword = 1;
|
|
98
|
+
oneof reset_method {
|
|
99
|
+
string token = 2;
|
|
100
|
+
SmsCredentialsReset sms = 3;
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
103
|
message ResetPasswordResponse {
|
|
101
104
|
bool ok = 1;
|
|
@@ -112,6 +115,11 @@ message ForgotPasswordResponse {
|
|
|
112
115
|
}
|
|
113
116
|
|
|
114
117
|
// Shared
|
|
118
|
+
|
|
119
|
+
message SmsCredentialsReset {
|
|
120
|
+
string phone = 1;
|
|
121
|
+
string opt = 2;
|
|
122
|
+
}
|
|
115
123
|
enum OAuthProvider {
|
|
116
124
|
OAUTH_PROVIDER_UNSPECIFIED = 0;
|
|
117
125
|
OAUTH_PROVIDER_GOOGLE = 1;
|