{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/worldmonitor-app/json-schema/worldmonitor-app-worldmonitor-intelligence-v1-compute-energy-shock-scenario-response-schema.json",
  "title": "worldmonitor_intelligence_v1_ComputeEnergyShockScenarioResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/worldmonitor-app-openapi.json#/components/schemas/worldmonitor_intelligence_v1_ComputeEnergyShockScenarioResponse",
  "type": "object",
  "properties": {
    "countryCode": {
      "type": "string"
    },
    "chokepointId": {
      "type": "string"
    },
    "disruptionPct": {
      "type": "integer",
      "format": "int32"
    },
    "gulfCrudeShare": {
      "type": "number",
      "format": "double",
      "description": "Headline: preCrisisBaseline.gulfCrudeShare, a fraction of import value (tonnes if national_monthly) times the route factor; 0 when that baseline is absent or fuel_mode is gas."
    },
    "crudeLossKbd": {
      "type": "number",
      "format": "double",
      "description": "Headline: preCrisisBaseline.crudeLossAfterBypassKbd when present, else preCrisisBaseline.crudeLossKbd; 0 when the loss is not modeled or fuel_mode is gas."
    },
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/worldmonitor_intelligence_v1_ProductImpact"
      }
    },
    "effectiveCoverDays": {
      "type": "integer",
      "format": "int32",
      "description": "-1 marks a net oil exporter: the IEA flag, or, without an IEA record, a JODI crude row with positive production, crude exports above imports (unreported imports count as zero; an invalid reported figure disqualifies the row), and production at least refinery intake when intake is reported. No import-cover duration applies. It does not mean domestic supply is unexposed."
    },
    "assessment": {
      "type": "string"
    },
    "dataAvailable": {
      "type": "boolean"
    },
    "jodiOilCoverage": {
      "type": "boolean",
      "description": "v2 fields"
    },
    "comtradeCoverage": {
      "type": "boolean"
    },
    "ieaStocksCoverage": {
      "type": "boolean"
    },
    "portwatchCoverage": {
      "type": "boolean"
    },
    "coverageLevel": {
      "type": "string"
    },
    "limitations": {
      "$ref": "#/$defs/WM15"
    },
    "degraded": {
      "type": "boolean"
    },
    "chokepointConfidence": {
      "type": "string"
    },
    "liveFlowRatio": {
      "type": "number",
      "format": "double"
    },
    "gasImpact": {
      "deprecated": true,
      "$ref": "#/$defs/worldmonitor_intelligence_v1_GasImpact"
    },
    "gasSensitivity": {
      "$ref": "#/$defs/worldmonitor_intelligence_v1_GasSensitivity"
    },
    "preCrisisBaseline": {
      "$ref": "#/$defs/worldmonitor_intelligence_v1_CrudeShareBaseline"
    },
    "currentFlows": {
      "$ref": "#/$defs/worldmonitor_intelligence_v1_CrudeShareBaseline"
    },
    "reserveEstimate": {
      "deprecated": true,
      "$ref": "#/$defs/worldmonitor_intelligence_v1_ReserveEstimate"
    },
    "reportedStocks": {
      "$ref": "#/$defs/worldmonitor_intelligence_v1_ReportedStocks"
    }
  },
  "$defs": {
    "WM15": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "worldmonitor_intelligence_v1_CrudeShareBaseline": {
      "type": "object",
      "properties": {
        "basis": {
          "type": "string",
          "description": "\"comtrade_monthly\" (UN Comtrade import value); \"national_monthly\" (the importer's own customs or regulator statistics in tonnes, a volume share; Turkey from EPDK, as Turkey files no crude partners to Comtrade); or \"comtrade_annual\" for the annual partner-share fallback."
        },
        "fromMonth": {
          "type": "string"
        },
        "toMonth": {
          "type": "string"
        },
        "monthsCovered": {
          "type": "integer",
          "format": "int32"
        },
        "gulfCrudeShare": {
          "type": "number",
          "format": "double",
          "description": "Gulf share of crude import value (tonnes if national_monthly) times the chokepoint route factor: 1.0 for Hormuz and Bab el-Mandeb, 0.6 for Suez and 0.7 for Malacca, where it is below the measured Gulf import share."
        },
        "crudeLossKbd": {
          "type": "number",
          "format": "double",
          "description": "Loss at disruption_pct on the Gulf supplier share, with no bypass recovery. Comtrade records origin, not route, so for currentFlows it counts crude already loading at Yanbu or Fujairah (an upper bound). 0 when not modeled (see limitations)."
        },
        "crudeLossAfterBypassKbd": {
          "type": "number",
          "format": "double",
          "description": "preCrisisBaseline only: steady state after Hormuz bypass rerouting. Absent for other chokepoints, without per-exporter shares, or when the loss is not modeled."
        }
      },
      "description": "Gulf crude share over one window and the crude loss it implies. preCrisisBaseline: the 12 months before the Hormuz crisis from at least 9 monthly filings (Comtrade, or national statistics for an importer with no Comtrade partner filings), else the annual share (basis comtrade_annual); drives the headline, products and cover. currentFlows: the latest 3 monthly filings since the crisis; absent when unavailable, never used for the products array or cover; the \"product balance, current flows\" line in limitations nets its crude loss."
    },
    "worldmonitor_intelligence_v1_GasImpact": {
      "type": "object",
      "properties": {
        "lngShareOfImports": {
          "type": "number",
          "format": "double"
        },
        "lngImportsTj": {
          "type": "number",
          "format": "double"
        },
        "lngDisruptionTj": {
          "type": "number",
          "format": "double"
        },
        "totalDemandTj": {
          "type": "number",
          "format": "double"
        },
        "deficitPct": {
          "type": "number",
          "format": "double"
        },
        "dataAvailable": {
          "type": "boolean"
        },
        "assessment": {
          "type": "string"
        },
        "storage": {
          "$ref": "#/$defs/worldmonitor_intelligence_v1_GasStorageBuffer"
        },
        "dataSource": {
          "type": "string"
        }
      }
    },
    "worldmonitor_intelligence_v1_GasSensitivity": {
      "type": "object",
      "properties": {
        "lngShareOfImports": {
          "type": "number",
          "format": "double",
          "description": "Fraction, not percent. Absent when the measurement is unavailable."
        },
        "lngImportsTj": {
          "type": "number",
          "format": "double"
        },
        "lngDisruptionTj": {
          "type": "number",
          "format": "double",
          "description": "Monthly LNG loss at the route share, independent of current shipping flow."
        },
        "totalDemandTj": {
          "type": "number",
          "format": "double"
        },
        "deficitPct": {
          "type": "number",
          "format": "double",
          "description": "Loss as percent of recorded demand. May exceed 100; not a supply-shortage estimate."
        },
        "dataAvailable": {
          "type": "boolean"
        },
        "assessment": {
          "type": "string"
        },
        "storage": {
          "$ref": "#/$defs/worldmonitor_intelligence_v1_GasStorageObservation"
        },
        "dataSource": {
          "type": "string"
        },
        "dataMonth": {
          "type": "string",
          "description": "JODI observation month (YYYY-MM), or empty when unknown. Availability does not imply freshness."
        },
        "modelBasis": {
          "type": "string",
          "description": "\"comtrade_lng_origin_share\" (Hormuz), \"observed_zero_lng_imports\", or \"assumed_route_sensitivity\" (fixed route share)."
        },
        "preCrisisBaseline": {
          "$ref": "#/$defs/worldmonitor_intelligence_v1_LngShareBaseline"
        },
        "currentFlows": {
          "$ref": "#/$defs/worldmonitor_intelligence_v1_LngShareBaseline"
        }
      }
    },
    "worldmonitor_intelligence_v1_GasStorageBuffer": {
      "type": "object",
      "properties": {
        "fillPct": {
          "type": "number",
          "format": "double"
        },
        "gasTwh": {
          "type": "number",
          "format": "double"
        },
        "bufferDays": {
          "type": "number",
          "format": "double"
        },
        "trend": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        }
      }
    },
    "worldmonitor_intelligence_v1_GasStorageObservation": {
      "type": "object",
      "properties": {
        "fillPct": {
          "type": "number",
          "format": "double"
        },
        "gasTwh": {
          "type": "number",
          "format": "double"
        },
        "trend": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        }
      }
    },
    "worldmonitor_intelligence_v1_LngShareBaseline": {
      "type": "object",
      "properties": {
        "basis": {
          "type": "string",
          "description": "\"comtrade_monthly\" or \"comtrade_annual\"."
        },
        "fromMonth": {
          "type": "string"
        },
        "toMonth": {
          "type": "string"
        },
        "monthsCovered": {
          "type": "integer",
          "format": "int32"
        },
        "hormuzLngShare": {
          "type": "number",
          "format": "double"
        },
        "lngDisruptionTj": {
          "type": "number",
          "format": "double"
        }
      },
      "description": "Hormuz (Qatar, UAE) share of LNG imports over one window, from UN Comtrade HS 271111."
    },
    "worldmonitor_intelligence_v1_ProductImpact": {
      "type": "object",
      "properties": {
        "product": {
          "type": "string"
        },
        "outputLossKbd": {
          "type": "number",
          "format": "double"
        },
        "demandKbd": {
          "type": "number",
          "format": "double",
          "description": "JODI demand; with none in the window or latest month, national annual final consumption 0-3 years before the flow month (a \"Product demand for\" limitation)."
        },
        "deficitPct": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "worldmonitor_intelligence_v1_ReportedStocks": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "\"jodi\"."
        },
        "month": {
          "type": "string",
          "description": "YYYY-MM, the month the stocks closed."
        },
        "crudeMb": {
          "type": "number",
          "format": "double",
          "description": "Millions of barrels, as are products_mb and total_mb; each rounded separately."
        },
        "productsMb": {
          "type": "number",
          "format": "double"
        },
        "totalMb": {
          "type": "number",
          "format": "double"
        },
        "stockDays": {
          "type": "integer",
          "format": "int32",
          "description": "total_mb in days of JODI crude imports; absent unless the stocks set the cover."
        }
      },
      "description": "Month-end oil stocks a country without an IEA record reports to JODI (not IEA data). They set effective_cover_days only when stock_days is present; a net exporter keeps -1. Whether government reserves count depends on the reporter."
    },
    "worldmonitor_intelligence_v1_ReserveEstimate": {
      "type": "object",
      "properties": {
        "scope": {
          "type": "string"
        },
        "asOf": {
          "type": "string"
        },
        "credibility": {
          "type": "string",
          "description": "\"high\" or \"low\"."
        },
        "lowMb": {
          "type": "number",
          "format": "double"
        },
        "centralMb": {
          "type": "number",
          "format": "double"
        },
        "highMb": {
          "type": "number",
          "format": "double"
        },
        "coverDaysLow": {
          "type": "integer",
          "format": "int32",
          "description": "Cover at the low and high stock; absent when the loss is not modeled."
        },
        "coverDaysHigh": {
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "Deprecated: hand-entered reserve estimates were replaced by ReportedStocks."
    }
  }
}