Public Access
1
0

feat: add first-run admin bootstrap flow and site-admin badge

This commit is contained in:
pguerrerox
2026-05-25 20:20:42 +00:00
parent f5e7e966e3
commit 232342d6a1
14 changed files with 437 additions and 26 deletions
+17
View File
@@ -15,6 +15,23 @@ export interface AppUser {
export interface SessionUser extends AppUser {
sessionId: string;
isAdmin?: boolean;
}
export interface AdminBootstrapStatusResponse {
bootstrapRequired: boolean;
bootstrapEnabled: boolean;
}
export interface AdminBootstrapClaimRequest {
email: string;
password: string;
displayName?: string;
bootstrapToken: string;
}
export interface AdminBootstrapClaimResponse {
user: SessionUser;
}
export type WorkspaceType = 'personal' | 'company';