forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
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}
27
28// LabelOp_Operand is a "operand" in the sh.tangled.label.op schema.
29type LabelOp_Operand struct {
30 // key: ATURI to the label definition
31 Key string `json:"key" cborgen:"key"`
32 // value: Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value.
33 Value string `json:"value" cborgen:"value"`
34}