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