{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/kill-request.schema.json",
  "title": "Kill request",
  "description": "The body of POST /v1/runs/{id}/kill. Without confirmToken it asks for the preview; with the token that preview returned it performs the kill.",
  "type": "object",
  "additionalProperties": false,
  "required": ["contractVersion"],
  "properties": {
    "contractVersion": {
      "type": "string",
      "pattern": "^1\\.[0-9]+\\.[0-9]+$",
      "x-sensitivity": "none"
    },
    "confirmToken": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{16,128}$",
      "x-sensitivity": "none",
      "description": "The confirmToken the preview returned. Single use, valid for 120 seconds, bound to the route and the run."
    }
  }
}
