# app.bivri.feed.defs

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

✓ This is the authoritative definition for this NSID.

## Description

Feed view type definitions

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.defs/examples)

## Definitions

### `app.bivri.feed.defs#draftView`

**Type**: `object`

Private Draft metadata visible only to the Draft's Parties. Draft bytes are deliberately excluded and use a separate authorized path.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | Bivri-owned identifier for this unpublished Draft. It is not an AT URI or record key. |
| `clientDid` | `string` (did) | No | DID of the commissioning client when this Draft is a private delivery. |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `creatorDid` | `string` (did) | Yes | DID of the creator who owns the Draft. |

### `app.bivri.feed.defs#mediaView`

**Type**: `object`

Image as the AppView resolved it. Carries fetchable URLs in place of the record's blob reference.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | Yes | Alternative text describing the image for members who cannot see it. |
| `thumb` | `string` (uri) | Yes | URL of the thumbnail-sized image. |
| `fullsize` | `string` (uri) | Yes | URL of the full-sized image. |
| `aspectRatio` | `ref` → `app.bivri.feed.defs#aspectRatio` | No |  |

### `app.bivri.feed.defs#artworkView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `tags` | `array` | No |  |
| `langs` | `array` | No |  |
| `media` | `array` | Yes |  |
| `title` | `string` | Yes |  |
| `author` | `ref` → `app.bivri.actor.defs#profileViewBasic` | Yes |  |
| `labels` | `union` | No | Self-label values the author declared on the artwork record. Author metadata, not platform moderation decisions. |
| `createdAt` | `string` (datetime) | Yes |  |
| `indexedAt` | `string` (datetime) | No |  |
| `likeCount` | `integer` | No |  |
| `viewCount` | `integer` | No |  |
| `description` | `string` | No |  |
| `commentCount` | `integer` | No |  |
| `bookmarkCount` | `integer` | No |  |

### `app.bivri.feed.defs#aspectRatio`

**Type**: `object`

Width-to-height ratio of an image. A ratio, not an absolute pixel size.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes |  |
| `height` | `integer` | Yes |  |

### `app.bivri.feed.defs#commentView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `author` | `ref` → `app.bivri.actor.defs#profileViewBasic` | Yes |  |
| `parent` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `content` | `string` | Yes |  |
| `subject` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `likeCount` | `integer` | No |  |

## Raw Schema

```json
{
  "id": "app.bivri.feed.defs",
  "defs": {
    "draftView": {
      "type": "object",
      "required": [
        "id",
        "creatorDid",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 36,
          "description": "Bivri-owned identifier for this unpublished Draft. It is not an AT URI or record key."
        },
        "clientDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the commissioning client when this Draft is a private delivery."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "creatorDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the creator who owns the Draft."
        }
      },
      "description": "Private Draft metadata visible only to the Draft's Parties. Draft bytes are deliberately excluded and use a separate authorized path."
    },
    "mediaView": {
      "type": "object",
      "required": [
        "thumb",
        "fullsize",
        "alt"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "description": "Alternative text describing the image for members who cannot see it."
        },
        "thumb": {
          "type": "string",
          "format": "uri",
          "description": "URL of the thumbnail-sized image."
        },
        "fullsize": {
          "type": "string",
          "format": "uri",
          "description": "URL of the full-sized image."
        },
        "aspectRatio": {
          "ref": "app.bivri.feed.defs#aspectRatio",
          "type": "ref"
        }
      },
      "description": "Image as the AppView resolved it. Carries fetchable URLs in place of the record's blob reference."
    },
    "artworkView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "title",
        "media",
        "createdAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "langs": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "language"
          }
        },
        "media": {
          "type": "array",
          "items": {
            "ref": "app.bivri.feed.defs#mediaView",
            "type": "ref"
          }
        },
        "title": {
          "type": "string"
        },
        "author": {
          "ref": "app.bivri.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "labels": {
          "refs": [
            "com.atproto.label.defs#selfLabels"
          ],
          "type": "union",
          "description": "Self-label values the author declared on the artwork record. Author metadata, not platform moderation decisions."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        },
        "likeCount": {
          "type": "integer"
        },
        "viewCount": {
          "type": "integer"
        },
        "description": {
          "type": "string"
        },
        "commentCount": {
          "type": "integer"
        },
        "bookmarkCount": {
          "type": "integer"
        }
      }
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        }
      },
      "description": "Width-to-height ratio of an image. A ratio, not an absolute pixel size."
    },
    "commentView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "author",
        "content",
        "createdAt"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "author": {
          "ref": "app.bivri.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "content": {
          "type": "string"
        },
        "subject": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "likeCount": {
          "type": "integer"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Feed view type definitions"
}
```
