{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://keissmedia.com/agents/request.schema.json",
  "title": "Keiss Media enquiry draft",
  "description": "Optional email-draft format. Not an API or proof of permission.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "requester_goal",
    "context",
    "desired_next_step"
  ],
  "properties": {
    "requester_goal": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "context": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    },
    "desired_next_step": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1500
    },
    "audience": {
      "type": "string",
      "maxLength": 2000
    },
    "verified_facts": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "claim",
          "source"
        ],
        "properties": {
          "claim": {
            "type": "string",
            "maxLength": 1500
          },
          "source": {
            "type": "string",
            "maxLength": 1500
          }
        }
      }
    },
    "hypotheses": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 1500
      }
    },
    "open_questions": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 1500
      }
    },
    "constraints": {
      "type": "string",
      "maxLength": 2500
    },
    "timing": {
      "type": "string",
      "maxLength": 1000
    },
    "budget_context": {
      "type": "string",
      "maxLength": 1000
    },
    "reply_email": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    },
    "prepared_by": {
      "type": "string",
      "maxLength": 300
    }
  }
}
