1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.listSecrets",
4 "defs": {
5 "main": {
6 "type": "query",
7 "parameters": {
8 "type": "params",
9 "required": [
10 "repo"
11 ],
12 "properties": {
13 "repo": {
14 "type": "string",
15 "format": "at-uri"
16 }
17 }
18 },
19 "output": {
20 "encoding": "application/json",
21 "schema": {
22 "type": "object",
23 "required": [
24 "secrets"
25 ],
26 "properties": {
27 "secrets": {
28 "type": "array",
29 "items": {
30 "type": "ref",
31 "ref": "#secret"
32 }
33 }
34 }
35 }
36 }
37 },
38 "secret": {
39 "type": "object",
40 "required": [
41 "repo",
42 "key",
43 "createdAt",
44 "createdBy"
45 ],
46 "properties": {
47 "repo": {
48 "type": "string",
49 "format": "at-uri"
50 },
51 "key": {
52 "type": "string",
53 "maxLength": 50,
54 "minLength": 1
55 },
56 "createdAt": {
57 "type": "string",
58 "format": "datetime"
59 },
60 "createdBy": {
61 "type": "string",
62 "format": "did"
63 }
64 }
65 }
66 }
67}