Documentation Index
Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt
Use this file to discover all available pages before exploring further.
When it fires
After CreateRoleService succeeds. The three system roles (owner / admin / viewer) are seeded silently at workspace creation and do not emit this event.
Payload
{
type: 'role.created',
data: {
role: {
id: string
name: string
description: string | null
permissions: Array<string> // permission keys, e.g. ['variables:read', 'keys:create']
}
}
}
Example
{
"type": "role.created",
"data": {
"role": {
"id": "0192a1b2-c3d4-7000-8000-0000000000b0",
"name": "Read-only deployer",
"description": "Can read variables and trigger deploys but not edit",
"permissions": [
"projects:read",
"environments:read",
"variables:read"
]
}
}
}