@platfformx/proto-contracts 1.0.15 → 1.0.16

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.
@@ -73,6 +73,20 @@ export interface AddIdentifierRequest {
73
73
  export interface AddIdentifierResponse {
74
74
  ok: boolean;
75
75
  }
76
+ /** reset + forgot password */
77
+ export interface ResetPasswordRequest {
78
+ token: string;
79
+ newPassword: string;
80
+ }
81
+ export interface ResetPasswordResponse {
82
+ ok: boolean;
83
+ }
84
+ export interface ForgotPasswordRequest {
85
+ success: boolean;
86
+ }
87
+ export interface ForgotPasswordResponse {
88
+ ok: boolean;
89
+ }
76
90
  export interface UserCredentials {
77
91
  email?: string | undefined;
78
92
  phone?: string | undefined;
@@ -94,6 +108,8 @@ export interface AuthServiceClient {
94
108
  sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
95
109
  verifyOtp(request: VerifyOtpRequest): Observable<VerifyOtpResponse>;
96
110
  addIdentifier(request: AddIdentifierRequest): Observable<AddIdentifierResponse>;
111
+ resetPassword(request: ResetPasswordRequest): Observable<ResetPasswordResponse>;
112
+ forgotPassword(request: ForgotPasswordRequest): Observable<ForgotPasswordResponse>;
97
113
  }
98
114
  export interface AuthServiceController {
99
115
  createAccount(request: CreateAccountRequest): Promise<CreateAccountResponse> | Observable<CreateAccountResponse> | CreateAccountResponse;
@@ -103,6 +119,8 @@ export interface AuthServiceController {
103
119
  sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
104
120
  verifyOtp(request: VerifyOtpRequest): Promise<VerifyOtpResponse> | Observable<VerifyOtpResponse> | VerifyOtpResponse;
105
121
  addIdentifier(request: AddIdentifierRequest): Promise<AddIdentifierResponse> | Observable<AddIdentifierResponse> | AddIdentifierResponse;
122
+ resetPassword(request: ResetPasswordRequest): Promise<ResetPasswordResponse> | Observable<ResetPasswordResponse> | ResetPasswordResponse;
123
+ forgotPassword(request: ForgotPasswordRequest): Promise<ForgotPasswordResponse> | Observable<ForgotPasswordResponse> | ForgotPasswordResponse;
106
124
  }
107
125
  export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
108
126
  export declare const AUTH_SERVICE_NAME = "AuthService";
@@ -30,6 +30,8 @@ function AuthServiceControllerMethods() {
30
30
  "sendOtp",
31
31
  "verifyOtp",
32
32
  "addIdentifier",
33
+ "resetPassword",
34
+ "forgotPassword",
33
35
  ];
34
36
  for (const method of grpcMethods) {
35
37
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,6 +12,9 @@ service AuthService {
12
12
 
13
13
  rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
14
14
  rpc AddIdentifier (AddIdentifierRequest) returns (AddIdentifierResponse);
15
+
16
+ rpc ResetPassword (ResetPasswordRequest) returns (ResetPasswordResponse);
17
+ rpc ForgotPassword (ForgotPasswordRequest) returns (ForgotPasswordResponse);
15
18
  }
16
19
 
17
20
  // Create account
@@ -89,6 +92,23 @@ message AddIdentifierResponse{
89
92
  bool ok = 1;
90
93
  }
91
94
 
95
+
96
+ // reset + forgot password
97
+ message ResetPasswordRequest {
98
+ string token = 1;
99
+ string newPassword = 2;
100
+ }
101
+ message ResetPasswordResponse {
102
+ bool ok = 1;
103
+
104
+ }
105
+ message ForgotPasswordRequest {
106
+ bool success = 1;
107
+ }
108
+ message ForgotPasswordResponse {
109
+ bool ok =1;
110
+ }
111
+
92
112
  // Shared
93
113
  enum OAuthProvider {
94
114
  OAUTH_PROVIDER_UNSPECIFIED = 0;