blog.brookie.vault.document

A document in a vault. The record key is the document's permanent identity; the path is a mutable field, which is what makes a rename a one-field update rather than a delete and recreate.

Repository @brookie.blog did:plc:v46ojbiop5ebs5h7gaomixcc namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityvault.brookie.blog
Indexed
cid bafyreih4lsmhnq75gmkanfgzmimqa6ff6xtorvjzjw7e7svff4xucdrokm

Checks

Valid
  • large-string defs.main.record.properties.contentmaxLength is over 20 KB. Use a blob for content that large.
  • unlimited-string defs.main.record.properties.contentTypeNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A document in a vault. The record key is the document's permanent identity; the path is a mutable field, which is what makes a rename a one-field update rather than a delete and recreate.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "description": "Document body, inlined when small enough. Exactly one of content or contentBlob is present.",
            "maxLength": 65536,
            "type": "string"
          },
          "contentBlob": {
            "accept": [
              "*/*"
            ],
            "description": "Document body as bytes: an attachment (image, audio, PDF), or a text document too large to inline.",
            "type": "blob"
          },
          "contentType": {
            "description": "Usually text/markdown.",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "path": {
            "description": "Logical path, e.g. 'Books/The Dispossessed.md'. Looks like a file path but is not one: folder hierarchy is a projection of these strings, not a protocol concept.",
            "maxLength": 2048,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "path",
          "contentType",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "blog.brookie.vault.document",
  "lexicon": 1
}