···124124 LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#modEventEmail" cborgen:"$type,const=com.atproto.admin.defs#modEventEmail"`
125125 // comment: Additional comment about the outgoing comm.
126126 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
127127+ // content: The content of the email sent to the user.
128128+ Content *string `json:"content,omitempty" cborgen:"content,omitempty"`
127129 // subjectLine: The subject line of the email sent to the user.
128130 SubjectLine string `json:"subjectLine" cborgen:"subjectLine"`
129131}
+56-1
api/atproto/cbor_gen.go
···21712171 }
2172217221732173 cw := cbg.NewCborWriter(w)
21742174- fieldCount := 6
21742174+ fieldCount := 7
2175217521762176 if t.Cid == nil {
21772177 fieldCount--
21782178 }
2179217921802180 if t.Neg == nil {
21812181+ fieldCount--
21822182+ }
21832183+21842184+ if t.Sig == nil {
21812185 fieldCount--
21822186 }
21832187···22632267 return err
22642268 }
22652269 }
22702270+ }
22712271+22722272+ // t.Sig (util.LexBytes) (slice)
22732273+ if t.Sig != nil {
22742274+22752275+ if uint64(len("sig")) > cbg.MaxLength {
22762276+ return xerrors.Errorf("Value in field \"sig\" was too long")
22772277+ }
22782278+22792279+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("sig"))); err != nil {
22802280+ return err
22812281+ }
22822282+ if _, err := cw.WriteString(string("sig")); err != nil {
22832283+ return err
22842284+ }
22852285+22862286+ if uint64(len(t.Sig)) > cbg.ByteArrayMaxLen {
22872287+ return xerrors.Errorf("Byte array in field t.Sig was too long")
22882288+ }
22892289+22902290+ if err := cw.WriteMajorTypeHeader(cbg.MajByteString, uint64(len(t.Sig))); err != nil {
22912291+ return err
22922292+ }
22932293+22942294+ if _, err := cw.Write(t.Sig); err != nil {
22952295+ return err
22962296+ }
22972297+22662298 }
2267229922682300 // t.Src (string) (string)
···24392471 t.Neg = &val
24402472 }
24412473 }
24742474+ // t.Sig (util.LexBytes) (slice)
24752475+ case "sig":
24762476+24772477+ maj, extra, err = cr.ReadHeader()
24782478+ if err != nil {
24792479+ return err
24802480+ }
24812481+24822482+ if extra > cbg.ByteArrayMaxLen {
24832483+ return fmt.Errorf("t.Sig: byte array too large (%d)", extra)
24842484+ }
24852485+ if maj != cbg.MajByteString {
24862486+ return fmt.Errorf("expected byte array")
24872487+ }
24882488+24892489+ if extra > 0 {
24902490+ t.Sig = make([]uint8, extra)
24912491+ }
24922492+24932493+ if _, err := io.ReadFull(cr, t.Sig); err != nil {
24942494+ return err
24952495+ }
24962496+24422497 // t.Src (string) (string)
24432498 case "src":
24442499
+8
api/atproto/labeldefs.go
···4455// schema: com.atproto.label.defs
6677+import (
88+ "github.com/bluesky-social/indigo/lex/util"
99+)
1010+711// LabelDefs_Label is a "label" in the com.atproto.label.defs schema.
812//
913// Metadata tag on an atproto resource (eg, repo or record).
···1418 Cts string `json:"cts" cborgen:"cts"`
1519 // neg: If true, this is a negation label, overwriting a previous label.
1620 Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
2121+ // sig: Signature of dag-cbor encoded label.
2222+ Sig util.LexBytes `json:"sig,omitempty" cborgen:"sig,omitempty"`
1723 // src: DID of the actor who created this label.
1824 Src string `json:"src" cborgen:"src"`
1925 // uri: AT URI of the record, repository (account), or other resource that this label applies to.
2026 Uri string `json:"uri" cborgen:"uri"`
2127 // val: The short string name of the value or type of this label.
2228 Val string `json:"val" cborgen:"val"`
2929+ // ver: The AT Protocol version of the label object.
3030+ Ver *int64 `json:"ver,omitempty" cborgen:"ver,omitempty"`
2331}
24322533// LabelDefs_LabelValueDefinition is a "labelValueDefinition" in the com.atproto.label.defs schema.