feat: connect workspace access lifecycle to admin api

This commit is contained in:
a.tolmachev
2026-03-31 09:12:42 +03:00
parent 3065b3100b
commit cb23f1eb96
12 changed files with 551 additions and 31 deletions
+6
View File
@@ -124,6 +124,12 @@ impl From<RegistryError> for ApiError {
RegistryError::UserNotFound { user_id } => {
Self::not_found(format!("user {user_id} was not found"))
}
RegistryError::MembershipNotFound {
workspace_id,
user_id,
} => Self::not_found(format!(
"membership for user {user_id} in workspace {workspace_id} was not found"
)),
RegistryError::AgentNotFound { agent_id } => {
Self::not_found(format!("agent {agent_id} was not found"))
}