Refactor permissions in various packages to standardize action names and resource types

- Updated action names from "moderate", "write", "configure", and "ban" to "manage", "update", and "execute" across multiple roles in the forum_forge, github_tools, irc_webchat, json_script_example, lua_test, media_center, nav_menu, package_validator, quick_guide, role_editor, schema_editor, screenshot_analyzer, smtp_config, social_hub, stats_grid, stream_cast, ui_auth, ui_footer, ui_header, ui_home, ui_intro, ui_level2, ui_level3, ui_level4, ui_level5, ui_level6, ui_login, ui_pages, and ui_permissions packages.

- Changed resource types from "content", "data", "ui", "config", and "external" to "custom", "entity", and "component" for better clarity and consistency.

- Adjusted actions in roles to reflect new naming conventions and improve readability.
This commit is contained in:
2026-01-02 20:02:43 +00:00
parent 6992c3a650
commit ee367920be
35 changed files with 195 additions and 195 deletions

View File

@@ -54,7 +54,7 @@
{
"id": "arcade_lobby",
"name": "Arcade Lobby",
"type": "ui",
"type": "component",
"description": "Main arcade lobby interface",
"actions": ["read"]
},

View File

@@ -18,7 +18,7 @@
"name": "Edit Code",
"description": "Edit code in editor",
"resource": "code_editor",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 5
},
@@ -27,7 +27,7 @@
"name": "Apply Editor Themes",
"description": "Apply and customize editor themes",
"resource": "code_editor",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 5
},
@@ -45,9 +45,9 @@
{
"id": "code_editor",
"name": "Code Editor",
"type": "ui",
"type": "component",
"description": "Code editor resources",
"actions": ["read", "write", "configure", "execute"]
"actions": ["read", "update", "manage", "execute"]
}
]
}

View File

@@ -45,7 +45,7 @@
"name": "Scaffold Packages",
"description": "Generate package scaffolding",
"resource": "codegen_packages",
"action": "scaffold",
"action": "create",
"scope": "global",
"minLevel": 5
}
@@ -54,23 +54,23 @@
{
"id": "codegen_templates",
"name": "Code Templates",
"type": "content",
"type": "file",
"description": "Code generation templates",
"actions": ["read", "create", "update", "delete"]
},
{
"id": "codegen_output",
"name": "Generated Output",
"type": "content",
"type": "file",
"description": "Generated code and files",
"actions": ["create", "read", "download"]
"actions": ["create", "read"]
},
{
"id": "codegen_packages",
"name": "Package Scaffolding",
"type": "content",
"type": "file",
"description": "MetaBuilder package scaffolding",
"actions": ["create", "scaffold", "read"]
"actions": ["create", "read"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Export Configuration Data",
"description": "Export configuration data from summaries",
"resource": "config_summary",
"action": "export",
"action": "read",
"scope": "global",
"minLevel": 4
},
@@ -27,7 +27,7 @@
"name": "Configure Summary Display",
"description": "Configure which data appears in configuration summaries",
"resource": "config_summary",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 5
}
@@ -36,9 +36,9 @@
{
"id": "config_summary",
"name": "Configuration Summary",
"type": "ui",
"type": "component",
"description": "Configuration summary panel resources",
"actions": ["read", "export", "configure"]
"actions": ["read", "manage"]
}
]
}

View File

@@ -27,7 +27,7 @@
"name": "Export CSS/SCSS",
"description": "Export theme to CSS or SCSS files",
"resource": "css_designer",
"action": "export",
"action": "read",
"scope": "global",
"minLevel": 2
},
@@ -45,9 +45,9 @@
{
"id": "css_designer",
"name": "CSS Designer",
"type": "ui",
"type": "component",
"description": "CSS Designer resources for theme editing and export",
"actions": ["read", "update", "export", "manage"]
"actions": ["read", "update", "manage"]
}
]
}

View File

