{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Removes a previously registered push endpoint.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The arguments are inconsistent or malformed beyond schema validation.",
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endpoint": {
              "description": "The Web Push subscription endpoint to remove.",
              "format": "uri",
              "type": "string"
            },
            "provider": {
              "description": "The push provider to unregister from.",
              "knownValues": [
                "webpush",
                "fcm",
                "apns"
              ],
              "type": "string"
            },
            "token": {
              "description": "The FCM registration token or APNs device token to remove.",
              "type": "string"
            }
          },
          "required": [
            "provider"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.notification.unregisterPush",
  "lexicon": 1
}
