# app.didpic.chat.defs

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.defs/examples)

## Definitions

### `app.didpic.chat.defs#conversationView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blockedParticipantDids` | `array` | No | DIDs of other participants the viewer blocks or is blocked by. |
| `createdAt` | `string` (datetime) | Yes |  |
| `id` | `string` | Yes |  |
| `lastMessageAt` | `string` (datetime) | No |  |
| `lastMessagePreview` | `string` | No |  |
| `muted` | `boolean` | No | True if the viewer has muted this conversation. |
| `nickname` | `string` | No | Shared conversation name, if set. |
| `otherLastReadAt` | `string` (datetime) | No | The other participant's last-read time, for a 1:1 Seen indicator. |
| `participantCount` | `integer` | Yes |  |
| `participants` | `array` | Yes |  |
| `unreadCount` | `integer` | No |  |
| `viewerBlocked` | `boolean` | No | True if this 1:1 conversation is frozen by a block. |

### `app.didpic.chat.defs#linkPreview`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | No |  |
| `imageHeight` | `integer` | No |  |
| `imageUrl` | `string` | No |  |
| `imageWidth` | `integer` | No |  |
| `title` | `string` | No |  |
| `url` | `string` (uri) | Yes |  |

### `app.didpic.chat.defs#messageView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `blocked` | `boolean` | No | True when the author is blocked by or blocking the viewer. |
| `conversationId` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `id` | `string` | Yes |  |
| `imageHeight` | `integer` | No |  |
| `imageUrl` | `string` | No |  |
| `imageWidth` | `integer` | No |  |
| `linkPreview` | `ref` → `app.didpic.chat.defs#linkPreview` | No |  |
| `reactions` | `array` | No |  |
| `replyTo` | `ref` → `app.didpic.chat.defs#replyPreview` | No |  |
| `sharedPost` | `ref` → `app.didpic.feed.defs#postView` | No |  |
| `sharedPostUnavailable` | `boolean` | No | True when the shared post is gone. |
| `takedown` | `boolean` | No |  |
| `text` | `string` | No |  |
| `unavailable` | `boolean` | No | True when the author's account is unavailable. |

### `app.didpic.chat.defs#reactionSummary`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes |  |
| `reaction` | `string` | Yes |  |
| `viewerReacted` | `boolean` | Yes |  |

### `app.didpic.chat.defs#replyPreview`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `authorDid` | `string` | No |  |
| `blocked` | `boolean` | No | True when the replied-to message's author is blocked. |
| `id` | `string` | Yes |  |
| `imageHeight` | `integer` | No |  |
| `imageUrl` | `string` | No |  |
| `imageWidth` | `integer` | No |  |
| `linkPreview` | `ref` → `app.didpic.chat.defs#linkPreview` | No |  |
| `sharedPost` | `ref` → `app.didpic.feed.defs#postView` | No |  |
| `sharedPostUnavailable` | `boolean` | No | True when the shared post is gone. |
| `textSnippet` | `string` | No |  |
| `unavailable` | `boolean` | Yes | True when the replied-to message is gone or unavailable. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "conversationView": {
      "properties": {
        "blockedParticipantDids": {
          "description": "DIDs of other participants the viewer blocks or is blocked by.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "lastMessageAt": {
          "format": "datetime",
          "type": "string"
        },
        "lastMessagePreview": {
          "type": "string"
        },
        "muted": {
          "description": "True if the viewer has muted this conversation.",
          "type": "boolean"
        },
        "nickname": {
          "description": "Shared conversation name, if set.",
          "type": "string"
        },
        "otherLastReadAt": {
          "description": "The other participant's last-read time, for a 1:1 Seen indicator.",
          "format": "datetime",
          "type": "string"
        },
        "participantCount": {
          "maximum": 10,
          "minimum": 2,
          "type": "integer"
        },
        "participants": {
          "items": {
            "ref": "app.didpic.actor.defs#profileBasic",
            "type": "ref"
          },
          "type": "array"
        },
        "unreadCount": {
          "minimum": 0,
          "type": "integer"
        },
        "viewerBlocked": {
          "description": "True if this 1:1 conversation is frozen by a block.",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "participants",
        "participantCount",
        "createdAt"
      ],
      "type": "object"
    },
    "linkPreview": {
      "properties": {
        "description": {
          "type": "string"
        },
        "imageHeight": {
          "type": "integer"
        },
        "imageUrl": {
          "type": "string"
        },
        "imageWidth": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "messageView": {
      "properties": {
        "author": {
          "ref": "app.didpic.actor.defs#profileBasic",
          "type": "ref"
        },
        "blocked": {
          "description": "True when the author is blocked by or blocking the viewer.",
          "type": "boolean"
        },
        "conversationId": {
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "imageHeight": {
          "type": "integer"
        },
        "imageUrl": {
          "type": "string"
        },
        "imageWidth": {
          "type": "integer"
        },
        "linkPreview": {
          "ref": "app.didpic.chat.defs#linkPreview",
          "type": "ref"
        },
        "reactions": {
          "items": {
            "ref": "app.didpic.chat.defs#reactionSummary",
            "type": "ref"
          },
          "type": "array"
        },
        "replyTo": {
          "ref": "app.didpic.chat.defs#replyPreview",
          "type": "ref"
        },
        "sharedPost": {
          "ref": "app.didpic.feed.defs#postView",
          "type": "ref"
        },
        "sharedPostUnavailable": {
          "description": "True when the shared post is gone.",
          "type": "boolean"
        },
        "takedown": {
          "type": "boolean"
        },
        "text": {
          "type": "string"
        },
        "unavailable": {
          "description": "True when the author's account is unavailable.",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "conversationId",
        "author",
        "createdAt"
      ],
      "type": "object"
    },
    "reactionSummary": {
      "properties": {
        "count": {
          "minimum": 1,
          "type": "integer"
        },
        "reaction": {
          "type": "string"
        },
        "viewerReacted": {
          "type": "boolean"
        }
      },
      "required": [
        "reaction",
        "count",
        "viewerReacted"
      ],
      "type": "object"
    },
    "replyPreview": {
      "properties": {
        "authorDid": {
          "type": "string"
        },
        "blocked": {
          "description": "True when the replied-to message's author is blocked.",
          "type": "boolean"
        },
        "id": {
          "type": "string"
        },
        "imageHeight": {
          "type": "integer"
        },
        "imageUrl": {
          "type": "string"
        },
        "imageWidth": {
          "type": "integer"
        },
        "linkPreview": {
          "ref": "app.didpic.chat.defs#linkPreview",
          "type": "ref"
        },
        "sharedPost": {
          "ref": "app.didpic.feed.defs#postView",
          "type": "ref"
        },
        "sharedPostUnavailable": {
          "description": "True when the shared post is gone.",
          "type": "boolean"
        },
        "textSnippet": {
          "type": "string"
        },
        "unavailable": {
          "description": "True when the replied-to message is gone or unavailable.",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "unavailable"
      ],
      "type": "object"
    }
  },
  "id": "app.didpic.chat.defs",
  "lexicon": 1
}
```
