27 lines
678 B
TypeScript
27 lines
678 B
TypeScript
/**
|
|
* One-time platform setup: create or promote the first administrator.
|
|
*/
|
|
export type SetupStatus = {
|
|
needsSetup: boolean;
|
|
setupEnabled: boolean;
|
|
};
|
|
export declare function getSetupStatus(): Promise<SetupStatus>;
|
|
export declare function createFirstAdmin(input: {
|
|
email: string;
|
|
password: string;
|
|
fullName: string;
|
|
setupToken: string;
|
|
}): Promise<{
|
|
userId: string;
|
|
message: string;
|
|
}>;
|
|
export declare function promoteExistingUserToAdmin(input: {
|
|
email: string;
|
|
setupToken: string;
|
|
role?: 'admin' | 'moderator';
|
|
}): Promise<{
|
|
userId: string;
|
|
role: string;
|
|
message: string;
|
|
}>;
|
|
//# sourceMappingURL=setupService.d.ts.map
|