{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Ask to join, or redeem an invite. No role required; authenticated as the requester.",
      "errors": [
        {
          "name": "InviteRequired"
        },
        {
          "name": "AlreadyMember"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
              "format": "did",
              "type": "string"
            },
            "invite": {
              "format": "at-uri",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "group"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "status": {
              "knownValues": [
                "admitted",
                "pending"
              ],
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.requestJoin",
  "lexicon": 1
}
