Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.describeRepo",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Fetch the knot's authoritative metadata for a git repo DID.",
8 "parameters": {
9 "type": "params",
10 "required": ["repoDid"],
11 "properties": {
12 "repoDid": {
13 "type": "string",
14 "format": "did",
15 "description": "DID of the git repo as minted by the knot"
16 }
17 }
18 },
19 "output": {
20 "encoding": "application/json",
21 "schema": {
22 "type": "object",
23 "required": ["repoDid", "ownerDid", "rkey"],
24 "properties": {
25 "repoDid": {
26 "type": "string",
27 "format": "did"
28 },
29 "ownerDid": {
30 "type": "string",
31 "format": "did",
32 "description": "DID of the current owner according to the knot."
33 },
34 "rkey": {
35 "type": "string",
36 "format": "record-key",
37 "description": "Current rkey of the sh.tangled.repo record tracked by this knot"
38 }
39 }
40 }
41 },
42 "errors": [
43 {
44 "name": "RepoNotFound",
45 "description": "Repo DID is not registered on this knot"
46 },
47 {
48 "name": "InvalidRequest",
49 "description": "Invalid request parameters"
50 }
51 ]
52 }
53 }
54}