{
  "name": "ListRuns",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "GET",
    "path": "/auth/workspaces/{workspace}/runs",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "workspace": {
        "type": "string"
      }
    },
    "required": [
      "workspace"
    ],
    "title": "ListRunsRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "RunSummary": {
        "properties": {
          "command": {
            "type": "string"
          },
          "elapsedMs": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "pipeline": {
            "type": [
              "string",
              "null"
            ]
          },
          "runId": {
            "type": "string"
          },
          "startedAt": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "command",
          "runId",
          "startedAt",
          "status"
        ],
        "type": "object"
      }
    },
    "properties": {
      "runs": {
        "items": {
          "$ref": "#/definitions/RunSummary"
        },
        "type": "array"
      }
    },
    "required": [
      "runs"
    ],
    "title": "ListRunsResponse",
    "type": "object"
  }
}
