@platfformx/proto-contracts 1.1.1 → 1.1.2

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.
@@ -55,6 +55,12 @@ export interface ConfirmAccountRequest {
55
55
  export interface ConfirmAccountResponse {
56
56
  verified: boolean;
57
57
  }
58
+ export interface ResendVerificationRequest {
59
+ identifier: string;
60
+ }
61
+ export interface ResendVerificationResponse {
62
+ sent: boolean;
63
+ }
58
64
  export interface AddIdentifierRequest {
59
65
  userId: string;
60
66
  identifier: string;
@@ -107,6 +113,7 @@ export interface AuthServiceClient {
107
113
  authenticateWithOAuth(request: OAuthSessionRequest): Observable<OAuthSessionResponse>;
108
114
  refreshTokens(request: TokenRefreshRequest): Observable<TokenRefreshResponse>;
109
115
  confirmAccount(request: ConfirmAccountRequest): Observable<ConfirmAccountResponse>;
116
+ resendVerification(request: ResendVerificationRequest): Observable<ResendVerificationResponse>;
110
117
  resetPassword(request: ResetPasswordRequest): Observable<ResetPasswordResponse>;
111
118
  forgotPassword(request: ForgotPasswordRequest): Observable<ForgotPasswordResponse>;
112
119
  addIdentifier(request: AddIdentifierRequest): Observable<AddIdentifierResponse>;
@@ -117,6 +124,7 @@ export interface AuthServiceController {
117
124
  authenticateWithOAuth(request: OAuthSessionRequest): Promise<OAuthSessionResponse> | Observable<OAuthSessionResponse> | OAuthSessionResponse;
118
125
  refreshTokens(request: TokenRefreshRequest): Promise<TokenRefreshResponse> | Observable<TokenRefreshResponse> | TokenRefreshResponse;
119
126
  confirmAccount(request: ConfirmAccountRequest): Promise<ConfirmAccountResponse> | Observable<ConfirmAccountResponse> | ConfirmAccountResponse;
127
+ resendVerification(request: ResendVerificationRequest): Promise<ResendVerificationResponse> | Observable<ResendVerificationResponse> | ResendVerificationResponse;
120
128
  resetPassword(request: ResetPasswordRequest): Promise<ResetPasswordResponse> | Observable<ResetPasswordResponse> | ResetPasswordResponse;
121
129
  forgotPassword(request: ForgotPasswordRequest): Promise<ForgotPasswordResponse> | Observable<ForgotPasswordResponse> | ForgotPasswordResponse;
122
130
  addIdentifier(request: AddIdentifierRequest): Promise<AddIdentifierResponse> | Observable<AddIdentifierResponse> | AddIdentifierResponse;
@@ -27,6 +27,7 @@ function AuthServiceControllerMethods() {
27
27
  "authenticateWithOAuth",
28
28
  "refreshTokens",
29
29
  "confirmAccount",
30
+ "resendVerification",
30
31
  "resetPassword",
31
32
  "forgotPassword",
32
33
  "addIdentifier",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,8 @@ service AuthService {
9
9
  rpc RefreshTokens (TokenRefreshRequest) returns (TokenRefreshResponse);
10
10
 
11
11
  rpc ConfirmAccount (ConfirmAccountRequest) returns (ConfirmAccountResponse);
12
-
12
+ rpc ResendVerification (ResendVerificationRequest) returns (ResendVerificationResponse);
13
+
13
14
  rpc ResetPassword (ResetPasswordRequest) returns (ResetPasswordResponse);
14
15
  rpc ForgotPassword (ForgotPasswordRequest) returns (ForgotPasswordResponse);
15
16
 
@@ -63,6 +64,8 @@ message TokenRefreshResponse {
63
64
  string refresh_token = 2;
64
65
  }
65
66
 
67
+ // Verification
68
+
66
69
  message ConfirmAccountRequest {
67
70
  string identifier = 1;
68
71
  oneof confirm_method {
@@ -74,6 +77,14 @@ message ConfirmAccountResponse {
74
77
  bool verified = 1;
75
78
  }
76
79
 
80
+ message ResendVerificationRequest {
81
+ string identifier = 1;
82
+ }
83
+ message ResendVerificationResponse {
84
+ bool sent = 1;
85
+ }
86
+
87
+
77
88
 
78
89
  message AddIdentifierRequest {
79
90
  string user_id = 1;