{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-hold-list-response-schema.json",
  "title": "HoldListResponse",
  "description": "Response for GET /orchestrator/holds.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-orchestrator-holds-api-openapi.yml#/components/schemas/HoldListResponse",
  "properties": {
    "holds": {
      "items": {
        "$ref": "#/$defs/HoldResponse"
      },
      "type": "array",
      "title": "Holds"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    }
  },
  "type": "object",
  "required": [
    "holds",
    "count"
  ],
  "$defs": {
    "HoldResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "created_at": {
          "type": "number",
          "title": "Created At"
        },
        "ttl_seconds": {
          "type": "number",
          "title": "Ttl Seconds"
        },
        "expires_at": {
          "type": "number",
          "title": "Expires At"
        },
        "last_renewed_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Renewed At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "reason",
        "created_at",
        "ttl_seconds",
        "expires_at"
      ],
      "title": "HoldResponse",
      "description": "Serialised hold in API responses."
    }
  }
}