@turndown/library 0.0.34 → 0.0.37

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 { User, AccountType, DeviceInfo, UserSafe } from "../user";
5
+ import { AccountType, DeviceInfo, UserSafe } from "../user";
6
6
  /**
7
7
  * Token Payload
8
8
  * JWT token payload structure
@@ -55,6 +55,7 @@ export interface SigninRequest {
55
55
  * Response from signin endpoint
56
56
  */
57
57
  export interface SigninResponse extends AuthTokenResponse {
58
+ passwordResetRequired?: boolean;
58
59
  }
59
60
  /**
60
61
  * Refresh Token Request
@@ -97,7 +98,35 @@ export interface GetUserRequest {
97
98
  * Response from get user endpoint
98
99
  */
99
100
  export interface GetUserResponse {
100
- user: User | null;
101
+ user: UserSafe | null;
102
+ }
103
+ /**
104
+ * Change Password Request
105
+ * Request body for changing password
106
+ */
107
+ export interface ChangePasswordRequest {
108
+ currentPassword: string;
109
+ newPassword: string;
110
+ }
111
+ /**
112
+ * Change Password Response
113
+ * Response from change password endpoint
114
+ */
115
+ export interface ChangePasswordResponse extends GetUserResponse {
116
+ }
117
+ /**
118
+ * Forgot Password Request
119
+ * Request body for forgot password
120
+ */
121
+ export interface ForgotPasswordRequest {
122
+ email: string;
123
+ }
124
+ /**
125
+ * Forgot Password Response
126
+ * Response from forgot password endpoint
127
+ */
128
+ export interface ForgotPasswordResponse {
129
+ message: string;
101
130
  }
102
131
  /**
103
132
  * 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" | "locked" | "biometrics"> {
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.0.34",
3
+ "version": "0.0.37",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",