studio.wholebit.stones.note
A note. When the notebook is encrypted, 'ct' holds all note fields. Otherwise 'content' holds them.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | stones.wholebit.studio |
| Commit rev | 3n2g6jxbcm322 |
| Indexed |
Checks
Validunlimited-stringdefs.content.properties.bodyNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.content.properties.colorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.content.properties.titleNo maxLength, maxGraphemes or format limits this string.large-stringdefs.main.record.properties.ctmaxLength is over 20 KB. Use a blob for content that large.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"content": {
"properties": {
"archived": {
"type": "boolean"
},
"body": {
"type": "string"
},
"checklist": {
"type": "boolean"
},
"color": {
"knownValues": [
"default",
"slate",
"blue",
"teal",
"green",
"sand",
"amber",
"clay",
"rose",
"violet"
],
"type": "string"
},
"createdAt": {
"description": "Unix milliseconds.",
"type": "integer"
},
"modifiedAt": {
"description": "Unix milliseconds.",
"type": "integer"
},
"order": {
"description": "Sort position, a decimal number. Higher is first.",
"maxLength": 32,
"type": "string"
},
"pinned": {
"type": "boolean"
},
"title": {
"type": "string"
},
"trashedAt": {
"description": "Unix milliseconds. Absent when the note is not in the trash.",
"type": "integer"
}
},
"required": [
"title",
"body",
"checklist",
"color",
"pinned",
"archived",
"order",
"createdAt",
"modifiedAt"
],
"type": "object"
},
"main": {
"description": "A note. When the notebook is encrypted, 'ct' holds all note fields. Otherwise 'content' holds them.",
"key": "any",
"record": {
"properties": {
"content": {
"ref": "#content",
"type": "ref"
},
"ct": {
"description": "base64url(nonce || XChaCha20-Poly1305 ciphertext) of the padded note JSON.",
"maxLength": 200000,
"type": "string"
},
"v": {
"const": 1,
"description": "Envelope version.",
"type": "integer"
}
},
"required": [
"v"
],
"type": "object"
},
"type": "record"
}
},
"id": "studio.wholebit.stones.note",
"lexicon": 1
}