# blog.pckt.mini.post

> Published by [pckt.blog](https://lexicon.garden/identity/did:plc:revjuqmkvrw6fnkxppqtszpv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.mini.post)
- [Documentation](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.mini.post/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:revjuqmkvrw6fnkxppqtszpv/blog.pckt.mini.post/examples)

## Definitions

### `blog.pckt.mini.post#tag`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tag` | `string` | Yes |  |

### `blog.pckt.mini.post#link`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes |  |

### `blog.pckt.mini.post`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tags` | `array` | No |  |
| `text` | `string` | Yes |  |
| `embed` | `union` | No |  |
| `langs` | `array` | No |  |
| `reply` | `ref` → `#replyRef` | No |  |
| `facets` | `array` | No |  |
| `labels` | `union` | No |  |
| `subject` | `string` (at-uri) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `publication` | `string` (at-uri) | No |  |

### `blog.pckt.mini.post#facet`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `index` | `ref` → `#byteSlice` | Yes |  |
| `features` | `array` | Yes |  |

### `blog.pckt.mini.post#image`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | Yes |  |
| `image` | `blob` | Yes |  |
| `aspectRatio` | `ref` → `#aspectRatio` | No |  |

### `blog.pckt.mini.post#images`

**Type**: `object`

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

### `blog.pckt.mini.post#record`

**Type**: `object`

A quoted record, optionally narrowed to a passage of it.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `end` | `integer` | No | Character offset one past the end of the quoted passage. |
| `hash` | `string` | No | sha256 of the quoted passage's text, with whitespace collapsed. |
| `start` | `integer` | No | Character offset of the quoted passage in the quoted record's plain text. |
| `record` | `ref` → `com.atproto.repo.strongRef` | Yes |  |

### `blog.pckt.mini.post#mention`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

### `blog.pckt.mini.post#external`

**Type**: `object`

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

### `blog.pckt.mini.post#replyRef`

**Type**: `object`

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

### `blog.pckt.mini.post#byteSlice`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `byteEnd` | `integer` | Yes |  |
| `byteStart` | `integer` | Yes |  |

### `blog.pckt.mini.post#aspectRatio`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes |  |
| `height` | `integer` | Yes |  |

### `blog.pckt.mini.post#recordWithMedia`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `media` | `union` | Yes |  |
| `record` | `ref` → `#record` | Yes |  |

## Raw Schema

```json
{
  "id": "blog.pckt.mini.post",
  "defs": {
    "tag": {
      "type": "object",
      "required": [
        "tag"
      ],
      "properties": {
        "tag": {
          "type": "string",
          "maxLength": 640,
          "maxGraphemes": 64
        }
      }
    },
    "link": {
      "type": "object",
      "required": [
        "uri"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "createdAt"
        ],
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 640,
              "maxGraphemes": 64
            },
            "maxLength": 8
          },
          "text": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "embed": {
            "refs": [
              "#images",
              "#external",
              "#record",
              "#recordWithMedia"
            ],
            "type": "union"
          },
          "langs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "language"
            },
            "maxLength": 3
          },
          "reply": {
            "ref": "#replyRef",
            "type": "ref"
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "#facet",
              "type": "ref"
            }
          },
          "labels": {
            "refs": [
              "com.atproto.label.defs#selfLabels"
            ],
            "type": "union"
          },
          "subject": {
            "type": "string",
            "format": "at-uri"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "publication": {
            "type": "string",
            "format": "at-uri"
          }
        }
      }
    },
    "facet": {
      "type": "object",
      "required": [
        "index",
        "features"
      ],
      "properties": {
        "index": {
          "ref": "#byteSlice",
          "type": "ref"
        },
        "features": {
          "type": "array",
          "items": {
            "refs": [
              "#mention",
              "#link",
              "#tag"
            ],
            "type": "union"
          }
        }
      }
    },
    "image": {
      "type": "object",
      "required": [
        "image",
        "alt"
      ],
      "properties": {
        "alt": {
          "type": "string"
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        }
      }
    },
    "images": {
      "type": "object",
      "required": [
        "images"
      ],
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4
        }
      }
    },
    "record": {
      "type": "object",
      "required": [
        "record"
      ],
      "properties": {
        "end": {
          "type": "integer",
          "minimum": 0,
          "description": "Character offset one past the end of the quoted passage."
        },
        "hash": {
          "type": "string",
          "maxLength": 64,
          "description": "sha256 of the quoted passage's text, with whitespace collapsed."
        },
        "start": {
          "type": "integer",
          "minimum": 0,
          "description": "Character offset of the quoted passage in the quoted record's plain text."
        },
        "record": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "description": "A quoted record, optionally narrowed to a passage of it."
    },
    "mention": {
      "type": "object",
      "required": [
        "did"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        }
      }
    },
    "external": {
      "type": "object",
      "required": [
        "uri",
        "title",
        "description"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri"
        },
        "thumb": {
          "type": "blob",
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "replyRef": {
      "type": "object",
      "required": [
        "root",
        "parent"
      ],
      "properties": {
        "root": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    },
    "byteSlice": {
      "type": "object",
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "properties": {
        "byteEnd": {
          "type": "integer",
          "minimum": 0
        },
        "byteStart": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "recordWithMedia": {
      "type": "object",
      "required": [
        "record",
        "media"
      ],
      "properties": {
        "media": {
          "refs": [
            "#images",
            "#external"
          ],
          "type": "union"
        },
        "record": {
          "ref": "#record",
          "type": "ref"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
