# ai.newnal.illi.media.defs

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

✓ This is the authoritative definition for this NSID.

## Links

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

## Definitions

### `ai.newnal.illi.media.defs#author`

**Type**: `object`

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

### `ai.newnal.illi.media.defs#derivatives`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `display` | `boolean` | Yes |  |
| `poster` | `boolean` | Yes |  |
| `thumb` | `boolean` | Yes |  |

### `ai.newnal.illi.media.defs#itemView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `ref` → `#author` | Yes |  |
| `caption` | `string` | No |  |
| `cid` | `string` (cid) | Yes |  |
| `createdAt` | `string` (datetime) | No |  |
| `derivatives` | `ref` → `#derivatives` | Yes |  |
| `displayUrl` | `string` | No |  |
| `durationMs` | `integer` | No |  |
| `height` | `integer` | No |  |
| `hidden` | `boolean` | Yes |  |
| `hiddenBy` | `string` (did) | No |  |
| `kind` | `string` | Yes |  |
| `mediaUrl` | `string` | No |  |
| `mimeType` | `string` | No |  |
| `posterUrl` | `string` | No |  |
| `removalUri` | `string` (at-uri) | No |  |
| `size` | `integer` | No |  |
| `takenAt` | `string` (datetime) | No |  |
| `takenAtSource` | `string` | No |  |
| `thumbUrl` | `string` | No |  |
| `uri` | `string` (at-uri) | Yes |  |
| `viewUrl` | `string` | No | displayUrl when a display rendition exists, else mediaUrl (photos); posterUrl or mediaUrl (videos). |
| `width` | `integer` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "relationship": {
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "derivatives": {
      "properties": {
        "display": {
          "type": "boolean"
        },
        "poster": {
          "type": "boolean"
        },
        "thumb": {
          "type": "boolean"
        }
      },
      "required": [
        "thumb",
        "display",
        "poster"
      ],
      "type": "object"
    },
    "itemView": {
      "properties": {
        "author": {
          "ref": "#author",
          "type": "ref"
        },
        "caption": {
          "type": "string"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "derivatives": {
          "ref": "#derivatives",
          "type": "ref"
        },
        "displayUrl": {
          "type": "string"
        },
        "durationMs": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "hidden": {
          "type": "boolean"
        },
        "hiddenBy": {
          "format": "did",
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "photo",
            "video"
          ],
          "type": "string"
        },
        "mediaUrl": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "posterUrl": {
          "type": "string"
        },
        "removalUri": {
          "format": "at-uri",
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "takenAt": {
          "format": "datetime",
          "type": "string"
        },
        "takenAtSource": {
          "knownValues": [
            "exif",
            "upload",
            "manual"
          ],
          "type": "string"
        },
        "thumbUrl": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "viewUrl": {
          "description": "displayUrl when a display rendition exists, else mediaUrl (photos); posterUrl or mediaUrl (videos).",
          "type": "string"
        },
        "width": {
          "type": "integer"
        }
      },
      "required": [
        "uri",
        "cid",
        "kind",
        "author",
        "derivatives",
        "hidden"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.media.defs",
  "lexicon": 1
}
```
