@bagelink/auth 1.5.7 → 1.5.9

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.
package/dist/index.cjs CHANGED
@@ -690,6 +690,7 @@ function accountToUser(account) {
690
690
  roles: account.person.roles,
691
691
  isActive: account.is_active,
692
692
  isVerified: account.is_verified,
693
+ person: account.person,
693
694
  lastLogin: account.last_login
694
695
  };
695
696
  }
package/dist/index.d.cts CHANGED
@@ -111,6 +111,8 @@ interface User {
111
111
  entityType?: string;
112
112
  /** Additional metadata */
113
113
  metadata?: Record<string, any>;
114
+ /** Person-specific info (only for person accounts) */
115
+ person?: PersonInfo;
114
116
  }
115
117
  interface RegisterRequest {
116
118
  email: string;
package/dist/index.d.mts CHANGED
@@ -111,6 +111,8 @@ interface User {
111
111
  entityType?: string;
112
112
  /** Additional metadata */
113
113
  metadata?: Record<string, any>;
114
+ /** Person-specific info (only for person accounts) */
115
+ person?: PersonInfo;
114
116
  }
115
117
  interface RegisterRequest {
116
118
  email: string;
package/dist/index.d.ts CHANGED
@@ -111,6 +111,8 @@ interface User {
111
111
  entityType?: string;
112
112
  /** Additional metadata */
113
113
  metadata?: Record<string, any>;
114
+ /** Person-specific info (only for person accounts) */
115
+ person?: PersonInfo;
114
116
  }
115
117
  interface RegisterRequest {
116
118
  email: string;
package/dist/index.mjs CHANGED
@@ -684,6 +684,7 @@ function accountToUser(account) {
684
684
  roles: account.person.roles,
685
685
  isActive: account.is_active,
686
686
  isVerified: account.is_verified,
687
+ person: account.person,
687
688
  lastLogin: account.last_login
688
689
  };
689
690
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/auth",
3
3
  "type": "module",
4
- "version": "1.5.7",
4
+ "version": "1.5.9",
5
5
  "description": "Bagelink auth package",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/types.ts CHANGED
@@ -137,6 +137,8 @@ export interface User {
137
137
  entityType?: string
138
138
  /** Additional metadata */
139
139
  metadata?: Record<string, any>
140
+ /** Person-specific info (only for person accounts) */
141
+ person?: PersonInfo
140
142
  }
141
143
 
142
144
  // ============================================
@@ -319,6 +321,7 @@ export function accountToUser(account: AccountInfo | null): User | null {
319
321
  roles: account.person.roles,
320
322
  isActive: account.is_active,
321
323
  isVerified: account.is_verified,
324
+ person: account.person,
322
325
  lastLogin: account.last_login,
323
326
  }
324
327
  }