@@ -28,7 +28,7 @@
"name": "Write KV Store",
"description": "Write to key-value store",
"resource": "kv_store",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 3,
"featureFlags": ["kv_store_enabled"]
@@ -58,7 +58,7 @@
"name": "Write Blob Storage",
"description": "Upload files to blob storage",
"resource": "blob_storage",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 4,
"featureFlags": ["blob_storage_enabled"]
@@ -87,7 +87,7 @@
"name": "Write Cache",
"description": "Write to cache",
"resource": "cached_data",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 3
},
@@ -105,30 +105,30 @@
{
"id": "dbal_demo",
"name": "DBAL Demo",
"type": "ui",
"type": "component",
"description": "DBAL demo interface",
"actions": ["read"]
},
{
"id": "kv_store",
"name": "Key-Value Store",
"type": "data",
"type": "entity",
"description": "Key-value storage operations",
"actions": ["read", "write", "delete"]
"actions": ["read", "update", "delete"]
},
{
"id": "blob_storage",
"name": "Blob Storage",
"type": "data",
"type": "entity",
"description": "Binary large object storage operations",
"actions": ["read", "write", "delete"]
"actions": ["read", "update", "delete"]
},
{
"id": "cached_data",
"name": "Cached Data",
"type": "data",
"type": "entity",
"description": "Cache storage operations",
"actions": ["read", "write", "delete"]
"actions": ["read", "update", "delete"]
}
]
}

View File

@@ -36,7 +36,7 @@
"name": "Moderate Forum",
"description": "Moderate forum content including flagging, editing, and removing posts",
"resource": "forum",
"action": "moderate",
"action": "manage",
"scope": "global",
"minLevel": 3
},
@@ -54,28 +54,28 @@
{
"id": "forum",
"name": "Forum",
"type": "content",
"type": "custom",
"description": "Forum resources including categories, threads, and posts",
"actions": ["read", "moderate"]
"actions": ["read", "manage"]
},
{
"id": "forum.thread",
"name": "Forum Thread",
"type": "content",
"type": "custom",
"description": "Forum thread resources",
"actions": ["create", "read", "update", "delete"]
},
{
"id": "forum.post",
"name": "Forum Post",
"type": "content",
"type": "custom",
"description": "Forum post/reply resources",
"actions": ["create", "read", "update", "delete"]
},
{
"id": "forum.category",
"name": "Forum Category",
"type": "config",
"type": "custom",
"description": "Forum category configuration",
"actions": ["manage", "read"]
}

View File

@@ -18,7 +18,7 @@
"name": "Analyze GitHub Actions Runs",
"description": "Analyze GitHub Actions run statistics",
"resource": "github_runs",
"action": "analyze",
"action": "read",
"scope": "global",
"minLevel": 2
},
@@ -45,7 +45,7 @@
"name": "Manage GitHub Configuration",
"description": "Configure GitHub repository settings and tokens",
"resource": "github_config",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 3
}
@@ -54,30 +54,30 @@
{
"id": "github_runs",
"name": "GitHub Workflow Runs",
"type": "external",
"type": "api",
"description": "GitHub Actions workflow runs",
"actions": ["read", "analyze"]
"actions": ["read"]
},
{
"id": "github_workflow",
"name": "GitHub Workflows",
"type": "external",
"type": "api",
"description": "GitHub Actions workflow definitions",
"actions": ["read", "execute"]
},
{
"id": "github_logs",
"name": "GitHub Job Logs",
"type": "external",
"type": "api",
"description": "GitHub Actions job logs",
"actions": ["read"]
},
{
"id": "github_config",
"name": "GitHub Configuration",
"type": "config",
"type": "custom",
"description": "GitHub integration configuration",
"actions": ["read", "write"]
"actions": ["read", "update"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Join IRC Channels",
"description": "Join IRC channels",
"resource": "irc_channel",
"action": "join",
"action": "execute",
"scope": "global",
"minLevel": 2
},
@@ -45,7 +45,7 @@
"name": "Moderate IRC Channels",
"description": "Moderate IRC channels (kick, ban, mute users)",
"resource": "irc_channel",
"action": "moderate",
"action": "manage",
"scope": "channel",
"minLevel": 3
},
@@ -63,21 +63,21 @@
{
"id": "irc_channel",
"name": "IRC Channel",
"type": "entity",
"type": "custom",
"description": "IRC chat channel",
"actions": ["read", "join", "create", "moderate", "delete"]
"actions": ["read", "execute", "create", "manage", "delete"]
},
{
"id": "irc_message",
"name": "IRC Message",
"type": "entity",
"type": "custom",
"description": "IRC chat message",
"actions": ["read", "create", "delete"]
},
{
"id": "irc_membership",
"name": "IRC Membership",
"type": "entity",
"type": "custom",
"description": "IRC channel membership",
"actions": ["read", "create", "delete"]
}

