@turndown/library 0.0.34 → 0.0.36
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Authentication Types
|
|
3
3
|
* Request/Response types for authentication endpoints
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { AccountType, DeviceInfo, UserSafe } from "../user";
|
|
6
6
|
/**
|
|
7
7
|
* Token Payload
|
|
8
8
|
* JWT token payload structure
|
|
@@ -97,7 +97,35 @@ export interface GetUserRequest {
|
|
|
97
97
|
* Response from get user endpoint
|
|
98
98
|
*/
|
|
99
99
|
export interface GetUserResponse {
|
|
100
|
-
user:
|
|
100
|
+
user: UserSafe | null;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Change Password Request
|
|
104
|
+
* Request body for changing password
|
|
105
|
+
*/
|
|
106
|
+
export interface ChangePasswordRequest {
|
|
107
|
+
currentPassword: string;
|
|
108
|
+
newPassword: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Change Password Response
|
|
112
|
+
* Response from change password endpoint
|
|
113
|
+
*/
|
|
114
|
+
export interface ChangePasswordResponse extends GetUserResponse {
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Forgot Password Request
|
|
118
|
+
* Request body for forgot password
|
|
119
|
+
*/
|
|
120
|
+
export interface ForgotPasswordRequest {
|
|
121
|
+
email: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Forgot Password Response
|
|
125
|
+
* Response from forgot password endpoint
|
|
126
|
+
*/
|
|
127
|
+
export interface ForgotPasswordResponse {
|
|
128
|
+
message: string;
|
|
101
129
|
}
|
|
102
130
|
/**
|
|
103
131
|
* Password Validation Rules
|
|
@@ -24,7 +24,7 @@ export interface User {
|
|
|
24
24
|
updatedAt: Date;
|
|
25
25
|
biometrics?: string | null;
|
|
26
26
|
}
|
|
27
|
-
export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "
|
|
27
|
+
export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "biometrics"> {
|
|
28
28
|
}
|
|
29
29
|
export declare const ACCOUNT_TYPE: {
|
|
30
30
|
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|