feat: add first-run admin bootstrap flow and site-admin badge
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user