Monorepo for Tangled
at master 68 lines 1.6 kB view raw
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 "subjectDid": { 25 "type": "string", 26 "format": "did" 27 }, 28 "performedAt": { 29 "type": "string", 30 "format": "datetime" 31 }, 32 "add": { 33 "type": "array", 34 "items": { 35 "type": "ref", 36 "ref": "#operand" 37 } 38 }, 39 "delete": { 40 "type": "array", 41 "items": { 42 "type": "ref", 43 "ref": "#operand" 44 } 45 } 46 } 47 } 48 }, 49 "operand": { 50 "type": "object", 51 "required": [ 52 "key", 53 "value" 54 ], 55 "properties": { 56 "key": { 57 "type": "string", 58 "format": "at-uri", 59 "description": "ATURI to the label definition" 60 }, 61 "value": { 62 "type": "string", 63 "description": "Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value." 64 } 65 } 66 } 67 } 68}