{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "RegistrationNotFound"
        },
        {
          "name": "Conflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "reason": {
              "maxLength": 256,
              "type": "string"
            },
            "role": {
              "enum": [
                "delegator",
                "caller"
              ],
              "type": "string"
            }
          },
          "required": [
            "did",
            "role",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "registration": {
              "ref": "party.whey.writeproxy.defs#registration",
              "type": "ref"
            }
          },
          "required": [
            "registration"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Suspend a delegator or caller registration. Requires a reason.",
  "id": "party.whey.writeproxy.admin.suspendRegistration",
  "lexicon": 1
}
