chatBskyGroupCreateJoinLink top-level constant

Map<String, dynamic> const chatBskyGroupCreateJoinLink

chat.bsky.group.createJoinLink

Implementation

const chatBskyGroupCreateJoinLink = <String, dynamic>{
  "lexicon": 1,
  "id": "chat.bsky.group.createJoinLink",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Creates a join link for the group convo.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["convoId", "joinRule"],
          "properties": {
            "convoId": {"type": "string"},
            "requireApproval": {"type": "boolean", "default": false},
            "joinRule": {"type": "ref", "ref": "chat.bsky.group.defs#joinRule"},
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["joinLink"],
          "properties": {
            "joinLink": {
              "type": "ref",
              "ref": "chat.bsky.group.defs#joinLinkView",
            },
          },
        },
      },
      "errors": [
        {"name": "EnabledJoinLinkAlreadyExists"},
        {"name": "InvalidConvo"},
        {"name": "InsufficientRole"},
      ],
    },
  },
};