View File

@@ -27,7 +27,7 @@
"name": "Modify Examples",
"description": "Modify and experiment with JSON script examples",
"resource": "json_script_example",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 2
}
@@ -36,9 +36,9 @@
{
"id": "json_script_example",
"name": "JSON Script Example",
"type": "package",
"type": "component",
"description": "JSON script example and demonstration resources",
"actions": ["read", "execute", "write"]
"actions": ["read", "execute", "update"]
}
]
}

View File

@@ -27,7 +27,7 @@
"name": "Configure Test Runner",
"description": "Configure test runner settings and filters",
"resource": "lua_test",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 4
},
@@ -36,7 +36,7 @@
"name": "Debug Tests",
"description": "Access detailed debug output and error traces",
"resource": "lua_test",
"action": "debug",
"action": "execute",
"scope": "global",
"minLevel": 4
}
@@ -45,9 +45,9 @@
{
"id": "lua_test",
"name": "Lua Test Framework",
"type": "tool",
"type": "function",
"description": "Lua unit testing framework resources",
"actions": ["read", "execute", "configure", "debug"]
"actions": ["read", "execute", "manage"]
}
]
}

View File

@@ -54,7 +54,7 @@
"name": "Manage Radio Channels",
"description": "Create and edit radio channels",
"resource": "radio",
"action": "write",
"action": "update",
"scope": "tenant",
"minLevel": 3
},
@@ -72,7 +72,7 @@
"name": "Manage TV Channels",
"description": "Create and edit TV channels",
"resource": "tv",
"action": "write",
"action": "update",
"scope": "tenant",
"minLevel": 3
},
@@ -81,7 +81,7 @@
"name": "Manage TV Schedule",
"description": "Manage TV broadcast schedule",
"resource": "tv_schedule",
"action": "write",
"action": "update",
"scope": "tenant",
"minLevel": 3
},
@@ -99,7 +99,7 @@
"name": "Stream Retro Gameplay",
"description": "Stream retro gameplay to others",
"resource": "retro",
"action": "stream",
"action": "execute",
"scope": "tenant",
"minLevel": 3
},
@@ -117,42 +117,42 @@
{
"id": "media_jobs",
"name": "Media Jobs",
"type": "data",
"type": "entity",
"description": "Media processing job queue",
"actions": ["create", "read", "delete"]
},
{
"id": "radio",
"name": "Radio",
"type": "media",
"type": "custom",
"description": "Radio streaming resources",
"actions": ["read", "write"]
"actions": ["read", "update"]
},
{
"id": "tv",
"name": "TV",
"type": "media",
"type": "custom",
"description": "TV streaming resources",
"actions": ["read", "write"]
"actions": ["read", "update"]
},
{
"id": "tv_schedule",
"name": "TV Schedule",
"type": "data",
"type": "entity",
"description": "TV broadcast scheduling",
"actions": ["read", "write"]
"actions": ["read", "update"]
},
{
"id": "retro",
"name": "Retro Gaming",
"type": "media",
"type": "custom",
"description": "Retro gaming emulation",
"actions": ["execute", "stream"]
"actions": ["execute"]
},
{
"id": "retro_cores",
"name": "Emulator Cores",
"type": "system",
"type": "custom",
"description": "Emulator core management",
"actions": ["admin"]
}

