# ai.newnal.illi.family.mediaItem

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.mediaItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.mediaItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.mediaItem/examples)

## Definitions

### `ai.newnal.illi.family.mediaItem`

**Type**: `record`

One original photo or video in the home's content bank. The original and its derivatives (thumb, display, poster) are blobs on the author's PDN.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `albumHidden` | `boolean` | No |  |
| `caption` | `string` | No |  |
| `contentHash` | `string` | No | sha256 hex of the original bytes. |
| `createdAt` | `string` (datetime) | Yes |  |
| `display` | `blob` | No | 1600 px display rendition for the device. Present only when the original's longest side exceeds 1600 px; clients show the original otherwise. |
| `durationMs` | `integer` | No |  |
| `excludeFromDelivery` | `boolean` | No |  |
| `height` | `integer` | No |  |
| `kind` | `string` | Yes |  |
| `media` | `blob` | Yes |  |
| `poster` | `blob` | No | Video poster frame. |
| `reviewState` | `string` | No |  |
| `takenAt` | `string` (datetime) | No |  |
| `takenAtSource` | `string` | No |  |
| `thumb` | `blob` | No | 320 px thumbnail, generated by the Service Node and uploaded to the author's PDN. |
| `width` | `integer` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One original photo or video in the home's content bank. The original and its derivatives (thumb, display, poster) are blobs on the author's PDN.",
      "key": "tid",
      "record": {
        "properties": {
          "albumHidden": {
            "default": false,
            "type": "boolean"
          },
          "caption": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "contentHash": {
            "description": "sha256 hex of the original bytes.",
            "maxLength": 128,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "display": {
            "accept": [
              "image/jpeg"
            ],
            "description": "1600 px display rendition for the device. Present only when the original's longest side exceeds 1600 px; clients show the original otherwise.",
            "maxSize": 2000000,
            "type": "blob"
          },
          "durationMs": {
            "minimum": 0,
            "type": "integer"
          },
          "excludeFromDelivery": {
            "default": false,
            "type": "boolean"
          },
          "height": {
            "minimum": 1,
            "type": "integer"
          },
          "kind": {
            "knownValues": [
              "photo",
              "video"
            ],
            "type": "string"
          },
          "media": {
            "accept": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/heic",
              "video/mp4",
              "video/quicktime"
            ],
            "maxSize": 314572800,
            "type": "blob"
          },
          "poster": {
            "accept": [
              "image/jpeg"
            ],
            "description": "Video poster frame.",
            "maxSize": 2000000,
            "type": "blob"
          },
          "reviewState": {
            "knownValues": [
              "notRequired",
              "pending",
              "approved",
              "rejected"
            ],
            "type": "string"
          },
          "takenAt": {
            "format": "datetime",
            "type": "string"
          },
          "takenAtSource": {
            "knownValues": [
              "exif",
              "upload",
              "manual"
            ],
            "type": "string"
          },
          "thumb": {
            "accept": [
              "image/jpeg"
            ],
            "description": "320 px thumbnail, generated by the Service Node and uploaded to the author's PDN.",
            "maxSize": 200000,
            "type": "blob"
          },
          "width": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "kind",
          "media",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.family.mediaItem",
  "lexicon": 1
}
```
