{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xeorank-com/json-schema/xeorank-com-site-overview-out-schema.json",
  "title": "SiteOverviewOut",
  "description": "Roll-up payload for /dashboard/sites/[siteId].",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xeorank-com-openapi.json#/components/schemas/SiteOverviewOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "domain": {
      "type": "string",
      "title": "Domain"
    },
    "org_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id"
    },
    "organization_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Name"
    },
    "owner_user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner User Id"
    },
    "owner_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Email"
    },
    "can_admin": {
      "type": "boolean",
      "title": "Can Admin",
      "default": false
    },
    "gsc_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gsc Url"
    },
    "gsc_connected": {
      "type": "boolean",
      "title": "Gsc Connected",
      "default": false
    },
    "gsc_site_paired": {
      "type": "boolean",
      "title": "Gsc Site Paired",
      "default": false
    },
    "gsc_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gsc Status"
    },
    "gsc_fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gsc Fix"
    },
    "gsc_sync_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gsc Sync Error"
    },
    "gsc_synced_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gsc Synced At"
    },
    "framer_connected": {
      "type": "boolean",
      "title": "Framer Connected",
      "default": false
    },
    "framer_site_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Framer Site Id"
    },
    "framer_project": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Framer Project"
    },
    "wordpress_connected": {
      "type": "boolean",
      "title": "Wordpress Connected",
      "default": false
    },
    "editable_surfaces": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Editable Surfaces"
    },
    "editing_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Editing Hint"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "pages_count": {
      "type": "integer",
      "title": "Pages Count",
      "default": 0
    },
    "competitor_count": {
      "type": "integer",
      "title": "Competitor Count",
      "default": 0
    },
    "latest_crawl": {
      "anyOf": [
        {
          "$ref": "#/$defs/CrawlJobStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "related_site_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Related Site Ids"
    },
    "latest_analysis": {
      "anyOf": [
        {
          "$ref": "#/$defs/AnalyzeResponse"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "domain"
  ],
  "$defs": {
    "AnalyzeResponse": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "analyzed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analyzed At"
        },
        "query": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Query"
        },
        "missing_topics": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Missing Topics"
        },
        "competitor_themes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Competitor Themes"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        },
        "score": {
          "type": "number",
          "title": "Score"
        },
        "seo_breakdown": {
          "anyOf": [
            {
              "$ref": "#/$defs/SeoScoreBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "page_type": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "homepage",
                "about",
                "contact",
                "collection",
                "search_results",
                "profile",
                "article",
                "product",
                "service",
                "faq",
                "howto",
                "job_posting",
                "event",
                "recipe",
                "course",
                "dataset",
                "software",
                "medical",
                "webpage",
                "legal",
                "pricing",
                "auth",
                "support",
                "error"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Type"
        },
        "page_type_confidence": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 1.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Type Confidence"
        },
        "schema_validation": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Schema Validation"
        },
        "grounded": {
          "type": "boolean",
          "title": "Grounded",
          "default": false
        },
        "aeo_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aeo Score"
        },
        "aeo_recommendations": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Aeo Recommendations"
        },
        "geo_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Geo Score"
        },
        "geo_recommendations": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Geo Recommendations"
        },
        "recommendations": {
          "items": {
            "$ref": "#/$defs/Recommendation"
          },
          "type": "array",
          "title": "Recommendations"
        },
        "verification_signals": {
          "additionalProperties": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "object",
          "title": "Verification Signals"
        },
        "passing_signals": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Passing Signals"
        },
        "total_signals": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Signals"
        },
        "aeo_recommendations_all": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Aeo Recommendations All"
        },
        "geo_recommendations_all": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Geo Recommendations All"
        }
      },
      "type": "object",
      "required": [
        "url",
        "summary",
        "score"
      ],
      "title": "AnalyzeResponse"
    },
    "CrawlCounts": {
      "properties": {
        "fetched_pages": {
          "type": "integer",
          "title": "Fetched Pages",
          "default": 0
        },
        "recorded_urls": {
          "type": "integer",
          "title": "Recorded Urls",
          "default": 0
        },
        "not_fetched_urls": {
          "type": "integer",
          "title": "Not Fetched Urls",
          "default": 0
        }
      },
      "type": "object",
      "title": "CrawlCounts"
    },
    "CrawlJobStatus": {
      "properties": {
        "job_id": {
          "type": "string",
          "title": "Job Id"
        },
        "seed_url": {
          "type": "string",
          "title": "Seed Url"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "completed",
            "partial",
            "failed",
            "cancelled"
          ],
          "title": "Status"
        },
        "stage": {
          "type": "string",
          "title": "Stage",
          "default": "queued"
        },
        "status_detail": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status Detail"
        },
        "pages_crawled": {
          "type": "integer",
          "title": "Pages Crawled",
          "default": 0
        },
        "pages_discovered": {
          "type": "integer",
          "title": "Pages Discovered",
          "default": 0
        },
        "counts": {
          "anyOf": [
            {
              "$ref": "#/$defs/CrawlCounts"
            },
            {
              "type": "null"
            }
          ]
        },
        "errors_count": {
          "type": "integer",
          "title": "Errors Count",
          "default": 0
        },
        "health_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Health Score"
        },
        "health_breakdown": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Health Breakdown"
        },
        "coverage": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Coverage"
        },
        "error_message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Message"
        },
        "retry_count": {
          "type": "integer",
          "title": "Retry Count",
          "default": 0
        },
        "last_heartbeat_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Heartbeat At"
        },
        "dispatch_required": {
          "type": "boolean",
          "title": "Dispatch Required",
          "default": false
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "finished_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finished At"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "job_id",
        "seed_url",
        "status"
      ],
      "title": "CrawlJobStatus"
    },
    "Recommendation": {
      "properties": {
        "rule_id": {
          "type": "string",
          "title": "Rule Id"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "priority": {
          "type": "string",
          "title": "Priority"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "impact": {
          "type": "string",
          "title": "Impact"
        },
        "locator": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Locator"
        }
      },
      "type": "object",
      "required": [
        "rule_id",
        "category",
        "priority",
        "title",
        "description",
        "impact"
      ],
      "title": "Recommendation"
    },
    "SeoScoreBreakdown": {
      "properties": {
        "overall": {
          "type": "number",
          "title": "Overall",
          "default": 0.0
        },
        "technical": {
          "type": "number",
          "title": "Technical",
          "default": 0.0
        },
        "on_page": {
          "type": "number",
          "title": "On Page",
          "default": 0.0
        },
        "content": {
          "type": "number",
          "title": "Content",
          "default": 0.0
        },
        "links": {
          "type": "number",
          "title": "Links",
          "default": 0.0
        }
      },
      "type": "object",
      "title": "SeoScoreBreakdown"
    }
  }
}