View File

@@ -18,7 +18,7 @@
"name": "Configure Navigation Menu",
"description": "Configure navigation menus and menu items",
"resource": "navigation",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 4
},
@@ -36,7 +36,7 @@
"name": "Configure Sidebar",
"description": "Configure sidebar items and layout",
"resource": "sidebar",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 4
},
@@ -54,21 +54,21 @@
{
"id": "navigation",
"name": "Navigation Menu",
"type": "ui",
"type": "component",
"description": "Horizontal navigation menu resources",
"actions": ["read", "configure"]
"actions": ["read", "manage"]
},
{
"id": "sidebar",
"name": "Sidebar",
"type": "ui",
"type": "component",
"description": "Sidebar navigation resources",
"actions": ["read", "configure"]
"actions": ["read", "manage"]
},
{
"id": "breadcrumbs",
"name": "Breadcrumbs",
"type": "ui",
"type": "component",
"description": "Breadcrumb navigation resources",
"actions": ["read"]
}

View File

@@ -27,7 +27,7 @@
"name": "List Directories",
"description": "List directory contents to discover package files",
"resource": "filesystem",
"action": "list",
"action": "read",
"scope": "global",
"minLevel": 5
},
@@ -36,7 +36,7 @@
"name": "File Metadata",
"description": "Get file metadata (size, type, timestamps)",
"resource": "filesystem",
"action": "stat",
"action": "read",
"scope": "global",
"minLevel": 5
},
@@ -55,7 +55,7 @@
"name": "Validate Metadata",
"description": "Validate metadata.json structure",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -64,7 +64,7 @@
"name": "Validate Scripts",
"description": "Validate JSON script files",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -73,7 +73,7 @@
"name": "Validate Types",
"description": "Validate type definitions",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -82,7 +82,7 @@
"name": "Validate Components",
"description": "Validate component definitions",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -91,7 +91,7 @@
"name": "Validate Tests",
"description": "Validate test files",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -100,7 +100,7 @@
"name": "Validate Storybook",
"description": "Validate storybook configuration",
"resource": "package_validator",
"action": "validate",
"action": "execute",
"scope": "global",
"minLevel": 5
}
@@ -109,21 +109,21 @@
{
"id": "package_validator",
"name": "Package Validator",
"type": "tool",
"type": "function",
"description": "Package validation tool resources",
"actions": ["execute", "validate"]
"actions": ["execute"]
},
{
"id": "filesystem",
"name": "File System",
"type": "system",
"type": "file",
"description": "File system access for validation",
"actions": ["read", "list", "stat"]
"actions": ["read"]
},
{
"id": "external",
"name": "External Dependencies",
"type": "system",
"type": "custom",
"description": "External library access",
"actions": ["execute"]
}

View File

@@ -45,7 +45,7 @@
{
"id": "quick_guide",
"name": "Quick Guide",
"type": "content",
"type": "entity",
"description": "Quick guide resources for step-by-step instructions",
"actions": ["read", "create", "update", "delete"]
}

View File

@@ -36,7 +36,7 @@
"name": "Assign Roles",
"description": "Assign roles to users",
"resource": "role",
"action": "assign",
"action": "manage",
"scope": "global",
"minLevel": 4
},
@@ -56,7 +56,7 @@
"name": "Role",
"type": "entity",
"description": "User role resources",
"actions": ["read", "create", "update", "assign", "delete"]
"actions": ["read", "create", "update", "manage", "delete"]
}
],
"roleDefinitions": {

View File

@@ -45,7 +45,7 @@
"name": "Run Migrations",
"description": "Run schema migrations to apply changes",
"resource": "schema",
"action": "migrate",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -54,7 +54,7 @@
"name": "Export Schemas",
"description": "Export schema definitions to SQL or other formats",
"resource": "schema",
"action": "export",
"action": "read",
"scope": "global",
"minLevel": 5
}
@@ -63,21 +63,21 @@
{
"id": "schema",
"name": "Database Schema",
"type": "data",
"type": "entity",
"description": "Database schema definitions including tables, fields, and relations",
"actions": ["read", "create", "update", "delete", "migrate", "export"]
"actions": ["read", "create", "update", "delete", "execute"]
},
{
"id": "table",
"name": "Database Table",
"type": "data",
"type": "entity",
"description": "Individual database table definitions",
"actions": ["read", "create", "update", "delete"]
},
{
"id": "field",
"name": "Table Field",
"type": "data",
"type": "entity",
"description": "Individual table field/column definitions",
"actions": ["read", "create", "update", "delete"]
}

