@platfformx/proto-contracts 1.0.22 → 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,8 +73,9 @@ 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;
@@ -87,6 +87,10 @@ export interface ForgotPasswordRequest {
87
87
  export interface ForgotPasswordResponse {
88
88
  ok: boolean;
89
89
  }
90
+ export interface SmsCredentialsReset {
91
+ phone: string;
92
+ opt: string;
93
+ }
90
94
  export interface UserCredentials {
91
95
  email?: string | undefined;
92
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -94,8 +94,11 @@ message AddIdentifierResponse{
94
94
 
95
95
  // reset + forgot password
96
96
  message ResetPasswordRequest {
97
- string token = 1;
98
- string newPassword = 2;
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;