# app.bivri.support.contentDefs

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

✓ This is the authoritative definition for this NSID.

## Description

Public read types for announcements and FAQs.

## Links

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

## Definitions

### `app.bivri.support.contentDefs#faqView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `answer` | `string` | Yes |  |
| `position` | `integer` | Yes |  |
| `question` | `string` | Yes |  |
| `categoryId` | `string` | Yes |  |
| `publishedAt` | `string` (datetime) | Yes |  |
| `categoryName` | `string` | Yes |  |
| `contentFormat` | `string` | Yes |  |

### `app.bivri.support.contentDefs#categoryView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `position` | `integer` | Yes |  |

### `app.bivri.support.contentDefs#announcementView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `newer` | `ref` → `app.bivri.support.contentDefs#announcementSummary` | Yes |  |
| `older` | `ref` → `app.bivri.support.contentDefs#announcementSummary` | Yes |  |
| `title` | `string` | Yes |  |
| `pinned` | `boolean` | Yes |  |
| `content` | `string` | Yes |  |
| `categoryId` | `string` | Yes |  |
| `publishedAt` | `string` (datetime) | Yes |  |
| `categoryName` | `string` | Yes |  |
| `contentFormat` | `string` | Yes |  |

### `app.bivri.support.contentDefs#announcementSummary`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `title` | `string` | Yes |  |
| `pinned` | `boolean` | Yes |  |
| `categoryId` | `string` | Yes |  |
| `publishedAt` | `string` (datetime) | Yes |  |
| `categoryName` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "app.bivri.support.contentDefs",
  "defs": {
    "faqView": {
      "type": "object",
      "required": [
        "id",
        "categoryId",
        "categoryName",
        "question",
        "contentFormat",
        "answer",
        "position",
        "publishedAt"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "answer": {
          "type": "string",
          "maxLength": 1000000,
          "maxGraphemes": 100000
        },
        "position": {
          "type": "integer",
          "minimum": 0
        },
        "question": {
          "type": "string",
          "maxLength": 5000,
          "maxGraphemes": 500
        },
        "categoryId": {
          "type": "string"
        },
        "publishedAt": {
          "type": "string",
          "format": "datetime"
        },
        "categoryName": {
          "type": "string",
          "maxLength": 1000,
          "maxGraphemes": 100
        },
        "contentFormat": {
          "type": "string",
          "knownValues": [
            "markdown"
          ]
        }
      }
    },
    "categoryView": {
      "type": "object",
      "required": [
        "id",
        "name",
        "position"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "maxLength": 1000,
          "maxGraphemes": 100
        },
        "position": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "announcementView": {
      "type": "object",
      "nullable": [
        "newer",
        "older"
      ],
      "required": [
        "id",
        "categoryId",
        "categoryName",
        "title",
        "pinned",
        "publishedAt",
        "contentFormat",
        "content",
        "newer",
        "older"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "newer": {
          "ref": "app.bivri.support.contentDefs#announcementSummary",
          "type": "ref"
        },
        "older": {
          "ref": "app.bivri.support.contentDefs#announcementSummary",
          "type": "ref"
        },
        "title": {
          "type": "string",
          "maxLength": 2000,
          "maxGraphemes": 200
        },
        "pinned": {
          "type": "boolean"
        },
        "content": {
          "type": "string",
          "maxLength": 1000000,
          "maxGraphemes": 100000
        },
        "categoryId": {
          "type": "string"
        },
        "publishedAt": {
          "type": "string",
          "format": "datetime"
        },
        "categoryName": {
          "type": "string",
          "maxLength": 1000,
          "maxGraphemes": 100
        },
        "contentFormat": {
          "type": "string",
          "knownValues": [
            "markdown"
          ]
        }
      }
    },
    "announcementSummary": {
      "type": "object",
      "required": [
        "id",
        "categoryId",
        "categoryName",
        "title",
        "pinned",
        "publishedAt"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string",
          "maxLength": 2000,
          "maxGraphemes": 200
        },
        "pinned": {
          "type": "boolean"
        },
        "categoryId": {
          "type": "string"
        },
        "publishedAt": {
          "type": "string",
          "format": "datetime"
        },
        "categoryName": {
          "type": "string",
          "maxLength": 1000,
          "maxGraphemes": 100
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Public read types for announcements and FAQs."
}
```
