chatBskyGroupRequestJoin top-level constant

Map<String, dynamic> const chatBskyGroupRequestJoin

chat.bsky.group.requestJoin

Implementation

const chatBskyGroupRequestJoin = <String, dynamic>{
  "lexicon": 1,
  "id": "chat.bsky.group.requestJoin",
  "defs": {
    "main": {
      "type": "procedure",
      "description":
          "Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["code"],
          "properties": {
            "code": {"type": "string"},
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["status"],
          "properties": {
            "status": {
              "type": "string",
              "knownValues": ["joined", "pending"],
            },
            "convo": {
              "type": "ref",
              "description":
                  "The group convo joined. This is only present in the case of status=joined",
              "ref": "chat.bsky.convo.defs#convoView",
            },
          },
        },
      },
      "errors": [
        {"name": "ConvoLocked"},
        {"name": "FollowRequired"},
        {"name": "InvalidCode"},
        {"name": "LinkDisabled"},
        {"name": "MemberLimitReached"},
        {"name": "UserKicked"},
      ],
    },
  },
};