wiki.lichen.noteRevision

A revision to a note. It holds either a diff from the previous revision or the complete new body, depending on diffFormat.

Repository @lichen.wiki did:plc:xfs42pjf3n7imvgrdrp7xvez namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritylichen.wiki
Indexed

Record

record · key tid

Properties

blobs

array

Blobs the content references. Each is identified by the uploading repo's DID and the blob CID. Content points at one with ![alt](/blob/<did>/<cid>), the path lichen serves it from. Listing the ref here keeps the blob alive in the PDS.

itemsblob
  • maxSize: 2097152
  • accept: image/jpeg, image/png, image/gif, image/webp

createdAt

requiredstring · datetime

When this revision was created.

diff

requiredstring

The revision payload. With "diff-match-patch" it is a patch against parentRevision. With "full-text" it is the note's whole new body, and it is only accepted when parentRevision is the current head.

  • maxLength: 1000000

diffFormat

requiredstring

How to read the diff field. "diff-match-patch" means a patch against parentRevision. "full-text" means the whole note body.

  • maxLength: 32
  • knownValues: diff-match-patch | full-text

message

string

Optional commit message describing this revision.

  • maxLength: 10240
  • maxGraphemes: 1024

noteRef

requiredstring · at-uri

AT-URI of the parent note record.

parentRevision

string · at-uri

AT-URI of the previous revision. Omitted for the first revision of a note.

status

string

Set to "deleted" to take the note out of its wiki, keeping its history, and to "live" to restore it. A revision without it keeps the status.

  • maxLength: 32
  • knownValues: live | deleted

title

string

Renames the note from this revision on. A revision that leaves it out keeps the title.

  • maxLength: 2560
  • maxGraphemes: 256

Similar lexicons

semantic match

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. A deleted note answers NoteDeleted.

  • 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.

  • Edit history within a work. Tracks the evolution from draft to published to revised — every version, every change.