{
  "name": "IssueRunnerRegistration",
  "plane": "control",
  "terraformEligible": false,
  "subProduct": "runner",
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudDeploy.Runner.IssueRunnerRegistration",
    "service": "deploy"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "poolId": {
        "type": "string"
      },
      "sessionId": {
        "type": "string"
      }
    },
    "required": [
      "poolId",
      "sessionId"
    ],
    "title": "IssueRunnerRegistrationRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "expiresAt": {
        "type": "string"
      },
      "labels": {
        "description": "Runner labels (`self-hosted` plus the pool labels).",
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "token": {
        "type": "string"
      },
      "url": {
        "description": "GitHub repo or org URL for `config.sh --url`.",
        "type": "string"
      }
    },
    "required": [
      "expiresAt",
      "labels",
      "token",
      "url"
    ],
    "title": "IssueRunnerRegistrationResponse",
    "type": "object"
  }
}
