wiki.lichen.noteRevision

lichen.wiki

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A revision to a note, stored as a diff from the previous revision.",
      "key": "tid",
      "record": {
        "properties": {
          "blobs": {
            "description": "Blobs referenced by this revision's content.",
            "items": {
              "accept": [
                "image/jpeg",
                "image/png",
                "image/gif",
                "image/webp"
              ],
              "maxSize": 2097152,
              "type": "blob"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When this revision was created.",
            "format": "datetime",
            "type": "string"
          },
          "diff": {
            "description": "The revision payload, interpreted per diffFormat: a diff-match-patch patch against parentRevision, or with \"full-text\" the note's complete new body. \"full-text\" is only accepted when parentRevision is the note's current head.",
            "maxLength": 1000000,
            "type": "string"
          },
          "diffFormat": {
            "description": "How to interpret diff. \"diff-match-patch\" is a patch against parentRevision; \"full-text\" is the whole note body.",
            "knownValues": [
              "diff-match-patch",
              "full-text"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "message": {
            "description": "Optional commit message describing this revision.",
            "maxGraphemes": 1024,
            "maxLength": 10240,
            "type": "string"
          },
          "noteRef": {
            "description": "AT-URI of the parent note record.",
            "format": "at-uri",
            "type": "string"
          },
          "parentRevision": {
            "description": "AT-URI of the previous revision. Omitted for the first revision of a note.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "noteRef",
          "diff",
          "diffFormat",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "wiki.lichen.noteRevision",
  "lexicon": 1
}

Validate Record

Validate a record against wiki.lichen.noteRevision

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:xfs42pjf3n7imvgrdrp7xvez
CID
bafyreiah5hxptute676rrqegbrczwcsdchdf44f6m3ez2g4mgpzjutumnq
Indexed At
2026-09-05 09:35 UTC
AT-URI
at://did:plc:xfs42pjf3n7imvgrdrp7xvez/com.atproto.lexicon.schema/wiki.lichen.noteRevision

Version History (4 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A contributor's full copy of a note as they last saved it. Revisions define the note. The rkey is the note's rkey.

  • A note within a wiki. The rkey is a TID. Human-readable slug lives in the record body.

  • Get a note's current content and the head revision to write against. Public wikis only.

  • Supplemental text for a node. Shares the node's record key and repository, so the note for at://{did}/app.bulleted.node/{rkey} lives at at://{did}/app.bulleted.note/{rkey}.

  • List a public wiki's notes, each with its head revision. Compare latestRevisionUri with what you hold, then call getNote for the notes that changed.

Lexicon Garden

@