{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "admin": {
          "type": "boolean"
        },
        "read": {
          "type": "boolean"
        },
        "space": {
          "description": "The subspace this entry belongs to.",
          "format": "space-ref",
          "type": "string"
        },
        "write": {
          "type": "boolean"
        }
      },
      "required": [
        "space",
        "read",
        "write",
        "admin"
      ],
      "type": "object"
    },
    "main": {
      "description": "The published member entries of one account, keyed by the member's DID, across every subspace that publishes its members to the space holding this record. Written by the authority's host to the authority's own repo. Authoritative only in the authority's repo.",
      "key": "any",
      "record": {
        "properties": {
          "spaces": {
            "description": "One entry per subspace in which the account is a member.",
            "items": {
              "ref": "#entry",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "spaces"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.off-the-clock.subspace.member",
  "lexicon": 1
}
