1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.artifact",
4 "needsCbor": true,
5 "needsType": true,
6 "defs": {
7 "main": {
8 "type": "record",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": [
13 "name",
14 "repo",
15 "tag",
16 "createdAt",
17 "artifact"
18 ],
19 "properties": {
20 "name": {
21 "type": "string",
22 "description": "name of the artifact"
23 },
24 "repo": {
25 "type": "string",
26 "format": "at-uri",
27 "description": "repo that this artifact is being uploaded to"
28 },
29 "tag": {
30 "type": "bytes",
31 "description": "hash of the tag object that this artifact is attached to (only annotated tags are supported)",
32 "minLength": 20,
33 "maxLength": 20
34 },
35 "createdAt": {
36 "type": "string",
37 "format": "datetime",
38 "description": "time of creation of this artifact"
39 },
40 "artifact": {
41 "type": "blob",
42 "description": "the artifact",
43 "accept": [
44 "*/*"
45 ],
46 "maxSize": 52428800
47 }
48 }
49 }
50 }
51 }
52}