import type { Scope } from '@n8n/permissions'; /** * Diff between admin in personal project and admin in other projects: * - You cannot rename your personal project. * - You cannot invite people to your personal project. */ export const REGULAR_PROJECT_ADMIN_SCOPES: Scope[] = [ 'workflow:create', 'workflow:read', 'workflow:update', 'workflow:delete', 'workflow:list', 'workflow:execute', 'credential:create', 'credential:read', 'credential:update', 'credential:delete', 'credential:list', 'project:list', 'project:read', 'project:update', 'project:delete', ]; export const PERSONAL_PROJECT_OWNER_SCOPES: Scope[] = [ 'workflow:create', 'workflow:read', 'workflow:update', 'workflow:delete', 'workflow:list', 'workflow:execute', 'workflow:share', 'credential:create', 'credential:read', 'credential:update', 'credential:delete', 'credential:list', 'credential:share', 'project:list', 'project:read', ]; export const PROJECT_EDITOR_SCOPES: Scope[] = [ 'workflow:create', 'workflow:read', 'workflow:update', 'workflow:delete', 'workflow:list', 'workflow:execute', 'credential:create', 'credential:read', 'credential:update', 'credential:delete', 'credential:list', 'project:list', 'project:read', ];