porting all github actions from bluesky-social/indigo to tangled CI
at main 4.1 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.label.defs 6 7import ( 8 "github.com/bluesky-social/indigo/lex/util" 9) 10 11// LabelDefs_Label is a "label" in the com.atproto.label.defs schema. 12// 13// Metadata tag on an atproto resource (eg, repo or record). 14type LabelDefs_Label struct { 15 // cid: Optionally, CID specifying the specific version of 'uri' resource this label applies to. 16 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 17 // cts: Timestamp when this label was created. 18 Cts string `json:"cts" cborgen:"cts"` 19 // exp: Timestamp at which this label expires (no longer applies). 20 Exp *string `json:"exp,omitempty" cborgen:"exp,omitempty"` 21 // neg: If true, this is a negation label, overwriting a previous label. 22 Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"` 23 // sig: Signature of dag-cbor encoded label. 24 Sig util.LexBytes `json:"sig,omitempty" cborgen:"sig,omitempty"` 25 // src: DID of the actor who created this label. 26 Src string `json:"src" cborgen:"src"` 27 // uri: AT URI of the record, repository (account), or other resource that this label applies to. 28 Uri string `json:"uri" cborgen:"uri"` 29 // val: The short string name of the value or type of this label. 30 Val string `json:"val" cborgen:"val"` 31 // ver: The AT Protocol version of the label object. 32 Ver *int64 `json:"ver,omitempty" cborgen:"ver,omitempty"` 33} 34 35// LabelDefs_LabelValueDefinition is a "labelValueDefinition" in the com.atproto.label.defs schema. 36// 37// Declares a label value and its expected interpretations and behaviors. 38type LabelDefs_LabelValueDefinition struct { 39 // adultOnly: Does the user need to have adult content enabled in order to configure this label? 40 AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"` 41 // blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. 42 Blurs string `json:"blurs" cborgen:"blurs"` 43 // defaultSetting: The default setting for this label. 44 DefaultSetting *string `json:"defaultSetting,omitempty" cborgen:"defaultSetting,omitempty"` 45 // identifier: The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). 46 Identifier string `json:"identifier" cborgen:"identifier"` 47 Locales []*LabelDefs_LabelValueDefinitionStrings `json:"locales" cborgen:"locales"` 48 // severity: How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. 49 Severity string `json:"severity" cborgen:"severity"` 50} 51 52// LabelDefs_LabelValueDefinitionStrings is a "labelValueDefinitionStrings" in the com.atproto.label.defs schema. 53// 54// Strings which describe the label in the UI, localized into a specific language. 55type LabelDefs_LabelValueDefinitionStrings struct { 56 // description: A longer description of what the label means and why it might be applied. 57 Description string `json:"description" cborgen:"description"` 58 // lang: The code of the language these strings are written in. 59 Lang string `json:"lang" cborgen:"lang"` 60 // name: A short human-readable name for the label. 61 Name string `json:"name" cborgen:"name"` 62} 63 64// LabelDefs_SelfLabel is a "selfLabel" in the com.atproto.label.defs schema. 65// 66// Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. 67type LabelDefs_SelfLabel struct { 68 // val: The short string name of the value or type of this label. 69 Val string `json:"val" cborgen:"val"` 70} 71 72// LabelDefs_SelfLabels is a "selfLabels" in the com.atproto.label.defs schema. 73// 74// Metadata tags on an atproto record, published by the author within the record. 75// 76// RECORDTYPE: LabelDefs_SelfLabels 77type LabelDefs_SelfLabels struct { 78 LexiconTypeID string `json:"$type,const=com.atproto.label.defs#selfLabels" cborgen:"$type,const=com.atproto.label.defs#selfLabels"` 79 Values []*LabelDefs_SelfLabel `json:"values" cborgen:"values,preservenil"` 80}