{
  "openapi": "3.1.1",
  "info": {
    "title": "Superbee Site Discovery API",
    "version": "1.0.0",
    "description": "A public, read-only API for discovering the Superbee CLI and website resources. It is not a hosted workspace API.",
    "license": {
      "name": "Apache-2.0",
      "url": "https://github.com/Holaxis-ai/superbee/blob/main/LICENSE"
    }
  },
  "servers": [
    {
      "url": "https://getsuperbee.com",
      "description": "Superbee public site"
    }
  ],
  "paths": {
    "/api/v1/site": {
      "get": {
        "operationId": "getSuperbeeSiteDiscovery",
        "summary": "Get public Superbee CLI and website discovery data",
        "description": "Returns no-auth, read-only metadata, install commands, and canonical discovery resource URLs.",
        "responses": {
          "200": {
            "description": "Public site discovery data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDiscovery"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status": {
      "get": {
        "operationId": "getSuperbeeSiteDiscoveryStatus",
        "summary": "Get public discovery API status",
        "description": "Returns the operational status and version of the read-only public discovery API.",
        "responses": {
          "200": {
            "description": "Discovery API status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "resolution"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "resolution": {
                "type": "string"
              }
            }
          }
        }
      },
      "SiteDiscovery": {
        "type": "object",
        "required": [
          "apiVersion",
          "authentication",
          "description",
          "homepage",
          "install",
          "name",
          "resources",
          "scope"
        ],
        "properties": {
          "apiVersion": {
            "type": "string"
          },
          "authentication": {
            "type": "string",
            "enum": [
              "none"
            ]
          },
          "description": {
            "type": "string"
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          },
          "homepage": {
            "type": "string",
            "format": "uri"
          },
          "install": {
            "type": "object",
            "required": [
              "command",
              "requirement",
              "setupCommand"
            ],
            "properties": {
              "command": {
                "type": "string"
              },
              "requirement": {
                "type": "string"
              },
              "setupCommand": {
                "type": "string"
              }
            }
          },
          "name": {
            "type": "string"
          },
          "resources": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          },
          "scope": {
            "type": "string"
          }
        }
      },
      "Status": {
        "type": "object",
        "required": [
          "apiVersion",
          "service",
          "status"
        ],
        "properties": {
          "apiVersion": {
            "type": "string"
          },
          "service": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          }
        }
      }
    }
  }
}