Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.string",
4 "needsCbor": true,
5 "needsType": true,
6 "defs": {
7 "main": {
8 "type": "record",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": [
13 "createdAt",
14 "files"
15 ],
16 "properties": {
17 "filename": {
18 "type": "string",
19 "maxGraphemes": 140,
20 "minGraphemes": 1,
21 "description": "DEPRECATED - use title instead"
22 },
23 "title": {
24 "type": "string",
25 "maxGraphemes": 140,
26 "minGraphemes": 1
27 },
28 "description": {
29 "type": "string",
30 "maxGraphemes": 280,
31 "minGraphemes": 1
32 },
33 "createdAt": {
34 "type": "string",
35 "format": "datetime"
36 },
37 "contents": {
38 "type": "string",
39 "minGraphemes": 1,
40 "description": "DEPRECATED - use files[0].content instead"
41 },
42 "files": {
43 "type": "array",
44 "minLength": 1,
45 "maxLength": 50,
46 "items": {
47 "type": "ref",
48 "ref": "#file"
49 }
50 }
51 }
52 }
53 },
54 "file": {
55 "type": "object",
56 "required": [
57 "name",
58 "content"
59 ],
60 "properties": {
61 "name": {
62 "type": "string",
63 "maxGraphemes": 140,
64 "minGraphemes": 1,
65 "description": "filename including extension"
66 },
67 "content": {
68 "type": "blob",
69 "accept": ["text/plain", "application/gzip"],
70 "maxSize": 8388608,
71 "description": "file content"
72 },
73 "gzip": {
74 "type": "object",
75 "required": ["realSize", "realMime"],
76 "properties": {
77 "realSize": { "type": "integer" },
78 "realMime": { "type": "string" }
79 },
80 "description": "underlying blob metadata. provided when we are using gzip hack for text/* mimetype"
81 }
82 }
83 }
84 }
85}