Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.sync.listRepos",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "List git repos hosted on this service.",
8 "parameters": {
9 "type": "params",
10 "properties": {
11 "cursor": {
12 "type": "string",
13 "description": "Pagination cursor"
14 },
15 "limit": {
16 "type": "integer",
17 "minimum": 1,
18 "maximum": 1000,
19 "default": 50
20 },
21 "order": {
22 "type": "string",
23 "knownValues": ["asc", "desc"],
24 "default": "desc",
25 "description": "Sort direction over the service's repo listing order."
26 }
27 }
28 },
29 "output": {
30 "encoding": "application/json",
31 "schema": {
32 "type": "object",
33 "required": ["repos"],
34 "properties": {
35 "repos": {
36 "type": "array",
37 "items": { "type": "ref", "ref": "#repo" },
38 "maxLength": 1000
39 },
40 "cursor": { "type": "string" }
41 }
42 }
43 },
44 "errors": [
45 {
46 "name": "InvalidRequest",
47 "description": "Invalid request parameters"
48 }
49 ]
50 },
51 "repo": {
52 "type": "object",
53 "required": ["repo", "status"],
54 "properties": {
55 "repo": {
56 "type": "string",
57 "format": "did",
58 "description": "DID of the git repo as minted by the knot"
59 },
60 "status": {
61 "type": "string",
62 "knownValues": ["active", "archived", "disabled"],
63 "description": "Serving status of the repo according to the knot."
64 },
65 "defaultBranch": {
66 "type": "ref",
67 "ref": "#defaultBranch"
68 }
69 }
70 },
71 "defaultBranch": {
72 "type": "object",
73 "required": ["ref"],
74 "properties": {
75 "ref": {
76 "type": "string",
77 "description": "Default branch ref name, eg. refs/heads/main.",
78 "maxGraphemes": 256,
79 "maxLength": 2560
80 },
81 "head": {
82 "type": "string",
83 "description": "Commit SHA at the tip of the default branch, for reconciling against a last-known state. Width depends on the repo's git object-format.",
84 "minLength": 40,
85 "maxLength": 128
86 }
87 }
88 }
89 }
90}