{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/heyresearch-xyz/json-schema/heyresearch-xyz-scan-card-schema.json",
  "title": "ScanCard",
  "description": "The scan card: `found` says which shape. See https://heyresearch.xyz/docs/public-api for every field. Absent means unknown, never zero.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/heyresearch-xyz-openapi.json#/components/schemas/ScanCard",
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": true,
      "description": "No published project answers this token.",
      "required": [
        "found",
        "chainId",
        "disclaimer"
      ],
      "properties": {
        "found": {
          "type": "boolean",
          "const": false
        },
        "chainId": {
          "type": "integer"
        },
        "contractAddress": {
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "chain",
            "not_a_token",
            "issuer_token"
          ]
        },
        "message": {
          "type": "string"
        },
        "scan_url": {
          "type": "string"
        },
        "indexed": {
          "type": "boolean"
        },
        "research_state": {
          "type": "string",
          "enum": [
            "not_researched",
            "not_published",
            "not_indexed"
          ]
        },
        "launched_via": {
          "type": "string"
        },
        "publishedNamesakes": {
          "type": "object",
          "additionalProperties": true,
          "description": "Additive (2026-10-18), beside `scan_url`: published projects carrying this token’s name or ticker on another contract — `total`, `items` (slug, name, symbol, contractAddress, shares, sharesAddressEnding, url) and `line`, the one sentence HEY prints. Present only when HEY holds a name or a ticker for the token; facts, never which token is real."
        },
        "disclaimer": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": true,
      "description": "The published project behind this token.",
      "required": [
        "found",
        "chainId",
        "contractAddress",
        "status",
        "status_label",
        "status_help",
        "verified_builder",
        "token_verification",
        "activity_applies_to_token",
        "research_level",
        "activity_measured",
        "coverage",
        "activity",
        "project",
        "project_url",
        "project_link",
        "badge_url",
        "disclaimer"
      ],
      "properties": {
        "found": {
          "type": "boolean",
          "const": true
        },
        "chainId": {
          "type": "integer"
        },
        "contractAddress": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "status_label": {
          "type": "string"
        },
        "status_help": {
          "type": "string"
        },
        "verified_builder": {
          "type": "boolean"
        },
        "token_verification": {
          "type": "string",
          "enum": [
            "VERIFIED",
            "UNVERIFIED",
            "MISMATCH"
          ]
        },
        "activity_applies_to_token": {
          "type": "boolean"
        },
        "research_level": {
          "type": "string"
        },
        "activity_measured": {
          "type": "boolean"
        },
        "coverage": {
          "type": "string",
          "enum": [
            "measured",
            "no_source",
            "not_researched"
          ]
        },
        "as_of": {
          "type": "string",
          "format": "date-time"
        },
        "activity": {
          "type": "object",
          "additionalProperties": true,
          "description": "Counts over 30 days; `commits_30d` is absent, never 0, without a readable repository. `releases_measured` (2026-10-22, additive) is false when HEY reads no source releases come from, or building is not measured: `releases_30d: 0` is then legacy, not a finding."
        },
        "project": {
          "type": "object",
          "additionalProperties": true
        },
        "project_url": {
          "type": "string"
        },
        "project_link": {
          "type": "string"
        },
        "logo_url": {
          "type": "string"
        },
        "badge_url": {
          "type": "string"
        },
        "cta": {
          "type": "object",
          "additionalProperties": true
        },
        "disclaimer": {
          "type": "string"
        }
      }
    }
  ]
}