{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Company intelligence request",
    "type": "object",
    "properties": {
        "company_name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 180,
            "description": "Legal or commonly used company name."
        },
        "domain": {
            "type": "string",
            "pattern": "^(?=.{3,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$",
            "description": "Bare domain only, without a URL path."
        },
        "jurisdiction": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80,
            "description": "Optional country or jurisdiction hint."
        },
        "cik": {
            "type": "string",
            "pattern": "^[0-9]{1,10}$",
            "description": "Optional SEC Central Index Key."
        },
        "lei": {
            "type": "string",
            "pattern": "^[A-Z0-9]{20}$",
            "description": "Optional Legal Entity Identifier."
        },
        "since": {
            "type": "string",
            "format": "date-time",
            "description": "Optional monitoring-window start. Company Change Monitor defaults to 30 days ago."
        },
        "baseline_report_id": {
            "type": "string",
            "pattern": "^air_[a-f0-9]{32}$",
            "description": "Optional prior paid Agent Intelligence report ID for an exact evidence comparison."
        }
    },
    "required": [
        "company_name"
    ],
    "additionalProperties": false
}
