atproto blogging
at main 107 lines 2.3 kB view raw
1{ 2 "lexicon": 1, 3 "id": "pub.leaflet.pages.linearDocument", 4 "defs": { 5 "block": { 6 "type": "object", 7 "required": [ 8 "block" 9 ], 10 "properties": { 11 "alignment": { 12 "type": "string", 13 "knownValues": [ 14 "#textAlignLeft", 15 "#textAlignCenter", 16 "#textAlignRight", 17 "#textAlignJustify" 18 ] 19 }, 20 "block": { 21 "type": "union", 22 "refs": [ 23 "pub.leaflet.blocks.iframe", 24 "pub.leaflet.blocks.text", 25 "pub.leaflet.blocks.blockquote", 26 "pub.leaflet.blocks.header", 27 "pub.leaflet.blocks.image", 28 "pub.leaflet.blocks.unorderedList", 29 "pub.leaflet.blocks.website", 30 "pub.leaflet.blocks.math", 31 "pub.leaflet.blocks.code", 32 "pub.leaflet.blocks.horizontalRule", 33 "pub.leaflet.blocks.bskyPost", 34 "pub.leaflet.blocks.page", 35 "pub.leaflet.blocks.poll", 36 "pub.leaflet.blocks.button" 37 ] 38 } 39 } 40 }, 41 "main": { 42 "type": "object", 43 "required": [ 44 "blocks" 45 ], 46 "properties": { 47 "blocks": { 48 "type": "array", 49 "items": { 50 "type": "ref", 51 "ref": "#block" 52 } 53 }, 54 "id": { 55 "type": "string" 56 } 57 } 58 }, 59 "position": { 60 "type": "object", 61 "required": [ 62 "block", 63 "offset" 64 ], 65 "properties": { 66 "block": { 67 "type": "array", 68 "items": { 69 "type": "integer" 70 } 71 }, 72 "offset": { 73 "type": "integer" 74 } 75 } 76 }, 77 "quote": { 78 "type": "object", 79 "required": [ 80 "start", 81 "end" 82 ], 83 "properties": { 84 "end": { 85 "type": "ref", 86 "ref": "#position" 87 }, 88 "start": { 89 "type": "ref", 90 "ref": "#position" 91 } 92 } 93 }, 94 "textAlignCenter": { 95 "type": "token" 96 }, 97 "textAlignJustify": { 98 "type": "token" 99 }, 100 "textAlignLeft": { 101 "type": "token" 102 }, 103 "textAlignRight": { 104 "type": "token" 105 } 106 } 107}