{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Redeem an invite token. The JWT issuer becomes a member of the space with the invite's perms.",
      "errors": [
        {
          "name": "InvalidInvite"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "token": {
              "type": "string"
            }
          },
          "required": [
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "perms": {
              "knownValues": [
                "read",
                "write"
              ],
              "type": "string"
            },
            "spaceUri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "spaceUri",
            "perms"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "rsvp.atmo.space.invite.redeem",
  "lexicon": 1
}
