{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpinedataworks-com/json-schema/alpinedataworks-com-intelligence-object-schema.json",
  "title": "IntelligenceObject",
  "description": "Alpine Intelligence Object Manifest (IOM) v0.1. Field depth depends on caller tier: Free (score/trend/freshness only), Gold (+drivers/confidence/history endpoint), Platinum (all fields).",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpinedataworks-com-openapi.json#/components/schemas/IntelligenceObject",
  "type": "object",
  "required": [
    "product_id",
    "entity",
    "score",
    "confidence",
    "top_drivers",
    "methodology_version",
    "freshness"
  ],
  "properties": {
    "product_id": {
      "type": "string"
    },
    "entity": {
      "type": "string"
    },
    "score": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ],
      "description": "Headline metric"
    },
    "trend": {
      "type": "string",
      "description": "Direction vs prior period"
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "top_drivers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Driver"
      },
      "description": "Ranked factors explaining the score (Gold+ only)"
    },
    "prediction_horizon": {
      "type": "string"
    },
    "recommended_use": {
      "type": "string"
    },
    "methodology_version": {
      "type": "string"
    },
    "freshness": {
      "type": "string",
      "format": "date-time"
    },
    "coverage": {
      "type": "string"
    },
    "source_lineage": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowed_use": {
      "type": "string"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "Driver": {
      "type": "object",
      "required": [
        "factor",
        "contribution"
      ],
      "properties": {
        "factor": {
          "type": "string",
          "description": "Named driver of the score"
        },
        "contribution": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ],
          "description": "Numeric weight or label contribution"
        }
      }
    }
  }
}