{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-role-definition-schema-schema.json",
  "title": "RoleDefinitionSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-access-control-api-openapi.yml#/components/schemas/RoleDefinitionSchema",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id",
      "description": "Role definition ID"
    },
    "role": {
      "type": "string",
      "title": "Role",
      "description": "Role name"
    },
    "domain": {
      "type": "string",
      "title": "Domain",
      "description": "Domain scope"
    },
    "priority": {
      "type": "integer",
      "title": "Priority",
      "description": "Ordinal rank within the org (0 = highest priority). Priorities form a dense, contiguous sequence 0..N-1 and are mutated only via the reorder endpoint."
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Human-readable role description"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Creation timestamp"
    }
  },
  "type": "object",
  "required": [
    "id",
    "role",
    "domain",
    "priority",
    "created_at"
  ]
}