query_roles
{
  "jsonrpc": "2.0",
  "result": {
    "content": [
      {
        "text": "{\"roles\":[{\"description\":\"Administrator with full access\",\"name\":\"admin\",\"permissions\":[{\"code\":\"user:create\",\"description\":\"Create users\"},{\"code\":\"user:read\",\"description\":\"Read users\"},{\"code\":\"user:update\",\"description\":\"Update users\"},{\"code\":\"user:delete\",\"description\":\"Delete users\"},{\"code\":\"role:create\",\"description\":\"Create roles\"},{\"code\":\"role:read\",\"description\":\"Read roles\"},{\"code\":\"role:update\",\"description\":\"Update roles\"},{\"code\":\"role:delete\",\"description\":\"Delete roles\"},{\"code\":\"permission:create\",\"description\":\"Create permissions\"},{\"code\":\"permission:read\",\"description\":\"Read permissions\"},{\"code\":\"permission:update\",\"description\":\"Update permissions\"},{\"code\":\"permission:delete\",\"description\":\"Delete permissions\"},{\"code\":\"service:create\",\"description\":\"Create services\"},{\"code\":\"service:read\",\"description\":\"Read services\"},{\"code\":\"service:update\",\"description\":\"Update services\"},{\"code\":\"service:delete\",\"description\":\"Delete services\"},{\"code\":\"task:create\",\"description\":\"Create tasks\"},{\"code\":\"task:read\",\"description\":\"Read tasks\"},{\"code\":\"task:update\",\"description\":\"Update tasks\"},{\"code\":\"task:delete\",\"description\":\"Delete tasks\"},{\"code\":\"note:create\",\"description\":\"Create notes\"},{\"code\":\"note:read\",\"description\":\"Read notes\"},{\"code\":\"note:update\",\"description\":\"Update notes\"},{\"code\":\"note:delete\",\"description\":\"Delete notes\"},{\"code\":\"channel:create\",\"description\":\"Create channels\"},{\"code\":\"channel:read\",\"description\":\"Read channels\"},{\"code\":\"channel:update\",\"description\":\"Update channels\"},{\"code\":\"channel:delete\",\"description\":\"Delete channels\"},{\"code\":\"message:create\",\"description\":\"Create messages\"},{\"code\":\"message:read\",\"description\":\"Read messages\"},{\"code\":\"message:update\",\"description\":\"Update messages\"},{\"code\":\"message:delete\",\"description\":\"Delete messages\"},{\"code\":\"taskstatus:create\",\"description\":\"Create task statuses\"},{\"code\":\"taskstatus:read\",\"description\":\"Read task statuses\"},{\"code\":\"taskstatus:update\",\"description\":\"Update task statuses\"},{\"code\":\"taskstatus:delete\",\"description\":\"Delete task statuses\"}]},{\"description\":\"Service manager with task management\",\"name\":\"manager\",\"permissions\":[{\"code\":\"service:create\",\"description\":\"Create services\"},{\"code\":\"service:read\",\"description\":\"Read services\"},{\"code\":\"service:update\",\"description\":\"Update services\"},{\"code\":\"service:delete\",\"description\":\"Delete services\"},{\"code\":\"task:create\",\"description\":\"Create tasks\"},{\"code\":\"task:read\",\"description\":\"Read tasks\"},{\"code\":\"task:update\",\"description\":\"Update tasks\"},{\"code\":\"task:delete\",\"description\":\"Delete tasks\"},{\"code\":\"note:create\",\"description\":\"Create notes\"},{\"code\":\"note:read\",\"description\":\"Read notes\"},{\"code\":\"note:update\",\"description\":\"Update notes\"},{\"code\":\"note:delete\",\"description\":\"Delete notes\"},{\"code\":\"channel:create\",\"description\":\"Create channels\"},{\"code\":\"channel:read\",\"description\":\"Read channels\"},{\"code\":\"channel:update\",\"description\":\"Update channels\"},{\"code\":\"channel:delete\",\"description\":\"Delete channels\"},{\"code\":\"message:create\",\"description\":\"Create messages\"},{\"code\":\"message:read\",\"description\":\"Read messages\"},{\"code\":\"message:update\",\"description\":\"Update messages\"},{\"code\":\"message:delete\",\"description\":\"Delete messages\"},{\"code\":\"taskstatus:create\",\"description\":\"Create task statuses\"},{\"code\":\"taskstatus:read\",\"description\":\"Read task statuses\"},{\"code\":\"taskstatus:update\",\"description\":\"Update task statuses\"},{\"code\":\"taskstatus:delete\",\"description\":\"Delete task statuses\"}]},{\"description\":\"Regular user with limited access\",\"name\":\"user\",\"permissions\":[{\"code\":\"user:read\",\"description\":\"Read users\"},{\"code\":\"role:read\",\"description\":\"Read roles\"},{\"code\":\"permission:read\",\"description\":\"Read permissions\"},{\"code\":\"service:read\",\"description\":\"Read services\"},{\"code\":\"task:read\",\"description\":\"Read tasks\"},{\"code\":\"note:create\",\"description\":\"Create notes\"},{\"code\":\"note:read\",\"description\":\"Read notes\"},{\"code\":\"channel:read\",\"description\":\"Read channels\"},{\"code\":\"message:create\",\"description\":\"Create messages\"},{\"code\":\"message:read\",\"description\":\"Read messages\"},{\"code\":\"taskstatus:read\",\"description\":\"Read task statuses\"}]}]}",
        "type": "text"
      }
    ]
  }
}
