Monorepo for Tangled
at push-pkuzytwlwptp 31 lines 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.label.op 6 7const ( 8 LabelOpNSID = "sh.tangled.label.op" 9) 10 11func init() { 12 // util.RegisterType("sh.tangled.label.op", &LabelOp{}) 13} // 14// RECORDTYPE: LabelOp 15type LabelOp struct { 16 LexiconTypeID string `json:"$type,const=sh.tangled.label.op" cborgen:"$type,const=sh.tangled.label.op"` 17 Add []*LabelOp_Operand `json:"add" cborgen:"add"` 18 Delete []*LabelOp_Operand `json:"delete" cborgen:"delete"` 19 PerformedAt string `json:"performedAt" cborgen:"performedAt"` 20 // subject: The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op. 21 Subject string `json:"subject" cborgen:"subject"` 22 SubjectDid *string `json:"subjectDid,omitempty" cborgen:"subjectDid,omitempty"` 23} 24 25// LabelOp_Operand is a "operand" in the sh.tangled.label.op schema. 26type LabelOp_Operand struct { 27 // key: ATURI to the label definition 28 Key string `json:"key" cborgen:"key"` 29 // value: Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value. 30 Value string `json:"value" cborgen:"value"` 31}