/** * VibeControls Permission Constants * * All permission strings for VibeControls resources. * Use with fe-libs usePermissions hook: hasPermission(VIBE_PERMISSIONS.VIBE_CREATE) * * IMPORTANT — only strings present in the wspace-rbac-svc seed * (`prisma/seed-unified-rbac.ts` ACTION_DEFINITIONS) are ever returned by * `myPermissions`/`hasPermission`. Gating on a string the seed does NOT * define makes `hasPermission` return false for EVERYONE → a full lockout. * * Read/CRUD for catalog, component, template, ai-context, ai-prompt, * instruction-file and docs_site were seeded in the BOFF-2034 follow-up, so * their pages now gate on their own resource (no more `vibe:list` proxy). * The new resourceTypes added in that pass (scorecard, aitoolevent, * docs_page, docs_revision, docs_build_image) only reach ALREADY-EXISTING * workspaces after their cloned roles are re-synced — do NOT hard-gate a * page on those until the backfill has run, or pre-existing workspaces lock * out. * * Resource types: * - vibe: list, read, create, update, delete, scan, manage * - agent: list, read, create, update, delete, admin, mutate, invoke * - session: list, read, create, update, delete, execute * - note: list, read, create, update, delete * - webhook: list, read, create, update, delete * - action: list, read, create, update, delete, execute * - calendar-agent-task: list, read, create, update, delete, execute * - configuration: list, read, create, update, delete * - docs_site: list, read, create, update, delete, execute * - docs_page: list, read, create, update, delete * - target: list, read, create, update, delete * - tunnel: list, read, create, delete * - analytics: list, read * - log: list, read */ export declare const VIBE_PERMISSIONS: { readonly VIBE_LIST: "vibe:list"; readonly VIBE_READ: "vibe:read"; readonly VIBE_CREATE: "vibe:create"; readonly VIBE_UPDATE: "vibe:update"; readonly VIBE_DELETE: "vibe:delete"; readonly VIBE_SCAN: "vibe:scan"; readonly VIBE_MANAGE: "vibe:manage"; readonly AGENT_LIST: "agent:list"; readonly AGENT_READ: "agent:read"; readonly AGENT_CREATE: "agent:create"; readonly AGENT_UPDATE: "agent:update"; readonly AGENT_DELETE: "agent:delete"; readonly AGENT_ADMIN: "agent:admin"; readonly AGENT_MUTATE: "agent:mutate"; readonly AGENT_INVOKE: "agent:invoke"; readonly AGENT_MESSAGE_BOOKMARK_READ: "agent-message-bookmark:read"; readonly AGENT_MESSAGE_BOOKMARK_CREATE: "agent-message-bookmark:create"; readonly AGENT_MESSAGE_BOOKMARK_UPDATE: "agent-message-bookmark:update"; readonly AGENT_MESSAGE_BOOKMARK_DELETE: "agent-message-bookmark:delete"; readonly INTEGRATION_CONNECTION_READ: "integration-connection:read"; readonly SESSION_LIST: "session:list"; readonly SESSION_READ: "session:read"; readonly SESSION_CREATE: "session:create"; readonly SESSION_UPDATE: "session:update"; readonly SESSION_DELETE: "session:delete"; readonly SESSION_EXECUTE: "session:execute"; readonly SESSION_SHARE: "session:share"; readonly NOTE_LIST: "note:list"; readonly NOTE_READ: "note:read"; readonly NOTE_CREATE: "note:create"; readonly NOTE_UPDATE: "note:update"; readonly NOTE_DELETE: "note:delete"; readonly WEBHOOK_LIST: "webhook:list"; readonly WEBHOOK_READ: "webhook:read"; readonly WEBHOOK_CREATE: "webhook:create"; readonly WEBHOOK_UPDATE: "webhook:update"; readonly WEBHOOK_DELETE: "webhook:delete"; readonly WEBHOOK_EXECUTE: "webhook:execute"; readonly VIBEDECK_LIST: "vibedeck:list"; readonly VIBEDECK_READ: "vibedeck:read"; readonly VIBEDECK_CREATE: "vibedeck:create"; readonly VIBEDECK_UPDATE: "vibedeck:update"; readonly VIBEDECK_DELETE: "vibedeck:delete"; readonly VIBEDECK_EXECUTE: "vibedeck:execute"; readonly VIBEDECK_SHARE: "vibedeck:share"; readonly VIBEDECK_BUTTON_LIST: "vibedeck-button:list"; readonly VIBEDECK_BUTTON_READ: "vibedeck-button:read"; readonly VIBEDECK_BUTTON_CREATE: "vibedeck-button:create"; readonly VIBEDECK_BUTTON_UPDATE: "vibedeck-button:update"; readonly VIBEDECK_BUTTON_DELETE: "vibedeck-button:delete"; readonly VIBEDECK_BUTTON_EXECUTE: "vibedeck-button:execute"; readonly CALENDAR_AGENT_TASK_LIST: "calendar-agent-task:list"; readonly CALENDAR_AGENT_TASK_READ: "calendar-agent-task:read"; readonly CALENDAR_AGENT_TASK_CREATE: "calendar-agent-task:create"; readonly CALENDAR_AGENT_TASK_UPDATE: "calendar-agent-task:update"; readonly CALENDAR_AGENT_TASK_DELETE: "calendar-agent-task:delete"; readonly CALENDAR_AGENT_TASK_EXECUTE: "calendar-agent-task:execute"; readonly SCHEDULE_LIST: "schedule:list"; readonly SCHEDULE_READ: "schedule:read"; readonly SCHEDULE_EXECUTE: "schedule:execute"; readonly CONFIG_LIST: "configuration:list"; readonly CONFIG_READ: "configuration:read"; readonly CONFIG_CREATE: "configuration:create"; readonly CONFIG_UPDATE: "configuration:update"; readonly CONFIG_DELETE: "configuration:delete"; readonly DOCS_SITE_LIST: "docs_site:list"; readonly DOCS_SITE_READ: "docs_site:read"; readonly DOCS_SITE_CREATE: "docs_site:create"; readonly DOCS_SITE_UPDATE: "docs_site:update"; readonly DOCS_SITE_DELETE: "docs_site:delete"; readonly DOCS_COMPILE: "docs_site:execute"; readonly DOCS_PAGE_LIST: "docs_page:list"; readonly DOCS_PAGE_READ: "docs_page:read"; readonly DOCS_PAGE_CREATE: "docs_page:create"; readonly DOCS_PAGE_UPDATE: "docs_page:update"; readonly DOCS_PAGE_DELETE: "docs_page:delete"; readonly DOCS_SITE_SHARE: "docs_site:share"; readonly ACTION_LIST: "action:list"; readonly ACTION_READ: "action:read"; readonly ACTION_CREATE: "action:create"; readonly ACTION_UPDATE: "action:update"; readonly ACTION_DELETE: "action:delete"; readonly ACTION_EXECUTE: "action:execute"; readonly ACTION_SHARE: "action:share"; readonly AIPROMPT_READ: "ai-prompt:read"; readonly AIPROMPT_CREATE: "ai-prompt:create"; readonly AIPROMPT_UPDATE: "ai-prompt:update"; readonly AIPROMPT_DELETE: "ai-prompt:delete"; readonly AIPROMPT_SHARE: "ai-prompt:share"; readonly AICONTEXT_READ: "ai-context:read"; readonly AICONTEXT_CREATE: "ai-context:create"; readonly AICONTEXT_UPDATE: "ai-context:update"; readonly AICONTEXT_DELETE: "ai-context:delete"; readonly AICONTEXT_SHARE: "ai-context:share"; readonly INSTRUCTION_FILE_READ: "instruction-file:read"; readonly INSTRUCTION_FILE_CREATE: "instruction-file:create"; readonly INSTRUCTION_FILE_UPDATE: "instruction-file:update"; readonly INSTRUCTION_FILE_DELETE: "instruction-file:delete"; readonly INSTRUCTION_FILE_SHARE: "instruction-file:share"; readonly AUDIT_LIST: "audit:list"; readonly AUDIT_READ: "audit:read"; readonly AUDIT_EXPORT: "audit:export"; readonly TARGET_LIST: "target:list"; readonly TARGET_READ: "target:read"; readonly TARGET_CREATE: "target:create"; readonly TARGET_UPDATE: "target:update"; readonly TARGET_DELETE: "target:delete"; readonly TARGET_SHARE: "target:share"; readonly CATALOG_READ: "catalog:read"; readonly CATALOG_CREATE: "catalog:create"; readonly CATALOG_UPDATE: "catalog:update"; readonly CATALOG_DELETE: "catalog:delete"; readonly CATALOG_SHARE: "catalog:share"; readonly COMPONENT_READ: "component:read"; readonly COMPONENT_CREATE: "component:create"; readonly COMPONENT_UPDATE: "component:update"; readonly COMPONENT_DELETE: "component:delete"; readonly COMPONENT_SHARE: "component:share"; readonly TEMPLATE_READ: "template:read"; readonly TEMPLATE_CREATE: "template:create"; readonly TEMPLATE_UPDATE: "template:update"; readonly TEMPLATE_DELETE: "template:delete"; readonly TEMPLATE_SHARE: "template:share"; readonly SCORECARD_READ: "scorecard:read"; readonly SCORECARD_CREATE: "scorecard:create"; readonly SCORECARD_UPDATE: "scorecard:update"; readonly SCORECARD_DELETE: "scorecard:delete"; readonly SCORECARD_SHARE: "scorecard:share"; readonly TUNNEL_READ: "tunnel:read"; readonly TUNNEL_CREATE: "tunnel:create"; readonly TUNNEL_UPDATE: "tunnel:update"; readonly TUNNEL_DELETE: "tunnel:delete"; readonly TUNNEL_EXECUTE: "tunnel:execute"; readonly TUNNEL_SHARE: "tunnel:share"; readonly ANALYTICS_LIST: "analytics:list"; readonly ANALYTICS_READ: "analytics:read"; readonly LOG_LIST: "log:list"; readonly LOG_READ: "log:read"; }; export type VibePermission = (typeof VIBE_PERMISSIONS)[keyof typeof VIBE_PERMISSIONS];