rsvp.atmo.space.whoami

Report the caller's relationship to a space: whether they are the owner, a member, and at what permission level. Useful for clients to avoid a listMembers roundtrip.

Repository @atmo.rsvp did:plc:b63bmauox6z5rbibwrhxrdnw namespace authority
Details · query
Kindquery
Authorityspace.atmo.rsvp
Indexed
cid bafyreicgjkcz4kuceevdirjyj4pt6gymroq6j2eixiweq4dfp4cawmry4u

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.permsNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Report the caller's relationship to a space: whether they are the owner, a member, and at what permission level. Useful for clients to avoid a listMembers roundtrip.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "isMember": {
              "type": "boolean"
            },
            "isOwner": {
              "type": "boolean"
            },
            "perms": {
              "description": "Present only when the caller is a member or the owner.",
              "knownValues": [
                "read",
                "write"
              ],
              "type": "string"
            }
          },
          "required": [
            "isOwner",
            "isMember"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "spaceUri": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "spaceUri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "rsvp.atmo.space.whoami",
  "lexicon": 1
}