Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.git.temp.listLanguages",
4 "defs": {
5 "main": {
6 "type": "query",
7 "parameters": {
8 "type": "params",
9 "required": ["repo"],
10 "properties": {
11 "repo": {
12 "type": "string",
13 "format": "did",
14 "description": "DID of the repository"
15 },
16 "ref": {
17 "type": "string",
18 "description": "Git reference (branch, tag, or commit SHA)",
19 "default": "HEAD"
20 }
21 }
22 },
23 "output": {
24 "encoding": "application/json",
25 "schema": {
26 "type": "object",
27 "required": ["ref", "languages", "total"],
28 "properties": {
29 "ref": {
30 "type": "string",
31 "description": "The git reference used"
32 },
33 "languages": {
34 "type": "array",
35 "items": {
36 "type": "ref",
37 "ref": "#language"
38 }
39 },
40 "total": {
41 "type": "integer",
42 "description": "Total size of all analyzed files in bytes"
43 }
44 }
45 }
46 },
47 "errors": [
48 {
49 "name": "RepoNotFound",
50 "description": "Repository not found or access denied"
51 },
52 {
53 "name": "RefNotFound",
54 "description": "Git reference not found"
55 },
56 {
57 "name": "InvalidRequest",
58 "description": "Invalid request parameters"
59 }
60 ]
61 },
62 "language": {
63 "type": "object",
64 "required": ["name", "size"],
65 "properties": {
66 "name": {
67 "type": "string",
68 "description": "Programming language name"
69 },
70 "size": {
71 "type": "integer",
72 "description": "Total size of files in this language (bytes)"
73 }
74 }
75 }
76 }
77}