pub.leaflet.document

leaflet.pub

Documentation

Record containing a document

main record

Record containing a document

Record Key tid Timestamp-based ID

Properties

author string at-identifier Required

Either a DID or an AT Protocol handle.

coverImage blob Optional

No description available.

maxSize: 1.0 MB
description string Optional

No description available.

maxLength: 30000 bytesmaxGraphemes: 3000 graphemes
publication string at-uri Optional

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

publishedAt string datetime Optional

An RFC 3339 formatted timestamp.

tags array of string Optional

No description available.

title string Required

No description available.

maxLength: 5000 bytesmaxGraphemes: 500 graphemes
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "pages",
      "author",
      "title"
    ],
    "properties": {
      "tags": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 50
        }
      },
      "pages": {
        "type": "array",
        "items": {
          "refs": [
            "pub.leaflet.pages.linearDocument",
            "pub.leaflet.pages.canvas"
          ],
          "type": "union"
        }
      },
      "theme": {
        "ref": "pub.leaflet.publication#theme",
        "type": "ref"
      },
      "title": {
        "type": "string",
        "maxLength": 5000,
        "maxGraphemes": 500
      },
      "author": {
        "type": "string",
        "format": "at-identifier"
      },
      "postRef": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref"
      },
      "coverImage": {
        "type": "blob",
        "accept": [
          "image/png",
          "image/jpeg",
          "image/webp"
        ],
        "maxSize": 1000000
      },
      "description": {
        "type": "string",
        "maxLength": 30000,
        "maxGraphemes": 3000
      },
      "preferences": {
        "ref": "pub.leaflet.publication#preferences",
        "type": "ref"
      },
      "publication": {
        "type": "string",
        "format": "at-uri"
      },
      "publishedAt": {
        "type": "string",
        "format": "datetime"
      }
    }
  },
  "description": "Record containing a document"
}

Lexicon Garden

@