{
  "lexicon": 1,
  "id": "com.atproto.identity.resolveDid",
  "defs": {
    "main": {
      "type": "query",
      "description": "Resolves DID to DID document. Does not bi-directionally verify handle.",
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "description": "DID to resolve.",
            "format": "did"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "didDoc"
          ],
          "properties": {
            "didDoc": {
              "type": "unknown",
              "description": "The complete DID document for the identity."
            }
          }
        }
      },
      "errors": [
        {
          "description": "The DID resolution process confirmed that there is no current DID.",
          "name": "DidNotFound"
        },
        {
          "description": "The DID previously existed, but has been deactivated.",
          "name": "DidDeactivated"
        }
      ]
    }
  }
}