prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
at main 54 lines 856 B view raw
1{ 2 "type": "procedure", 3 "description": "Create a post", 4 "input": { 5 "encoding": "application/json", 6 "schema": { 7 "type": "object", 8 "properties": { 9 "repo": { 10 "type": "string", 11 "required": true 12 }, 13 "collection": { 14 "type": "string", 15 "required": true 16 }, 17 "record": { 18 "type": "unknown", 19 "required": true 20 }, 21 "validate": { 22 "type": "boolean", 23 "default": true 24 } 25 }, 26 "required": ["repo", "collection", "record"] 27 } 28 }, 29 "output": { 30 "encoding": "application/json", 31 "schema": { 32 "type": "object", 33 "properties": { 34 "uri": { 35 "type": "string", 36 "required": true 37 }, 38 "cid": { 39 "type": "string", 40 "required": true 41 } 42 }, 43 "required": ["uri", "cid"] 44 } 45 }, 46 "errors": [ 47 { 48 "name": "InvalidSwap" 49 }, 50 { 51 "name": "InvalidRecord" 52 } 53 ] 54}