# com.suibari.nagi.post

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.post)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.post/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.post/examples)

## Definitions

### `com.suibari.nagi.post`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes |  |
| `embed` | `union` | No |  |
| `langs` | `array` | No |  |
| `reply` | `ref` → `#replyRef` | No |  |
| `facets` | `array` | No |  |
| `channel` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `kossori` | `boolean` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `linkCards` | `array` | No |  |
| `channelOnly` | `boolean` | No |  |
| `cwRestricted` | `boolean` | No |  |

### `com.suibari.nagi.post#image`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | Yes |  |
| `image` | `blob` | Yes |  |
| `aspectRatio` | `ref` → `app.bsky.embed.defs#aspectRatio` | No |  |
| `contentWarning` | `boolean` | No |  |

### `com.suibari.nagi.post#quote`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `images` | `array` | No |  |
| `record` | `ref` → `com.atproto.repo.strongRef` | Yes |  |

### `com.suibari.nagi.post#images`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `images` | `array` | Yes |  |

### `com.suibari.nagi.post#linkCard`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes |  |
| `thumb` | `blob` | No |  |
| `title` | `string` | Yes |  |
| `description` | `string` | No |  |

### `com.suibari.nagi.post#replyRef`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `root` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `parent` | `ref` → `com.atproto.repo.strongRef` | Yes |  |

## Raw Schema

```json
{
  "id": "com.suibari.nagi.post",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "createdAt"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 30000,
            "maxGraphemes": 3000
          },
          "embed": {
            "refs": [
              "#images",
              "#quote"
            ],
            "type": "union"
          },
          "langs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "language"
            },
            "maxLength": 3
          },
          "reply": {
            "ref": "#replyRef",
            "type": "ref"
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            }
          },
          "channel": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "kossori": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "linkCards": {
            "type": "array",
            "items": {
              "ref": "#linkCard",
              "type": "ref"
            },
            "maxLength": 4
          },
          "channelOnly": {
            "type": "boolean"
          },
          "cwRestricted": {
            "type": "boolean"
          }
        }
      }
    },
    "image": {
      "type": "object",
      "required": [
        "image",
        "alt"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 10000,
          "maxGraphemes": 1000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/jpeg",
            "image/png",
            "image/webp",
            "image/gif"
          ],
          "maxSize": 2000000
        },
        "aspectRatio": {
          "ref": "app.bsky.embed.defs#aspectRatio",
          "type": "ref"
        },
        "contentWarning": {
          "type": "boolean"
        }
      }
    },
    "quote": {
      "type": "object",
      "required": [
        "record"
      ],
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4,
          "minLength": 1
        },
        "record": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    },
    "images": {
      "type": "object",
      "required": [
        "images"
      ],
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4,
          "minLength": 1
        }
      }
    },
    "linkCard": {
      "type": "object",
      "required": [
        "uri",
        "title"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri",
          "maxLength": 2048
        },
        "thumb": {
          "type": "blob",
          "accept": [
            "image/jpeg",
            "image/png",
            "image/webp"
          ],
          "maxSize": 1000000
        },
        "title": {
          "type": "string",
          "maxLength": 3000,
          "maxGraphemes": 300
        },
        "description": {
          "type": "string",
          "maxLength": 10000,
          "maxGraphemes": 1000
        }
      }
    },
    "replyRef": {
      "type": "object",
      "required": [
        "root",
        "parent"
      ],
      "properties": {
        "root": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
