games_app/backend/dist/services/setupService.d.ts
2026-06-29 15:01:23 +02:00

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