{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/relux-works/json-schema/relux-works-inquiry-input-schema.json",
  "title": "InquiryInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/relux-works-openapi.json#/components/schemas/InquiryInput",
  "type": "object",
  "required": [
    "summary",
    "consent_confirmed"
  ],
  "anyOf": [
    {
      "required": [
        "contact_email"
      ]
    },
    {
      "required": [
        "reply_contact"
      ]
    }
  ],
  "additionalProperties": false,
  "properties": {
    "contact_email": {
      "type": "string",
      "format": "email",
      "maxLength": 254,
      "description": "Real, reachable decision-maker email provided or explicitly confirmed by the user. Never invent or infer it. Legacy shorthand for reply_contact with channel=email and recipient=decision_maker. Reserved example and test domains are rejected."
    },
    "reply_contact": {
      "type": "object",
      "description": "External route provided or explicitly confirmed by the user to the decision maker or an accountable relay agent. Never invent or infer it. The current API or MCP session does not qualify.",
      "required": [
        "channel",
        "value",
        "recipient"
      ],
      "additionalProperties": false,
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "email",
            "telegram",
            "signal",
            "whatsapp",
            "phone",
            "linkedin"
          ]
        },
        "value": {
          "type": "string",
          "minLength": 5,
          "maxLength": 500
        },
        "recipient": {
          "type": "string",
          "enum": [
            "decision_maker",
            "relay_agent"
          ]
        }
      }
    },
    "consent_confirmed": {
      "type": "boolean",
      "const": true,
      "description": "Set to true only after the user has reviewed the complete inquiry and reply route, received the privacy notice URL, and explicitly approved submission to Relux Works."
    },
    "summary": {
      "type": "string",
      "minLength": 10,
      "maxLength": 4000,
      "description": "What the user wants to build or fix"
    },
    "client_name": {
      "type": "string",
      "maxLength": 200
    },
    "project_type": {
      "type": "string",
      "enum": [
        "mvp",
        "vibe-code-rescue",
        "publishing-scaling",
        "other"
      ]
    },
    "budget_usd": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000000
    },
    "timeline": {
      "type": "string",
      "maxLength": 200
    },
    "source": {
      "type": "string",
      "maxLength": 200,
      "description": "Identify your agent/platform"
    },
    "preferred_language": {
      "type": "string",
      "maxLength": 35,
      "description": "Language preferred for the human reply"
    },
    "market": {
      "type": "string",
      "maxLength": 64,
      "description": "Client market or country code"
    }
  }
}