A revision to a note, stored as a diff from the previous revision.
Record Key
tid
Timestamp-based ID
Properties
blobs
array
of
blob
Optional
Blobs referenced by this revision's content.
createdAt
string
datetime
Required
When this revision was created.
diff
string
Required
The diff content in the format specified by diffFormat.
maxLength: 1000000 bytesdiffFormat
string
Required
Format of the diff string.
maxLength: 32 bytesKnown values:
diff-match-patchmessage
string
Optional
Optional commit message describing this revision.
maxLength: 10240 bytesmaxGraphemes: 1024 graphemesnoteRef
string
at-uri
Required
AT-URI of the parent note record.
parentRevision
string
at-uri
Optional
AT-URI of the previous revision. Omitted for the first revision of a note.
View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"noteRef",
"diff",
"diffFormat",
"createdAt"
],
"properties": {
"diff": {
"type": "string",
"maxLength": 1000000,
"description": "The diff content in the format specified by diffFormat."
},
"blobs": {
"type": "array",
"items": {
"type": "blob",
"accept": [
"image/jpeg",
"image/png",
"image/gif",
"image/webp"
],
"maxSize": 2097152
},
"description": "Blobs referenced by this revision's content."
},
"message": {
"type": "string",
"maxLength": 10240,
"description": "Optional commit message describing this revision.",
"maxGraphemes": 1024
},
"noteRef": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the parent note record."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When this revision was created."
},
"diffFormat": {
"type": "string",
"maxLength": 32,
"description": "Format of the diff string.",
"knownValues": [
"diff-match-patch"
]
},
"parentRevision": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the previous revision. Omitted for the first revision of a note."
}
}
},
"description": "A revision to a note, stored as a diff from the previous revision."
}