atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.sync.listRepos",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.",
8 "parameters": {
9 "type": "params",
10 "properties": {
11 "cursor": {
12 "type": "string"
13 },
14 "limit": {
15 "type": "integer",
16 "default": 500,
17 "minimum": 1,
18 "maximum": 1000
19 }
20 }
21 },
22 "output": {
23 "encoding": "application/json",
24 "schema": {
25 "type": "object",
26 "required": [
27 "repos"
28 ],
29 "properties": {
30 "cursor": {
31 "type": "string"
32 },
33 "repos": {
34 "type": "array",
35 "items": {
36 "type": "ref",
37 "ref": "#repo"
38 }
39 }
40 }
41 }
42 }
43 },
44 "repo": {
45 "type": "object",
46 "required": [
47 "did",
48 "head",
49 "rev"
50 ],
51 "properties": {
52 "active": {
53 "type": "boolean"
54 },
55 "did": {
56 "type": "string",
57 "format": "did"
58 },
59 "head": {
60 "type": "string",
61 "description": "Current repo commit CID",
62 "format": "cid"
63 },
64 "rev": {
65 "type": "string",
66 "format": "tid"
67 },
68 "status": {
69 "type": "string",
70 "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
71 "knownValues": [
72 "takendown",
73 "suspended",
74 "deleted",
75 "deactivated",
76 "desynchronized",
77 "throttled"
78 ]
79 }
80 }
81 }
82 }
83}