{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ocolo-io/json-schema/ocolo-io-project-request-create-schema.json",
  "title": "ProjectRequestCreate",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ocolo-io-openapi.json#/components/schemas/ProjectRequestCreate",
  "type": "object",
  "required": [
    "location",
    "contact",
    "agent"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "City, metro, region or country where the capacity is needed. Required.",
      "minLength": 2,
      "maxLength": 255
    },
    "power_kw": {
      "type": "number",
      "description": "Total critical IT power required, in kW. Send this or power_mw.",
      "minimum": 0
    },
    "power_mw": {
      "type": "number",
      "description": "Total critical IT power required, in MW. Normalized to kW.",
      "minimum": 0
    },
    "power_per_cabinet_kw": {
      "type": "number",
      "description": "Target power density per cabinet, in kW.",
      "minimum": 0
    },
    "cabinets": {
      "type": "integer",
      "description": "Number of cabinets (racks).",
      "minimum": 0
    },
    "bandwidth_mbps": {
      "type": "number",
      "description": "Connectivity bandwidth in Mbps.",
      "minimum": 0
    },
    "bandwidth_text": {
      "type": "string",
      "description": "Free-text connectivity requirement if bandwidth_mbps does not fit.",
      "maxLength": 255
    },
    "requested_delivery_date": {
      "type": "string",
      "description": "Target ready-for-service date, ISO YYYY-MM-DD.",
      "format": "date"
    },
    "expected_contract_date": {
      "type": "string",
      "description": "Expected contract signature date, ISO YYYY-MM-DD.",
      "format": "date"
    },
    "requirements_text": {
      "type": "string",
      "description": "Everything else that matters: cooling, redundancy, certifications, term length, growth plan, budget notes.",
      "maxLength": 5000
    },
    "notes": {
      "type": "string",
      "description": "Notes for OCOLO staff (not shown to providers).",
      "maxLength": 5000
    },
    "preferred_vendors": {
      "description": "Providers the user prefers.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "excluded_vendors": {
      "description": "Providers the user will not consider.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "compliance": {
      "description": "Compliance / certification requirements.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "additional_services": {
      "description": "Remote hands, managed services, migration help, etc.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "customer_profile": {
      "type": "string",
      "description": "Who the buyer is.",
      "enum": [
        "Enterprise",
        "NeoCloud",
        "Hyperscaler",
        "Infrastructure"
      ]
    },
    "contact": {
      "$ref": "#/$defs/Contact"
    },
    "agent": {
      "$ref": "#/$defs/AgentInfo"
    },
    "idempotency_key": {
      "type": "string",
      "description": "Client-chosen key. Resubmitting with the same key and contact email returns the original request instead of creating a duplicate.",
      "maxLength": 128
    },
    "callback_url": {
      "type": "string",
      "description": "Reserved for status webhooks (https only). Stored but not called in v1.",
      "format": "uri"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "AgentInfo": {
      "type": "object",
      "required": [
        "on_behalf_of_confirmed"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the submitting agent or product.",
          "maxLength": 120
        },
        "framework": {
          "type": "string",
          "description": "Agent framework, e.g. claude-agent-sdk, langgraph, openai-agents.",
          "maxLength": 120
        },
        "model": {
          "type": "string",
          "description": "Underlying model id.",
          "maxLength": 120
        },
        "version": {
          "type": "string",
          "description": "Agent version.",
          "maxLength": 120
        },
        "on_behalf_of_confirmed": {
          "type": "boolean",
          "description": "Must be true: the human user asked for this request to be sent."
        }
      }
    },
    "Contact": {
      "type": "object",
      "required": [
        "email"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Full name.",
          "maxLength": 255
        },
        "email": {
          "type": "string",
          "description": "Work email. Receives the confirmation link and OCOLO's reply. Required.",
          "format": "email"
        },
        "phone": {
          "type": "string",
          "description": "Phone with country code.",
          "maxLength": 30
        },
        "role": {
          "type": "string",
          "description": "Job title.",
          "maxLength": 255
        },
        "company": {
          "type": "string",
          "description": "Company name.",
          "maxLength": 255
        },
        "timezone": {
          "type": "string",
          "description": "IANA timezone, e.g. America/Chicago.",
          "maxLength": 100
        },
        "call_availability": {
          "type": "string",
          "description": "When OCOLO may call.",
          "maxLength": 5000
        }
      }
    }
  }
}