1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.branches",
4 "defs": {
5 "main": {
6 "type": "query",
7 "parameters": {
8 "type": "params",
9 "required": ["repo"],
10 "properties": {
11 "repo": {
12 "type": "string",
13 "description": "Repository identifier in format 'did:plc:.../repoName'"
14 },
15 "limit": {
16 "type": "integer",
17 "description": "Maximum number of branches to return",
18 "minimum": 1,
19 "maximum": 100,
20 "default": 50
21 },
22 "cursor": {
23 "type": "string",
24 "description": "Pagination cursor"
25 }
26 }
27 },
28 "output": {
29 "encoding": "*/*"
30 },
31 "errors": [
32 {
33 "name": "RepoNotFound",
34 "description": "Repository not found or access denied"
35 },
36 {
37 "name": "InvalidRequest",
38 "description": "Invalid request parameters"
39 }
40 ]
41 }
42 }
43}