# place.hud.chat.version

> A version of something a chat made (place.hud.chat.artifact), in its person's repo in the chat's space (place.hud.chat), keyed <key>-<version>: an app's document, words and kinds, as preview_app takes them, its files blobs that this record alone references, so its PDS serves them through com.atproto.space.getBlob alone; or a view's tile.

- Kind: record
- Record key: any
- Authority: chat.hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.chat.version)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.chat.version/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.chat.version/analytics)

## Record (`place.hud.chat.version`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `edits` (integer): With how edits, how many.
  - Constraints: minimum: 1
- `how` (string, required): whole: given whole (preview_app, or a view drawn); edits: the version before it changed by edit_app.
  - Constraints: maxLength: 32, knownValues: whole | edits
- `html` (blob): An app's document.
  - Constraints: maxSize: 2000000, accept: text/html
- `kinds` (array): An app's kinds of entry.
  - Constraints: maxLength: 16
  - `items` (ref)
    - Reference: `place.hud.app#kind`
- `name` (string): An app's name.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `origins` (array): The origins an app loads pictures and audio from.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `place.hud.app#origin`
- `reads` (array): The public collections an app reads beyond its entries.
  - Constraints: maxLength: 16
  - `items` (ref)
    - Reference: `place.hud.app#collection`
- `summary` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `tile` (ref): A view's tile, where a record holds its arguments; else in tileJson.
  - Reference: `place.hud.chatDefs#tile`
- `tileJson` (string): A view's tile as JSON text, where its arguments hold a number that is not an integer.
  - Constraints: maxLength: 100000
- `turn` (integer): The chat's turn that made it, where a turn did.
  - Constraints: minimum: 1
- `version` (integer, required)
  - Constraints: minimum: 1
- `words` (blob): An app's words by language.
  - Constraints: maxSize: 512000, accept: application/json
- `writes` (array): The collections an app writes beyond its entries.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `place.hud.app#collection`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A version of something a chat made (place.hud.chat.artifact), in its person's repo in the chat's space (place.hud.chat), keyed <key>-<version>: an app's document, words and kinds, as preview_app takes them, its files blobs that this record alone references, so its PDS serves them through com.atproto.space.getBlob alone; or a view's tile.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "edits": {
            "description": "With how edits, how many.",
            "minimum": 1,
            "type": "integer"
          },
          "how": {
            "description": "whole: given whole (preview_app, or a view drawn); edits: the version before it changed by edit_app.",
            "knownValues": [
              "whole",
              "edits"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "html": {
            "accept": [
              "text/html"
            ],
            "description": "An app's document.",
            "maxSize": 2000000,
            "type": "blob"
          },
          "kinds": {
            "description": "An app's kinds of entry.",
            "items": {
              "ref": "place.hud.app#kind",
              "type": "ref"
            },
            "maxLength": 16,
            "type": "array"
          },
          "name": {
            "description": "An app's name.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "origins": {
            "description": "The origins an app loads pictures and audio from.",
            "items": {
              "ref": "place.hud.app#origin",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          },
          "reads": {
            "description": "The public collections an app reads beyond its entries.",
            "items": {
              "ref": "place.hud.app#collection",
              "type": "ref"
            },
            "maxLength": 16,
            "type": "array"
          },
          "summary": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "tile": {
            "description": "A view's tile, where a record holds its arguments; else in tileJson.",
            "ref": "place.hud.chatDefs#tile",
            "type": "ref"
          },
          "tileJson": {
            "description": "A view's tile as JSON text, where its arguments hold a number that is not an integer.",
            "maxLength": 100000,
            "type": "string"
          },
          "turn": {
            "description": "The chat's turn that made it, where a turn did.",
            "minimum": 1,
            "type": "integer"
          },
          "version": {
            "minimum": 1,
            "type": "integer"
          },
          "words": {
            "accept": [
              "application/json"
            ],
            "description": "An app's words by language.",
            "maxSize": 512000,
            "type": "blob"
          },
          "writes": {
            "description": "The collections an app writes beyond its entries.",
            "items": {
              "ref": "place.hud.app#collection",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          }
        },
        "required": [
          "version",
          "how",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "place.hud.chat.version",
  "lexicon": 1
}
```
