atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.sync.getLatestCommit",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get the current commit CID & revision of the specified repo. Does not require auth.",
8 "parameters": {
9 "type": "params",
10 "required": [
11 "did"
12 ],
13 "properties": {
14 "did": {
15 "type": "string",
16 "description": "The DID of the repo.",
17 "format": "did"
18 }
19 }
20 },
21 "output": {
22 "encoding": "application/json",
23 "schema": {
24 "type": "object",
25 "required": [
26 "cid",
27 "rev"
28 ],
29 "properties": {
30 "cid": {
31 "type": "string",
32 "format": "cid"
33 },
34 "rev": {
35 "type": "string",
36 "format": "tid"
37 }
38 }
39 }
40 },
41 "errors": [
42 {
43 "name": "RepoNotFound"
44 },
45 {
46 "name": "RepoTakendown"
47 },
48 {
49 "name": "RepoSuspended"
50 },
51 {
52 "name": "RepoDeactivated"
53 }
54 ]
55 }
56 }
57}