# ai.newnal.trustsquare.square

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.square)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.square/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.square/examples)

## Definitions

### `ai.newnal.trustsquare.square`

**Type**: `record`

A Trust Square: a verified-only comment/chat space attached to one piece of external content.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `mode` | `string` | Yes |  |
| `title` | `string` | No |  |
| `pinned` | `array` | No | Comments pinned by the creator. |
| `subject` | `union` | Yes | Open union so other platforms can be added later. |
| `settings` | `ref` → `ai.newnal.trustsquare.defs#squareSettings` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | No |  |

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.square",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "mode",
          "createdAt"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "knownValues": [
              "vod",
              "live"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "pinned": {
            "type": "array",
            "items": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref"
            },
            "maxLength": 3,
            "description": "Comments pinned by the creator."
          },
          "subject": {
            "refs": [
              "ai.newnal.trustsquare.defs#youtubeVideo"
            ],
            "type": "union",
            "description": "Open union so other platforms can be added later."
          },
          "settings": {
            "ref": "ai.newnal.trustsquare.defs#squareSettings",
            "type": "ref"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "description": {
            "type": "string",
            "maxLength": 10000,
            "maxGraphemes": 1000
          }
        }
      },
      "description": "A Trust Square: a verified-only comment/chat space attached to one piece of external content."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