View File

@@ -9,7 +9,7 @@
"name": "Upload Screenshots",
"description": "Upload screenshots for analysis",
"resource": "screenshot",
"action": "upload",
"action": "create",
"scope": "global",
"minLevel": 5
},
@@ -18,7 +18,7 @@
"name": "Analyze Screenshots",
"description": "Analyze screenshots and page content",
"resource": "screenshot",
"action": "analyze",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -27,7 +27,7 @@
"name": "Capture Screenshots",
"description": "Capture screenshots of the current page",
"resource": "screenshot",
"action": "capture",
"action": "execute",
"scope": "global",
"minLevel": 5
},
@@ -36,7 +36,7 @@
"name": "Download Screenshots",
"description": "Download captured screenshots",
"resource": "screenshot",
"action": "download",
"action": "read",
"scope": "global",
"minLevel": 5
},
@@ -54,9 +54,9 @@
{
"id": "screenshot",
"name": "Screenshot",
"type": "browser",
"type": "custom",
"description": "Screenshot capture and analysis resources",
"actions": ["upload", "analyze", "capture", "download", "read"]
"actions": ["create", "execute", "read"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Edit SMTP Configuration",
"description": "Edit SMTP configuration settings",
"resource": "smtp_config",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 5
},
@@ -36,9 +36,9 @@
{
"id": "smtp_config",
"name": "SMTP Configuration",
"type": "config",
"type": "entity",
"description": "SMTP email server configuration",
"actions": ["read", "write", "execute"]
"actions": ["read", "update", "execute"]
}
]
}

View File

@@ -45,7 +45,7 @@
"name": "Moderate Content",
"description": "Moderate social content",
"resource": "social_feed",
"action": "moderate",
"action": "manage",
"scope": "global",
"minLevel": 3
}
@@ -54,14 +54,14 @@
{
"id": "social_feed",
"name": "Social Feed",
"type": "ui",
"type": "component",
"description": "Social feed resources",
"actions": ["read", "moderate"]
"actions": ["read", "manage"]
},
{
"id": "social_post",
"name": "Social Post",
"type": "data",
"type": "entity",
"description": "Individual social post resources",
"actions": ["create", "read", "update", "delete"]
}

View File

@@ -18,7 +18,7 @@
"name": "Configure Stats Grid",
"description": "Configure statistics grids layout and settings",
"resource": "stats_grid",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 3
},
@@ -45,9 +45,9 @@
{
"id": "stats_grid",
"name": "Stats Grid",
"type": "ui",
"type": "component",
"description": "Statistics grid resources",
"actions": ["read", "configure", "create", "delete"]
"actions": ["read", "manage", "create", "delete"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Start Broadcast",
"description": "Start live broadcast",
"resource": "stream",
"action": "broadcast",
"action": "execute",
"scope": "global",
"minLevel": 3
},
@@ -54,7 +54,7 @@
"name": "Moderate Stream",
"description": "Use moderation controls during live streams",
"resource": "stream",
"action": "moderate",
"action": "manage",
"scope": "global",
"minLevel": 3
}
@@ -63,21 +63,21 @@
{
"id": "stream",
"name": "Stream",
"type": "media",
"type": "custom",
"description": "Live stream resources",
"actions": ["read", "create", "broadcast", "moderate"]
"actions": ["read", "create", "execute", "manage"]
},
{
"id": "scene",
"name": "Scene",
"type": "media",
"type": "custom",
"description": "Stream scene resources",
"actions": ["read", "create", "manage", "delete"]
},
{
"id": "schedule",
"name": "Schedule",
"type": "media",
"type": "custom",
"description": "Stream schedule resources",
"actions": ["read", "create", "manage", "delete"]
}

