atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.edit.getEditHistory",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get edit history (roots and diffs) for a resource.",
8 "parameters": {
9 "type": "params",
10 "required": ["resource"],
11 "properties": {
12 "resource": { "type": "string", "format": "at-uri" },
13 "afterRkey": {
14 "type": "string",
15 "description": "Only diffs after this rkey (incremental sync)"
16 },
17 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
18 "cursor": { "type": "string" }
19 }
20 },
21 "output": {
22 "encoding": "application/json",
23 "schema": {
24 "type": "object",
25 "required": ["roots", "diffs"],
26 "properties": {
27 "roots": {
28 "type": "array",
29 "items": { "type": "ref", "ref": "sh.weaver.edit.defs#editHistoryEntry" }
30 },
31 "diffs": {
32 "type": "array",
33 "items": { "type": "ref", "ref": "sh.weaver.edit.defs#editHistoryEntry" }
34 },
35 "cursor": { "type": "string" }
36 }
37 }
38 }
39 }
40 }
41}