{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namesniper-pro/json-schema/namesniper-pro-trademark-check-response-schema.json",
  "title": "TrademarkCheckResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namesniper-pro-openapi.yaml#/components/schemas/TrademarkCheckResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "result": {
      "$ref": "#/$defs/TrademarkResult"
    },
    "variations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TrademarkResult"
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "overallRisk": {
          "$ref": "#/$defs/RiskLevel"
        },
        "recommendAction": {
          "type": "string"
        },
        "conflictCount": {
          "type": "integer"
        }
      }
    },
    "disclaimer": {
      "type": "string"
    },
    "isAutomatedScreening": {
      "const": true
    }
  },
  "$defs": {
    "RiskLevel": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "TrademarkConflict": {
      "type": "object",
      "properties": {
        "mark": {
          "type": "string"
        },
        "similarity": {
          "type": "integer"
        },
        "owner": {
          "type": "string"
        },
        "classes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string"
        },
        "riskLevel": {
          "$ref": "#/$defs/RiskLevel"
        },
        "serialNumber": {
          "type": "string"
        },
        "goodsAndServices": {
          "type": "string"
        },
        "filingStatus": {
          "type": "string"
        }
      }
    },
    "TrademarkResult": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "no-matches",
            "similar-found",
            "unknown"
          ]
        },
        "confidence": {
          "type": "integer"
        },
        "riskLevel": {
          "$ref": "#/$defs/RiskLevel"
        },
        "details": {
          "type": "object",
          "additionalProperties": true
        },
        "conflicts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrademarkConflict"
          }
        },
        "checkedAt": {
          "type": "string",
          "format": "date-time"
        },
        "source": {
          "type": "string",
          "enum": [
            "uspto-search",
            "similarity-analysis"
          ]
        },
        "isAutomatedScreening": {
          "const": true
        },
        "disclaimer": {
          "type": "string"
        }
      }
    }
  }
}