Files
remanso-jetstream/lexicons/space/remanso/note.json
Julien Calixte f39f62f1c7 feat: add listed field to note for public listing visibility
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.
2026-02-25 23:03:00 +01:00

76 lines
2.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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: 921, 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."
}
}
}
}
}