# org.swappulse.conversation

> Published by [bridge.swappulse.org](https://lexicon.garden/identity/did:plc:jwoatauidzr4lollmro2gh35)

## Description

A 1:1 direct-message conversation between two collectors, mirrored to AT Protocol as a real org.swappulse.conversation record. The creator is tracked by authorDid; the other participant by recipientDid so both can read.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.conversation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.conversation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jwoatauidzr4lollmro2gh35/org.swappulse.conversation/examples)

## Definitions

### `org.swappulse.conversation`

**Type**: `record`

A 1:1 DM conversation.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `authorDid` | `string` (did) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `recipientDid` | `string` (did) | Yes |  |
| `lastMessageAt` | `string` (datetime) | No |  |
| `recipientName` | `string` | No |  |
| `lastMessageDid` | `string` (did) | No |  |
| `participantDids` | `array` | Yes |  |
| `recipientAvatar` | `string` (uri) | No |  |
| `recipientHandle` | `string` | No |  |
| `lastMessagePreview` | `string` | No |  |

## Raw Schema

```json
{
  "id": "org.swappulse.conversation",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "recipientDid",
          "participantDids",
          "createdAt"
        ],
        "properties": {
          "authorDid": {
            "type": "string",
            "format": "did"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "recipientDid": {
            "type": "string",
            "format": "did"
          },
          "lastMessageAt": {
            "type": "string",
            "format": "datetime"
          },
          "recipientName": {
            "type": "string"
          },
          "lastMessageDid": {
            "type": "string",
            "format": "did"
          },
          "participantDids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "did"
            },
            "maxLength": 2,
            "minLength": 2
          },
          "recipientAvatar": {
            "type": "string",
            "format": "uri"
          },
          "recipientHandle": {
            "type": "string"
          },
          "lastMessagePreview": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "description": "A 1:1 DM conversation."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1,
  "description": "A 1:1 direct-message conversation between two collectors, mirrored to AT Protocol as a real org.swappulse.conversation record. The creator is tracked by authorDid; the other participant by recipientDid so both can read."
}
```
