{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/workflow-intake.schema.json",
  "title": "Wever Labs Workflow Intake",
  "description": "Schema for submitting workflow context into Wever Labs OS for review, routing, evidence assessment, and operating-tool selection.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "email",
    "company",
    "workflow_name",
    "workflow_pain"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Submitter or operator name."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email for acknowledgement and follow-up."
    },
    "company": {
      "type": "string",
      "description": "Company, system, network, or organization submitting context."
    },
    "role": {
      "type": "string",
      "description": "Role, agent role, system role, or operator role."
    },
    "operating_tool": {
      "type": "string",
      "enum": [
        "not_sure",
        "packetops",
        "distributionops",
        "tokenops",
        "other_workflow"
      ],
      "default": "not_sure"
    },
    "workflow_name": {
      "type": "string",
      "description": "Short name of the workflow."
    },
    "workflow_pain": {
      "type": "string",
      "description": "Operational problem, failure point, delay, risk, or repetitive work to route."
    },
    "current_process": {
      "type": "string",
      "description": "Current state, records, tools, systems, or manual process."
    },
    "inputs_available": {
      "type": "string",
      "description": "Available records, files, exports, manifests, settlement references, usage receipts, or source context."
    },
    "desired_output": {
      "type": "string",
      "description": "Desired operating result or delivery package, including TokenOps result package when applicable."
    },
    "message": {
      "type": "string",
      "description": "Additional context."
    },
    "workflow_files": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "binary"
      },
      "description": "Optional files when using multipart form upload. Public JSON submissions should provide metadata rather than sensitive files."
    }
  },
  "x-weverlabs-flow": [
    "workflow_intake",
    "intake_review",
    "routed",
    "operating",
    "output_ready",
    "delivery_ready"
  ],
  "x-weverlabs-response-categories": [
    "sufficient",
    "partial",
    "insufficient"
  ]
}