View File

@@ -9,7 +9,7 @@
"name": "Access Auth-Gated Content",
"description": "Access content protected by auth gates",
"resource": "auth_gate",
"action": "access",
"action": "read",
"scope": "global",
"minLevel": 2
},
@@ -18,7 +18,7 @@
"name": "Bypass Auth Gate",
"description": "Bypass authentication requirements (admin only)",
"resource": "auth_gate",
"action": "bypass",
"action": "admin",
"scope": "global",
"minLevel": 4
},
@@ -36,7 +36,7 @@
"name": "Configure Page Loader",
"description": "Configure page loader appearance",
"resource": "page_loader",
"action": "configure",
"action": "update",
"scope": "global",
"minLevel": 3
}
@@ -45,23 +45,23 @@
{
"id": "auth_gate",
"name": "Auth Gate",
"type": "security",
"type": "custom",
"description": "Authentication gate wrapper",
"actions": ["access", "bypass"]
"actions": ["read", "admin"]
},
{
"id": "access_denied",
"name": "Access Denied",
"type": "ui",
"type": "component",
"description": "Access denied page component",
"actions": ["read"]
},
{
"id": "page_loader",
"name": "Page Loader",
"type": "ui",
"type": "component",
"description": "Page loading component",
"actions": ["read", "configure"]
"actions": ["read", "update"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Configure Footer",
"description": "Configure footer content and links",
"resource": "footer",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 3
},
@@ -36,9 +36,9 @@
{
"id": "footer",
"name": "Footer",
"type": "ui",
"type": "component",
"description": "Application footer resources",
"actions": ["read", "configure", "update"]
"actions": ["read", "manage", "update"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Access User Menu",
"description": "Access user dropdown menu in header",
"resource": "header",
"action": "interact",
"action": "execute",
"scope": "global",
"minLevel": 2
},
@@ -36,7 +36,7 @@
"name": "Toggle Theme",
"description": "Toggle light/dark theme from header",
"resource": "header",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 1
}
@@ -45,9 +45,9 @@
{
"id": "header",
"name": "Header",
"type": "ui",
"type": "component",
"description": "Application header resources",
"actions": ["read", "interact", "admin", "configure"]
"actions": ["read", "execute", "admin", "manage"]
}
]
}

View File

@@ -36,7 +36,7 @@
"name": "Navigate to Level 2",
"description": "Navigate to authenticated user area",
"resource": "home",
"action": "navigate",
"action": "execute",
"scope": "global",
"minLevel": 2
},
@@ -45,7 +45,7 @@
"name": "Navigate to Level 3",
"description": "Navigate to moderator panel",
"resource": "home",
"action": "navigate",
"action": "execute",
"scope": "global",
"minLevel": 3
}
@@ -54,9 +54,9 @@
{
"id": "home",
"name": "Home Page",
"type": "ui",
"type": "component",
"description": "Home page resources",
"actions": ["read", "create", "navigate"]
"actions": ["read", "create", "execute"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Configure Intro Sections",
"description": "Configure intro section content and layout",
"resource": "intro",
"action": "configure",
"action": "manage",
"scope": "global",
"minLevel": 2
},
@@ -36,9 +36,9 @@
{
"id": "intro",
"name": "Intro Section",
"type": "ui",
"type": "component",
"description": "Page intro section resources",
"actions": ["read", "configure", "create"]
"actions": ["read", "manage", "create"]
}
]
}

View File

