{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Membership of a server, written by the member into the server's directory space. Join *is* the write (ADR 0005): there is no separate roster to keep in step, because the directory's writer set converges to the exact roster by construction. Leaving is deleting this record.",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "invite": {
            "description": "The invite code this member joined with, when there was one. Retained for moderation provenance, not for access — the mint, not this field, decides what they can read (ADR 0007).",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "chat.yakka.member",
  "lexicon": 1
}
