{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-local-visibility-response-schema.json",
  "title": "LocalVisibilityResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-local-visibility-api-openapi.yml#/components/schemas/LocalVisibilityResponse",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "overall_visibility_score": {
      "type": "number"
    },
    "snapshots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "rank": {
            "type": "integer"
          },
          "visibility_score": {
            "type": "number"
          }
        }
      }
    },
    "resolved_locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeoTarget"
      }
    },
    "checked_at": {
      "type": "string",
      "format": "date-time"
    },
    "agent_workflow": {
      "$ref": "#/$defs/AgentWorkflow"
    },
    "markdown_summary": {
      "type": "string"
    }
  },
  "$defs": {
    "AgentWorkflow": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "decision": {
          "type": "string",
          "enum": [
            "ready",
            "act_now",
            "monitor",
            "blocker"
          ]
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "recommended_actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowAction"
          }
        },
        "evidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowEvidence"
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "next_calls": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentWorkflowNextCall"
          }
        }
      }
    },
    "AgentWorkflowAction": {
      "type": "object",
      "properties": {
        "priority": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "action": {
          "type": "string"
        },
        "why": {
          "type": "string"
        }
      }
    },
    "AgentWorkflowEvidence": {
      "type": "object",
      "properties": {
        "finding": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        }
      }
    },
    "AgentWorkflowNextCall": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "GeoTarget": {
      "type": "object",
      "properties": {
        "input": {
          "type": [
            "string",
            "null"
          ]
        },
        "location_code": {
          "type": "integer"
        },
        "location_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_iso_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "string",
          "enum": [
            "resolved",
            "explicit_code"
          ]
        }
      }
    }
  }
}