{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidCapability"
        },
        {
          "name": "EndpointConflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "capability": {
              "maxLength": 128,
              "minLength": 32,
              "type": "string"
            },
            "endpoint": {
              "format": "uri",
              "type": "string"
            },
            "installationId": {
              "maxLength": 36,
              "minLength": 36,
              "type": "string"
            },
            "keys": {
              "ref": "#pushKeys",
              "type": "ref"
            }
          },
          "required": [
            "installationId",
            "capability",
            "endpoint",
            "keys"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "registered": {
              "type": "boolean"
            }
          },
          "required": [
            "registered"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "pushKeys": {
      "properties": {
        "auth": {
          "type": "string"
        },
        "p256dh": {
          "type": "string"
        }
      },
      "required": [
        "p256dh",
        "auth"
      ],
      "type": "object"
    }
  },
  "id": "com.suibari.nagi.refreshPushSubscription",
  "lexicon": 1
}
