{
  "openapi": "3.1.1",
  "info": {
    "title": "Switchboard API",
    "description": "Service health and scoped application controls. Integration and agent credentials are separate. Restart acceptance is not proof of recovery.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://switchboard.harperurias.com/"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agent/host": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostSample"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/hosts": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/public/hosts": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/hosts/{id}": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostVisibility"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/hosts/{id}/name": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisplayNameChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/backups": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/audit": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outcome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "until",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/servers": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/website-options": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteOptions"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/panel/csrf": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/session": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/setup": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OwnerInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/login": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/logout": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/password": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/users": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/users/{id}": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/applications": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationRegistration"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/applications/{id}/sharing": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationVisibilityChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/applications/{id}/controls": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ControlApproval"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/applications/{id}/name": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisplayNameChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/sso/providers": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/sso/{id}": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/sign-in/options": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/sign-in/directory": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/sign-in/settings": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInSettingsInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/servers/{id}/history": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/alerts": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/servers/{id}/alert-rules": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertRuleInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/node-policies/preview": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodePolicy"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/application-alert-rules": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/applications/{id}/alert-rules": {
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationAlertRuleInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/notifications": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationSettingsInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/notifications/test": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/panel/alerts/{id}/acknowledge": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/hosting": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HostingOverview"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/hosting": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostingCatalog"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/releases": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostingReleaseOverview"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/hosting/plans": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostingChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HostingPlan"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/hosting/plans/{planId}/apply": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/files": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/files/jobs": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/files/jobs/{jobId}": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/file-actions/{id}/result": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileCompletion"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/minecraft": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MinecraftOverview"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/minecraft/commands": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MinecraftCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/public/status": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicStatus"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/catalog": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SoftwareTemplate"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/runtime-templates": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuntimeTemplate"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceStatus"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatus"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/checks": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StoredCheck"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/actions": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActionJob"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/start": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A 1-128 character key. Reuse for retries of the same action; use a new key for a deliberate new action.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/stop": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A 1-128 character key. Reuse for retries of the same action; use a new key for a deliberate new action.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/restart": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A 1-128 character key. Reuse for retries of the same action; use a new key for a deliberate new action.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/reload": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A 1-128 character key. Reuse for retries of the same action; use a new key for a deliberate new action.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/backup": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A 1-128 character key. Reuse for retries of the same action; use a new key for a deliberate new action.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "Conflict"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/services/{id}/logs": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/actions/{id}": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionJob"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "IntegrationBearer": [ ]
          },
          {
            "PanelCookie": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/services": {
      "get": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/catalog": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCatalog"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/reports": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentReport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/logs": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentLogs"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/work/claim": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkItem"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    },
    "/api/v1/agent/actions/{id}/result": {
      "post": {
        "tags": [
          "Switchboard.Server"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionResult"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "AgentBearer": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ActionJob": {
        "required": [
          "id",
          "serviceId",
          "agentId",
          "requestedBy",
          "requestedAt",
          "expiresAt",
          "state",
          "startedAt",
          "completedAt",
          "detail"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "serviceId": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "requestedBy": {
            "type": "string"
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "state": {
            "type": "string"
          },
          "startedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "operation": {
            "type": "string",
            "default": "restart"
          },
          "hosting": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingChange"
              }
            ]
          }
        }
      },
      "ActionResult": {
        "required": [
          "state",
          "detail"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "AdvertisedApplication": {
        "required": [
          "id",
          "name",
          "actions",
          "adapter"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "adapter": {
            "type": "string"
          },
          "hosting": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCatalog"
              }
            ]
          },
          "files": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FileCapabilities"
              }
            ]
          },
          "minecraft": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MinecraftCapabilities"
              }
            ]
          }
        }
      },
      "AgentCatalog": {
        "required": [
          "applications"
        ],
        "type": "object",
        "properties": {
          "applications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdvertisedApplication"
            }
          }
        }
      },
      "AgentLogs": {
        "required": [
          "entries"
        ],
        "type": "object",
        "properties": {
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicationLog"
            }
          }
        }
      },
      "AgentReport": {
        "required": [
          "checks"
        ],
        "type": "object",
        "properties": {
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HealthSample"
            }
          }
        }
      },
      "AgentWorkItem": {
        "required": [
          "id",
          "serviceId",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "serviceId": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "operation": {
            "type": "string",
            "default": "restart"
          },
          "hosting": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingChange"
              }
            ]
          },
          "file": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FileCommand"
              }
            ]
          },
          "minecraft": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MinecraftCommand"
              }
            ]
          }
        }
      },
      "AlertRuleInput": {
        "required": [
          "revision",
          "enabled",
          "cpuPercent",
          "memoryPercent",
          "diskPercent",
          "holdSeconds",
          "missingSeconds"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "cpuPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "memoryPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "diskPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "holdSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "missingSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "appDownSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ApplicationAlertRuleInput": {
        "required": [
          "revision",
          "enabled",
          "crash",
          "unresponsiveSeconds"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "crash": {
            "type": "boolean"
          },
          "unresponsiveSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ApplicationBackup": {
        "required": [
          "state",
          "latest",
          "detail"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "latest": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DataSnapshot"
              }
            ]
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "ApplicationLog": {
        "required": [
          "serviceId",
          "source",
          "sequence",
          "observedAt",
          "stream",
          "text"
        ],
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "sequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "observedAt": {
            "type": "string",
            "format": "date-time"
          },
          "stream": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "ApplicationRegistration": {
        "required": [
          "agentId",
          "applicationId",
          "name"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "applicationId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "publishStatus": {
            "type": "boolean",
            "default": false
          },
          "expectedHostingDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedHostingActions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "expectedHostingMode": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ApplicationRuntime": {
        "required": [
          "state",
          "startedAt",
          "uptimeSeconds",
          "processId",
          "adapter"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "startedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "uptimeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "processId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "adapter": {
            "type": "string"
          },
          "recovered": {
            "type": "boolean",
            "default": false
          },
          "cpuPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "memoryBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "recoveryStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "nextRestartAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "restartAttempts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "logStatus": {
            "type": "string",
            "default": "disabled"
          },
          "blockedReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataBackup": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApplicationBackup"
              }
            ]
          },
          "recovery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RecoveryJournal"
              }
            ]
          },
          "nativeRestartCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ApplicationVisibility": {
        "required": [
          "publishStatus",
          "publishStatistics"
        ],
        "type": "object",
        "properties": {
          "publishStatus": {
            "type": "boolean"
          },
          "publishStatistics": {
            "type": "boolean"
          }
        }
      },
      "ApplicationVisibilityChange": {
        "required": [
          "publishStatus",
          "publishStatistics",
          "expectedPublishStatus",
          "expectedPublishStatistics"
        ],
        "type": "object",
        "properties": {
          "publishStatus": {
            "type": "boolean"
          },
          "publishStatistics": {
            "type": "boolean"
          },
          "expectedPublishStatus": {
            "type": "boolean"
          },
          "expectedPublishStatistics": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CloudflareTunnel": {
        "required": [
          "id",
          "name",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "CloudflareZone": {
        "required": [
          "id",
          "name",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "ControlApproval": {
        "required": [
          "actions"
        ],
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "DataSnapshot": {
        "required": [
          "id",
          "createdAt",
          "files",
          "bytes"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "files": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "DirectorySignIn": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "port": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "domain": {
            "type": "string"
          },
          "searchBase": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "baseDn": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DisplayNameChange": {
        "required": [
          "name",
          "expectedName"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "expectedName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "FileCapabilities": {
        "required": [
          "canWrite",
          "roots"
        ],
        "type": "object",
        "properties": {
          "canWrite": {
            "type": "boolean"
          },
          "roots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileRootInfo"
            }
          }
        }
      },
      "FileCommand": {
        "required": [
          "rootId",
          "operation",
          "path"
        ],
        "type": "object",
        "properties": {
          "rootId": {
            "type": "string"
          },
          "operation": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "revision": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentBase64": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "FileCompletion": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "result": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FileResult"
              }
            ]
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FileEntry": {
        "required": [
          "name",
          "kind",
          "bytes",
          "modifiedAt"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "bytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FileResult": {
        "required": [
          "operation",
          "rootId",
          "path"
        ],
        "type": "object",
        "properties": {
          "operation": {
            "type": "string"
          },
          "rootId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "revision": {
            "type": [
              "null",
              "string"
            ]
          },
          "entries": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FileEntry"
            }
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentBase64": {
            "type": [
              "null",
              "string"
            ]
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FileRootInfo": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "HealthSample": {
        "required": [
          "serviceId",
          "observedAt",
          "healthy",
          "durationMs",
          "detail"
        ],
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "string"
          },
          "observedAt": {
            "type": "string",
            "format": "date-time"
          },
          "healthy": {
            "type": "boolean"
          },
          "durationMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "detail": {
            "type": "string"
          },
          "runtime": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApplicationRuntime"
              }
            ]
          }
        }
      },
      "HostDisk": {
        "required": [
          "name",
          "totalBytes",
          "freeBytes"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "totalBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "freeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "HostingCatalog": {
        "required": [
          "revision",
          "domain",
          "choices"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "choices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostingChoice"
            }
          },
          "warning": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificateExpiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "software": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SoftwareInstallation"
            }
          },
          "installationOnly": {
            "type": "boolean",
            "default": false
          },
          "controlApplicationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "deployment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingDeployment"
              }
            ]
          },
          "php": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingPhp"
              }
            ]
          },
          "cloudflare": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCloudflare"
              }
            ]
          },
          "certificate": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCertificate"
              }
            ]
          }
        }
      },
      "HostingCertificate": {
        "required": [
          "state",
          "kind",
          "issuer",
          "expiresAt",
          "detail"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "issuer": {
            "type": [
              "null",
              "string"
            ]
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "HostingChange": {
        "required": [
          "choiceId",
          "revision"
        ],
        "type": "object",
        "properties": {
          "choiceId": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "HostingChoice": {
        "required": [
          "id",
          "name",
          "operation",
          "summary"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "operation": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "catalogId": {
            "type": "string",
            "default": ""
          }
        }
      },
      "HostingCloudflare": {
        "required": [
          "state",
          "checkedAt",
          "domain",
          "zones",
          "tunnels",
          "selectedTunnelId",
          "connectorState",
          "detail"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "checkedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "domain": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloudflareZone"
            }
          },
          "tunnels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloudflareTunnel"
            }
          },
          "selectedTunnelId": {
            "type": [
              "null",
              "string"
            ]
          },
          "connectorState": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "HostingDeployment": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "currentReleaseId": {
            "type": [
              "null",
              "string"
            ]
          },
          "currentReleaseName": {
            "type": [
              "null",
              "string"
            ]
          },
          "deployedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "previousReleaseId": {
            "type": [
              "null",
              "string"
            ]
          },
          "previousReleaseName": {
            "type": [
              "null",
              "string"
            ]
          },
          "canRollback": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "HostingOverview": {
        "required": [
          "id",
          "name",
          "agentId",
          "state",
          "domain",
          "observedAt",
          "fresh",
          "choices"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "domain": {
            "type": [
              "null",
              "string"
            ]
          },
          "observedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fresh": {
            "type": "boolean"
          },
          "choices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostingChoice"
            }
          },
          "warning": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificateExpiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "software": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SoftwareInstallation"
            }
          },
          "installationOnly": {
            "type": "boolean",
            "default": false
          },
          "webServer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ServiceStatus"
              }
            ]
          },
          "deployment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingDeployment"
              }
            ]
          },
          "php": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingPhp"
              }
            ]
          },
          "cloudflare": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCloudflare"
              }
            ]
          },
          "certificate": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCertificate"
              }
            ]
          },
          "files": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FileCapabilities"
              }
            ]
          }
        }
      },
      "HostingPhp": {
        "required": [
          "currentVersionId",
          "currentVersionName",
          "observedVersion",
          "state",
          "versions"
        ],
        "type": "object",
        "properties": {
          "currentVersionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "currentVersionName": {
            "type": [
              "null",
              "string"
            ]
          },
          "observedVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "type": "string"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostingPhpVersion"
            }
          }
        }
      },
      "HostingPhpVersion": {
        "required": [
          "id",
          "name",
          "expectedVersion",
          "state"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "expectedVersion": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "HostingPlan": {
        "required": [
          "id",
          "serviceId",
          "choice",
          "revision",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "serviceId": {
            "type": "string"
          },
          "choice": {
            "$ref": "#/components/schemas/HostingChoice"
          },
          "revision": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "HostingReleaseOverview": {
        "required": [
          "catalog",
          "actions",
          "fresh"
        ],
        "type": "object",
        "properties": {
          "catalog": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HostingCatalog"
              }
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActionJob"
            }
          },
          "fresh": {
            "type": "boolean"
          }
        }
      },
      "HostSample": {
        "required": [
          "observedAt",
          "machineName",
          "operatingSystem",
          "processorCount",
          "uptimeSeconds",
          "cpuPercent",
          "totalMemoryBytes",
          "availableMemoryBytes",
          "disks",
          "networkReceiveBytesPerSecond",
          "networkSendBytesPerSecond",
          "processCount"
        ],
        "type": "object",
        "properties": {
          "observedAt": {
            "type": "string",
            "format": "date-time"
          },
          "machineName": {
            "type": "string"
          },
          "operatingSystem": {
            "type": "string"
          },
          "processorCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "uptimeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "cpuPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalMemoryBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "availableMemoryBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "disks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostDisk"
            }
          },
          "networkReceiveBytesPerSecond": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "networkSendBytesPerSecond": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "processCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "HostVisibility": {
        "required": [
          "publishStatistics",
          "label"
        ],
        "type": "object",
        "properties": {
          "publishStatistics": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "LoginInput": {
        "required": [
          "username",
          "password"
        ],
        "type": "object",
        "properties": {
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "LogPage": {
        "required": [
          "entries",
          "nextCursor",
          "gap"
        ],
        "type": "object",
        "properties": {
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StoredLog"
            }
          },
          "nextCursor": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "gap": {
            "type": "boolean"
          }
        }
      },
      "ManagedOidc": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "authority": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "publicClient": {
            "type": "boolean"
          },
          "secret": {
            "type": "string"
          }
        }
      },
      "MinecraftCapabilities": {
        "required": [
          "edition",
          "actions",
          "state",
          "detail"
        ],
        "type": "object",
        "properties": {
          "edition": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "MinecraftCommand": {
        "required": [
          "action"
        ],
        "type": "object",
        "properties": {
          "action": {
            "type": "string"
          },
          "player": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "MinecraftOverview": {
        "required": [
          "id",
          "name",
          "capabilities",
          "canControl",
          "observedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "capabilities": {
            "$ref": "#/components/schemas/MinecraftCapabilities"
          },
          "canControl": {
            "type": "boolean"
          },
          "observedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "NodePolicy": {
        "required": [
          "mode",
          "members"
        ],
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "automaticTakeover": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "NotificationSettingsInput": {
        "required": [
          "revision",
          "enabled"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "webhook": {
            "type": [
              "null",
              "string"
            ]
          },
          "clearWebhook": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "OwnerInput": {
        "required": [
          "setupToken",
          "username",
          "password"
        ],
        "type": "object",
        "properties": {
          "setupToken": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "PasswordInput": {
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "currentPassword": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        }
      },
      "Permission": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PublicApplicationStatistics": {
        "required": [
          "state",
          "uptimeSeconds",
          "cpuPercent",
          "memoryBytes"
        ],
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "uptimeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "cpuPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "memoryBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "PublicStatus": {
        "required": [
          "id",
          "name",
          "state",
          "checkedAt",
          "durationMs"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "checkedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "statistics": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PublicApplicationStatistics"
              }
            ]
          }
        }
      },
      "RecoveryEvent": {
        "required": [
          "sequence",
          "occurredAt",
          "phase",
          "attempt"
        ],
        "type": "object",
        "properties": {
          "sequence": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "phase": {
            "type": "string"
          },
          "attempt": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RecoveryJournal": {
        "required": [
          "streamId",
          "events"
        ],
        "type": "object",
        "properties": {
          "streamId": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecoveryEvent"
            }
          }
        }
      },
      "RuntimeProvider": {
        "required": [
          "manager",
          "platform",
          "package",
          "exactPackageVersion"
        ],
        "type": "object",
        "properties": {
          "manager": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "package": {
            "type": "string"
          },
          "exactPackageVersion": {
            "type": "boolean"
          }
        }
      },
      "RuntimeTemplate": {
        "required": [
          "id",
          "name",
          "catalogId",
          "providers"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "catalogId": {
            "type": "string"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RuntimeProvider"
            }
          }
        }
      },
      "ServiceStatus": {
        "required": [
          "id",
          "name",
          "agentId",
          "state",
          "latestCheck"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "agentId": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "latestCheck": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StoredCheck"
              }
            ]
          },
          "allowedActions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "files": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FileCapabilities"
              }
            ]
          },
          "publicSharing": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApplicationVisibility"
              }
            ]
          },
          "minecraft": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MinecraftCapabilities"
              }
            ]
          }
        }
      },
      "SignInSettingsInput": {
        "required": [
          "revision",
          "mode"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "allowedDomains": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "directory": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DirectorySignIn"
              }
            ]
          },
          "sso": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ManagedOidc"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SoftwareInstallation": {
        "required": [
          "id",
          "name",
          "catalogId",
          "state",
          "expectedVersion",
          "updatedAt",
          "detail"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "catalogId": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "expectedVersion": {
            "type": "string"
          },
          "updatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "SoftwareTemplate": {
        "required": [
          "id",
          "name",
          "category",
          "platforms",
          "preset",
          "description",
          "requirements",
          "documentationUrl"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preset": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentationUrl": {
            "type": "string"
          }
        }
      },
      "StoredCheck": {
        "required": [
          "id",
          "sample",
          "receivedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sample": {
            "$ref": "#/components/schemas/HealthSample"
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "StoredLog": {
        "required": [
          "id",
          "entry"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "entry": {
            "$ref": "#/components/schemas/ApplicationLog"
          }
        }
      },
      "UserInput": {
        "required": [
          "username",
          "password",
          "isAdmin",
          "disabled",
          "permissions"
        ],
        "type": "object",
        "properties": {
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "isAdmin": {
            "type": "boolean"
          },
          "disabled": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Permission"
            }
          }
        }
      },
      "UserUpdate": {
        "required": [
          "isAdmin",
          "disabled",
          "permissions"
        ],
        "type": "object",
        "properties": {
          "isAdmin": {
            "type": "boolean"
          },
          "disabled": {
            "type": "boolean"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Permission"
            }
          },
          "newPassword": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WebsiteAgentOption": {
        "required": [
          "agentId",
          "name",
          "platform",
          "state"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "WebsiteOptions": {
        "required": [
          "agents",
          "profiles",
          "registeredIds"
        ],
        "type": "object",
        "properties": {
          "agents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebsiteAgentOption"
            }
          },
          "profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebsiteProfileOption"
            }
          },
          "registeredIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WebsiteProfileOption": {
        "required": [
          "agentId",
          "applicationId",
          "name",
          "domain",
          "actions",
          "reportedAt",
          "fresh",
          "canCreate"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "applicationId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reportedAt": {
            "type": "string",
            "format": "date-time"
          },
          "fresh": {
            "type": "boolean"
          },
          "canCreate": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "IntegrationBearer": {
        "type": "http",
        "description": "Integration token with service-specific read or restart permission.",
        "scheme": "bearer"
      },
      "AgentBearer": {
        "type": "http",
        "description": "Agent token, usable only for assigned services.",
        "scheme": "bearer"
      },
      "PanelCookie": {
        "type": "apiKey",
        "description": "Browser session. Mutations require X-CSRF-Token from /api/v1/panel/csrf. Panel setup/login have their own bootstrap/password checks.",
        "name": "switchboard.panel",
        "in": "cookie"
      }
    }
  },
  "tags": [
    {
      "name": "Switchboard.Server"
    }
  ]
}