feat: add 'agent' to API key role options #4

Merged
hzhang merged 1 commits from feat/agent-role into main 2026-05-17 14:10:05 +00:00
Showing only changes of commit 40f051bc77 - Show all commits

View File

@@ -12,7 +12,7 @@ import { Button } from '../ui/button';
import { Input, Label } from '../ui/input';
// Must match the backend allowlist (admin|creator|user).
const AVAILABLE_ROLES = ['user', 'creator', 'admin'];
const AVAILABLE_ROLES = ['user', 'creator', 'agent', 'admin'];
const SELECT_CLASS =
"flex h-9 w-full rounded-md border border-input bg-background/60 px-3 py-1 text-sm text-foreground transition-colors focus-visible:outline-none focus-visible:border-primary/60 focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50";