{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stop sending push notifications for an account to a device. Other accounts on the same device are unaffected. Send a service-auth token bound to this method, or no token and the account's did: knowing the device token is proof enough to take it off the relay, so an app can still unregister an account whose session has expired.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "appId": {
              "type": "string"
            },
            "did": {
              "description": "The account to remove, when calling without a service-auth token.",
              "format": "did",
              "type": "string"
            },
            "platform": {
              "type": "string"
            },
            "token": {
              "maxLength": 4096,
              "type": "string"
            }
          },
          "required": [
            "platform",
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "blog.brookie.atprotify.unregisterPush",
  "lexicon": 1
}
