{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-api-response-signals-response-schema.json",
  "title": "ApiResponse[SignalsResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-jobs-api-openapi.yml#/components/schemas/ApiResponse_SignalsResponse_",
  "properties": {
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/SignalsResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/ErrorDetail"
        },
        {
          "type": "null"
        }
      ]
    },
    "meta": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Meta"
    }
  },
  "type": "object",
  "$defs": {
    "EntitySignalBreakdown": {
      "properties": {
        "entity": {
          "$ref": "#/$defs/EntitySummary"
        },
        "signals": {
          "items": {
            "$ref": "#/$defs/SignalDetail"
          },
          "type": "array",
          "title": "Signals"
        },
        "correlations": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Correlations"
        }
      },
      "type": "object",
      "required": [
        "entity",
        "signals"
      ],
      "title": "EntitySignalBreakdown",
      "description": "Full signal breakdown for a single entity.\n\nAttributes:\n    entity: Summary of the entity being examined.\n    signals: List of individual signal contributions.\n    correlations: Cross-signal correlation evidence."
    },
    "EntitySummary": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        },
        "entity_type": {
          "type": "string",
          "title": "Entity Type"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence"
        }
      },
      "type": "object",
      "required": [
        "name",
        "display_name",
        "entity_type",
        "confidence"
      ],
      "title": "EntitySummary",
      "description": "Compact entity representation for signal breakdown responses.\n\nAttributes:\n    name: Canonical normalized entity name.\n    display_name: Best raw entity name preserving original casing.\n    entity_type: Classification (organization, person, unknown).\n    confidence: Computed confidence score from 0.0 to 1.0."
    },
    "ErrorDetail": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "details": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Details"
        }
      },
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "title": "ErrorDetail",
      "description": "Structured error information for API error responses.\n\nAttributes:\n    code: Machine-readable error code (e.g. \"JOB_NOT_FOUND\").\n    message: Human-readable error description.\n    details: Optional additional context for debugging."
    },
    "SignalDetail": {
      "properties": {
        "signal_type": {
          "type": "string",
          "title": "Signal Type"
        },
        "field": {
          "type": "string",
          "title": "Field"
        },
        "raw_value": {
          "type": "string",
          "title": "Raw Value"
        },
        "collector_confidence": {
          "type": "number",
          "title": "Collector Confidence"
        },
        "contribution": {
          "type": "number",
          "title": "Contribution"
        },
        "redacted": {
          "type": "boolean",
          "title": "Redacted",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "signal_type",
        "field",
        "raw_value",
        "collector_confidence",
        "contribution"
      ],
      "title": "SignalDetail",
      "description": "Individual signal contribution within a signal breakdown.\n\nAttributes:\n    signal_type: Collector that produced this signal.\n    field: Specific field within the collector output.\n    raw_value: Original value from the collector.\n    collector_confidence: Collector's self-assessed data quality.\n    contribution: Effective contribution to entity score.\n    redacted: Whether the value was detected as privacy-protected."
    },
    "SignalsResponse": {
      "properties": {
        "job_id": {
          "type": "string",
          "title": "Job Id"
        },
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Domain"
        },
        "entities": {
          "items": {
            "$ref": "#/$defs/EntitySignalBreakdown"
          },
          "type": "array",
          "title": "Entities"
        },
        "missing_signals": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Missing Signals"
        }
      },
      "type": "object",
      "required": [
        "job_id",
        "entities"
      ],
      "title": "SignalsResponse",
      "description": "Top-level response for the signal breakdown endpoint.\n\nProvides full transparency into how entities were scored for\na given domain analysis.\n\nAttributes:\n    job_id: The job whose signals are being displayed.\n    domain: The domain that was analyzed.\n    entities: Per-entity signal breakdowns.\n    missing_signals: Signals that could not be collected."
    }
  }
}