# town.delve.membership.defs

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.defs/examples)

## Definitions

### `town.delve.membership.defs#membership`

**Type**: `object`

An account's standing in the town. Active members are indexed and served; withdrawn members keep what they posted but add nothing new; a suspended account is neither.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `joined` | `boolean` | Yes | Whether this account ever joined, by invite or by being hosted here. |
| `revision` | `integer` | Yes | Increments on every change; pass it back to make a change conditional. |
| `status` | `string` | Yes |  |
| `suspended` | `boolean` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "membership": {
      "description": "An account's standing in the town. Active members are indexed and served; withdrawn members keep what they posted but add nothing new; a suspended account is neither.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "joined": {
          "description": "Whether this account ever joined, by invite or by being hosted here.",
          "type": "boolean"
        },
        "revision": {
          "description": "Increments on every change; pass it back to make a change conditional.",
          "type": "integer"
        },
        "status": {
          "knownValues": [
            "active",
            "withdrawn"
          ],
          "type": "string"
        },
        "suspended": {
          "type": "boolean"
        }
      },
      "required": [
        "did",
        "status",
        "suspended",
        "revision",
        "joined"
      ],
      "type": "object"
    }
  },
  "id": "town.delve.membership.defs",
  "lexicon": 1
}
```
