# social.coves.community.subscription

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscription)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscription/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscription/examples)

## Definitions

### `social.coves.community.subscription`

**Type**: `record`

A subscription to a community

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `endedAt` | `string` (datetime) | No | When the subscription ended (null if current) |
| `subject` | `string` (did) | Yes | DID of the community being subscribed to |
| `createdAt` | `string` (datetime) | Yes | When the subscription started |
| `contentVisibility` | `integer` | No | Content visibility level (1=only best content, 5=all content) |

## Raw Schema

```json
{
  "id": "social.coves.community.subscription",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "createdAt"
        ],
        "properties": {
          "endedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the subscription ended (null if current)"
          },
          "subject": {
            "type": "string",
            "format": "did",
            "description": "DID of the community being subscribed to"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the subscription started"
          },
          "contentVisibility": {
            "type": "integer",
            "default": 3,
            "maximum": 5,
            "minimum": 1,
            "description": "Content visibility level (1=only best content, 5=all content)"
          }
        }
      },
      "description": "A subscription to a community"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
