{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hireeli-io/json-schema/hireeli-io-demand-radar-response-schema.json",
  "title": "DemandRadarResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hireeli-io-openapi.json#/components/schemas/DemandRadarResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "version",
        "generatedAt",
        "workspaceId",
        "available",
        "mode",
        "headline",
        "reason",
        "traffic",
        "demand",
        "conversion",
        "nextAction",
        "truth"
      ],
      "properties": {
        "version": {
          "type": "string",
          "enum": [
            "demand-radar-v1"
          ]
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid"
        },
        "available": {
          "type": "boolean"
        },
        "mode": {
          "type": "string",
          "enum": [
            "unavailable",
            "needs_measurement",
            "create_demand",
            "capture_demand",
            "compound_growth"
          ]
        },
        "headline": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "traffic": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "windowDays",
            "websitePageViews",
            "measured",
            "source"
          ],
          "properties": {
            "windowDays": {
              "type": "integer",
              "enum": [
                28
              ]
            },
            "websitePageViews": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            },
            "measured": {
              "type": "boolean"
            },
            "source": {
              "type": "string",
              "enum": [
                "first_party_page_events"
              ]
            }
          }
        },
        "demand": {
          "type": "object",
          "additionalProperties": true
        },
        "conversion": {
          "type": "object",
          "additionalProperties": true
        },
        "nextAction": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "kind",
            "title",
            "reason",
            "dashboard",
            "mcp",
            "rest",
            "playId"
          ],
          "properties": {
            "kind": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "reason": {
              "type": "string"
            },
            "dashboard": {
              "type": "string"
            },
            "mcp": {
              "type": "string"
            },
            "rest": {
              "type": "string"
            },
            "playId": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "truth": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}