@@ -90,28 +90,28 @@
{
"id": "level2",
"name": "Level 2 Dashboard",
"type": "ui",
"type": "component",
"description": "Level 2 user dashboard resources",
"actions": ["read"]
},
{
"id": "level2.profile",
"name": "User Profile",
"type": "data",
"type": "entity",
"description": "User profile data",
"actions": ["read", "update"]
},
{
"id": "level2.comments",
"name": "User Comments",
"type": "data",
"type": "entity",
"description": "User comments",
"actions": ["read", "create", "update", "delete"]
},
{
"id": "level2.chat",
"name": "Chat",
"type": "feature",
"type": "custom",
"description": "Real-time chat feature",
"actions": ["read", "create"]
}

View File

@@ -45,7 +45,7 @@
"name": "Ban Users",
"description": "Ban users from the platform",
"resource": "level3.users",
"action": "ban",
"action": "manage",
"scope": "global",
"minLevel": 3
},
@@ -72,7 +72,7 @@
"name": "Moderate Content",
"description": "Moderate content",
"resource": "level3.content",
"action": "moderate",
"action": "manage",
"scope": "global",
"minLevel": 3
},
@@ -90,30 +90,30 @@
{
"id": "level3",
"name": "Moderator Panel",
"type": "ui",
"type": "component",
"description": "Level 3 moderator panel resources",
"actions": ["read"]
},
{
"id": "level3.users",
"name": "User Management",
"type": "data",
"type": "entity",
"description": "User management resources",
"actions": ["read", "update", "delete", "ban"]
"actions": ["read", "update", "delete", "manage"]
},
{
"id": "level3.reports",
"name": "Reports",
"type": "data",
"type": "entity",
"description": "User-submitted reports",
"actions": ["read", "update"]
},
{
"id": "level3.content",
"name": "Content",
"type": "data",
"type": "entity",
"description": "User-generated content",
"actions": ["moderate", "delete"]
"actions": ["manage", "delete"]
}
]
}

View File

@@ -18,7 +18,7 @@
"name": "Edit System Settings",
"description": "Edit system settings in the admin panel",
"resource": "level4.settings",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 4
},
@@ -36,7 +36,7 @@
"name": "Ban Users",
"description": "Ban or suspend user accounts",
"resource": "level4.users",
"action": "ban",
"action": "manage",
"scope": "global",
"minLevel": 4
},
@@ -45,7 +45,7 @@
"name": "Edit Schemas",
"description": "Create and modify schemas",
"resource": "level4.schemas",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 4
},
@@ -54,7 +54,7 @@
"name": "Edit Workflows",
"description": "Create and modify workflows",
"resource": "level4.workflows",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 4
},
@@ -72,7 +72,7 @@
"name": "Edit Lua Scripts",
"description": "Create and modify Lua scripts",
"resource": "level4.lua",
"action": "write",
"action": "update",
"scope": "global",
"minLevel": 4
}
@@ -81,44 +81,44 @@
{
"id": "level4",
"name": "Admin Panel",
"type": "ui",
"type": "component",
"description": "Level 4 Admin Panel",
"actions": ["read"]
},
{
"id": "level4.settings",
"name": "System Settings",
"type": "config",
"type": "custom",
"description": "System configuration settings",
"actions": ["read", "write"]
"actions": ["read", "update"]
},
{
"id": "level4.users",
"name": "User Management",
"type": "entity",
"description": "User accounts and permissions",
"actions": ["read", "write", "manage", "ban"]
"actions": ["read", "update", "manage"]
},
{
"id": "level4.schemas",
"name": "Schemas",
"type": "config",
"type": "custom",
"description": "Schema definitions",
"actions": ["read", "write"]
"actions": ["read", "update"]
},
{
"id": "level4.workflows",
"name": "Workflows",
"type": "automation",
"type": "function",
"description": "Workflow definitions and execution",
"actions": ["read", "write", "execute"]
"actions": ["read", "update", "execute"]
},
{
"id": "level4.lua",
"name": "Lua Scripts",
"type": "code",
"type": "function",
"description": "Lua script definitions",
"actions": ["read", "write", "execute"]
"actions": ["read", "update", "execute"]
}
]
}

View File

