{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namesniper-pro/json-schema/namesniper-pro-brand-score-schema.json",
  "title": "BrandScore",
  "description": "Ownability Score. Weighted availability across .com, premium TLDs, priority handles, other handles, and USPTO trademark risk.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namesniper-pro-openapi.yaml#/components/schemas/BrandScore",
  "type": "object",
  "properties": {
    "overall": {
      "type": "integer",
      "description": "0 to 100. Higher means more of the name is still claimable."
    },
    "band": {
      "type": "string",
      "enum": [
        "wide-open",
        "mostly-open",
        "mixed",
        "contested"
      ]
    },
    "components": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScoreComponent"
      }
    },
    "channelsCounted": {
      "type": "integer",
      "description": "Channels with a verdict that fed the score."
    },
    "channelsTotal": {
      "type": "integer",
      "description": "Channels attempted, including gated and errored ones."
    },
    "cappedByTrademark": {
      "type": "boolean",
      "description": "True when a high-risk trademark conflict hard-capped the score."
    },
    "provisional": {
      "type": "boolean",
      "description": "True while a key handle is unverified, so the score can still move once it is checked."
    }
  },
  "required": [
    "overall",
    "band",
    "components",
    "channelsCounted",
    "channelsTotal",
    "cappedByTrademark",
    "provisional"
  ],
  "$defs": {
    "ScoreComponent": {
      "type": "object",
      "description": "One weighted input to the Ownability Score.",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "com",
            "premiumDomains",
            "priorityHandles",
            "otherHandles",
            "trademark"
          ]
        },
        "weight": {
          "type": "number",
          "description": "Nominal weight before the score is renormalized over the components that had data."
        },
        "earned": {
          "type": "number",
          "description": "Points earned, from 0 to `weight`."
        },
        "available": {
          "type": "integer",
          "description": "Channels found available. Channel components only."
        },
        "checked": {
          "type": "integer",
          "description": "Channels that returned a definitive verdict. Channel components only."
        },
        "unverified": {
          "type": "integer",
          "description": "Key handles that could not be verified (plan-locked or low confidence). They earn half credit."
        },
        "included": {
          "type": "boolean",
          "description": "Whether this component had data and contributed to the score."
        }
      },
      "required": [
        "key",
        "weight",
        "earned",
        "available",
        "checked",
        "unverified",
        "included"
      ]
    }
  }
}