feat(cloud-console): add user authentication and administration

This commit is contained in:
2026-07-13 17:54:53 +08:00
parent 035b177128
commit cdef630e67
35 changed files with 4126 additions and 113 deletions
+34
View File
@@ -68,3 +68,37 @@ export interface PluginRegistrationPayload {
entry_point_kind: PluginEntryPointKind;
target: string;
}
export type UserRole = "viewer" | "operator" | "admin";
export interface CloudUser {
id: string;
username: string;
display_name: string;
role: UserRole;
enabled: boolean;
must_change_password: boolean;
scopes: string[];
created_at: string;
updated_at: string;
last_login_at: string | null;
}
export interface UserListResponse {
items: CloudUser[];
limit: number;
offset: number;
}
export interface UserCreatePayload {
username: string;
display_name: string;
role: UserRole;
password: string;
}
export interface UserUpdatePayload {
display_name?: string;
role?: UserRole;
enabled?: boolean;
}