{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Join a home with an invite token as a member (no approval step).",
      "errors": [
        {
          "name": "InvalidInvite"
        },
        {
          "name": "InviteExpired"
        },
        {
          "name": "InviteUsedUp"
        },
        {
          "name": "AlreadyMember"
        },
        {
          "name": "RateLimitExceeded"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "displayName": {
              "maxLength": 64,
              "type": "string"
            },
            "photo": {
              "accept": [
                "image/*"
              ],
              "maxSize": 5000000,
              "type": "blob"
            },
            "relationship": {
              "maxLength": 32,
              "type": "string"
            },
            "token": {
              "type": "string"
            }
          },
          "required": [
            "token",
            "displayName",
            "relationship"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "role": {
              "knownValues": [
                "member"
              ],
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "role"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.home.join",
  "lexicon": 1
}
