{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Cancel running pipeline or specific workflows",
      "errors": [
        {
          "description": "Invalid request parameters",
          "name": "InvalidRequest"
        },
        {
          "description": "Repository not found",
          "name": "RepoNotFound"
        },
        {
          "description": "Pipeline not found in this repository",
          "name": "PipelineNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pipeline": {
              "description": "Spindle-local pipeline id",
              "type": "string"
            },
            "repo": {
              "description": "git repository DID",
              "format": "did",
              "type": "string"
            },
            "workflows": {
              "description": "Workflow names to filter. When not provided, entire pipeline will be canceled.",
              "items": {
                "description": "workflow name",
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "repo",
            "pipeline"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.ci.cancelPipeline",
  "lexicon": 1
}
