{
  "lexicon": 1,
  "id": "org.tangled.temp.site.releaseDomain",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Release the authenticated user's active domain claim, removing all associated site data.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["domain"],
          "properties": {
            "domain": {
              "type": "string",
              "description": "Full domain to release (must match the user's active claim)."
            }
          }
        }
      },
      "errors": [
        { "name": "DomainNotFound", "description": "No active claim found for the given domain under this account." }
      ]
    }
  }
}
