at main 49 lines 1.5 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.notebook.getPublishedVersions", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get all published versions of an entry (same rkey in collaborator repos).", 8 "parameters": { 9 "type": "params", 10 "required": ["entry"], 11 "properties": { 12 "entry": { "type": "string", "format": "at-uri" }, 13 "includeContent": { 14 "type": "boolean", 15 "default": false, 16 "description": "Include full entry record in response" 17 } 18 } 19 }, 20 "output": { 21 "encoding": "application/json", 22 "schema": { 23 "type": "object", 24 "required": ["versions"], 25 "properties": { 26 "canonical": { "type": "ref", "ref": "sh.weaver.notebook.defs#publishedVersionView" }, 27 "versions": { 28 "type": "array", 29 "items": { "type": "ref", "ref": "sh.weaver.notebook.defs#publishedVersionView" } 30 }, 31 "hasDivergence": { "type": "boolean" }, 32 "records": { 33 "type": "array", 34 "description": "Full entry records if includeContent=true", 35 "items": { 36 "type": "object", 37 "required": ["uri", "record"], 38 "properties": { 39 "uri": { "type": "string", "format": "at-uri" }, 40 "record": { "type": "unknown" } 41 } 42 } 43 } 44 } 45 } 46 } 47 } 48 } 49}