tools.umbrae.community.invite

Invite an account; one that already asked becomes a member. Re-invites a removed account. Moderators only: the accounts its managing app names. Served by the community's managing app, at the service its ref's app names, with atproto service auth (iss the caller, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to the ref's app. Any managing app may serve it: a serving app, or a PDS that manages its own communities.

Details · procedure
Kindprocedure
Authoritycommunity.umbrae.tools
Commit rev3n3bwrrr4bs2e
Indexed

Showing version bafyreifjy5p2xqia7dhlval24ws6ojx7uqzubhggll7xnrwvwnht6zgf4e. Show the latest

cid bafyreifjy5p2xqia7dhlval24ws6ojx7uqzubhggll7xnrwvwnht6zgf4e

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.roleNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.stateNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Invite an account; one that already asked becomes a member. Re-invites a removed account. Moderators only: the accounts its managing app names. Served by the community's managing app, at the service its ref's app names, with atproto service auth (iss the caller, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to the ref's app. Any managing app may serve it: a serving app, or a PDS that manages its own communities.",
      "errors": [
        {
          "description": "Not a community this managing app manages.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The caller lacks the role this needs.",
          "name": "NotAllowed"
        },
        {
          "description": "The managing app doesn't admit this account.",
          "name": "NotAdmitted"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "key": {
              "description": "The community's key within this app.",
              "maxLength": 63,
              "minLength": 1,
              "type": "string"
            },
            "role": {
              "description": "The role they join with. Absent: the community's default.",
              "knownValues": [
                "reader",
                "writer"
              ],
              "type": "string"
            }
          },
          "required": [
            "key",
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "state": {
              "knownValues": [
                "invited",
                "member"
              ],
              "type": "string"
            }
          },
          "required": [
            "state"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.umbrae.community.invite",
  "lexicon": 1
}