{
  "openapi": "3.1.0",
  "info": {
    "title": "outsrc",
    "version": "0.2.1",
    "summary": "Read-only product facts for outsrc. Public install is the Bot Exchange template. No payment."
  },
  "servers": [
    {
      "url": "https://outsrc.ing"
    }
  ],
  "paths": {
    "/api/v1/install": {
      "get": {
        "operationId": "getInstall",
        "summary": "Public install plan.",
        "description": "Bot Exchange install is the primary path. No payment.",
        "responses": {
          "200": {
            "description": "Install steps as JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "install": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "setup": {
                      "type": "string"
                    },
                    "payment": {
                      "type": "boolean"
                    },
                    "targets": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "install",
                    "setup",
                    "payment",
                    "targets"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Unknown API path",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security": {
      "get": {
        "operationId": "getSecurity",
        "summary": "Security rules for a job.",
        "description": "Allowlist, worktree path, and which environment variables are kept.",
        "responses": {
          "200": {
            "description": "Security rules",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "payments": {
                      "type": "boolean"
                    },
                    "branch": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "payments",
                    "branch"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}