blue.backyard.feed.post

lexicon.store View official

Documentation

An original post in a user's Backyard feed.

main record

An original post in a user's Backyard feed.

Record Key tid Timestamp-based ID

Properties

content array of union Required

Ordered array of content blocks. Each block is a text block, image block, or embed block.

maxLength: 20 itemsminLength: 1 items
createdAt string datetime Required

An RFC 3339 formatted timestamp.

langs array of string language Optional

BCP-47 language tags of the post text.

maxLength: 3 items
tags array of string Optional

Additional non-inline tags for categorization.

maxLength: 8 items
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "content",
      "createdAt"
    ],
    "properties": {
      "tags": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 640,
          "maxGraphemes": 64
        },
        "maxLength": 8,
        "description": "Additional non-inline tags for categorization."
      },
      "langs": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "language"
        },
        "maxLength": 3,
        "description": "BCP-47 language tags of the post text."
      },
      "content": {
        "type": "array",
        "items": {
          "refs": [
            "#textBlock",
            "#imageBlock",
            "#embedBlock"
          ],
          "type": "union"
        },
        "maxLength": 20,
        "minLength": 1,
        "description": "Ordered array of content blocks. Each block is a text block, image block, or embed block."
      },
      "createdAt": {
        "type": "string",
        "format": "datetime"
      }
    }
  },
  "description": "An original post in a user's Backyard feed."
}
aspectRatio object

Width and height of the media, used for layout before the blob is loaded.

Properties

height integer Required

No description available.

minimum: 1
width integer Required

No description available.

minimum: 1
View raw schema
{
  "type": "object",
  "required": [
    "width",
    "height"
  ],
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    }
  },
  "description": "Width and height of the media, used for layout before the blob is loaded."
}
embedBlock object

An inline URL embed (link preview).

Properties

url string uri Required

The URL to embed as a link preview.

View raw schema
{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL to embed as a link preview."
    }
  },
  "description": "An inline URL embed (link preview)."
}
imageBlock object

An inline image or video.

Properties

alt string Optional

Alt text description for accessibility.

maxLength: 10000 bytesmaxGraphemes: 1000 graphemes
aspectRatio ref #aspectRatio Optional

No description available.

blob blob Required

No description available.

maxSize: 50.0 MB
mimeType string Required

MIME type of the media (e.g. image/jpeg, video/mp4). Duplicated from the blob ref for convenience.

maxLength: 255 bytes
View raw schema
{
  "type": "object",
  "required": [
    "blob",
    "mimeType"
  ],
  "properties": {
    "alt": {
      "type": "string",
      "maxLength": 10000,
      "description": "Alt text description for accessibility.",
      "maxGraphemes": 1000
    },
    "blob": {
      "type": "blob",
      "accept": [
        "image/png",
        "image/jpeg",
        "image/gif",
        "image/webp",
        "image/avif",
        "video/mp4",
        "video/webm"
      ],
      "maxSize": 50000000
    },
    "mimeType": {
      "type": "string",
      "maxLength": 255,
      "description": "MIME type of the media (e.g. image/jpeg, video/mp4). Duplicated from the blob ref for convenience."
    },
    "aspectRatio": {
      "ref": "#aspectRatio",
      "type": "ref"
    }
  },
  "description": "An inline image or video."
}
textBlock object

A block of rich text content.

Properties

text string Required

The text content of this block.

maxLength: 30000 bytesmaxGraphemes: 3000 graphemes
View raw schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 30000,
      "description": "The text content of this block.",
      "maxGraphemes": 3000
    },
    "facets": {
      "type": "array",
      "items": {
        "ref": "blue.backyard.richtext.facet",
        "type": "ref"
      },
      "description": "Annotations of text (mentions, URLs, hashtags, formatting)."
    }
  },
  "description": "A block of rich text content."
}

Lexicon Garden

@