{
  "lexicon": 1,
  "id": "chat.bsky.group.enableJoinLink",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Re-enables a previously disabled join link for the group convo.",
      "errors": [
        { "name": "InvalidConvo" },
        { "name": "InsufficientRole" },
        { "name": "NoJoinLink" },
        { "name": "LinkAlreadyEnabled" }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["convoId"],
          "properties": {
            "convoId": { "type": "string" }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["joinLink"],
          "properties": {
            "joinLink": {
              "type": "ref",
              "ref": "chat.bsky.group.defs#joinLinkView"
            }
          }
        }
      }
    }
  }
}
