@turndown/library 0.0.30 → 0.0.31

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 } from "../user";
5
+ import { User, AccountType, DeviceInfo, UserSafe } from "../user";
6
6
  /**
7
7
  * Token Payload
8
8
  * JWT token payload structure
@@ -17,7 +17,7 @@ export interface TokenPayload {
17
17
  * Standard structure for authentication responses with tokens
18
18
  */
19
19
  export interface AuthTokenResponse {
20
- user: User;
20
+ user: UserSafe;
21
21
  accessToken: string;
22
22
  refreshToken: string;
23
23
  expiresAt: string;
@@ -20,6 +20,8 @@ export interface User extends MetaData {
20
20
  preferredLanguage?: Language;
21
21
  biometrics?: string | null;
22
22
  }
23
+ export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "locked" | "biometrics"> {
24
+ }
23
25
  export declare const ACCOUNT_TYPE: {
24
26
  readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
25
27
  readonly OWNER: "OWNER";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",