{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/withhuman-ai/json-schema/withhuman-ai-pipeline-references-schema.json",
  "title": "PipelineReferences",
  "description": "What one pipeline revision depends on, and whether each dependency is in place right now. activatable is false while any entry would refuse activation.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/withhuman-ai-openapi.yaml#/components/schemas/PipelineReferences",
  "type": "object",
  "required": [
    "escalation_paths",
    "webhook_endpoints",
    "pipelines",
    "blocks",
    "activatable"
  ],
  "properties": {
    "pipelines": {
      "type": "array",
      "description": "The pipelines the revision's delegate blocks hand requests to.",
      "items": {
        "type": "object",
        "required": [
          "pipeline_key",
          "block_keys",
          "exists",
          "active"
        ],
        "properties": {
          "pipeline_key": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9._-]{0,62}$"
          },
          "name": {
            "type": "string",
            "description": "The active revision's name. Absent while none is active."
          },
          "block_keys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The delegate blocks that name the pipeline."
          },
          "exists": {
            "type": "boolean",
            "description": "Whether the pipeline has a live revision (neither never created nor archived)."
          },
          "active": {
            "type": "boolean",
            "description": "Whether a revision of the pipeline is active."
          }
        }
      }
    },
    "escalation_paths": {
      "type": "array",
      "description": "The escalation paths the revision names.",
      "items": {
        "type": "object",
        "required": [
          "path_key",
          "block_keys",
          "default",
          "exists",
          "active"
        ],
        "properties": {
          "path_key": {
            "type": "string"
          },
          "block_keys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The blocks whose `human` outcome names the path."
          },
          "default": {
            "type": "boolean",
            "description": "Whether the revision names the path as its default."
          },
          "exists": {
            "type": "boolean",
            "description": "Whether at least one revision of the path exists."
          },
          "active": {
            "type": "boolean",
            "description": "Whether a revision of the path is active."
          }
        }
      }
    },
    "webhook_endpoints": {
      "type": "array",
      "description": "The webhook endpoints the revision posts to.",
      "items": {
        "type": "object",
        "required": [
          "endpoint_key",
          "block_keys",
          "exists",
          "active"
        ],
        "properties": {
          "endpoint_key": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9._-]{0,62}$"
          },
          "name": {
            "type": "string",
            "description": "The active revision's name. Absent while none is active."
          },
          "block_keys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The webhook blocks that post to the endpoint."
          },
          "exists": {
            "type": "boolean",
            "description": "Whether at least one revision of the endpoint exists."
          },
          "active": {
            "type": "boolean",
            "description": "Whether a revision of the endpoint is active."
          }
        }
      }
    },
    "blocks": {
      "type": "array",
      "description": "Blocks the deployment or the plan cannot run right now.",
      "items": {
        "type": "object",
        "required": [
          "block_key",
          "type",
          "problem"
        ],
        "properties": {
          "block_key": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "The kind of block."
          },
          "problem": {
            "type": "string",
            "description": "Why it cannot run. `plan`: the plan does not include it. `webhook_unconfigured`: the deployment has no secrets key. A kind the edition adds reports its own codes (the hosted judge's `llm_judge_unconfigured` and `judge_model_unavailable`)."
          }
        }
      }
    },
    "activatable": {
      "type": "boolean",
      "description": "Whether activating the revision would succeed right now."
    }
  }
}