{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/replynodes-com/json-schema/replynodes-com-research-workflow-response-schema.json",
  "title": "ResearchWorkflowResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/replynodes-com-research-api-openapi.yml#/components/schemas/ResearchWorkflowResponse",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/ResearchWorkflowData"
    },
    "meta": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "$defs": {
    "ResearchWorkflowData": {
      "type": "object",
      "required": [
        "workflow",
        "domain",
        "targets"
      ],
      "properties": {
        "workflow": {
          "type": "string",
          "enum": [
            "company-research",
            "competitor-research"
          ]
        },
        "domain": {
          "type": "string"
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResearchWorkflowTarget"
          }
        }
      }
    },
    "ResearchWorkflowTarget": {
      "type": "object",
      "required": [
        "domain"
      ],
      "properties": {
        "domain": {
          "type": "string"
        },
        "brand": {
          "type": "object",
          "additionalProperties": true,
          "description": "Real brand-kit retrieve output; omitted when that primitive fails."
        },
        "styleguide": {
          "type": "object",
          "additionalProperties": true
        },
        "logo": {
          "type": "object",
          "additionalProperties": true
        },
        "markdown": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string"
            }
          }
        },
        "errors": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Per-primitive typed error codes; a failed primitive's output is omitted rather than fabricated."
        }
      }
    }
  }
}