{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wavelengthflow-com/json-schema/wavelengthflow-com-flow-input-schema.json",
  "title": "FlowInput",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wavelengthflow-com-openapi.json#/components/schemas/FlowInput",
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "graph_nodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Node"
      }
    },
    "graph_edges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Edge"
      }
    },
    "transcript": {
      "type": "string"
    },
    "diagram_code": {
      "type": "string"
    },
    "team_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "$defs": {
    "Edge": {
      "type": "object",
      "required": [
        "source",
        "target"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "Node": {
      "type": "object",
      "required": [
        "label"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique in the flow. Default n1, n2."
        },
        "type": {
          "type": "string",
          "enum": [
            "start",
            "step",
            "decision",
            "data",
            "system",
            "actor",
            "end",
            "screen"
          ],
          "default": "step"
        },
        "label": {
          "type": "string",
          "maxLength": 500
        },
        "owner": {
          "type": "string",
          "description": "Role or team that does the step. Used for swimlanes."
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      }
    }
  }
}