{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hireeli-io/json-schema/hireeli-io-revenue-twin-response-schema.json",
  "title": "RevenueTwinResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hireeli-io-openapi.json#/components/schemas/RevenueTwinResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "version",
        "generatedAt",
        "workspaceId",
        "available",
        "evidenceHash",
        "lifecycle",
        "company",
        "buyers",
        "offer",
        "demand",
        "conversion",
        "memory",
        "connections",
        "blockers",
        "truth"
      ],
      "properties": {
        "version": {
          "type": "string",
          "enum": [
            "revenue-twin-v1"
          ]
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid"
        },
        "available": {
          "type": "boolean"
        },
        "evidenceHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "lifecycle": {
          "type": "object",
          "additionalProperties": true
        },
        "company": {
          "type": "object",
          "additionalProperties": true
        },
        "buyers": {
          "type": "object",
          "additionalProperties": true
        },
        "offer": {
          "type": "object",
          "additionalProperties": true
        },
        "demand": {
          "type": "object",
          "additionalProperties": true
        },
        "conversion": {
          "type": "object",
          "additionalProperties": true
        },
        "memory": {
          "type": "object",
          "additionalProperties": true
        },
        "connections": {
          "type": "object",
          "additionalProperties": true
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "key",
              "reason",
              "href"
            ],
            "properties": {
              "key": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "href": {
                "type": "string"
              }
            }
          }
        },
        "truth": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}