@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
36 lines • 1.21 kB
TypeScript
/**
* Dex static user management for PRD #380 Task 2.5.
*
* CRUD operations on Dex static passwords via the Dex gRPC API.
* Changes take effect immediately in Dex's storage — no Secret
* editing or pod restarts needed.
*
* RBAC enforcement is deferred to Milestone 3 — any authenticated
* user can currently manage users.
*/
/** Result of a user management operation. */
export interface UserResult {
email: string;
message: string;
}
/** A user entry returned by listUsers (no password hash). */
export interface UserEntry {
email: string;
}
/** Reset the cached gRPC client — for testing only. */
export declare function _resetDexClient(): void;
/**
* Create a new Dex static user.
* Rejects with a descriptive error if the email already exists.
*/
export declare function createUser(email: string, password: string): Promise<UserResult>;
/**
* List all Dex static users (emails only — no password hashes).
*/
export declare function listUsers(): Promise<UserEntry[]>;
/**
* Delete a Dex static user by email.
* Rejects if the email is not found.
*/
export declare function deleteUser(email: string): Promise<UserResult>;
//# sourceMappingURL=user-management.d.ts.map