{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AgentShield Verify Response",
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "Normalized contract address",
      "example": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"
    },
    "chain": {
      "type": "string",
      "description": "Blockchain network",
      "enum": [
        "ethereum",
        "base",
        "polygon",
        "arbitrum",
        "optimism",
        "bnb",
        "avalanche"
      ],
      "example": "ethereum"
    },
    "safe": {
      "type": "boolean",
      "description": "Whether the contract is safe to interact with",
      "example": true
    },
    "score": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Safety score from 0 (dangerous) to 1 (verified safe)",
      "example": 0.95
    },
    "verdict": {
      "type": "string",
      "enum": [
        "APPROVED",
        "BLOCKED",
        "UNKNOWN"
      ],
      "description": "Verification verdict",
      "example": "APPROVED"
    },
    "risk_level": {
      "type": "string",
      "enum": [
        "LOW",
        "MEDIUM",
        "HIGH",
        "CRITICAL"
      ],
      "description": "Risk classification",
      "example": "LOW"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Risk flags detected",
      "example": []
    },
    "source": {
      "type": "string",
      "description": "Verification data source",
      "example": "agentshield_allowlist"
    },
    "recommendation": {
      "type": "string",
      "description": "Human/agent-readable action recommendation"
    },
    "verified_at": {
      "type": "number",
      "description": "Unix timestamp of verification"
    },
    "query_id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique query identifier"
    }
  },
  "required": [
    "address",
    "chain",
    "safe",
    "score",
    "verdict",
    "risk_level",
    "flags",
    "recommendation",
    "verified_at",
    "query_id"
  ],
  "deep_scan_extra_fields": {
    "ownership_analysis": {
      "type": "object",
      "description": "Contract ownership and admin key analysis"
    },
    "permission_analysis": {
      "type": "object",
      "description": "Approval and permission risk scoring"
    },
    "pattern_matching": {
      "type": "object",
      "description": "Known exploit pattern detection"
    },
    "simulation": {
      "type": "object",
      "description": "Simulated transaction outcome"
    },
    "risk_breakdown": {
      "type": "object",
      "description": "Detailed risk scoring by category"
    }
  }
}