town.muni.arbiter.resolveSpaceMembers

Get the flattened, resolved list of members for a space. This member list will be the same as what the server is expected to return as the space host, but it will additionally contain a member config object for each member. The details of the member config object are dependent on the server implementation and possibly the arbiter config type.

Repository @zicklag.dev did:plc:ulg2bzgrgs7ddjjlmhtegk3v namespace authority
Details · query
Kindquery
Authorityarbiter.muni.town
Indexed
cid bafyreiff75iw52qwqi2pom7zjqu5nzplu2o25qfcxw4ufsx5gp6wz4jre4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the flattened, resolved list of members for a space.\n\nThis member list will be the same as what the server is expected to return\nas the space host, but it will additionally contain a member config\nobject for each member.\n\nThe details of the member config object are dependent on the server implementation\nand possibly the arbiter config type.",
      "errors": [
        {
          "description": "The specified arbiter does not exist on this server.",
          "name": "ErrArbiterNotExists"
        },
        {
          "description": "The specified space does not exist on this arbiter.",
          "name": "ErrSpaceNotExists"
        },
        {
          "description": "The requesting user is not allowed to make the request.",
          "name": "ErrPermissionDenied"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "members": {
              "description": "The members of the space",
              "items": {
                "properties": {
                  "access": {
                    "description": "The member's access config object.",
                    "refs": [],
                    "type": "union"
                  },
                  "did": {
                    "description": "The member DID.",
                    "format": "did",
                    "type": "string"
                  }
                },
                "required": [
                  "did",
                  "access"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "missingSpaces": {
              "description": "Contains the list of remote spaces that could not be resolved.\n\nIf the hosts of remote spaces time out, then the server will reply with all\nof the members that it was able to resolve and will list the spaces that\ncould not be resolved in `missingSpaces`.",
              "items": {
                "properties": {
                  "access": {
                    "description": "The access object of the space that could not be resolved.",
                    "refs": [],
                    "type": "union"
                  },
                  "space": {
                    "description": "The space that could not be resolved.",
                    "ref": "town.muni.arbiter.defs#memberRemoteSpace",
                    "type": "ref"
                  }
                },
                "required": [
                  "space",
                  "access"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "members",
            "missingSpaces"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "arbiterDid": {
            "description": "The DID of the arbiter that the space is in.",
            "format": "did",
            "type": "string"
          },
          "resolverDepth": {
            "description": "The maximum depth to allow when doing remote resolutions.\n\nBecause spaces are allowed to have members resolved from remote spaces,\nall of the arbiter endpoints have an optional resolution depth parameter\nthat can be used to limit how many chained remote calls can be resolved.\n\nThis applies both to queries and procedures. Queries may need to resolve\nexternal members to complete the member list, and procedures may need\nto resolve external members if the requesting member is not in the local\nmember list, to see if the member has access through a remote list.",
            "type": "integer"
          },
          "spaceKey": {
            "description": "The key of the space to configure.",
            "maxLength": 1024,
            "type": "string"
          }
        },
        "required": [
          "arbiterDid",
          "spaceKey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.muni.arbiter.resolveSpaceMembers",
  "lexicon": 1
}