{ "lexicon": 1, "id": "network.cosmik.card", "description": "A saved link or note in a Semble collection.", "defs": { "main": { "type": "record", "description": "A card representing a saved URL or a standalone note within a Semble collection.", "key": "tid", "record": { "type": "object", "required": ["type", "content", "createdAt"], "properties": { "type": { "type": "string", "enum": ["URL", "NOTE"], "description": "Whether this card is a saved URL or a standalone note." }, "content": { "type": "union", "refs": ["network.cosmik.card#urlContent", "network.cosmik.card#noteContent"], "description": "The card content — either a URL with metadata or a text note." }, "parentCard": { "type": "union", "refs": ["com.atproto.repo.strongRef"], "description": "Parent card this is a reply/annotation to." }, "createdAt": { "type": "string", "format": "datetime", "description": "When the card was created." } } } }, "urlContent": { "type": "object", "description": "Content for a URL-type card.", "required": ["url"], "properties": { "url": { "type": "string", "format": "uri", "description": "The saved URL." }, "metadata": { "type": "network.cosmik.card#urlMetadata", "description": "Extracted metadata for the URL." } } }, "noteContent": { "type": "object", "description": "Content for a note-type card.", "required": ["text"], "properties": { "text": { "type": "string", "maxGraphemes": 2000, "description": "The note text." } } }, "urlMetadata": { "type": "object", "description": "Open Graph-style metadata extracted from a URL.", "properties": { "type": { "type": "string", "description": "OG type (e.g. 'link', 'article')." }, "title": { "type": "string", "maxGraphemes": 500, "description": "Page title." }, "description": { "type": "string", "maxGraphemes": 2000, "description": "Page description." }, "imageUrl": { "type": "string", "format": "uri", "description": "OG image URL." } } } } }