{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closureVersion": {
              "description": "The `v` of the dev.nibling.npm.getClosure header this gateway sends.",
              "type": "integer"
            },
            "registry": {
              "description": "The registry its closures come from. A client uses only closures from the registry it installs from.",
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "closureVersion",
            "registry"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "What an npm gateway says about itself, so a client can check a hostname before keeping it, as tangled's knots answer sh.tangled.knot.version. A gateway is named by its hostname and answers at https://<host>/xrpc/.",
  "id": "dev.nibling.npm.describeGateway",
  "lexicon": 1
}
