feat(admin, i18n): implement user deletion functionality and enhance permission management translations

Added a new API function to delete admin users, improving user management capabilities. Updated the admin permission package selector to include new permission levels for nodes, roles, and users. Enhanced multi-language support by adding translations for these new permission levels in English, Nepali, and Chinese. Additionally, improved the agents console to handle deletion confirmations and display relevant block reasons, ensuring a smoother user experience.
This commit is contained in:
2026-06-03 10:56:44 +08:00
parent ce27a3ec8a
commit bbb6f28459
12 changed files with 249 additions and 57 deletions

View File

@@ -94,6 +94,14 @@ export async function putAgentAdminUserRoles(
);
}
export async function deleteAgentAdminUser(
adminUserId: number,
): Promise<{ deleted: boolean; id: number }> {
return adminRequest.delete<{ deleted: boolean; id: number }>(
`${A}/agent-admin-users/${adminUserId}`,
);
}
export async function getAgentDelegationGrants(
agentNodeId: number,
): Promise<AgentDelegationGrantsData> {