Notes with listed=false are filtered out from all GET /notes queries. The field defaults to true so existing and new notes without it remain visible. Migration handles existing databases with ALTER TABLE ADD COLUMN.
76 lines
2.2 KiB
JSON
76 lines
2.2 KiB
JSON
{
|
||
"lexicon": 1,
|
||
"id": "space.remanso.note",
|
||
"defs": {
|
||
"main": {
|
||
"type": "record",
|
||
"description": "A markdown blog post with LaTeX, GitHub notes, Mermaid, YouTube and Bluesky extensions.",
|
||
"key": "tid",
|
||
"record": {
|
||
"type": "object",
|
||
"required": ["title", "content"],
|
||
"properties": {
|
||
"title": {
|
||
"type": "string",
|
||
"maxLength": 1000
|
||
},
|
||
"content": {
|
||
"type": "string",
|
||
"description": "Markdown content. Local image paths are replaced with blob CIDs at publish time.",
|
||
"maxLength": 10000
|
||
},
|
||
"images": {
|
||
"type": "array",
|
||
"description": "Blob references for images embedded in the markdown content.",
|
||
"items": { "type": "ref", "ref": "#image" },
|
||
"maxLength": 20
|
||
},
|
||
"publishedAt": {
|
||
"type": "string",
|
||
"format": "datetime"
|
||
},
|
||
"createdAt": {
|
||
"type": "string",
|
||
"format": "datetime"
|
||
},
|
||
"fontFamily": {
|
||
"type": "string",
|
||
"description": "Font family name available from Coollabs.",
|
||
"maxLength": 200
|
||
},
|
||
"fontSize": {
|
||
"type": "integer",
|
||
"description": "Font size in points. Recommended range: 9–21, but clients may allow larger sizes for accessibility."
|
||
},
|
||
"theme": {
|
||
"type": "string",
|
||
"description": "Display theme for the note.",
|
||
"knownValues": ["light", "dark"]
|
||
},
|
||
"listed": {
|
||
"type": "boolean",
|
||
"description": "Whether the note appears in public listings. Defaults to true."
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"image": {
|
||
"type": "object",
|
||
"descriptions": "Images from the markdown content, separately uploaded and link in markdown content with blob CID.",
|
||
"required": ["image"],
|
||
"properties": {
|
||
"image": {
|
||
"type": "blob",
|
||
"accept": ["image/*"],
|
||
"maxSize": 2000000
|
||
},
|
||
"alt": {
|
||
"type": "string",
|
||
"maxLength": 2000,
|
||
"description": "Alt text for the image."
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|