{
  "lexicon": 1,
  "id": "org.tangled.temp.site.getDomainClaim",
  "defs": {
    "main": {
      "type": "query",
      "description": "Get the active sites domain or a verified signup handle for the authenticated user, if any. A signup handle may not have a D1 claim row until the first site write.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "domain": {
              "type": "string",
              "description": "the site domain (e.g. 'alice.tngl.io') or a verified signup handle, absent if neither exists"
            }
          }
        }
      },
      "errors": [
        { "name": "ClaimUnverifiable", "description": "The handle authority could not be reached to verify this claim." }
      ]
    }
  }
}
