{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-agent-schema.json",
  "title": "Agent",
  "description": "A BYO server agent registration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-agents-api-openapi.yml#/components/schemas/Agent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "agent_id": {
      "type": "string",
      "description": "Public agent identifier (`kc_agent_` prefix) the agent presents when opening sessions."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked"
      ]
    },
    "require_verified_build": {
      "type": "boolean",
      "description": "Whether sessions are refused for unverified agent builds."
    },
    "last_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_session_issued_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "has_tamper_events": {
      "type": "boolean",
      "description": "Whether any tamper events have been recorded for this agent."
    }
  }
}