{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the configuration of a space on the arbiter.",
      "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"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "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 needed to evaluate the\naccess of the requesting user.",
              "minimum": 0,
              "type": "integer"
            },
            "spaceKey": {
              "description": "The key of the space to configure.",
              "type": "string"
            }
          },
          "required": [
            "arbiterDid",
            "spaceKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "config": {
              "description": "The space configuration object.",
              "refs": [],
              "type": "union"
            },
            "spaceType": {
              "description": "The type of the space.",
              "format": "nsid",
              "type": "string"
            }
          },
          "required": [
            "spaceType",
            "config"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "town.muni.arbiter.getSpaceConfig",
  "lexicon": 1
}
