{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dealroom/json-schema/dealroom-entity-patents-response-schema.json",
  "title": "EntityPatentsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dealroom-companies-api-openapi.yml#/components/schemas/EntityPatentsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityPatentItem"
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "total": {
          "type": [
            "number",
            "null"
          ]
        },
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the next page. Null when no further pages exist."
        },
        "prev_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the previous page. Null when on the first page."
        }
      },
      "required": [
        "total",
        "limit",
        "offset",
        "next_cursor",
        "prev_cursor"
      ]
    }
  },
  "required": [
    "data",
    "page"
  ],
  "$defs": {
    "EntityPatentItem": {
      "type": "object",
      "properties": {
        "publication_number": {
          "type": "string",
          "description": "PatSnap publication number."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Patent title."
        },
        "abstract": {
          "type": [
            "string",
            "null"
          ],
          "description": "Patent abstract."
        },
        "value_usd": {
          "type": [
            "number",
            "null"
          ],
          "description": "PatSnap's estimated USD value of this patent. Always USD, not currency-converted — see `docs/currency-conversion.md`."
        },
        "value_scores": {
          "type": "object",
          "properties": {
            "legal": {
              "type": [
                "number",
                "null"
              ]
            },
            "strategic": {
              "type": [
                "number",
                "null"
              ]
            },
            "market": {
              "type": [
                "number",
                "null"
              ]
            },
            "economic": {
              "type": [
                "number",
                "null"
              ]
            },
            "technology": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "legal",
            "strategic",
            "market",
            "economic",
            "technology"
          ],
          "description": "PatSnap's per-dimension value scores (0–100)."
        },
        "authority": {
          "type": [
            "string",
            "null"
          ],
          "description": "Patent office authority code."
        },
        "patent_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "application_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "publication_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "estimated_expiry_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "cpc": {
          "type": [
            "string",
            "null"
          ],
          "description": "Main CPC classification code."
        },
        "ipc": {
          "type": [
            "string",
            "null"
          ],
          "description": "Main IPC classification code."
        },
        "assignees": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Assignee names on this patent."
        },
        "inventors": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Inventor names on this patent."
        }
      },
      "required": [
        "publication_number",
        "title",
        "abstract",
        "value_usd",
        "value_scores",
        "authority",
        "patent_type",
        "application_date",
        "publication_date",
        "estimated_expiry_date",
        "cpc",
        "ipc",
        "assignees",
        "inventors"
      ]
    }
  }
}