{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/monid/main/json-schema/monid-workspace-run-cap-run-schema.json",
  "title": "WorkspaceRunCapRun",
  "x-generated": "2026-10-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monid-controls-api-openapi.yml#/components/schemas/WorkspaceRunCapRun",
  "type": "object",
  "properties": {
    "runCapControlId": {
      "type": "string"
    },
    "runId": {
      "type": "string",
      "description": "Run ID (ULID)."
    },
    "estimatedCost": {
      "type": "number",
      "description": "Estimated cost at check time, in dollars."
    },
    "currency": {
      "type": "string",
      "enum": [
        "USD"
      ]
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "limitAmount": {
          "type": "number"
        }
      },
      "required": [
        "limitAmount"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "PASSED",
        "BLOCKED"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "runCapControlId",
    "runId",
    "estimatedCost",
    "currency",
    "snapshot",
    "status",
    "createdAt"
  ]
}