atproto blogging
at main 64 lines 1.8 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.sync.getRepoStatus", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay.", 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 "did", 27 "active" 28 ], 29 "properties": { 30 "active": { 31 "type": "boolean" 32 }, 33 "did": { 34 "type": "string", 35 "format": "did" 36 }, 37 "rev": { 38 "type": "string", 39 "description": "Optional field, the current rev of the repo, if active=true", 40 "format": "tid" 41 }, 42 "status": { 43 "type": "string", 44 "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.", 45 "knownValues": [ 46 "takendown", 47 "suspended", 48 "deleted", 49 "deactivated", 50 "desynchronized", 51 "throttled" 52 ] 53 } 54 } 55 } 56 }, 57 "errors": [ 58 { 59 "name": "RepoNotFound" 60 } 61 ] 62 } 63 } 64}