Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.listRepos",
4 "defs": {
5 "main": {
6 "type": "query",
7 "parameters": {
8 "type": "params",
9 "required": ["subject"],
10 "properties": {
11 "subject": {
12 "type": "string",
13 "format": "did",
14 "description": "Owner DID whose repo records to list."
15 },
16 "cursor": {
17 "type": "string",
18 "description": "Pagination cursor"
19 },
20 "limit": {
21 "type": "integer",
22 "minimum": 1,
23 "maximum": 1000,
24 "default": 50
25 },
26 "order": {
27 "type": "string",
28 "knownValues": ["asc", "desc"],
29 "default": "desc",
30 "description": "Sort direction by createdAt."
31 }
32 }
33 },
34 "output": {
35 "encoding": "application/json",
36 "schema": {
37 "type": "object",
38 "required": ["items"],
39 "properties": {
40 "items": {
41 "type": "array",
42 "items": { "type": "ref", "ref": "#listItem" }
43 },
44 "cursor": { "type": "string" }
45 }
46 }
47 }
48 },
49 "listItem": {
50 "type": "object",
51 "required": ["uri", "value"],
52 "properties": {
53 "uri": { "type": "string", "format": "at-uri" },
54 "cid": { "type": "string", "format": "cid" },
55 "value": {
56 "type": "unknown",
57 "description": "Embedded sh.tangled.repo record"
58 }
59 }
60 }
61 }
62}