{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "DelegationNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "maxLength": 128,
              "type": "string"
            },
            "reason": {
              "maxLength": 256,
              "type": "string"
            }
          },
          "required": [
            "delegation",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "ref": "party.whey.writeproxy.defs#delegation",
              "type": "ref"
            },
            "revoked": {
              "type": "boolean"
            }
          },
          "required": [
            "delegation",
            "revoked"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Revoke any delegation. Requires a reason. The operator must not add callers; this only removes the delegation.",
  "id": "party.whey.writeproxy.admin.revokeDelegation",
  "lexicon": 1
}
