# app.didpic.feed.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.feed.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.defs/examples)

## Definitions

### `app.didpic.feed.defs#likeView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |

### `app.didpic.feed.defs#postView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `text` | `string` | No |  |
| `author` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `facets` | `array` | No |  |
| `editedAt` | `string` (datetime) | No | Set when the post has been edited at least once via putRecord. Absent for never-edited posts. Clients render an Edited badge when present. |
| `imageCid` | `string` (cid) | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |
| `likeCount` | `integer` | No |  |
| `viewerLike` | `string` (at-uri) | No | URI of the viewer's like record on this post, if any. |
| `aspectRatio` | `ref` → `app.didpic.feed.post#aspectRatio` | No |  |
| `commentCount` | `integer` | No |  |

### `app.didpic.feed.defs#commentView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `text` | `string` | Yes |  |
| `author` | `ref` → `app.didpic.actor.defs#profileBasic` | Yes |  |
| `facets` | `array` | No |  |
| `parent` | `ref` → `com.atproto.repo.strongRef` | No | If this comment is a reply, the comment it replies to. |
| `replies` | `array` | No | Capped inline preview of replies. Fetch the remainder via feed.getCommentReplies. |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | Yes |  |
| `likeCount` | `integer` | No |  |
| `replyCount` | `integer` | No |  |
| `viewerLike` | `string` (at-uri) | No | URI of the viewer's like record on this comment, if any. |

## Raw Schema

```json
{
  "id": "app.didpic.feed.defs",
  "defs": {
    "likeView": {
      "type": "object",
      "required": [
        "actor",
        "createdAt",
        "indexedAt"
      ],
      "properties": {
        "actor": {
          "ref": "app.didpic.actor.defs#profileBasic",
          "type": "ref"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "postView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "imageCid",
        "createdAt",
        "indexedAt"
      ],
      "properties": {
        "alt": {
          "type": "string"
        },
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "text": {
          "type": "string"
        },
        "author": {
          "ref": "app.didpic.actor.defs#profileBasic",
          "type": "ref"
        },
        "facets": {
          "type": "array",
          "items": {
            "ref": "app.didpic.richtext.facet",
            "type": "ref"
          }
        },
        "editedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Set when the post has been edited at least once via putRecord. Absent for never-edited posts. Clients render an Edited badge when present."
        },
        "imageCid": {
          "type": "string",
          "format": "cid"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        },
        "likeCount": {
          "type": "integer",
          "minimum": 0
        },
        "viewerLike": {
          "type": "string",
          "format": "at-uri",
          "description": "URI of the viewer's like record on this post, if any."
        },
        "aspectRatio": {
          "ref": "app.didpic.feed.post#aspectRatio",
          "type": "ref"
        },
        "commentCount": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "commentView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "text",
        "createdAt",
        "indexedAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "text": {
          "type": "string"
        },
        "author": {
          "ref": "app.didpic.actor.defs#profileBasic",
          "type": "ref"
        },
        "facets": {
          "type": "array",
          "items": {
            "ref": "app.didpic.richtext.facet",
            "type": "ref"
          }
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref",
          "description": "If this comment is a reply, the comment it replies to."
        },
        "replies": {
          "type": "array",
          "items": {
            "ref": "app.didpic.feed.defs#commentView",
            "type": "ref"
          },
          "description": "Capped inline preview of replies. Fetch the remainder via feed.getCommentReplies."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        },
        "likeCount": {
          "type": "integer",
          "minimum": 0
        },
        "replyCount": {
          "type": "integer",
          "minimum": 0
        },
        "viewerLike": {
          "type": "string",
          "format": "at-uri",
          "description": "URI of the viewer's like record on this comment, if any."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
