preludes / content-protocol.lisp
content-protocol
Content protocol. Hosted ContentProtocol descriptors.
From the source
Purpose: Hosted document content wire contracts. Requires: Core types; generation shares enum definitions from the ontology stack. Used by: Content protocol and schema generation.
Functions 1
Ordinary typed definitions that programs and elaboration hooks can call.
protocolcontent-protocol.lisp:52
(define protocol …)
Types 15
Payload contracts and IR shapes, shown as authored.
ContentTextcontent-protocol.lisp:7
lisp
(type ContentText {:kind "text" :value String})ContentMarkdowncontent-protocol.lisp:9
lisp
(type ContentMarkdown {:kind "md" :content String})ContentCodecontent-protocol.lisp:11
lisp
(type ContentCode {:kind "code" :content String})ContentH1content-protocol.lisp:13
lisp
(type ContentH1 {:kind "h1" :children (List ContentNode)})ContentH2content-protocol.lisp:15
lisp
(type ContentH2 {:kind "h2" :children (List ContentNode)})ContentH3content-protocol.lisp:17
lisp
(type ContentH3 {:kind "h3" :children (List ContentNode)})ContentParagraphcontent-protocol.lisp:19
lisp
(type ContentParagraph {:kind "p" :children (List ContentNode)})ContentUnorderedListcontent-protocol.lisp:21
lisp
(type ContentUnorderedList {:kind "ul" :children (List ContentNode)})ContentOrderedListcontent-protocol.lisp:23
lisp
(type ContentOrderedList {:kind "ol" :children (List ContentNode)})ContentListItemcontent-protocol.lisp:25
lisp
(type ContentListItem {:kind "li" :children (List ContentNode)})ContentBoldcontent-protocol.lisp:27
lisp
(type ContentBold {:kind "bold" :children (List ContentNode)})ContentItaliccontent-protocol.lisp:29
lisp
(type ContentItalic {:kind "italic" :children (List ContentNode)})ContentLinkcontent-protocol.lisp:31
lisp
(type ContentLink {:kind "link" :href String :children (List ContentNode)})ContentDoccontent-protocol.lisp:33
lisp
(type ContentDoc {:kind "doc" :children (List ContentNode)})ContentNodecontent-protocol.lisp:35
lisp
(type ContentNode
(Union
ContentText
ContentMarkdown
ContentCode
ContentH1
ContentH2
ContentH3
ContentParagraph
ContentUnorderedList
ContentOrderedList
ContentListItem
ContentBold
ContentItalic
ContentLink
ContentDoc))