···6969lexgen: ## Run codegen tool for lexicons (lexicon JSON to Go packages)
7070 go run ./cmd/lexgen/ --package bsky --prefix app.bsky --outdir api/bsky $(LEXDIR)
7171 go run ./cmd/lexgen/ --package atproto --prefix com.atproto --outdir api/atproto $(LEXDIR)
7272- go run ./cmd/lexgen/ --package ozone --prefix tools.ozone --outdir api/ozone $(LEXDIR)
7372 go run ./cmd/lexgen/ --package chat --prefix chat.bsky --outdir api/chat $(LEXDIR)
7373+ go run ./cmd/lexgen/ --package ozone --prefix tools.ozone --outdir api/ozone $(LEXDIR)
74747575.PHONY: cborgen
7676cborgen: ## Run codegen tool for CBOR serialization
+39-1
api/bsky/actordefs.go
···2020 Enabled bool `json:"enabled" cborgen:"enabled"`
2121}
22222323+// ActorDefs_BskyAppProgressGuide is a "bskyAppProgressGuide" in the app.bsky.actor.defs schema.
2424+//
2525+// If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.
2626+type ActorDefs_BskyAppProgressGuide struct {
2727+ Guide string `json:"guide" cborgen:"guide"`
2828+}
2929+3030+// ActorDefs_BskyAppStatePref is a "bskyAppStatePref" in the app.bsky.actor.defs schema.
3131+//
3232+// A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.
3333+//
3434+// RECORDTYPE: ActorDefs_BskyAppStatePref
3535+type ActorDefs_BskyAppStatePref struct {
3636+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#bskyAppStatePref" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"`
3737+ ActiveProgressGuide *ActorDefs_BskyAppProgressGuide `json:"activeProgressGuide,omitempty" cborgen:"activeProgressGuide,omitempty"`
3838+ // queuedNudges: An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.
3939+ QueuedNudges []string `json:"queuedNudges,omitempty" cborgen:"queuedNudges,omitempty"`
4040+}
4141+2342// ActorDefs_ContentLabelPref is a "contentLabelPref" in the app.bsky.actor.defs schema.
2443//
2544// RECORDTYPE: ActorDefs_ContentLabelPref
···82101}
8310284103// ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema.
104104+//
105105+// RECORDTYPE: ActorDefs_LabelersPref
85106type ActorDefs_LabelersPref struct {
8686- Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"`
107107+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#labelersPref" cborgen:"$type,const=app.bsky.actor.defs#labelersPref"`
108108+ Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"`
87109}
8811089111// ActorDefs_MutedWord is a "mutedWord" in the app.bsky.actor.defs schema.
···125147 ActorDefs_InterestsPref *ActorDefs_InterestsPref
126148 ActorDefs_MutedWordsPref *ActorDefs_MutedWordsPref
127149 ActorDefs_HiddenPostsPref *ActorDefs_HiddenPostsPref
150150+ ActorDefs_BskyAppStatePref *ActorDefs_BskyAppStatePref
151151+ ActorDefs_LabelersPref *ActorDefs_LabelersPref
128152}
129153130154func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) {
···168192 t.ActorDefs_HiddenPostsPref.LexiconTypeID = "app.bsky.actor.defs#hiddenPostsPref"
169193 return json.Marshal(t.ActorDefs_HiddenPostsPref)
170194 }
195195+ if t.ActorDefs_BskyAppStatePref != nil {
196196+ t.ActorDefs_BskyAppStatePref.LexiconTypeID = "app.bsky.actor.defs#bskyAppStatePref"
197197+ return json.Marshal(t.ActorDefs_BskyAppStatePref)
198198+ }
199199+ if t.ActorDefs_LabelersPref != nil {
200200+ t.ActorDefs_LabelersPref.LexiconTypeID = "app.bsky.actor.defs#labelersPref"
201201+ return json.Marshal(t.ActorDefs_LabelersPref)
202202+ }
171203 return nil, fmt.Errorf("cannot marshal empty enum")
172204}
173205func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error {
···207239 case "app.bsky.actor.defs#hiddenPostsPref":
208240 t.ActorDefs_HiddenPostsPref = new(ActorDefs_HiddenPostsPref)
209241 return json.Unmarshal(b, t.ActorDefs_HiddenPostsPref)
242242+ case "app.bsky.actor.defs#bskyAppStatePref":
243243+ t.ActorDefs_BskyAppStatePref = new(ActorDefs_BskyAppStatePref)
244244+ return json.Unmarshal(b, t.ActorDefs_BskyAppStatePref)
245245+ case "app.bsky.actor.defs#labelersPref":
246246+ t.ActorDefs_LabelersPref = new(ActorDefs_LabelersPref)
247247+ return json.Unmarshal(b, t.ActorDefs_LabelersPref)
210248211249 default:
212250 return nil