···1956 ]
1957 }
1958 },
000000000000000000000000000000000000000000000000000000000000000000000000001959 "/xrpc/com.atproto.sync.listRepos": {
1960 "get": {
1961 "summary": "Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.",
···1956 ]
1957 }
1958 },
1959+ "/xrpc/com.atproto.sync.getRepo": {
1960+ "get": {
1961+ "summary": "Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.",
1962+ "operationId": "com.atproto.sync.getRepo",
1963+ "tags": ["com.atproto.sync"],
1964+ "responses": {
1965+ "200": {
1966+ "description": "Success",
1967+ "content": {
1968+ "application/vnd.ipld.car": {
1969+ "schema": {}
1970+ }
1971+ }
1972+ },
1973+ "400": {
1974+ "description": "Bad Request",
1975+ "content": {
1976+ "application/json": {
1977+ "schema": {
1978+ "type": "object",
1979+ "required": ["error", "message"],
1980+ "properties": {
1981+ "error": {
1982+ "type": "string",
1983+ "oneOf": [
1984+ {
1985+ "const": "RepoNotFound"
1986+ },
1987+ {
1988+ "const": "RepoTakendown"
1989+ },
1990+ {
1991+ "const": "RepoSuspended"
1992+ },
1993+ {
1994+ "const": "RepoDeactivated"
1995+ }
1996+ ]
1997+ },
1998+ "message": {
1999+ "type": "string"
2000+ }
2001+ }
2002+ }
2003+ }
2004+ }
2005+ }
2006+ },
2007+ "parameters": [
2008+ {
2009+ "name": "did",
2010+ "in": "query",
2011+ "required": true,
2012+ "description": "The DID of the repo.",
2013+ "schema": {
2014+ "type": "string",
2015+ "description": "The DID of the repo.",
2016+ "format": "did"
2017+ }
2018+ },
2019+ {
2020+ "name": "since",
2021+ "in": "query",
2022+ "required": false,
2023+ "description": "The revision ('rev') of the repo to create a diff from.",
2024+ "schema": {
2025+ "type": "string",
2026+ "description": "The revision ('rev') of the repo to create a diff from.",
2027+ "format": "tid"
2028+ }
2029+ }
2030+ ]
2031+ }
2032+ },
2033 "/xrpc/com.atproto.sync.listRepos": {
2034 "get": {
2035 "summary": "Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.",
+35
lexicons/com/atproto/sync/getRepo.json
···00000000000000000000000000000000000
···1+{
2+ "lexicon": 1,
3+ "id": "com.atproto.sync.getRepo",
4+ "defs": {
5+ "main": {
6+ "type": "query",
7+ "description": "Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.",
8+ "parameters": {
9+ "type": "params",
10+ "required": ["did"],
11+ "properties": {
12+ "did": {
13+ "type": "string",
14+ "format": "did",
15+ "description": "The DID of the repo."
16+ },
17+ "since": {
18+ "type": "string",
19+ "format": "tid",
20+ "description": "The revision ('rev') of the repo to create a diff from."
21+ }
22+ }
23+ },
24+ "output": {
25+ "encoding": "application/vnd.ipld.car"
26+ },
27+ "errors": [
28+ { "name": "RepoNotFound" },
29+ { "name": "RepoTakendown" },
30+ { "name": "RepoSuspended" },
31+ { "name": "RepoDeactivated" }
32+ ]
33+ }
34+ }
35+}