@@ -108,49 +108,49 @@
{
"id": "level5",
"name": "Level 5 Panel",
"type": "ui",
"type": "component",
"description": "God panel interface",
"actions": ["read"]
},
{
"id": "schemas",
"name": "Database Schemas",
"type": "data",
"type": "entity",
"description": "Database schema definitions",
"actions": ["read", "manage"]
},
{
"id": "workflows",
"name": "Workflows",
"type": "data",
"type": "entity",
"description": "Workflow definitions",
"actions": ["read", "manage"]
},
{
"id": "packages",
"name": "Packages",
"type": "data",
"type": "entity",
"description": "Package management",
"actions": ["read", "manage"]
},
{
"id": "tenants",
"name": "Tenants",
"type": "data",
"type": "entity",
"description": "Tenant entities",
"actions": ["read", "create", "update", "delete"]
},
{
"id": "gods",
"name": "God Users",
"type": "data",
"type": "entity",
"description": "Users with elevated privileges",
"actions": ["read", "create"]
},
{
"id": "transfer",
"name": "Data Transfer",
"type": "operation",
"type": "custom",
"description": "Cross-tenant data transfer operations",
"actions": ["create", "execute"]
}

View File

@@ -45,7 +45,7 @@
"name": "Transfer Ownership",
"description": "Transfer ownership",
"resource": "ownership",
"action": "transfer",
"action": "manage",
"scope": "global",
"minLevel": 6
},
@@ -63,28 +63,28 @@
{
"id": "level6",
"name": "Level 6 Panel",
"type": "ui",
"type": "component",
"description": "Supergod panel resources",
"actions": ["read"]
},
{
"id": "tenants",
"name": "Tenants",
"type": "data",
"type": "entity",
"description": "Tenant management resources",
"actions": ["create", "read", "update", "delete"]
},
{
"id": "ownership",
"name": "Ownership",
"type": "action",
"type": "custom",
"description": "Ownership transfer resources",
"actions": ["transfer"]
"actions": ["manage"]
},
{
"id": "system",
"name": "System",
"type": "admin",
"type": "custom",
"description": "System administration resources",
"actions": ["admin", "read"]
}

View File

@@ -18,7 +18,7 @@
"name": "Submit Login",
"description": "Submit login credentials",
"resource": "login",
"action": "submit",
"action": "execute",
"scope": "global",
"minLevel": 1
},
@@ -36,7 +36,7 @@
"name": "Submit Registration",
"description": "Submit registration form",
"resource": "register",
"action": "submit",
"action": "execute",
"scope": "global",
"minLevel": 1
},
@@ -45,7 +45,7 @@
"name": "Request Password Reset",
"description": "Request password reset email",
"resource": "password",
"action": "reset",
"action": "execute",
"scope": "global",
"minLevel": 1
}
@@ -54,23 +54,23 @@
{
"id": "login",
"name": "Login",
"type": "ui",
"type": "component",
"description": "Login page and authentication",
"actions": ["read", "submit"]
"actions": ["read", "execute"]
},
{
"id": "register",
"name": "Register",
"type": "ui",
"type": "component",
"description": "User registration",
"actions": ["read", "submit"]
"actions": ["read", "execute"]
},
{
"id": "password",
"name": "Password",
"type": "auth",
"type": "custom",
"description": "Password management",
"actions": ["reset"]
"actions": ["execute"]
}
]
}

View File

@@ -90,7 +90,7 @@
{
"id": "pages",
"name": "UI Pages",
"type": "ui",
"type": "component",
"description": "UI page resources",
"actions": ["read", "create", "delete"]
}

View File

@@ -27,7 +27,7 @@
"name": "Assign Permission Levels",
"description": "Assign permission levels to users",
"resource": "permissions",
"action": "write",
"action": "update",
"scope": "tenant",
"minLevel": 4
},
@@ -45,9 +45,9 @@
{
"id": "permissions",
"name": "Permissions",
"type": "system",
"type": "custom",
"description": "Permission system resources",
"actions": ["read", "write", "admin"]
"actions": ["read", "update", "admin"]
}
],
"levels": [