{
  "swagger": "2.0",
  "info": {
    "title": "Connect download service",
    "version": "0.1507.0",
    "description": "Send your API key as a bearer token: `Authorization: Bearer <api key>`."
  },
  "tags": [
    {
      "name": "ConnectDownloadService",
      "x-displayName": "Connect download service",
      "description": "Service for downloading Connect binaries",
      "x-errors": [
        {
          "status": 404,
          "errorCode": "NOT_FOUND",
          "errorName": "NominalConnectDownloadV1:ConnectDownloadServiceErrorConnectNotAvailable",
          "message": "Connect not available for download on this stack. Please contact support."
        }
      ]
    }
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/connect/v1/download/{platform}/uri": {
      "get": {
        "operationId": "ConnectDownloadService_GetLatestConnectUri",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetLatestConnectUriResponse"
            },
            "x-example": {
              "uri": "<uri>"
            }
          }
        },
        "parameters": [
          {
            "name": "platform",
            "in": "path",
            "required": true,
            "type": "string",
            "enum": [
              "macos",
              "macos-pkg",
              "windows",
              "ubuntu"
            ],
            "x-constraints": [
              "One of `macos`, `macos-pkg`, `windows`, `ubuntu`."
            ]
          }
        ],
        "tags": [
          "ConnectDownloadService"
        ],
        "summary": "Get latest connect uri",
        "description": "Get a pre-signed URL for downloading the latest version of Connect for a given platform Scoped to the caller's org, which picks the release channel. Any session may call it."
      }
    },
    "/connect/v1/download/{platform}/version": {
      "get": {
        "operationId": "ConnectDownloadService_GetLatestVersion",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/GetLatestVersionResponse"
            },
            "x-example": {
              "version": "<version>"
            }
          }
        },
        "parameters": [
          {
            "name": "platform",
            "in": "path",
            "required": true,
            "type": "string",
            "enum": [
              "macos",
              "macos-pkg",
              "windows",
              "ubuntu"
            ],
            "x-constraints": [
              "One of `macos`, `macos-pkg`, `windows`, `ubuntu`."
            ]
          }
        ],
        "tags": [
          "ConnectDownloadService"
        ],
        "summary": "Get latest version",
        "description": "Get the latest version string of Connect for a given platform Scoped to the caller's org, which picks the release channel. Any session may call it."
      }
    }
  },
  "definitions": {
    "GetLatestConnectUriResponse": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string"
        }
      }
    },
    "GetLatestVersionResponse": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        }
      }
    }
  },
  "securityDefinitions": {
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "Authorization",
      "description": "Your API key as a bearer token: `Authorization: Bearer <api key>`."
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}
