{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A single account's membership in a Cluster. Lives inside the same Space as its parent `app.cosmosis.cluster` record. Delete this record to remove the account from the Cluster. The record key SHOULD be the subject's DID when that DID is a valid record key (true for all did:plc and most did:web identifiers), which makes writes idempotent and lets clients remove a member without a lookup; otherwise use a tid.",
      "key": "any",
      "record": {
        "properties": {
          "cluster": {
            "description": "URI of the parent Cluster record. Because Clusters are permissioned this is a space record URI (`at://<authority>/space/...`), and it must refer to the Cluster record in the same Space as this record. A plain URI (not a strongRef) is used so that editing the Cluster's name/description doesn't invalidate its members.",
            "format": "uri",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "subject": {
            "description": "The DID of the account in the Cluster.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "cluster",
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.cosmosis.clusterMember",
  "lexicon": 1
}
