# am.noz.atgallery.alpha.publishedMedia

> Published by [noz.am](https://lexicon.garden/identity/did:plc:lmkzmvv6sdxntwtyxpg7fqqq)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publishedMedia)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publishedMedia/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publishedMedia/examples)

## Definitions

### `am.noz.atgallery.alpha.publishedMedia`

**Type**: `record`

An immutable, public, metadata-allowlisted media rendition.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `mime` | `string` | Yes |  |
| `size` | `integer` | Yes |  |
| `width` | `integer` | No |  |
| `height` | `integer` | No |  |
| `preview` | `blob` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `mediaKind` | `string` | Yes |  |
| `rendition` | `blob` | Yes |  |
| `decorative` | `boolean` | No |  |
| `formatVersion` | `integer` | Yes |  |
| `defaultAltText` | `string` | No |  |
| `defaultCaption` | `string` | No |  |
| `contentWarnings` | `array` | No |  |
| `durationMilliseconds` | `integer` | No |  |

## Raw Schema

```json
{
  "id": "am.noz.atgallery.alpha.publishedMedia",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "formatVersion",
          "mediaKind",
          "rendition",
          "mime",
          "size",
          "createdAt"
        ],
        "properties": {
          "mime": {
            "type": "string",
            "maxLength": 100,
            "knownValues": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/gif",
              "image/avif",
              "video/mp4"
            ]
          },
          "size": {
            "type": "integer",
            "maximum": 52428800,
            "minimum": 1
          },
          "width": {
            "type": "integer",
            "minimum": 1
          },
          "height": {
            "type": "integer",
            "minimum": 1
          },
          "preview": {
            "type": "blob",
            "accept": [
              "image/webp"
            ],
            "maxSize": 1048576
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "mediaKind": {
            "type": "string",
            "maxLength": 16,
            "knownValues": [
              "image",
              "video"
            ]
          },
          "rendition": {
            "type": "blob",
            "accept": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/gif",
              "image/avif",
              "video/mp4"
            ],
            "maxSize": 52428800
          },
          "decorative": {
            "type": "boolean"
          },
          "formatVersion": {
            "type": "integer",
            "const": 1
          },
          "defaultAltText": {
            "type": "string",
            "maxGraphemes": 2000
          },
          "defaultCaption": {
            "type": "string",
            "maxGraphemes": 5000
          },
          "contentWarnings": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 200
            },
            "maxLength": 20
          },
          "durationMilliseconds": {
            "type": "integer",
            "maximum": 60000,
            "minimum": 1
          }
        }
      },
      "description": "An immutable, public, metadata-allowlisted media rendition."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
