-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
84 lines (74 loc) · 1.54 KB
/
Copy pathtypes.ts
File metadata and controls
84 lines (74 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
export enum AppView {
AUTH = 'AUTH',
DASHBOARD = 'DASHBOARD',
GENERATE = 'GENERATE',
VAULT = 'VAULT',
AI_TOOLS = 'AI_TOOLS',
ACCOUNT = 'ACCOUNT',
SYNC = 'SYNC',
BILLING = 'BILLING',
SETTINGS = 'SETTINGS',
}
export interface Alias {
id: string;
hash: string;
context: string;
timestamp: number;
fingerprint: string;
tags: string[];
isRevoked: boolean;
notes?: string;
expiresAt?: number;
}
export interface IdentityData {
fullName: string;
dob: string;
address: string;
context: string;
}
export interface UserState {
isLocked: boolean;
vaultReady: boolean;
aliasHistory: Alias[];
customer: CustomerProfile | null;
syncState: SyncState;
auditEvents: AuditEvent[];
}
export interface VaultSession {
key: CryptoKey;
createdAt: number;
}
export interface RiskFinding {
label: string;
level: 'Low' | 'Medium' | 'High';
detail: string;
}
export interface RiskReport {
summary: string;
score: number;
findings: RiskFinding[];
recommendations: string[];
}
export type SubscriptionPlan = 'Free' | 'Pro' | 'Team';
export interface CustomerProfile {
email: string;
displayName: string;
plan: SubscriptionPlan;
emailVerified: boolean;
createdAt: number;
}
export interface SyncState {
enabled: boolean;
endpoint: string;
lastSyncAt?: number;
pendingItems: number;
status: 'Local only' | 'Ready' | 'Syncing' | 'Error';
message: string;
}
export interface AuditEvent {
id: string;
timestamp: number;
action: string;
detail: string;
severity: 'Info' | 'Warning' | 'Critical';
}