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