atproto blogging
at main 62 lines 1.8 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.edit.listDrafts", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "List draft records for an actor. Drafts are unpublished edit roots that aren't linked to a published entry.", 8 "parameters": { 9 "type": "params", 10 "required": ["actor"], 11 "properties": { 12 "actor": { 13 "type": "string", 14 "format": "at-identifier", 15 "description": "DID or handle of the actor" 16 }, 17 "limit": { 18 "type": "integer", 19 "minimum": 1, 20 "maximum": 100, 21 "default": 50 22 }, 23 "cursor": { "type": "string" } 24 } 25 }, 26 "output": { 27 "encoding": "application/json", 28 "schema": { 29 "type": "object", 30 "required": ["drafts"], 31 "properties": { 32 "drafts": { 33 "type": "array", 34 "items": { "type": "ref", "ref": "#draftView" } 35 }, 36 "cursor": { "type": "string" } 37 } 38 } 39 } 40 }, 41 "draftView": { 42 "type": "object", 43 "description": "Hydrated view of a draft with edit state.", 44 "required": ["uri", "cid", "createdAt"], 45 "properties": { 46 "uri": { "type": "string", "format": "at-uri" }, 47 "cid": { "type": "string", "format": "cid" }, 48 "title": { 49 "type": "string", 50 "description": "Extracted title if available from edit state" 51 }, 52 "editRoot": { 53 "type": "ref", 54 "ref": "com.atproto.repo.strongRef", 55 "description": "Associated edit root if one exists" 56 }, 57 "lastEditAt": { "type": "string", "format": "datetime" }, 58 "createdAt": { "type": "string", "format": "datetime" } 59 } 60 } 61 } 62}