{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-instance-role-entry-schema.json",
  "title": "InstanceRoleEntry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-instance-api-openapi.yml#/components/schemas/InstanceRoleEntry",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "Account holding the instance role"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email",
      "description": "Account email"
    },
    "role": {
      "type": "string",
      "title": "Role",
      "description": "Instance role (super_owner)"
    },
    "granted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Granted At",
      "description": "When the role was granted"
    },
    "granted_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Granted By",
      "description": "Account that granted it, if recorded"
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "role"
  ]
}