# computer.spaces.conversation

> A chat you are part of, saved in your home space at spaces.computer so the chat shows up when you sign in. The messages are in the chat space. Record key: derived from the chat space's key and its owner, so there is one record per chat.

- Kind: record
- Record key: any
- Authority: spaces.computer
- Lexicon: 1
- Published by [spaces.computer](https://lexicon.garden/identity/did:plc:fcup7ltuhyvyayda32fru55z), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.conversation)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.conversation/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.conversation/analytics)

## Record (`computer.spaces.conversation`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required): When this chat was started or accepted.
- `peer` (string · did, required): The person this chat was started with. Who is in the chat now is whatever the space says.
- `readUpTo` (string): The newest message you have seen in this chat, as the rev its writer's host stamped it with. Private to you.
  - Constraints: maxLength: 64
- `space` (string, required): The chat space: at:space/{authority}/computer.spaces.chat/{key}.
  - Constraints: maxLength: 1024

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A chat you are part of, saved in your home space at spaces.computer so the chat shows up when you sign in. The messages are in the chat space. Record key: derived from the chat space's key and its owner, so there is one record per chat.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When this chat was started or accepted.",
            "format": "datetime",
            "type": "string"
          },
          "peer": {
            "description": "The person this chat was started with. Who is in the chat now is whatever the space says.",
            "format": "did",
            "type": "string"
          },
          "readUpTo": {
            "description": "The newest message you have seen in this chat, as the rev its writer's host stamped it with. Private to you.",
            "maxLength": 64,
            "type": "string"
          },
          "space": {
            "description": "The chat space: at:space/{authority}/computer.spaces.chat/{key}.",
            "maxLength": 1024,
            "type": "string"
          }
        },
        "required": [
          "space",
          "peer",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.spaces.conversation",
  "lexicon": 1
}
```
