{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Opt this account and installation into native Orbyt notifications. A separate read-only notification grant may require consent.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "appState": {
              "maxLength": 128,
              "minLength": 32,
              "type": "string"
            },
            "deviceId": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "environment": {
              "knownValues": [
                "development",
                "production"
              ],
              "type": "string"
            },
            "token": {
              "maxLength": 512,
              "minLength": 32,
              "type": "string"
            }
          },
          "required": [
            "deviceId",
            "token",
            "environment",
            "appState"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "authorizationUrl": {
              "format": "uri",
              "type": "string"
            },
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "revocationToken": {
              "maxLength": 128,
              "minLength": 32,
              "type": "string"
            },
            "status": {
              "knownValues": [
                "active",
                "authorizationRequired",
                "disabled"
              ],
              "type": "string"
            }
          },
          "required": [
            "status",
            "revocationToken"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.notification.registerPush",
  "lexicon": 1
}
