{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fails with 403 when the authorization was refused or did not log in as the caller, and with 404 for a delegation the caller did not start or that has ended.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "done": {
              "description": "Whether the gateway now writes for the caller. False means ask again.",
              "type": "boolean"
            }
          },
          "required": [
            "done"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "state": {
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "state"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Waits, for a while, for a delegation the caller started with dev.knotless.putDelegation to be approved. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.",
  "id": "dev.knotless.getDelegation",
  "lexicon": 1
}
