Monorepo for Tangled
tangled.org
1{
2 "lexicon": 1,
3 "id": "sh.tangled.label.op",
4 "needsCbor": true,
5 "needsType": true,
6 "defs": {
7 "main": {
8 "type": "record",
9 "key": "tid",
10 "record": {
11 "type": "object",
12 "required": [
13 "subject",
14 "add",
15 "delete",
16 "performedAt"
17 ],
18 "properties": {
19 "subject": {
20 "type": "string",
21 "format": "at-uri",
22 "description": "The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op."
23 },
24 "performedAt": {
25 "type": "string",
26 "format": "datetime"
27 },
28 "add": {
29 "type": "array",
30 "items": {
31 "type": "ref",
32 "ref": "#operand"
33 }
34 },
35 "delete": {
36 "type": "array",
37 "items": {
38 "type": "ref",
39 "ref": "#operand"
40 }
41 }
42 }
43 }
44 },
45 "operand": {
46 "type": "object",
47 "required": [
48 "key",
49 "value"
50 ],
51 "properties": {
52 "key": {
53 "type": "string",
54 "format": "at-uri",
55 "description": "ATURI to the label definition"
56 },
57 "value": {
58 "type": "string",
59 "description": "Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value."
60 }
61 }
62 }
63 }
64}