{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List a subspace's member entries. Auth: OAuth as the authority with a covering read_self grant, or service auth from a subspace admin.",
      "errors": [
        {
          "name": "SpaceNotFound"
        },
        {
          "description": "The space is not governed by the subspace policy.",
          "name": "PolicyMismatch"
        },
        {
          "name": "NotAuthorized"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "members": {
              "items": {
                "ref": "#member",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "members"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 100,
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "space": {
            "description": "Reference to the subspace.",
            "format": "space-ref",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "member": {
      "properties": {
        "admin": {
          "type": "boolean"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "read": {
          "type": "boolean"
        },
        "write": {
          "type": "boolean"
        }
      },
      "required": [
        "did",
        "read",
        "write",
        "admin"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.subspace.listMembers",
  "lexicon": 1
}
