{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/t0ll-xyz/json-schema/t0ll-xyz-agent-schema.json",
  "title": "Agent",
  "description": "One ERC-8004 agent (lib/agentcheck.ts). Fields not read are null.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/t0ll-xyz-openapi.json#/components/schemas/Agent",
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "const": "rh"
    },
    "id": {
      "type": "integer"
    },
    "registry": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "description": "kind live (the census table; read = its last check) or snapshot (read = 2026-10-28, block), and a note in words",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "live",
            "snapshot"
          ]
        },
        "read": {
          "type": "string"
        },
        "block": {
          "type": [
            "integer",
            "null"
          ]
        },
        "note": {
          "type": "string"
        }
      }
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "class": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "real service",
        "site only",
        "card only",
        "broken card",
        null
      ]
    },
    "card": {
      "type": "object",
      "description": "ok, host, token_uri, error"
    },
    "mcp": {
      "type": "object",
      "description": "answer: none (not declared) / yes / no (declared, no answer) / notread; server"
    },
    "x402": {
      "type": "object",
      "description": "answer (as mcp), claimed, pay_to, pay_to_all, networks, pay_to_is_agent_wallet"
    },
    "owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "agent_wallet": {
      "type": [
        "string",
        "null"
      ]
    },
    "wallet": {
      "type": "object",
      "description": "checked: agent_wallet or owner (whose transaction count was read); sent_tx"
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Every endpoint the card declares and what it answered (live only)"
    },
    "last_checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Recent changes: at, field, old, new (live only)"
    },
    "href": {
      "type": "string"
    }
  },
  "additionalProperties": true
}