# net.atview.document

> Published by [atview.net](https://lexicon.garden/identity/did:plc:ycd3zyxa6iru5fiplr3un6nr)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.document)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.document/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ycd3zyxa6iru5fiplr3un6nr/net.atview.document/examples)

## Definitions

### `net.atview.document`

**Type**: `object`

Atview content payload. Slots into the `content` open union of a site.standard.document record. Provides a compact, stream-friendly representation of rich text as a plain `textContent` string paired with an array of byte-indexed facets.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `facets` | `array` | No | Rich-text facets marking byte ranges of the parent record's `textContent` with inline and block-level features. |
| `language` | `string` | No | BCP-47 language tag describing the primary language of `textContent` (e.g. `en`, `en-US`). |
| `coverImageAlt` | `string` | No | Alt text for the parent record's `coverImage` blob. |

## Raw Schema

```json
{
  "id": "net.atview.document",
  "defs": {
    "main": {
      "type": "object",
      "properties": {
        "facets": {
          "type": "array",
          "items": {
            "ref": "net.atview.richtext.facet",
            "type": "ref"
          },
          "description": "Rich-text facets marking byte ranges of the parent record's `textContent` with inline and block-level features."
        },
        "language": {
          "type": "string",
          "maxLength": 32,
          "description": "BCP-47 language tag describing the primary language of `textContent` (e.g. `en`, `en-US`)."
        },
        "coverImageAlt": {
          "type": "string",
          "maxLength": 5000,
          "description": "Alt text for the parent record's `coverImage` blob.",
          "maxGraphemes": 500
        }
      },
      "description": "Atview content payload. Slots into the `content` open union of a site.standard.document record. Provides a compact, stream-friendly representation of rich text as a plain `textContent` string paired with an array of byte-indexed facets."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
