{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://wallet-profile-orpin.vercel.app/schemas/reportResult.schema.json",
  "title": "ReportResult",
  "description": "Premium attestation report metadata and verification references.",
  "type": "object",
  "required": ["status", "reportId", "walletAddress"],
  "properties": {
    "status": {
      "type": "string",
      "enum": ["completed", "processing", "failed"]
    },
    "reportId": {
      "type": "string",
      "pattern": "^REP-[A-Z0-9]{10}$",
      "description": "Opaque verification code (REP- + 10 uppercase A-Z / 0-9)."
    },
    "walletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "verificationCode": {
      "type": "string",
      "description": "Human-readable verification code printed on the report."
    },
    "verificationEndpoint": {
      "type": "string",
      "format": "uri"
    },
    "reportHash": {
      "type": "string",
      "description": "SHA-256 hash of report contents for on-chain attestation."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}
