{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sitepulsar-ai/json-schema/sitepulsar-ai-audit-result-schema.json",
  "title": "AuditResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sitepulsar-ai-openapi.json#/components/schemas/AuditResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "audit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Alias of id"
    },
    "geo_score": {
      "type": "object",
      "description": "GEO score breakdown",
      "properties": {
        "overall": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "schemaMarkup": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "brandAuthority": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "contentStructure": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "aiVisibility": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "competitivePosition": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        }
      }
    },
    "action_plan": {
      "type": "array",
      "description": "Prioritized list of recommendations",
      "items": {
        "type": "object",
        "properties": {
          "priority": {
            "type": "string",
            "enum": [
              "critical",
              "high",
              "medium",
              "low"
            ]
          },
          "category": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "estimatedImpact": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          }
        }
      }
    },
    "reputation_data": {
      "type": "array",
      "description": "Per-AI-engine brand mention analysis (ChatGPT, Claude, Gemini, Grok, Perplexity)",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "mentioned": {
            "type": "boolean"
          },
          "sentiment": {
            "type": "string"
          },
          "context": {
            "type": "string"
          },
          "authorityScore": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "recommendedAs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "competitor_data": {
      "type": "array",
      "description": "Competitor share-of-voice per AI engine",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "competitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "mentionFrequency": {
                  "type": "integer"
                },
                "strengths": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "weaknesses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "crawl_data": {
      "type": "object",
      "description": "Website crawl results",
      "properties": {
        "jsonLd": {
          "type": "array",
          "description": "Detected JSON-LD schema blocks"
        },
        "schemaTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "metaTags": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "semanticHtml": {
          "type": "object"
        }
      }
    },
    "summary": {
      "type": "string",
      "description": "AI-generated executive summary of the audit"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}