From ee367920bed3225badb8dded7a193ddfc43c8ad9 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Fri, 2 Jan 2026 20:02:43 +0000 Subject: [PATCH] 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. --- packages/arcade_lobby/permissions/roles.json | 2 +- packages/code_editor/permissions/roles.json | 8 ++--- .../codegen_studio/permissions/roles.json | 12 ++++---- .../config_summary/permissions/roles.json | 8 ++--- packages/css_designer/permissions/roles.json | 6 ++-- packages/dbal_demo/permissions/roles.json | 20 ++++++------- packages/forum_forge/permissions/roles.json | 12 ++++---- packages/github_tools/permissions/roles.json | 16 +++++----- packages/irc_webchat/permissions/roles.json | 12 ++++---- .../permissions/roles.json | 6 ++-- packages/lua_test/permissions/roles.json | 8 ++--- packages/media_center/permissions/roles.json | 28 ++++++++--------- packages/nav_menu/permissions/roles.json | 14 ++++----- .../package_validator/permissions/roles.json | 26 ++++++++-------- packages/quick_guide/permissions/roles.json | 2 +- packages/role_editor/permissions/roles.json | 4 +-- packages/schema_editor/permissions/roles.json | 12 ++++---- .../permissions/roles.json | 12 ++++---- packages/smtp_config/permissions/roles.json | 6 ++-- packages/social_hub/permissions/roles.json | 8 ++--- packages/stats_grid/permissions/roles.json | 6 ++-- packages/stream_cast/permissions/roles.json | 12 ++++---- packages/ui_auth/permissions/roles.json | 16 +++++----- packages/ui_footer/permissions/roles.json | 6 ++-- packages/ui_header/permissions/roles.json | 8 ++--- packages/ui_home/permissions/roles.json | 8 ++--- packages/ui_intro/permissions/roles.json | 6 ++-- packages/ui_level2/permissions/roles.json | 8 ++--- packages/ui_level3/permissions/roles.json | 16 +++++----- packages/ui_level4/permissions/roles.json | 30 +++++++++---------- packages/ui_level5/permissions/roles.json | 14 ++++----- packages/ui_level6/permissions/roles.json | 12 ++++---- packages/ui_login/permissions/roles.json | 18 +++++------ packages/ui_pages/permissions/roles.json | 2 +- .../ui_permissions/permissions/roles.json | 6 ++-- 35 files changed, 195 insertions(+), 195 deletions(-) diff --git a/packages/arcade_lobby/permissions/roles.json b/packages/arcade_lobby/permissions/roles.json index 4c90edacf..4d1787f5d 100644 --- a/packages/arcade_lobby/permissions/roles.json +++ b/packages/arcade_lobby/permissions/roles.json @@ -54,7 +54,7 @@ { "id": "arcade_lobby", "name": "Arcade Lobby", - "type": "ui", + "type": "component", "description": "Main arcade lobby interface", "actions": ["read"] }, diff --git a/packages/code_editor/permissions/roles.json b/packages/code_editor/permissions/roles.json index 6610a071f..01759c904 100644 --- a/packages/code_editor/permissions/roles.json +++ b/packages/code_editor/permissions/roles.json @@ -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"] } ] } diff --git a/packages/codegen_studio/permissions/roles.json b/packages/codegen_studio/permissions/roles.json index 86590f58a..ee1a90be5 100644 --- a/packages/codegen_studio/permissions/roles.json +++ b/packages/codegen_studio/permissions/roles.json @@ -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"] } ] } diff --git a/packages/config_summary/permissions/roles.json b/packages/config_summary/permissions/roles.json index 7ce897e5b..f9b302803 100644 --- a/packages/config_summary/permissions/roles.json +++ b/packages/config_summary/permissions/roles.json @@ -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"] } ] } diff --git a/packages/css_designer/permissions/roles.json b/packages/css_designer/permissions/roles.json index 09eed8a56..e5ed4bb6f 100644 --- a/packages/css_designer/permissions/roles.json +++ b/packages/css_designer/permissions/roles.json @@ -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"] } ] } diff --git a/packages/dbal_demo/permissions/roles.json b/packages/dbal_demo/permissions/roles.json index 21aeb2d98..bfd515cbb 100644 --- a/packages/dbal_demo/permissions/roles.json +++ b/packages/dbal_demo/permissions/roles.json @@ -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"] } ] } diff --git a/packages/forum_forge/permissions/roles.json b/packages/forum_forge/permissions/roles.json index 0706b04ac..cb1dc4a96 100644 --- a/packages/forum_forge/permissions/roles.json +++ b/packages/forum_forge/permissions/roles.json @@ -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"] } diff --git a/packages/github_tools/permissions/roles.json b/packages/github_tools/permissions/roles.json index b4d30150b..0bb86b0da 100644 --- a/packages/github_tools/permissions/roles.json +++ b/packages/github_tools/permissions/roles.json @@ -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"] } ] } diff --git a/packages/irc_webchat/permissions/roles.json b/packages/irc_webchat/permissions/roles.json index 86a59eb63..70259d44b 100644 --- a/packages/irc_webchat/permissions/roles.json +++ b/packages/irc_webchat/permissions/roles.json @@ -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"] } diff --git a/packages/json_script_example/permissions/roles.json b/packages/json_script_example/permissions/roles.json index 949431b08..63a62c6af 100644 --- a/packages/json_script_example/permissions/roles.json +++ b/packages/json_script_example/permissions/roles.json @@ -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"] } ] } diff --git a/packages/lua_test/permissions/roles.json b/packages/lua_test/permissions/roles.json index 5ae227ea3..69bb89377 100644 --- a/packages/lua_test/permissions/roles.json +++ b/packages/lua_test/permissions/roles.json @@ -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"] } ] } diff --git a/packages/media_center/permissions/roles.json b/packages/media_center/permissions/roles.json index 33ebb9ba9..21cfa299b 100644 --- a/packages/media_center/permissions/roles.json +++ b/packages/media_center/permissions/roles.json @@ -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"] } diff --git a/packages/nav_menu/permissions/roles.json b/packages/nav_menu/permissions/roles.json index f40b280e9..a5c60c8c6 100644 --- a/packages/nav_menu/permissions/roles.json +++ b/packages/nav_menu/permissions/roles.json @@ -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"] } diff --git a/packages/package_validator/permissions/roles.json b/packages/package_validator/permissions/roles.json index d4fc04a93..9c5a498a0 100644 --- a/packages/package_validator/permissions/roles.json +++ b/packages/package_validator/permissions/roles.json @@ -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"] } diff --git a/packages/quick_guide/permissions/roles.json b/packages/quick_guide/permissions/roles.json index e04132d10..466992d28 100644 --- a/packages/quick_guide/permissions/roles.json +++ b/packages/quick_guide/permissions/roles.json @@ -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"] } diff --git a/packages/role_editor/permissions/roles.json b/packages/role_editor/permissions/roles.json index 8989cddcf..1b205ed20 100644 --- a/packages/role_editor/permissions/roles.json +++ b/packages/role_editor/permissions/roles.json @@ -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": { diff --git a/packages/schema_editor/permissions/roles.json b/packages/schema_editor/permissions/roles.json index 68830c24f..8722c73fd 100644 --- a/packages/schema_editor/permissions/roles.json +++ b/packages/schema_editor/permissions/roles.json @@ -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"] } diff --git a/packages/screenshot_analyzer/permissions/roles.json b/packages/screenshot_analyzer/permissions/roles.json index c53bc5a72..8ba5f4643 100644 --- a/packages/screenshot_analyzer/permissions/roles.json +++ b/packages/screenshot_analyzer/permissions/roles.json @@ -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"] } ] } diff --git a/packages/smtp_config/permissions/roles.json b/packages/smtp_config/permissions/roles.json index c8a71ed6f..99f5519af 100644 --- a/packages/smtp_config/permissions/roles.json +++ b/packages/smtp_config/permissions/roles.json @@ -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"] } ] } diff --git a/packages/social_hub/permissions/roles.json b/packages/social_hub/permissions/roles.json index 18c2200c4..b104e01f1 100644 --- a/packages/social_hub/permissions/roles.json +++ b/packages/social_hub/permissions/roles.json @@ -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"] } diff --git a/packages/stats_grid/permissions/roles.json b/packages/stats_grid/permissions/roles.json index aaa082e2f..67175f9a7 100644 --- a/packages/stats_grid/permissions/roles.json +++ b/packages/stats_grid/permissions/roles.json @@ -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"] } ] } diff --git a/packages/stream_cast/permissions/roles.json b/packages/stream_cast/permissions/roles.json index eaa3978df..0ec465b9e 100644 --- a/packages/stream_cast/permissions/roles.json +++ b/packages/stream_cast/permissions/roles.json @@ -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"] } diff --git a/packages/ui_auth/permissions/roles.json b/packages/ui_auth/permissions/roles.json index 058992f2c..7ade76042 100644 --- a/packages/ui_auth/permissions/roles.json +++ b/packages/ui_auth/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_footer/permissions/roles.json b/packages/ui_footer/permissions/roles.json index 21250da7e..bb1aefe1f 100644 --- a/packages/ui_footer/permissions/roles.json +++ b/packages/ui_footer/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_header/permissions/roles.json b/packages/ui_header/permissions/roles.json index 36ae010e5..43e872be0 100644 --- a/packages/ui_header/permissions/roles.json +++ b/packages/ui_header/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_home/permissions/roles.json b/packages/ui_home/permissions/roles.json index fc8c0b1aa..1ea26dd39 100644 --- a/packages/ui_home/permissions/roles.json +++ b/packages/ui_home/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_intro/permissions/roles.json b/packages/ui_intro/permissions/roles.json index 3b64e5791..3fec0a807 100644 --- a/packages/ui_intro/permissions/roles.json +++ b/packages/ui_intro/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_level2/permissions/roles.json b/packages/ui_level2/permissions/roles.json index a81ad0cd5..717df8675 100644 --- a/packages/ui_level2/permissions/roles.json +++ b/packages/ui_level2/permissions/roles.json @@ -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"] } diff --git a/packages/ui_level3/permissions/roles.json b/packages/ui_level3/permissions/roles.json index 8e2082c03..4093bf7a8 100644 --- a/packages/ui_level3/permissions/roles.json +++ b/packages/ui_level3/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_level4/permissions/roles.json b/packages/ui_level4/permissions/roles.json index 6fc7962d3..5fe2ad337 100644 --- a/packages/ui_level4/permissions/roles.json +++ b/packages/ui_level4/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_level5/permissions/roles.json b/packages/ui_level5/permissions/roles.json index f49785925..ad556cfbe 100644 --- a/packages/ui_level5/permissions/roles.json +++ b/packages/ui_level5/permissions/roles.json @@ -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"] } diff --git a/packages/ui_level6/permissions/roles.json b/packages/ui_level6/permissions/roles.json index bd6e0f9a0..3d3dbca0f 100644 --- a/packages/ui_level6/permissions/roles.json +++ b/packages/ui_level6/permissions/roles.json @@ -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"] } diff --git a/packages/ui_login/permissions/roles.json b/packages/ui_login/permissions/roles.json index 9434dfca6..a6a19d130 100644 --- a/packages/ui_login/permissions/roles.json +++ b/packages/ui_login/permissions/roles.json @@ -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"] } ] } diff --git a/packages/ui_pages/permissions/roles.json b/packages/ui_pages/permissions/roles.json index 33ae73630..d2853ed35 100644 --- a/packages/ui_pages/permissions/roles.json +++ b/packages/ui_pages/permissions/roles.json @@ -90,7 +90,7 @@ { "id": "pages", "name": "UI Pages", - "type": "ui", + "type": "component", "description": "UI page resources", "actions": ["read", "create", "delete"] } diff --git a/packages/ui_permissions/permissions/roles.json b/packages/ui_permissions/permissions/roles.json index d635e9892..8116526ef 100644 --- a/packages/ui_permissions/permissions/roles.json +++ b/packages/ui_permissions/permissions/roles.json @@ -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": [