@newhomestar/sdk 0.8.8 → 0.8.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/userCache.d.ts +12 -0
- package/package.json +1 -1
package/dist/userCache.d.ts
CHANGED
|
@@ -10,6 +10,18 @@ export interface UserProfile {
|
|
|
10
10
|
last_name: string | null;
|
|
11
11
|
avatar_url: string | null;
|
|
12
12
|
external_id: number | null;
|
|
13
|
+
/** Full app_metadata blob from Supabase auth.users.raw_app_meta_data. Future-proof pass-through. */
|
|
14
|
+
app_metadata: Record<string, unknown> | null;
|
|
15
|
+
/** User's job title (from profiles table or app_metadata). */
|
|
16
|
+
title: string | null;
|
|
17
|
+
/** Derived active/inactive status. */
|
|
18
|
+
status: 'active' | 'inactive';
|
|
19
|
+
/** Raw active flag from app_metadata (1=active, 0=inactive). */
|
|
20
|
+
active: number;
|
|
21
|
+
/** User's legacy role string (from profiles table). */
|
|
22
|
+
rolez: string | null;
|
|
23
|
+
/** Whether the user has a verified TOTP 2FA factor. */
|
|
24
|
+
has_2fa: boolean;
|
|
13
25
|
}
|
|
14
26
|
export interface UserCacheOptions {
|
|
15
27
|
/** Auth Service base URL. Defaults to AUTH_ISSUER_BASE_URL env var. */
|
package/package.json
CHANGED