···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.defs
4455-// schema: com.atproto.admin.defs
55+package atproto
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···2525}
26262727// AdminDefs_RepoBlobRef is a "repoBlobRef" in the com.atproto.admin.defs schema.
2828-//
2929-// RECORDTYPE: AdminDefs_RepoBlobRef
3028type AdminDefs_RepoBlobRef struct {
3131- LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#repoBlobRef" cborgen:"$type,const=com.atproto.admin.defs#repoBlobRef"`
2929+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#repoBlobRef"`
3230 Cid string `json:"cid" cborgen:"cid"`
3331 Did string `json:"did" cborgen:"did"`
3432 RecordUri *string `json:"recordUri,omitempty" cborgen:"recordUri,omitempty"`
3533}
36343735// AdminDefs_RepoRef is a "repoRef" in the com.atproto.admin.defs schema.
3838-//
3939-// RECORDTYPE: AdminDefs_RepoRef
4036type AdminDefs_RepoRef struct {
4141- LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#repoRef" cborgen:"$type,const=com.atproto.admin.defs#repoRef"`
3737+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#repoRef"`
4238 Did string `json:"did" cborgen:"did"`
4339}
4440
+2-2
api/atproto/admindeleteAccount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.deleteAccount
4455-// schema: com.atproto.admin.deleteAccount
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/admindisableAccountInvites.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.disableAccountInvites
4455-// schema: com.atproto.admin.disableAccountInvites
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/admindisableInviteCodes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.disableInviteCodes
4455-// schema: com.atproto.admin.disableInviteCodes
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminenableAccountInvites.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.enableAccountInvites
4455-// schema: com.atproto.admin.enableAccountInvites
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/admingetAccountInfo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.getAccountInfo
4455-// schema: com.atproto.admin.getAccountInfo
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/admingetAccountInfos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.getAccountInfos
4455-// schema: com.atproto.admin.getAccountInfos
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/admingetInviteCodes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.getInviteCodes
4455-// schema: com.atproto.admin.getInviteCodes
55+package atproto
6677import (
88 "context"
+4-3
api/atproto/admingetSubjectStatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.getSubjectStatus
4455-// schema: com.atproto.admin.getSubjectStatus
55+package atproto
6677import (
88 "context"
···3838 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef"
3939 return json.Marshal(t.AdminDefs_RepoBlobRef)
4040 }
4141- return nil, fmt.Errorf("cannot marshal empty enum")
4141+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4242}
4343+4344func (t *AdminGetSubjectStatus_Output_Subject) UnmarshalJSON(b []byte) error {
4445 typ, err := util.TypeExtract(b)
4546 if err != nil {
+2-2
api/atproto/adminsearchAccounts.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.searchAccounts
4455-// schema: com.atproto.admin.searchAccounts
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminsendEmail.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.sendEmail
4455-// schema: com.atproto.admin.sendEmail
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminupdateAccountEmail.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.updateAccountEmail
4455-// schema: com.atproto.admin.updateAccountEmail
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminupdateAccountHandle.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.updateAccountHandle
4455-// schema: com.atproto.admin.updateAccountHandle
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminupdateAccountPassword.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.updateAccountPassword
4455-// schema: com.atproto.admin.updateAccountPassword
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/adminupdateAccountSigningKey.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.updateAccountSigningKey
4455-// schema: com.atproto.admin.updateAccountSigningKey
55+package atproto
6677import (
88 "context"
+6-4
api/atproto/adminupdateSubjectStatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.admin.updateSubjectStatus
4455-// schema: com.atproto.admin.updateSubjectStatus
55+package atproto
6677import (
88 "context"
···3838 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef"
3939 return json.Marshal(t.AdminDefs_RepoBlobRef)
4040 }
4141- return nil, fmt.Errorf("cannot marshal empty enum")
4141+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4242}
4343+4344func (t *AdminUpdateSubjectStatus_Input_Subject) UnmarshalJSON(b []byte) error {
4445 typ, err := util.TypeExtract(b)
4546 if err != nil {
···8788 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef"
8889 return json.Marshal(t.AdminDefs_RepoBlobRef)
8990 }
9090- return nil, fmt.Errorf("cannot marshal empty enum")
9191+ return nil, fmt.Errorf("can not marshal empty union as JSON")
9192}
9393+9294func (t *AdminUpdateSubjectStatus_Output_Subject) UnmarshalJSON(b []byte) error {
9395 typ, err := util.TypeExtract(b)
9496 if err != nil {
+2-2
api/atproto/identitydefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.defs
4455-// schema: com.atproto.identity.defs
55+package atproto
6677// IdentityDefs_IdentityInfo is a "identityInfo" in the com.atproto.identity.defs schema.
88type IdentityDefs_IdentityInfo struct {
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.requestPlcOperationSignature
4455-// schema: com.atproto.identity.requestPlcOperationSignature
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identityresolveDid.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.resolveDid
4455-// schema: com.atproto.identity.resolveDid
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identityresolveHandle.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.resolveHandle
4455-// schema: com.atproto.identity.resolveHandle
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identityresolveIdentity.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.resolveIdentity
4455-// schema: com.atproto.identity.resolveIdentity
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identitysignPlcOperation.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.signPlcOperation
4455-// schema: com.atproto.identity.signPlcOperation
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identitysubmitPlcOperation.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.submitPlcOperation
4455-// schema: com.atproto.identity.submitPlcOperation
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/identityupdateHandle.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.identity.updateHandle
4455-// schema: com.atproto.identity.updateHandle
55+package atproto
6677import (
88 "context"
+3-5
api/atproto/labeldefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.label.defs
4455-// schema: com.atproto.label.defs
55+package atproto
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···7272// LabelDefs_SelfLabels is a "selfLabels" in the com.atproto.label.defs schema.
7373//
7474// Metadata tags on an atproto record, published by the author within the record.
7575-//
7676-// RECORDTYPE: LabelDefs_SelfLabels
7775type LabelDefs_SelfLabels struct {
7878- LexiconTypeID string `json:"$type,const=com.atproto.label.defs#selfLabels" cborgen:"$type,const=com.atproto.label.defs#selfLabels"`
7676+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#selfLabels"`
7977 Values []*LabelDefs_SelfLabel `json:"values" cborgen:"values,preservenil"`
8078}
+2-2
api/atproto/labelqueryLabels.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.label.queryLabels
4455-// schema: com.atproto.label.queryLabels
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/labelsubscribeLabels.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.label.subscribeLabels
4455-// schema: com.atproto.label.subscribeLabels
55+package atproto
6677// LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema.
88type LabelSubscribeLabels_Info struct {
+5-5
api/atproto/lexiconschema.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.lexicon.schema
4455-// schema: com.atproto.lexicon.schema
55+package atproto
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("com.atproto.lexicon.schema", &LexiconSchema{})
1313-} //
1414-// RECORDTYPE: LexiconSchema
1313+}
1414+1515type LexiconSchema struct {
1616- LexiconTypeID string `json:"$type,const=com.atproto.lexicon.schema" cborgen:"$type,const=com.atproto.lexicon.schema"`
1616+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.lexicon.schema"`
1717 // lexicon: Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.
1818 Lexicon int64 `json:"lexicon" cborgen:"lexicon"`
1919}
+6-4
api/atproto/moderationcreateReport.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.moderation.createReport
4455-// schema: com.atproto.moderation.createReport
55+package atproto
6677import (
88 "context"
···3636 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef"
3737 return json.Marshal(t.RepoStrongRef)
3838 }
3939- return nil, fmt.Errorf("cannot marshal empty enum")
3939+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4040}
4141+4142func (t *ModerationCreateReport_Input_Subject) UnmarshalJSON(b []byte) error {
4243 typ, err := util.TypeExtract(b)
4344 if err != nil {
···9192 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef"
9293 return json.Marshal(t.RepoStrongRef)
9394 }
9494- return nil, fmt.Errorf("cannot marshal empty enum")
9595+ return nil, fmt.Errorf("can not marshal empty union as JSON")
9596}
9797+9698func (t *ModerationCreateReport_Output_Subject) UnmarshalJSON(b []byte) error {
9799 typ, err := util.TypeExtract(b)
98100 if err != nil {
+2-2
api/atproto/moderationdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.moderation.defs
4455-// schema: com.atproto.moderation.defs
55+package atproto
+14-24
api/atproto/repoapplyWrites.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.applyWrites
4455-// schema: com.atproto.repo.applyWrites
55+package atproto
6677import (
88 "context"
···1515// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
1616//
1717// Operation which creates a new record.
1818-//
1919-// RECORDTYPE: RepoApplyWrites_Create
2018type RepoApplyWrites_Create struct {
2121- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#create" cborgen:"$type,const=com.atproto.repo.applyWrites#create"`
1919+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#create"`
2220 Collection string `json:"collection" cborgen:"collection"`
2321 // rkey: NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.
2422 Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
···2624}
27252826// RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema.
2929-//
3030-// RECORDTYPE: RepoApplyWrites_CreateResult
3127type RepoApplyWrites_CreateResult struct {
3232- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#createResult" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"`
2828+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"`
3329 Cid string `json:"cid" cborgen:"cid"`
3430 Uri string `json:"uri" cborgen:"uri"`
3531 ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
···3834// RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.
3935//
4036// Operation which deletes an existing record.
4141-//
4242-// RECORDTYPE: RepoApplyWrites_Delete
4337type RepoApplyWrites_Delete struct {
4444- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#delete" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"`
3838+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"`
4539 Collection string `json:"collection" cborgen:"collection"`
4640 Rkey string `json:"rkey" cborgen:"rkey"`
4741}
48424943// RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema.
5050-//
5151-// RECORDTYPE: RepoApplyWrites_DeleteResult
5244type RepoApplyWrites_DeleteResult struct {
5353- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#deleteResult" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"`
4545+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"`
5446}
55475648// RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.
···8375 t.RepoApplyWrites_Delete.LexiconTypeID = "com.atproto.repo.applyWrites#delete"
8476 return json.Marshal(t.RepoApplyWrites_Delete)
8577 }
8686- return nil, fmt.Errorf("cannot marshal empty enum")
7878+ return nil, fmt.Errorf("can not marshal empty union as JSON")
8779}
8080+8881func (t *RepoApplyWrites_Input_Writes_Elem) UnmarshalJSON(b []byte) error {
8982 typ, err := util.TypeExtract(b)
9083 if err != nil {
···10396 return json.Unmarshal(b, t.RepoApplyWrites_Delete)
1049710598 default:
106106- return fmt.Errorf("closed enums must have a matching value")
9999+ return fmt.Errorf("closed unions must match a listed schema")
107100 }
108101}
109102···132125 t.RepoApplyWrites_DeleteResult.LexiconTypeID = "com.atproto.repo.applyWrites#deleteResult"
133126 return json.Marshal(t.RepoApplyWrites_DeleteResult)
134127 }
135135- return nil, fmt.Errorf("cannot marshal empty enum")
128128+ return nil, fmt.Errorf("can not marshal empty union as JSON")
136129}
130130+137131func (t *RepoApplyWrites_Output_Results_Elem) UnmarshalJSON(b []byte) error {
138132 typ, err := util.TypeExtract(b)
139133 if err != nil {
···152146 return json.Unmarshal(b, t.RepoApplyWrites_DeleteResult)
153147154148 default:
155155- return fmt.Errorf("closed enums must have a matching value")
149149+ return fmt.Errorf("closed unions must match a listed schema")
156150 }
157151}
158152159153// RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.
160154//
161155// Operation which updates an existing record.
162162-//
163163-// RECORDTYPE: RepoApplyWrites_Update
164156type RepoApplyWrites_Update struct {
165165- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#update" cborgen:"$type,const=com.atproto.repo.applyWrites#update"`
157157+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#update"`
166158 Collection string `json:"collection" cborgen:"collection"`
167159 Rkey string `json:"rkey" cborgen:"rkey"`
168160 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
169161}
170162171163// RepoApplyWrites_UpdateResult is a "updateResult" in the com.atproto.repo.applyWrites schema.
172172-//
173173-// RECORDTYPE: RepoApplyWrites_UpdateResult
174164type RepoApplyWrites_UpdateResult struct {
175175- LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#updateResult" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"`
165165+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"`
176166 Cid string `json:"cid" cborgen:"cid"`
177167 Uri string `json:"uri" cborgen:"uri"`
178168 ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
+2-2
api/atproto/repocreateRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.createRecord
4455-// schema: com.atproto.repo.createRecord
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repodefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.defs
4455-// schema: com.atproto.repo.defs
55+package atproto
6677// RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema.
88type RepoDefs_CommitMeta struct {
+2-2
api/atproto/repodeleteRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.deleteRecord
4455-// schema: com.atproto.repo.deleteRecord
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repodescribeRepo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.describeRepo
4455-// schema: com.atproto.repo.describeRepo
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repogetRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.getRecord
4455-// schema: com.atproto.repo.getRecord
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repoimportRepo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.importRepo
4455-// schema: com.atproto.repo.importRepo
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repolistMissingBlobs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.listMissingBlobs
4455-// schema: com.atproto.repo.listMissingBlobs
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repolistRecords.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.listRecords
4455-// schema: com.atproto.repo.listRecords
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/repoputRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.putRecord
4455-// schema: com.atproto.repo.putRecord
55+package atproto
6677import (
88 "context"
+6-5
api/atproto/repostrongRef.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.strongRef
4455-// schema: com.atproto.repo.strongRef
55+package atproto
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("com.atproto.repo.strongRef#main", &RepoStrongRef{})
1313-} // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema.
1414-// RECORDTYPE: RepoStrongRef
1313+}
1414+1515+// RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema.
1516type RepoStrongRef struct {
1616- LexiconTypeID string `json:"$type,const=com.atproto.repo.strongRef,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"`
1717+ LexiconTypeID string `json:"$type,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"`
1718 Cid string `json:"cid" cborgen:"cid"`
1819 Uri string `json:"uri" cborgen:"uri"`
1920}
+2-2
api/atproto/repouploadBlob.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.repo.uploadBlob
4455-// schema: com.atproto.repo.uploadBlob
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serveractivateAccount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.activateAccount
4455-// schema: com.atproto.server.activateAccount
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercheckAccountStatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.checkAccountStatus
4455-// schema: com.atproto.server.checkAccountStatus
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverconfirmEmail.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.confirmEmail
4455-// schema: com.atproto.server.confirmEmail
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercreateAccount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.createAccount
4455-// schema: com.atproto.server.createAccount
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercreateAppPassword.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.createAppPassword
4455-// schema: com.atproto.server.createAppPassword
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercreateInviteCode.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.createInviteCode
4455-// schema: com.atproto.server.createInviteCode
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercreateInviteCodes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.createInviteCodes
4455-// schema: com.atproto.server.createInviteCodes
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servercreateSession.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.createSession
4455-// schema: com.atproto.server.createSession
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverdeactivateAccount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.deactivateAccount
4455-// schema: com.atproto.server.deactivateAccount
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.defs
4455-// schema: com.atproto.server.defs
55+package atproto
6677// ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema.
88type ServerDefs_InviteCode struct {
+2-2
api/atproto/serverdeleteAccount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.deleteAccount
4455-// schema: com.atproto.server.deleteAccount
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverdeleteSession.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.deleteSession
4455-// schema: com.atproto.server.deleteSession
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverdescribeServer.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.describeServer
4455-// schema: com.atproto.server.describeServer
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servergetAccountInviteCodes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.getAccountInviteCodes
4455-// schema: com.atproto.server.getAccountInviteCodes
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servergetServiceAuth.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.getServiceAuth
4455-// schema: com.atproto.server.getServiceAuth
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/servergetSession.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.getSession
4455-// schema: com.atproto.server.getSession
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverlistAppPasswords.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.listAppPasswords
4455-// schema: com.atproto.server.listAppPasswords
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrefreshSession.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.refreshSession
4455-// schema: com.atproto.server.refreshSession
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrequestAccountDelete.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.requestAccountDelete
4455-// schema: com.atproto.server.requestAccountDelete
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrequestEmailConfirmation.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.requestEmailConfirmation
4455-// schema: com.atproto.server.requestEmailConfirmation
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrequestEmailUpdate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.requestEmailUpdate
4455-// schema: com.atproto.server.requestEmailUpdate
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrequestPasswordReset.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.requestPasswordReset
4455-// schema: com.atproto.server.requestPasswordReset
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverreserveSigningKey.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.reserveSigningKey
4455-// schema: com.atproto.server.reserveSigningKey
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverresetPassword.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.resetPassword
4455-// schema: com.atproto.server.resetPassword
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverrevokeAppPassword.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.revokeAppPassword
4455-// schema: com.atproto.server.revokeAppPassword
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/serverupdateEmail.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.server.updateEmail
4455-// schema: com.atproto.server.updateEmail
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.defs
4455-// schema: com.atproto.sync.defs
55+package atproto
+2-2
api/atproto/syncgetBlob.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getBlob
4455-// schema: com.atproto.sync.getBlob
55+package atproto
6677import (
88 "bytes"
+2-2
api/atproto/syncgetBlocks.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getBlocks
4455-// schema: com.atproto.sync.getBlocks
55+package atproto
6677import (
88 "bytes"
+2-2
api/atproto/syncgetCheckout.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getCheckout
4455-// schema: com.atproto.sync.getCheckout
55+package atproto
6677import (
88 "bytes"
+2-2
api/atproto/syncgetHead.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getHead
4455-// schema: com.atproto.sync.getHead
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncgetHostStatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getHostStatus
4455-// schema: com.atproto.sync.getHostStatus
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncgetLatestCommit.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getLatestCommit
4455-// schema: com.atproto.sync.getLatestCommit
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncgetRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getRecord
4455-// schema: com.atproto.sync.getRecord
55+package atproto
6677import (
88 "bytes"
+2-2
api/atproto/syncgetRepo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getRepo
4455-// schema: com.atproto.sync.getRepo
55+package atproto
6677import (
88 "bytes"
+2-2
api/atproto/syncgetRepoStatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.getRepoStatus
4455-// schema: com.atproto.sync.getRepoStatus
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/synclistBlobs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.listBlobs
4455-// schema: com.atproto.sync.listBlobs
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/synclistHosts.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.listHosts
4455-// schema: com.atproto.sync.listHosts
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/synclistRepos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.listRepos
4455-// schema: com.atproto.sync.listRepos
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/synclistReposByCollection.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.listReposByCollection
4455-// schema: com.atproto.sync.listReposByCollection
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncnotifyOfUpdate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.notifyOfUpdate
4455-// schema: com.atproto.sync.notifyOfUpdate
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncrequestCrawl.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.requestCrawl
4455-// schema: com.atproto.sync.requestCrawl
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/syncsubscribeRepos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.sync.subscribeRepos
4455-// schema: com.atproto.sync.subscribeRepos
55+package atproto
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
+2-2
api/atproto/tempaddReservedHandle.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.addReservedHandle
4455-// schema: com.atproto.temp.addReservedHandle
55+package atproto
6677import (
88 "context"
+6-9
api/atproto/tempcheckHandleAvailability.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.checkHandleAvailability
4455-// schema: com.atproto.temp.checkHandleAvailability
55+package atproto
6677import (
88 "context"
···3333 t.TempCheckHandleAvailability_ResultUnavailable.LexiconTypeID = "com.atproto.temp.checkHandleAvailability#resultUnavailable"
3434 return json.Marshal(t.TempCheckHandleAvailability_ResultUnavailable)
3535 }
3636- return nil, fmt.Errorf("cannot marshal empty enum")
3636+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3737}
3838+3839func (t *TempCheckHandleAvailability_Output_Result) UnmarshalJSON(b []byte) error {
3940 typ, err := util.TypeExtract(b)
4041 if err != nil {
···5758// TempCheckHandleAvailability_ResultAvailable is a "resultAvailable" in the com.atproto.temp.checkHandleAvailability schema.
5859//
5960// Indicates the provided handle is available.
6060-//
6161-// RECORDTYPE: TempCheckHandleAvailability_ResultAvailable
6261type TempCheckHandleAvailability_ResultAvailable struct {
6363- LexiconTypeID string `json:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"`
6262+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"`
6463}
65646665// TempCheckHandleAvailability_ResultUnavailable is a "resultUnavailable" in the com.atproto.temp.checkHandleAvailability schema.
6766//
6867// Indicates the provided handle is unavailable and gives suggestions of available handles.
6969-//
7070-// RECORDTYPE: TempCheckHandleAvailability_ResultUnavailable
7168type TempCheckHandleAvailability_ResultUnavailable struct {
7272- LexiconTypeID string `json:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"`
6969+ LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"`
7370 // suggestions: List of suggested handles based on the provided inputs.
7471 Suggestions []*TempCheckHandleAvailability_Suggestion `json:"suggestions" cborgen:"suggestions"`
7572}
+2-2
api/atproto/tempcheckSignupQueue.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.checkSignupQueue
4455-// schema: com.atproto.temp.checkSignupQueue
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/tempdereferenceScope.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.dereferenceScope
4455-// schema: com.atproto.temp.dereferenceScope
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/tempfetchLabels.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.fetchLabels
4455-// schema: com.atproto.temp.fetchLabels
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/temprequestPhoneVerification.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.requestPhoneVerification
4455-// schema: com.atproto.temp.requestPhoneVerification
55+package atproto
6677import (
88 "context"
+2-2
api/atproto/temprevokeAccountCredentials.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package atproto
33+// Lexicon schema: com.atproto.temp.revokeAccountCredentials
4455-// schema: com.atproto.temp.revokeAccountCredentials
55+package atproto
6677import (
88 "context"
+24-48
api/bsky/actordefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.defs
4455-// schema: app.bsky.actor.defs
55+package bsky
6677import (
88 "encoding/json"
···1313)
14141515// ActorDefs_AdultContentPref is a "adultContentPref" in the app.bsky.actor.defs schema.
1616-//
1717-// RECORDTYPE: ActorDefs_AdultContentPref
1816type ActorDefs_AdultContentPref struct {
1919- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#adultContentPref" cborgen:"$type,const=app.bsky.actor.defs#adultContentPref"`
1717+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#adultContentPref"`
2018 Enabled bool `json:"enabled" cborgen:"enabled"`
2119}
2220···3028// ActorDefs_BskyAppStatePref is a "bskyAppStatePref" in the app.bsky.actor.defs schema.
3129//
3230// 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
3531type ActorDefs_BskyAppStatePref struct {
3636- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#bskyAppStatePref" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"`
3232+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"`
3733 ActiveProgressGuide *ActorDefs_BskyAppProgressGuide `json:"activeProgressGuide,omitempty" cborgen:"activeProgressGuide,omitempty"`
3834 // nuxs: Storage for NUXs the user has encountered.
3935 Nuxs []*ActorDefs_Nux `json:"nuxs,omitempty" cborgen:"nuxs,omitempty"`
···4238}
43394440// ActorDefs_ContentLabelPref is a "contentLabelPref" in the app.bsky.actor.defs schema.
4545-//
4646-// RECORDTYPE: ActorDefs_ContentLabelPref
4741type ActorDefs_ContentLabelPref struct {
4848- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#contentLabelPref" cborgen:"$type,const=app.bsky.actor.defs#contentLabelPref"`
4242+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#contentLabelPref"`
4943 Label string `json:"label" cborgen:"label"`
5044 // labelerDid: Which labeler does this preference apply to? If undefined, applies globally.
5145 LabelerDid *string `json:"labelerDid,omitempty" cborgen:"labelerDid,omitempty"`
···5347}
54485549// ActorDefs_FeedViewPref is a "feedViewPref" in the app.bsky.actor.defs schema.
5656-//
5757-// RECORDTYPE: ActorDefs_FeedViewPref
5850type ActorDefs_FeedViewPref struct {
5959- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#feedViewPref" cborgen:"$type,const=app.bsky.actor.defs#feedViewPref"`
5151+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#feedViewPref"`
6052 // feed: The URI of the feed, or an identifier which describes the feed.
6153 Feed string `json:"feed" cborgen:"feed"`
6254 // hideQuotePosts: Hide quote posts in the feed.
···7264}
73657466// ActorDefs_HiddenPostsPref is a "hiddenPostsPref" in the app.bsky.actor.defs schema.
7575-//
7676-// RECORDTYPE: ActorDefs_HiddenPostsPref
7767type ActorDefs_HiddenPostsPref struct {
7878- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#hiddenPostsPref" cborgen:"$type,const=app.bsky.actor.defs#hiddenPostsPref"`
6868+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#hiddenPostsPref"`
7969 // items: A list of URIs of posts the account owner has hidden.
8070 Items []string `json:"items" cborgen:"items"`
8171}
82728373// ActorDefs_InterestsPref is a "interestsPref" in the app.bsky.actor.defs schema.
8484-//
8585-// RECORDTYPE: ActorDefs_InterestsPref
8674type ActorDefs_InterestsPref struct {
8787- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#interestsPref" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"`
7575+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"`
8876 // tags: A list of tags which describe the account owner's interests gathered during onboarding.
8977 Tags []string `json:"tags" cborgen:"tags"`
9078}
···10391}
1049210593// ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema.
106106-//
107107-// RECORDTYPE: ActorDefs_LabelersPref
10894type ActorDefs_LabelersPref struct {
109109- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#labelersPref" cborgen:"$type,const=app.bsky.actor.defs#labelersPref"`
9595+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#labelersPref"`
11096 Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"`
11197}
11298···126112}
127113128114// ActorDefs_MutedWordsPref is a "mutedWordsPref" in the app.bsky.actor.defs schema.
129129-//
130130-// RECORDTYPE: ActorDefs_MutedWordsPref
131115type ActorDefs_MutedWordsPref struct {
132132- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#mutedWordsPref" cborgen:"$type,const=app.bsky.actor.defs#mutedWordsPref"`
116116+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#mutedWordsPref"`
133117 // items: A list of words the account owner has muted.
134118 Items []*ActorDefs_MutedWord `json:"items" cborgen:"items"`
135119}
···147131}
148132149133// ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema.
150150-//
151151-// RECORDTYPE: ActorDefs_PersonalDetailsPref
152134type ActorDefs_PersonalDetailsPref struct {
153153- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#personalDetailsPref" cborgen:"$type,const=app.bsky.actor.defs#personalDetailsPref"`
135135+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#personalDetailsPref"`
154136 // birthDate: The birth date of account owner.
155137 BirthDate *string `json:"birthDate,omitempty" cborgen:"birthDate,omitempty"`
156138}
···158140// ActorDefs_PostInteractionSettingsPref is a "postInteractionSettingsPref" in the app.bsky.actor.defs schema.
159141//
160142// Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.
161161-//
162162-// RECORDTYPE: ActorDefs_PostInteractionSettingsPref
163143type ActorDefs_PostInteractionSettingsPref struct {
164164- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref" cborgen:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref"`
144144+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref"`
165145 // postgateEmbeddingRules: Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
166146 PostgateEmbeddingRules []*ActorDefs_PostInteractionSettingsPref_PostgateEmbeddingRules_Elem `json:"postgateEmbeddingRules,omitempty" cborgen:"postgateEmbeddingRules,omitempty"`
167147 // threadgateAllowRules: Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
···177157 t.FeedPostgate_DisableRule.LexiconTypeID = "app.bsky.feed.postgate#disableRule"
178158 return json.Marshal(t.FeedPostgate_DisableRule)
179159 }
180180- return nil, fmt.Errorf("cannot marshal empty enum")
160160+ return nil, fmt.Errorf("can not marshal empty union as JSON")
181161}
162162+182163func (t *ActorDefs_PostInteractionSettingsPref_PostgateEmbeddingRules_Elem) UnmarshalJSON(b []byte) error {
183164 typ, err := util.TypeExtract(b)
184165 if err != nil {
···219200 t.FeedThreadgate_ListRule.LexiconTypeID = "app.bsky.feed.threadgate#listRule"
220201 return json.Marshal(t.FeedThreadgate_ListRule)
221202 }
222222- return nil, fmt.Errorf("cannot marshal empty enum")
203203+ return nil, fmt.Errorf("can not marshal empty union as JSON")
223204}
205205+224206func (t *ActorDefs_PostInteractionSettingsPref_ThreadgateAllowRules_Elem) UnmarshalJSON(b []byte) error {
225207 typ, err := util.TypeExtract(b)
226208 if err != nil {
···320302 t.ActorDefs_VerificationPrefs.LexiconTypeID = "app.bsky.actor.defs#verificationPrefs"
321303 return json.Marshal(t.ActorDefs_VerificationPrefs)
322304 }
323323- return nil, fmt.Errorf("cannot marshal empty enum")
305305+ return nil, fmt.Errorf("can not marshal empty union as JSON")
324306}
307307+325308func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error {
326309 typ, err := util.TypeExtract(b)
327310 if err != nil {
···462445}
463446464447// ActorDefs_SavedFeedsPref is a "savedFeedsPref" in the app.bsky.actor.defs schema.
465465-//
466466-// RECORDTYPE: ActorDefs_SavedFeedsPref
467448type ActorDefs_SavedFeedsPref struct {
468468- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPref" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPref"`
449449+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPref"`
469450 Pinned []string `json:"pinned" cborgen:"pinned"`
470451 Saved []string `json:"saved" cborgen:"saved"`
471452 TimelineIndex *int64 `json:"timelineIndex,omitempty" cborgen:"timelineIndex,omitempty"`
472453}
473454474455// ActorDefs_SavedFeedsPrefV2 is a "savedFeedsPrefV2" in the app.bsky.actor.defs schema.
475475-//
476476-// RECORDTYPE: ActorDefs_SavedFeedsPrefV2
477456type ActorDefs_SavedFeedsPrefV2 struct {
478478- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2"`
457457+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2"`
479458 Items []*ActorDefs_SavedFeed `json:"items" cborgen:"items"`
480459}
481460···502481 t.EmbedExternal_View.LexiconTypeID = "app.bsky.embed.external#view"
503482 return json.Marshal(t.EmbedExternal_View)
504483 }
505505- return nil, fmt.Errorf("cannot marshal empty enum")
484484+ return nil, fmt.Errorf("can not marshal empty union as JSON")
506485}
486486+507487func (t *ActorDefs_StatusView_Embed) UnmarshalJSON(b []byte) error {
508488 typ, err := util.TypeExtract(b)
509489 if err != nil {
···521501}
522502523503// ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema.
524524-//
525525-// RECORDTYPE: ActorDefs_ThreadViewPref
526504type ActorDefs_ThreadViewPref struct {
527527- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#threadViewPref" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"`
505505+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"`
528506 // prioritizeFollowedUsers: Show followed users at the top of all replies.
529507 PrioritizeFollowedUsers *bool `json:"prioritizeFollowedUsers,omitempty" cborgen:"prioritizeFollowedUsers,omitempty"`
530508 // sort: Sorting mode for threads.
···534512// ActorDefs_VerificationPrefs is a "verificationPrefs" in the app.bsky.actor.defs schema.
535513//
536514// Preferences for how verified accounts appear in the app.
537537-//
538538-// RECORDTYPE: ActorDefs_VerificationPrefs
539515type ActorDefs_VerificationPrefs struct {
540540- LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#verificationPrefs" cborgen:"$type,const=app.bsky.actor.defs#verificationPrefs"`
516516+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#verificationPrefs"`
541517 // hideBadges: Hide the blue check badges for verified accounts and trusted verifiers.
542518 HideBadges *bool `json:"hideBadges,omitempty" cborgen:"hideBadges,omitempty"`
543519}
+2-2
api/bsky/actorgetPreferences.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.getPreferences
4455-// schema: app.bsky.actor.getPreferences
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/actorgetProfile.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.getProfile
4455-// schema: app.bsky.actor.getProfile
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/actorgetProfiles.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.getProfiles
4455-// schema: app.bsky.actor.getProfiles
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/actorgetSuggestions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.getSuggestions
4455-// schema: app.bsky.actor.getSuggestions
55+package bsky
6677import (
88 "context"
+8-7
api/bsky/actorprofile.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.profile
4455-// schema: app.bsky.actor.profile
55+package bsky
6677import (
88 "bytes"
···17171818func init() {
1919 util.RegisterType("app.bsky.actor.profile", &ActorProfile{})
2020-} //
2121-// RECORDTYPE: ActorProfile
2020+}
2121+2222type ActorProfile struct {
2323- LexiconTypeID string `json:"$type,const=app.bsky.actor.profile" cborgen:"$type,const=app.bsky.actor.profile"`
2323+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.profile"`
2424 // avatar: Small image to be displayed next to posts from account. AKA, 'profile picture'
2525 Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
2626 // banner: Larger horizontal image to display behind profile view.
···4848 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels"
4949 return json.Marshal(t.LabelDefs_SelfLabels)
5050 }
5151- return nil, fmt.Errorf("cannot marshal empty enum")
5151+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5252}
5353+5354func (t *ActorProfile_Labels) UnmarshalJSON(b []byte) error {
5455 typ, err := util.TypeExtract(b)
5556 if err != nil {
···7576 if t.LabelDefs_SelfLabels != nil {
7677 return t.LabelDefs_SelfLabels.MarshalCBOR(w)
7778 }
7878- return fmt.Errorf("cannot cbor marshal empty enum")
7979+ return fmt.Errorf("can not marshal empty union as CBOR")
7980}
8081func (t *ActorProfile_Labels) UnmarshalCBOR(r io.Reader) error {
8182 typ, b, err := util.CborTypeExtractReader(r)
+2-2
api/bsky/actorputPreferences.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.putPreferences
4455-// schema: app.bsky.actor.putPreferences
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/actorsearchActors.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.searchActors
4455-// schema: app.bsky.actor.searchActors
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/actorsearchActorsTypeahead.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.searchActorsTypeahead
4455-// schema: app.bsky.actor.searchActorsTypeahead
55+package bsky
6677import (
88 "context"
+8-7
api/bsky/actorstatus.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.actor.status
4455-// schema: app.bsky.actor.status
55+package bsky
6677import (
88 "bytes"
···16161717func init() {
1818 util.RegisterType("app.bsky.actor.status", &ActorStatus{})
1919-} //
2020-// RECORDTYPE: ActorStatus
1919+}
2020+2121type ActorStatus struct {
2222- LexiconTypeID string `json:"$type,const=app.bsky.actor.status" cborgen:"$type,const=app.bsky.actor.status"`
2222+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.status"`
2323 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2424 // durationMinutes: The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
2525 DurationMinutes *int64 `json:"durationMinutes,omitempty" cborgen:"durationMinutes,omitempty"`
···3939 t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external"
4040 return json.Marshal(t.EmbedExternal)
4141 }
4242- return nil, fmt.Errorf("cannot marshal empty enum")
4242+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4343}
4444+4445func (t *ActorStatus_Embed) UnmarshalJSON(b []byte) error {
4546 typ, err := util.TypeExtract(b)
4647 if err != nil {
···6667 if t.EmbedExternal != nil {
6768 return t.EmbedExternal.MarshalCBOR(w)
6869 }
6969- return fmt.Errorf("cannot cbor marshal empty enum")
7070+ return fmt.Errorf("can not marshal empty union as CBOR")
7071}
7172func (t *ActorStatus_Embed) UnmarshalCBOR(r io.Reader) error {
7273 typ, b, err := util.CborTypeExtractReader(r)
+2-2
api/bsky/bookmarkcreateBookmark.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.bookmark.createBookmark
4455-// schema: app.bsky.bookmark.createBookmark
55+package bsky
6677import (
88 "context"
+4-3
api/bsky/bookmarkdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.bookmark.defs
4455-// schema: app.bsky.bookmark.defs
55+package bsky
6677import (
88 "encoding/json"
···4747 t.FeedDefs_PostView.LexiconTypeID = "app.bsky.feed.defs#postView"
4848 return json.Marshal(t.FeedDefs_PostView)
4949 }
5050- return nil, fmt.Errorf("cannot marshal empty enum")
5050+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5151}
5252+5253func (t *BookmarkDefs_BookmarkView_Item) UnmarshalJSON(b []byte) error {
5354 typ, err := util.TypeExtract(b)
5455 if err != nil {
+2-2
api/bsky/bookmarkdeleteBookmark.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.bookmark.deleteBookmark
4455-// schema: app.bsky.bookmark.deleteBookmark
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/bookmarkgetBookmarks.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.bookmark.getBookmarks
4455-// schema: app.bsky.bookmark.getBookmarks
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/embeddefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.defs
4455-// schema: app.bsky.embed.defs
55+package bsky
6677// EmbedDefs_AspectRatio is a "aspectRatio" in the app.bsky.embed.defs schema.
88//
+8-9
api/bsky/embedexternal.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.external
4455-// schema: app.bsky.embed.external
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.embed.external#main", &EmbedExternal{})
1313-} // EmbedExternal is a "main" in the app.bsky.embed.external schema.
1313+}
1414+1515+// EmbedExternal is a "main" in the app.bsky.embed.external schema.
1616+//
1417// A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).
1515-//
1616-// RECORDTYPE: EmbedExternal
1718type EmbedExternal struct {
1818- LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"`
1919+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external"`
1920 External *EmbedExternal_External `json:"external" cborgen:"external"`
2021}
2122···2829}
29303031// EmbedExternal_View is a "view" in the app.bsky.embed.external schema.
3131-//
3232-// RECORDTYPE: EmbedExternal_View
3332type EmbedExternal_View struct {
3434- LexiconTypeID string `json:"$type,const=app.bsky.embed.external#view" cborgen:"$type,const=app.bsky.embed.external#view"`
3333+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external#view"`
3534 External *EmbedExternal_ViewExternal `json:"external" cborgen:"external"`
3635}
3736
+7-8
api/bsky/embedimages.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.images
4455-// schema: app.bsky.embed.images
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.embed.images#main", &EmbedImages{})
1313-} // EmbedImages is a "main" in the app.bsky.embed.images schema.
1414-// RECORDTYPE: EmbedImages
1313+}
1414+1515+// EmbedImages is a "main" in the app.bsky.embed.images schema.
1516type EmbedImages struct {
1616- LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"`
1717+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images"`
1718 Images []*EmbedImages_Image `json:"images" cborgen:"images"`
1819}
1920···2627}
27282829// EmbedImages_View is a "view" in the app.bsky.embed.images schema.
2929-//
3030-// RECORDTYPE: EmbedImages_View
3130type EmbedImages_View struct {
3232- LexiconTypeID string `json:"$type,const=app.bsky.embed.images#view" cborgen:"$type,const=app.bsky.embed.images#view"`
3131+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images#view"`
3332 Images []*EmbedImages_ViewImage `json:"images" cborgen:"images"`
3433}
3534
+15-22
api/bsky/embedrecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.record
4455-// schema: app.bsky.embed.record
55+package bsky
6677import (
88 "encoding/json"
···14141515func init() {
1616 util.RegisterType("app.bsky.embed.record#main", &EmbedRecord{})
1717-} // EmbedRecord is a "main" in the app.bsky.embed.record schema.
1818-// RECORDTYPE: EmbedRecord
1717+}
1818+1919+// EmbedRecord is a "main" in the app.bsky.embed.record schema.
1920type EmbedRecord struct {
2020- LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"`
2121+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record"`
2122 Record *comatprototypes.RepoStrongRef `json:"record" cborgen:"record"`
2223}
23242425// EmbedRecord_View is a "view" in the app.bsky.embed.record schema.
2525-//
2626-// RECORDTYPE: EmbedRecord_View
2726type EmbedRecord_View struct {
2828- LexiconTypeID string `json:"$type,const=app.bsky.embed.record#view" cborgen:"$type,const=app.bsky.embed.record#view"`
2727+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#view"`
2928 Record *EmbedRecord_View_Record `json:"record" cborgen:"record"`
3029}
31303231// EmbedRecord_ViewBlocked is a "viewBlocked" in the app.bsky.embed.record schema.
3333-//
3434-// RECORDTYPE: EmbedRecord_ViewBlocked
3532type EmbedRecord_ViewBlocked struct {
3636- LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewBlocked" cborgen:"$type,const=app.bsky.embed.record#viewBlocked"`
3333+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewBlocked"`
3734 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"`
3835 Blocked bool `json:"blocked" cborgen:"blocked"`
3936 Uri string `json:"uri" cborgen:"uri"`
4037}
41384239// EmbedRecord_ViewDetached is a "viewDetached" in the app.bsky.embed.record schema.
4343-//
4444-// RECORDTYPE: EmbedRecord_ViewDetached
4540type EmbedRecord_ViewDetached struct {
4646- LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewDetached" cborgen:"$type,const=app.bsky.embed.record#viewDetached"`
4141+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewDetached"`
4742 Detached bool `json:"detached" cborgen:"detached"`
4843 Uri string `json:"uri" cborgen:"uri"`
4944}
50455146// EmbedRecord_ViewNotFound is a "viewNotFound" in the app.bsky.embed.record schema.
5252-//
5353-// RECORDTYPE: EmbedRecord_ViewNotFound
5447type EmbedRecord_ViewNotFound struct {
5555- LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewNotFound" cborgen:"$type,const=app.bsky.embed.record#viewNotFound"`
4848+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewNotFound"`
5649 NotFound bool `json:"notFound" cborgen:"notFound"`
5750 Uri string `json:"uri" cborgen:"uri"`
5851}
59526053// EmbedRecord_ViewRecord is a "viewRecord" in the app.bsky.embed.record schema.
6161-//
6262-// RECORDTYPE: EmbedRecord_ViewRecord
6354type EmbedRecord_ViewRecord struct {
6464- LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewRecord" cborgen:"$type,const=app.bsky.embed.record#viewRecord"`
5555+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewRecord"`
6556 Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"`
6657 Cid string `json:"cid" cborgen:"cid"`
6758 Embeds []*EmbedRecord_ViewRecord_Embeds_Elem `json:"embeds,omitempty" cborgen:"embeds,omitempty"`
···10596 t.EmbedRecordWithMedia_View.LexiconTypeID = "app.bsky.embed.recordWithMedia#view"
10697 return json.Marshal(t.EmbedRecordWithMedia_View)
10798 }
108108- return nil, fmt.Errorf("cannot marshal empty enum")
9999+ return nil, fmt.Errorf("can not marshal empty union as JSON")
109100}
101101+110102func (t *EmbedRecord_ViewRecord_Embeds_Elem) UnmarshalJSON(b []byte) error {
111103 typ, err := util.TypeExtract(b)
112104 if err != nil {
···179171 t.GraphDefs_StarterPackViewBasic.LexiconTypeID = "app.bsky.graph.defs#starterPackViewBasic"
180172 return json.Marshal(t.GraphDefs_StarterPackViewBasic)
181173 }
182182- return nil, fmt.Errorf("cannot marshal empty enum")
174174+ return nil, fmt.Errorf("can not marshal empty union as JSON")
183175}
176176+184177func (t *EmbedRecord_View_Record) UnmarshalJSON(b []byte) error {
185178 typ, err := util.TypeExtract(b)
186179 if err != nil {
+12-11
api/bsky/embedrecordWithMedia.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.recordWithMedia
4455-// schema: app.bsky.embed.recordWithMedia
55+package bsky
6677import (
88 "bytes"
···16161717func init() {
1818 util.RegisterType("app.bsky.embed.recordWithMedia#main", &EmbedRecordWithMedia{})
1919-} // EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema.
2020-// RECORDTYPE: EmbedRecordWithMedia
1919+}
2020+2121+// EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema.
2122type EmbedRecordWithMedia struct {
2222- LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia" cborgen:"$type,const=app.bsky.embed.recordWithMedia"`
2323+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.recordWithMedia"`
2324 Media *EmbedRecordWithMedia_Media `json:"media" cborgen:"media"`
2425 Record *EmbedRecord `json:"record" cborgen:"record"`
2526}
···4344 t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external"
4445 return json.Marshal(t.EmbedExternal)
4546 }
4646- return nil, fmt.Errorf("cannot marshal empty enum")
4747+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4748}
4949+4850func (t *EmbedRecordWithMedia_Media) UnmarshalJSON(b []byte) error {
4951 typ, err := util.TypeExtract(b)
5052 if err != nil {
···8284 if t.EmbedExternal != nil {
8385 return t.EmbedExternal.MarshalCBOR(w)
8486 }
8585- return fmt.Errorf("cannot cbor marshal empty enum")
8787+ return fmt.Errorf("can not marshal empty union as CBOR")
8688}
8789func (t *EmbedRecordWithMedia_Media) UnmarshalCBOR(r io.Reader) error {
8890 typ, b, err := util.CborTypeExtractReader(r)
···107109}
108110109111// EmbedRecordWithMedia_View is a "view" in the app.bsky.embed.recordWithMedia schema.
110110-//
111111-// RECORDTYPE: EmbedRecordWithMedia_View
112112type EmbedRecordWithMedia_View struct {
113113- LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia#view" cborgen:"$type,const=app.bsky.embed.recordWithMedia#view"`
113113+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.recordWithMedia#view"`
114114 Media *EmbedRecordWithMedia_View_Media `json:"media" cborgen:"media"`
115115 Record *EmbedRecord_View `json:"record" cborgen:"record"`
116116}
···134134 t.EmbedExternal_View.LexiconTypeID = "app.bsky.embed.external#view"
135135 return json.Marshal(t.EmbedExternal_View)
136136 }
137137- return nil, fmt.Errorf("cannot marshal empty enum")
137137+ return nil, fmt.Errorf("can not marshal empty union as JSON")
138138}
139139+139140func (t *EmbedRecordWithMedia_View_Media) UnmarshalJSON(b []byte) error {
140141 typ, err := util.TypeExtract(b)
141142 if err != nil {
+7-8
api/bsky/embedvideo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.embed.video
4455-// schema: app.bsky.embed.video
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.embed.video#main", &EmbedVideo{})
1313-} // EmbedVideo is a "main" in the app.bsky.embed.video schema.
1414-// RECORDTYPE: EmbedVideo
1313+}
1414+1515+// EmbedVideo is a "main" in the app.bsky.embed.video schema.
1516type EmbedVideo struct {
1616- LexiconTypeID string `json:"$type,const=app.bsky.embed.video" cborgen:"$type,const=app.bsky.embed.video"`
1717+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video"`
1718 // alt: Alt text description of the video, for accessibility.
1819 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"`
1920 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
···2930}
30313132// EmbedVideo_View is a "view" in the app.bsky.embed.video schema.
3232-//
3333-// RECORDTYPE: EmbedVideo_View
3433type EmbedVideo_View struct {
3535- LexiconTypeID string `json:"$type,const=app.bsky.embed.video#view" cborgen:"$type,const=app.bsky.embed.video#view"`
3434+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video#view"`
3635 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"`
3736 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
3837 Cid string `json:"cid" cborgen:"cid"`
+25-36
api/bsky/feeddefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.defs
4455-// schema: app.bsky.feed.defs
55+package bsky
6677import (
88 "encoding/json"
···1919}
20202121// FeedDefs_BlockedPost is a "blockedPost" in the app.bsky.feed.defs schema.
2222-//
2323-// RECORDTYPE: FeedDefs_BlockedPost
2422type FeedDefs_BlockedPost struct {
2525- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#blockedPost" cborgen:"$type,const=app.bsky.feed.defs#blockedPost"`
2323+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#blockedPost"`
2624 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"`
2725 Blocked bool `json:"blocked" cborgen:"blocked"`
2826 Uri string `json:"uri" cborgen:"uri"`
···5351 t.FeedDefs_ReasonPin.LexiconTypeID = "app.bsky.feed.defs#reasonPin"
5452 return json.Marshal(t.FeedDefs_ReasonPin)
5553 }
5656- return nil, fmt.Errorf("cannot marshal empty enum")
5454+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5755}
5656+5857func (t *FeedDefs_FeedViewPost_Reason) UnmarshalJSON(b []byte) error {
5958 typ, err := util.TypeExtract(b)
6059 if err != nil {
···7574}
76757776// FeedDefs_GeneratorView is a "generatorView" in the app.bsky.feed.defs schema.
7878-//
7979-// RECORDTYPE: FeedDefs_GeneratorView
8077type FeedDefs_GeneratorView struct {
8181- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"`
7878+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#generatorView"`
8279 AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"`
8380 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
8481 Cid string `json:"cid" cborgen:"cid"`
···111108}
112109113110// FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema.
114114-//
115115-// RECORDTYPE: FeedDefs_NotFoundPost
116111type FeedDefs_NotFoundPost struct {
117117- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#notFoundPost" cborgen:"$type,const=app.bsky.feed.defs#notFoundPost"`
112112+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#notFoundPost"`
118113 NotFound bool `json:"notFound" cborgen:"notFound"`
119114 Uri string `json:"uri" cborgen:"uri"`
120115}
121116122117// FeedDefs_PostView is a "postView" in the app.bsky.feed.defs schema.
123123-//
124124-// RECORDTYPE: FeedDefs_PostView
125118type FeedDefs_PostView struct {
126126- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#postView" cborgen:"$type,const=app.bsky.feed.defs#postView"`
119119+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#postView"`
127120 Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"`
128121 BookmarkCount *int64 `json:"bookmarkCount,omitempty" cborgen:"bookmarkCount,omitempty"`
129122 Cid string `json:"cid" cborgen:"cid"`
···169162 t.EmbedRecordWithMedia_View.LexiconTypeID = "app.bsky.embed.recordWithMedia#view"
170163 return json.Marshal(t.EmbedRecordWithMedia_View)
171164 }
172172- return nil, fmt.Errorf("cannot marshal empty enum")
165165+ return nil, fmt.Errorf("can not marshal empty union as JSON")
173166}
167167+174168func (t *FeedDefs_PostView_Embed) UnmarshalJSON(b []byte) error {
175169 typ, err := util.TypeExtract(b)
176170 if err != nil {
···200194}
201195202196// FeedDefs_ReasonPin is a "reasonPin" in the app.bsky.feed.defs schema.
203203-//
204204-// RECORDTYPE: FeedDefs_ReasonPin
205197type FeedDefs_ReasonPin struct {
206206- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#reasonPin" cborgen:"$type,const=app.bsky.feed.defs#reasonPin"`
198198+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#reasonPin"`
207199}
208200209201// FeedDefs_ReasonRepost is a "reasonRepost" in the app.bsky.feed.defs schema.
210210-//
211211-// RECORDTYPE: FeedDefs_ReasonRepost
212202type FeedDefs_ReasonRepost struct {
213213- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#reasonRepost" cborgen:"$type,const=app.bsky.feed.defs#reasonRepost"`
203203+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#reasonRepost"`
214204 By *ActorDefs_ProfileViewBasic `json:"by" cborgen:"by"`
215205 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
216206 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
···244234 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost"
245235 return json.Marshal(t.FeedDefs_BlockedPost)
246236 }
247247- return nil, fmt.Errorf("cannot marshal empty enum")
237237+ return nil, fmt.Errorf("can not marshal empty union as JSON")
248238}
239239+249240func (t *FeedDefs_ReplyRef_Parent) UnmarshalJSON(b []byte) error {
250241 typ, err := util.TypeExtract(b)
251242 if err != nil {
···287278 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost"
288279 return json.Marshal(t.FeedDefs_BlockedPost)
289280 }
290290- return nil, fmt.Errorf("cannot marshal empty enum")
281281+ return nil, fmt.Errorf("can not marshal empty union as JSON")
291282}
283283+292284func (t *FeedDefs_ReplyRef_Root) UnmarshalJSON(b []byte) error {
293285 typ, err := util.TypeExtract(b)
294286 if err != nil {
···333325 t.FeedDefs_SkeletonReasonPin.LexiconTypeID = "app.bsky.feed.defs#skeletonReasonPin"
334326 return json.Marshal(t.FeedDefs_SkeletonReasonPin)
335327 }
336336- return nil, fmt.Errorf("cannot marshal empty enum")
328328+ return nil, fmt.Errorf("can not marshal empty union as JSON")
337329}
330330+338331func (t *FeedDefs_SkeletonFeedPost_Reason) UnmarshalJSON(b []byte) error {
339332 typ, err := util.TypeExtract(b)
340333 if err != nil {
···355348}
356349357350// FeedDefs_SkeletonReasonPin is a "skeletonReasonPin" in the app.bsky.feed.defs schema.
358358-//
359359-// RECORDTYPE: FeedDefs_SkeletonReasonPin
360351type FeedDefs_SkeletonReasonPin struct {
361361- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#skeletonReasonPin" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonPin"`
352352+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonPin"`
362353}
363354364355// FeedDefs_SkeletonReasonRepost is a "skeletonReasonRepost" in the app.bsky.feed.defs schema.
365365-//
366366-// RECORDTYPE: FeedDefs_SkeletonReasonRepost
367356type FeedDefs_SkeletonReasonRepost struct {
368368- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#skeletonReasonRepost" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonRepost"`
357357+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonRepost"`
369358 Repost string `json:"repost" cborgen:"repost"`
370359}
371360···377366}
378367379368// FeedDefs_ThreadViewPost is a "threadViewPost" in the app.bsky.feed.defs schema.
380380-//
381381-// RECORDTYPE: FeedDefs_ThreadViewPost
382369type FeedDefs_ThreadViewPost struct {
383383- LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#threadViewPost" cborgen:"$type,const=app.bsky.feed.defs#threadViewPost"`
370370+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#threadViewPost"`
384371 Parent *FeedDefs_ThreadViewPost_Parent `json:"parent,omitempty" cborgen:"parent,omitempty"`
385372 Post *FeedDefs_PostView `json:"post" cborgen:"post"`
386373 Replies []*FeedDefs_ThreadViewPost_Replies_Elem `json:"replies,omitempty" cborgen:"replies,omitempty"`
···406393 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost"
407394 return json.Marshal(t.FeedDefs_BlockedPost)
408395 }
409409- return nil, fmt.Errorf("cannot marshal empty enum")
396396+ return nil, fmt.Errorf("can not marshal empty union as JSON")
410397}
398398+411399func (t *FeedDefs_ThreadViewPost_Parent) UnmarshalJSON(b []byte) error {
412400 typ, err := util.TypeExtract(b)
413401 if err != nil {
···449437 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost"
450438 return json.Marshal(t.FeedDefs_BlockedPost)
451439 }
452452- return nil, fmt.Errorf("cannot marshal empty enum")
440440+ return nil, fmt.Errorf("can not marshal empty union as JSON")
453441}
442442+454443func (t *FeedDefs_ThreadViewPost_Replies_Elem) UnmarshalJSON(b []byte) error {
455444 typ, err := util.TypeExtract(b)
456445 if err != nil {
+2-2
api/bsky/feeddescribeFeedGenerator.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.describeFeedGenerator
4455-// schema: app.bsky.feed.describeFeedGenerator
55+package bsky
6677import (
88 "context"
+8-7
api/bsky/feedgenerator.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.generator
4455-// schema: app.bsky.feed.generator
55+package bsky
6677import (
88 "bytes"
···17171818func init() {
1919 util.RegisterType("app.bsky.feed.generator", &FeedGenerator{})
2020-} //
2121-// RECORDTYPE: FeedGenerator
2020+}
2121+2222type FeedGenerator struct {
2323- LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"`
2323+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.generator"`
2424 // acceptsInteractions: Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions
2525 AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"`
2626 Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
···4444 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels"
4545 return json.Marshal(t.LabelDefs_SelfLabels)
4646 }
4747- return nil, fmt.Errorf("cannot marshal empty enum")
4747+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4848}
4949+4950func (t *FeedGenerator_Labels) UnmarshalJSON(b []byte) error {
5051 typ, err := util.TypeExtract(b)
5152 if err != nil {
···7172 if t.LabelDefs_SelfLabels != nil {
7273 return t.LabelDefs_SelfLabels.MarshalCBOR(w)
7374 }
7474- return fmt.Errorf("cannot cbor marshal empty enum")
7575+ return fmt.Errorf("can not marshal empty union as CBOR")
7576}
7677func (t *FeedGenerator_Labels) UnmarshalCBOR(r io.Reader) error {
7778 typ, b, err := util.CborTypeExtractReader(r)
+2-2
api/bsky/feedgetActorFeeds.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getActorFeeds
4455-// schema: app.bsky.feed.getActorFeeds
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetActorLikes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getActorLikes
4455-// schema: app.bsky.feed.getActorLikes
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetAuthorFeed.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getAuthorFeed
4455-// schema: app.bsky.feed.getAuthorFeed
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetFeed.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getFeed
4455-// schema: app.bsky.feed.getFeed
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetFeedGenerator.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getFeedGenerator
4455-// schema: app.bsky.feed.getFeedGenerator
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetFeedGenerators.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getFeedGenerators
4455-// schema: app.bsky.feed.getFeedGenerators
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetFeedSkeleton.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getFeedSkeleton
4455-// schema: app.bsky.feed.getFeedSkeleton
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetLikes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getLikes
4455-// schema: app.bsky.feed.getLikes
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetListFeed.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getListFeed
4455-// schema: app.bsky.feed.getListFeed
55+package bsky
6677import (
88 "context"
+4-3
api/bsky/feedgetPostThread.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getPostThread
4455-// schema: app.bsky.feed.getPostThread
55+package bsky
6677import (
88 "context"
···3737 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost"
3838 return json.Marshal(t.FeedDefs_BlockedPost)
3939 }
4040- return nil, fmt.Errorf("cannot marshal empty enum")
4040+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4141}
4242+4243func (t *FeedGetPostThread_Output_Thread) UnmarshalJSON(b []byte) error {
4344 typ, err := util.TypeExtract(b)
4445 if err != nil {
+2-2
api/bsky/feedgetPosts.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getPosts
4455-// schema: app.bsky.feed.getPosts
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetQuotes.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getQuotes
4455-// schema: app.bsky.feed.getQuotes
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetRepostedBy.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getRepostedBy
4455-// schema: app.bsky.feed.getRepostedBy
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetSuggestedFeeds.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getSuggestedFeeds
4455-// schema: app.bsky.feed.getSuggestedFeeds
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedgetTimeline.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.getTimeline
4455-// schema: app.bsky.feed.getTimeline
55+package bsky
6677import (
88 "context"
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.searchPosts
4455-// schema: app.bsky.feed.searchPosts
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/feedsendInteractions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.sendInteractions
4455-// schema: app.bsky.feed.sendInteractions
55+package bsky
6677import (
88 "context"
+12-19
api/bsky/feedthreadgate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.feed.threadgate
4455-// schema: app.bsky.feed.threadgate
55+package bsky
6677import (
88 "bytes"
···16161717func init() {
1818 util.RegisterType("app.bsky.feed.threadgate", &FeedThreadgate{})
1919-} //
2020-// RECORDTYPE: FeedThreadgate
1919+}
2020+2121type FeedThreadgate struct {
2222- LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate" cborgen:"$type,const=app.bsky.feed.threadgate"`
2222+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate"`
2323 // allow: List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.
2424 Allow []*FeedThreadgate_Allow_Elem `json:"allow,omitempty" cborgen:"allow,omitempty"`
2525 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
···5353 t.FeedThreadgate_ListRule.LexiconTypeID = "app.bsky.feed.threadgate#listRule"
5454 return json.Marshal(t.FeedThreadgate_ListRule)
5555 }
5656- return nil, fmt.Errorf("cannot marshal empty enum")
5656+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5757}
5858+5859func (t *FeedThreadgate_Allow_Elem) UnmarshalJSON(b []byte) error {
5960 typ, err := util.TypeExtract(b)
6061 if err != nil {
···9899 if t.FeedThreadgate_ListRule != nil {
99100 return t.FeedThreadgate_ListRule.MarshalCBOR(w)
100101 }
101101- return fmt.Errorf("cannot cbor marshal empty enum")
102102+ return fmt.Errorf("can not marshal empty union as CBOR")
102103}
103104func (t *FeedThreadgate_Allow_Elem) UnmarshalCBOR(r io.Reader) error {
104105 typ, b, err := util.CborTypeExtractReader(r)
···128129// FeedThreadgate_FollowerRule is a "followerRule" in the app.bsky.feed.threadgate schema.
129130//
130131// Allow replies from actors who follow you.
131131-//
132132-// RECORDTYPE: FeedThreadgate_FollowerRule
133132type FeedThreadgate_FollowerRule struct {
134134- LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#followerRule" cborgen:"$type,const=app.bsky.feed.threadgate#followerRule"`
133133+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#followerRule"`
135134}
136135137136// FeedThreadgate_FollowingRule is a "followingRule" in the app.bsky.feed.threadgate schema.
138137//
139138// Allow replies from actors you follow.
140140-//
141141-// RECORDTYPE: FeedThreadgate_FollowingRule
142139type FeedThreadgate_FollowingRule struct {
143143- LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#followingRule" cborgen:"$type,const=app.bsky.feed.threadgate#followingRule"`
140140+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#followingRule"`
144141}
145142146143// FeedThreadgate_ListRule is a "listRule" in the app.bsky.feed.threadgate schema.
147144//
148145// Allow replies from actors on a list.
149149-//
150150-// RECORDTYPE: FeedThreadgate_ListRule
151146type FeedThreadgate_ListRule struct {
152152- LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#listRule" cborgen:"$type,const=app.bsky.feed.threadgate#listRule"`
147147+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#listRule"`
153148 List string `json:"list" cborgen:"list"`
154149}
155150156151// FeedThreadgate_MentionRule is a "mentionRule" in the app.bsky.feed.threadgate schema.
157152//
158153// Allow replies from actors mentioned in your post.
159159-//
160160-// RECORDTYPE: FeedThreadgate_MentionRule
161154type FeedThreadgate_MentionRule struct {
162162- LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#mentionRule" cborgen:"$type,const=app.bsky.feed.threadgate#mentionRule"`
155155+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#mentionRule"`
163156}
+5-5
api/bsky/graphblock.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.block
4455-// schema: app.bsky.graph.block
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.graph.block", &GraphBlock{})
1313-} //
1414-// RECORDTYPE: GraphBlock
1313+}
1414+1515type GraphBlock struct {
1616- LexiconTypeID string `json:"$type,const=app.bsky.graph.block" cborgen:"$type,const=app.bsky.graph.block"`
1616+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.block"`
1717 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
1818 // subject: DID of the account to be blocked.
1919 Subject string `json:"subject" cborgen:"subject"`
+6-14
api/bsky/graphdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.defs
4455-// schema: app.bsky.graph.defs
55+package bsky
6677import (
88 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
···1616}
17171818// GraphDefs_ListView is a "listView" in the app.bsky.graph.defs schema.
1919-//
2020-// RECORDTYPE: GraphDefs_ListView
2119type GraphDefs_ListView struct {
2222- LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"`
2020+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#listView"`
2321 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
2422 Cid string `json:"cid" cborgen:"cid"`
2523 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
···5654// GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema.
5755//
5856// indicates that a handle or DID could not be resolved
5959-//
6060-// RECORDTYPE: GraphDefs_NotFoundActor
6157type GraphDefs_NotFoundActor struct {
6262- LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#notFoundActor" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"`
5858+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"`
6359 Actor string `json:"actor" cborgen:"actor"`
6460 NotFound bool `json:"notFound" cborgen:"notFound"`
6561}
···6763// GraphDefs_Relationship is a "relationship" in the app.bsky.graph.defs schema.
6864//
6965// lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)
7070-//
7171-// RECORDTYPE: GraphDefs_Relationship
7266type GraphDefs_Relationship struct {
7373- LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#relationship" cborgen:"$type,const=app.bsky.graph.defs#relationship"`
6767+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#relationship"`
7468 Did string `json:"did" cborgen:"did"`
7569 // followedBy: if the actor is followed by this DID, contains the AT-URI of the follow record
7670 FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"`
···9488}
95899690// GraphDefs_StarterPackViewBasic is a "starterPackViewBasic" in the app.bsky.graph.defs schema.
9797-//
9898-// RECORDTYPE: GraphDefs_StarterPackViewBasic
9991type GraphDefs_StarterPackViewBasic struct {
100100- LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#starterPackViewBasic" cborgen:"$type,const=app.bsky.graph.defs#starterPackViewBasic"`
9292+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#starterPackViewBasic"`
10193 Cid string `json:"cid" cborgen:"cid"`
10294 Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"`
10395 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.unmuteActor
4455-// schema: app.bsky.graph.unmuteActor
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/graphunmuteActorList.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.unmuteActorList
4455-// schema: app.bsky.graph.unmuteActorList
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/graphunmuteThread.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.unmuteThread
4455-// schema: app.bsky.graph.unmuteThread
55+package bsky
6677import (
88 "context"
+5-5
api/bsky/graphverification.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.graph.verification
4455-// schema: app.bsky.graph.verification
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.graph.verification", &GraphVerification{})
1313-} //
1414-// RECORDTYPE: GraphVerification
1313+}
1414+1515type GraphVerification struct {
1616- LexiconTypeID string `json:"$type,const=app.bsky.graph.verification" cborgen:"$type,const=app.bsky.graph.verification"`
1616+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.verification"`
1717 // createdAt: Date of when the verification was created.
1818 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
1919 // displayName: Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
+4-8
api/bsky/labelerdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.labeler.defs
4455-// schema: app.bsky.labeler.defs
55+package bsky
6677import (
88 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
···1717}
18181919// LabelerDefs_LabelerView is a "labelerView" in the app.bsky.labeler.defs schema.
2020-//
2121-// RECORDTYPE: LabelerDefs_LabelerView
2220type LabelerDefs_LabelerView struct {
2323- LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerView" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"`
2121+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"`
2422 Cid string `json:"cid" cborgen:"cid"`
2523 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
2624 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
···3129}
32303331// LabelerDefs_LabelerViewDetailed is a "labelerViewDetailed" in the app.bsky.labeler.defs schema.
3434-//
3535-// RECORDTYPE: LabelerDefs_LabelerViewDetailed
3632type LabelerDefs_LabelerViewDetailed struct {
3737- LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerViewDetailed" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"`
3333+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"`
3834 Cid string `json:"cid" cborgen:"cid"`
3935 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
4036 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
+4-3
api/bsky/labelergetServices.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.labeler.getServices
4455-// schema: app.bsky.labeler.getServices
55+package bsky
6677import (
88 "context"
···3131 t.LabelerDefs_LabelerViewDetailed.LexiconTypeID = "app.bsky.labeler.defs#labelerViewDetailed"
3232 return json.Marshal(t.LabelerDefs_LabelerViewDetailed)
3333 }
3434- return nil, fmt.Errorf("cannot marshal empty enum")
3434+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3535}
3636+3637func (t *LabelerGetServices_Output_Views_Elem) UnmarshalJSON(b []byte) error {
3738 typ, err := util.TypeExtract(b)
3839 if err != nil {
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.declaration
4455-// schema: app.bsky.notification.declaration
55+package bsky
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
···10101111func init() {
1212 util.RegisterType("app.bsky.notification.declaration", &NotificationDeclaration{})
1313-} //
1414-// RECORDTYPE: NotificationDeclaration
1313+}
1414+1515type NotificationDeclaration struct {
1616- LexiconTypeID string `json:"$type,const=app.bsky.notification.declaration" cborgen:"$type,const=app.bsky.notification.declaration"`
1616+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.declaration"`
1717 // allowSubscriptions: A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.
1818 AllowSubscriptions string `json:"allowSubscriptions" cborgen:"allowSubscriptions"`
1919}
+2-2
api/bsky/notificationdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.defs
4455-// schema: app.bsky.notification.defs
55+package bsky
6677// NotificationDefs_ActivitySubscription is a "activitySubscription" in the app.bsky.notification.defs schema.
88type NotificationDefs_ActivitySubscription struct {
+2-2
api/bsky/notificationgetPreferences.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.getPreferences
4455-// schema: app.bsky.notification.getPreferences
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationgetUnreadCount.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.getUnreadCount
4455-// schema: app.bsky.notification.getUnreadCount
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationlistActivitySubscriptions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.listActivitySubscriptions
4455-// schema: app.bsky.notification.listActivitySubscriptions
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationlistNotifications.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.listNotifications
4455-// schema: app.bsky.notification.listNotifications
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationputActivitySubscription.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.putActivitySubscription
4455-// schema: app.bsky.notification.putActivitySubscription
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationputPreferences.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.putPreferences
4455-// schema: app.bsky.notification.putPreferences
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationputPreferencesV2.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.putPreferencesV2
4455-// schema: app.bsky.notification.putPreferencesV2
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationregisterPush.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.registerPush
4455-// schema: app.bsky.notification.registerPush
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationunregisterPush.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.unregisterPush
4455-// schema: app.bsky.notification.unregisterPush
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/notificationupdateSeen.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.notification.updateSeen
4455-// schema: app.bsky.notification.updateSeen
55+package bsky
6677import (
88 "context"
+8-13
api/bsky/richtextfacet.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.richtext.facet
4455-// schema: app.bsky.richtext.facet
55+package bsky
6677import (
88 "bytes"
···4949 t.RichtextFacet_Tag.LexiconTypeID = "app.bsky.richtext.facet#tag"
5050 return json.Marshal(t.RichtextFacet_Tag)
5151 }
5252- return nil, fmt.Errorf("cannot marshal empty enum")
5252+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5353}
5454+5455func (t *RichtextFacet_Features_Elem) UnmarshalJSON(b []byte) error {
5556 typ, err := util.TypeExtract(b)
5657 if err != nil {
···8889 if t.RichtextFacet_Tag != nil {
8990 return t.RichtextFacet_Tag.MarshalCBOR(w)
9091 }
9191- return fmt.Errorf("cannot cbor marshal empty enum")
9292+ return fmt.Errorf("can not marshal empty union as CBOR")
9293}
9394func (t *RichtextFacet_Features_Elem) UnmarshalCBOR(r io.Reader) error {
9495 typ, b, err := util.CborTypeExtractReader(r)
···115116// RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema.
116117//
117118// Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
118118-//
119119-// RECORDTYPE: RichtextFacet_Link
120119type RichtextFacet_Link struct {
121121- LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#link" cborgen:"$type,const=app.bsky.richtext.facet#link"`
120120+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#link"`
122121 Uri string `json:"uri" cborgen:"uri"`
123122}
124123125124// RichtextFacet_Mention is a "mention" in the app.bsky.richtext.facet schema.
126125//
127126// Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.
128128-//
129129-// RECORDTYPE: RichtextFacet_Mention
130127type RichtextFacet_Mention struct {
131131- LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#mention" cborgen:"$type,const=app.bsky.richtext.facet#mention"`
128128+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#mention"`
132129 Did string `json:"did" cborgen:"did"`
133130}
134131135132// RichtextFacet_Tag is a "tag" in the app.bsky.richtext.facet schema.
136133//
137134// Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').
138138-//
139139-// RECORDTYPE: RichtextFacet_Tag
140135type RichtextFacet_Tag struct {
141141- LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#tag" cborgen:"$type,const=app.bsky.richtext.facet#tag"`
136136+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#tag"`
142137 Tag string `json:"tag" cborgen:"tag"`
143138}
+6-14
api/bsky/unspecceddefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.unspecced.defs
4455-// schema: app.bsky.unspecced.defs
55+package bsky
6677// UnspeccedDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the app.bsky.unspecced.defs schema.
88//
···6464}
65656666// UnspeccedDefs_ThreadItemBlocked is a "threadItemBlocked" in the app.bsky.unspecced.defs schema.
6767-//
6868-// RECORDTYPE: UnspeccedDefs_ThreadItemBlocked
6967type UnspeccedDefs_ThreadItemBlocked struct {
7070- LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemBlocked" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemBlocked"`
6868+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemBlocked"`
7169 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"`
7270}
73717472// UnspeccedDefs_ThreadItemNoUnauthenticated is a "threadItemNoUnauthenticated" in the app.bsky.unspecced.defs schema.
7575-//
7676-// RECORDTYPE: UnspeccedDefs_ThreadItemNoUnauthenticated
7773type UnspeccedDefs_ThreadItemNoUnauthenticated struct {
7878- LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated"`
7474+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated"`
7975}
80768177// UnspeccedDefs_ThreadItemNotFound is a "threadItemNotFound" in the app.bsky.unspecced.defs schema.
8282-//
8383-// RECORDTYPE: UnspeccedDefs_ThreadItemNotFound
8478type UnspeccedDefs_ThreadItemNotFound struct {
8585- LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemNotFound" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNotFound"`
7979+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNotFound"`
8680}
87818882// UnspeccedDefs_ThreadItemPost is a "threadItemPost" in the app.bsky.unspecced.defs schema.
8989-//
9090-// RECORDTYPE: UnspeccedDefs_ThreadItemPost
9183type UnspeccedDefs_ThreadItemPost struct {
9292- LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemPost" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemPost"`
8484+ LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemPost"`
9385 // hiddenByThreadgate: The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.
9486 HiddenByThreadgate bool `json:"hiddenByThreadgate" cborgen:"hiddenByThreadgate"`
9587 // moreParents: This post has more parents that were not present in the response. This is just a boolean, without the number of parents.
+2-2
api/bsky/unspeccedgetAgeAssuranceState.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.unspecced.getAgeAssuranceState
4455-// schema: app.bsky.unspecced.getAgeAssuranceState
55+package bsky
6677import (
88 "context"
+2-2
api/bsky/unspeccedgetConfig.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package bsky
33+// Lexicon schema: app.bsky.unspecced.getConfig
4455-// schema: app.bsky.unspecced.getConfig
55+package bsky
6677import (
88 "context"
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.deleteMessageForSelf
4455-// schema: chat.bsky.convo.deleteMessageForSelf
55+package chat
6677import (
88 "context"
+2-2
api/chat/convogetConvo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.getConvo
4455-// schema: chat.bsky.convo.getConvo
55+package chat
6677import (
88 "context"
+2-2
api/chat/convogetConvoAvailability.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.getConvoAvailability
4455-// schema: chat.bsky.convo.getConvoAvailability
55+package chat
6677import (
88 "context"
+2-2
api/chat/convogetConvoForMembers.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.getConvoForMembers
4455-// schema: chat.bsky.convo.getConvoForMembers
55+package chat
6677import (
88 "context"
+4-3
api/chat/convogetLog.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.getLog
4455-// schema: chat.bsky.convo.getLog
55+package chat
6677import (
88 "context"
···7272 t.ConvoDefs_LogRemoveReaction.LexiconTypeID = "chat.bsky.convo.defs#logRemoveReaction"
7373 return json.Marshal(t.ConvoDefs_LogRemoveReaction)
7474 }
7575- return nil, fmt.Errorf("cannot marshal empty enum")
7575+ return nil, fmt.Errorf("can not marshal empty union as JSON")
7676}
7777+7778func (t *ConvoGetLog_Output_Logs_Elem) UnmarshalJSON(b []byte) error {
7879 typ, err := util.TypeExtract(b)
7980 if err != nil {
+4-3
api/chat/convogetMessages.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.getMessages
4455-// schema: chat.bsky.convo.getMessages
55+package chat
6677import (
88 "context"
···3232 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView"
3333 return json.Marshal(t.ConvoDefs_DeletedMessageView)
3434 }
3535- return nil, fmt.Errorf("cannot marshal empty enum")
3535+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3636}
3737+3738func (t *ConvoGetMessages_Output_Messages_Elem) UnmarshalJSON(b []byte) error {
3839 typ, err := util.TypeExtract(b)
3940 if err != nil {
+2-2
api/chat/convoleaveConvo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.leaveConvo
4455-// schema: chat.bsky.convo.leaveConvo
55+package chat
6677import (
88 "context"
+2-2
api/chat/convolistConvos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.listConvos
4455-// schema: chat.bsky.convo.listConvos
55+package chat
6677import (
88 "context"
+2-2
api/chat/convomuteConvo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.muteConvo
4455-// schema: chat.bsky.convo.muteConvo
55+package chat
6677import (
88 "context"
+2-2
api/chat/convoremoveReaction.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.removeReaction
4455-// schema: chat.bsky.convo.removeReaction
55+package chat
6677import (
88 "context"
+2-2
api/chat/convosendMessage.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.sendMessage
4455-// schema: chat.bsky.convo.sendMessage
55+package chat
6677import (
88 "context"
+2-2
api/chat/convosendMessageBatch.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.sendMessageBatch
4455-// schema: chat.bsky.convo.sendMessageBatch
55+package chat
6677import (
88 "context"
+2-2
api/chat/convounmuteConvo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.unmuteConvo
4455-// schema: chat.bsky.convo.unmuteConvo
55+package chat
6677import (
88 "context"
+2-2
api/chat/convoupdateAllRead.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.updateAllRead
4455-// schema: chat.bsky.convo.updateAllRead
55+package chat
6677import (
88 "context"
+2-2
api/chat/convoupdateRead.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.convo.updateRead
4455-// schema: chat.bsky.convo.updateRead
55+package chat
6677import (
88 "context"
+2-2
api/chat/moderationgetActorMetadata.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.moderation.getActorMetadata
4455-// schema: chat.bsky.moderation.getActorMetadata
55+package chat
6677import (
88 "context"
+4-3
api/chat/moderationgetMessageContext.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.moderation.getMessageContext
4455-// schema: chat.bsky.moderation.getMessageContext
55+package chat
6677import (
88 "context"
···3131 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView"
3232 return json.Marshal(t.ConvoDefs_DeletedMessageView)
3333 }
3434- return nil, fmt.Errorf("cannot marshal empty enum")
3434+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3535}
3636+3637func (t *ModerationGetMessageContext_Output_Messages_Elem) UnmarshalJSON(b []byte) error {
3738 typ, err := util.TypeExtract(b)
3839 if err != nil {
+2-2
api/chat/moderationupdateActorAccess.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package chat
33+// Lexicon schema: chat.bsky.moderation.updateActorAccess
4455-// schema: chat.bsky.moderation.updateActorAccess
55+package chat
6677import (
88 "context"
+2-2
api/ozone/communicationcreateTemplate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.communication.createTemplate
4455-// schema: tools.ozone.communication.createTemplate
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/communicationdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.communication.defs
4455-// schema: tools.ozone.communication.defs
55+package ozone
6677// CommunicationDefs_TemplateView is a "templateView" in the tools.ozone.communication.defs schema.
88type CommunicationDefs_TemplateView struct {
+2-2
api/ozone/communicationdeleteTemplate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.communication.deleteTemplate
4455-// schema: tools.ozone.communication.deleteTemplate
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/communicationlistTemplates.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.communication.listTemplates
4455-// schema: tools.ozone.communication.listTemplates
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/communicationupdateTemplate.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.communication.updateTemplate
4455-// schema: tools.ozone.communication.updateTemplate
55+package ozone
6677import (
88 "context"
+9-18
api/ozone/hostinggetAccountHistory.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.hosting.getAccountHistory
4455-// schema: tools.ozone.hosting.getAccountHistory
55+package ozone
6677import (
88 "context"
···1313)
14141515// HostingGetAccountHistory_AccountCreated is a "accountCreated" in the tools.ozone.hosting.getAccountHistory schema.
1616-//
1717-// RECORDTYPE: HostingGetAccountHistory_AccountCreated
1816type HostingGetAccountHistory_AccountCreated struct {
1919- LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated"`
1717+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated"`
2018 Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
2119 Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
2220}
23212422// HostingGetAccountHistory_EmailConfirmed is a "emailConfirmed" in the tools.ozone.hosting.getAccountHistory schema.
2525-//
2626-// RECORDTYPE: HostingGetAccountHistory_EmailConfirmed
2723type HostingGetAccountHistory_EmailConfirmed struct {
2828- LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed"`
2424+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed"`
2925 Email string `json:"email" cborgen:"email"`
3026}
31273228// HostingGetAccountHistory_EmailUpdated is a "emailUpdated" in the tools.ozone.hosting.getAccountHistory schema.
3333-//
3434-// RECORDTYPE: HostingGetAccountHistory_EmailUpdated
3529type HostingGetAccountHistory_EmailUpdated struct {
3636- LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated"`
3030+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated"`
3731 Email string `json:"email" cborgen:"email"`
3832}
3933···7367 t.HostingGetAccountHistory_HandleUpdated.LexiconTypeID = "tools.ozone.hosting.getAccountHistory#handleUpdated"
7468 return json.Marshal(t.HostingGetAccountHistory_HandleUpdated)
7569 }
7676- return nil, fmt.Errorf("cannot marshal empty enum")
7070+ return nil, fmt.Errorf("can not marshal empty union as JSON")
7771}
7272+7873func (t *HostingGetAccountHistory_Event_Details) UnmarshalJSON(b []byte) error {
7974 typ, err := util.TypeExtract(b)
8075 if err != nil {
···10499}
105100106101// HostingGetAccountHistory_HandleUpdated is a "handleUpdated" in the tools.ozone.hosting.getAccountHistory schema.
107107-//
108108-// RECORDTYPE: HostingGetAccountHistory_HandleUpdated
109102type HostingGetAccountHistory_HandleUpdated struct {
110110- LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated"`
103103+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated"`
111104 Handle string `json:"handle" cborgen:"handle"`
112105}
113106···118111}
119112120113// HostingGetAccountHistory_PasswordUpdated is a "passwordUpdated" in the tools.ozone.hosting.getAccountHistory schema.
121121-//
122122-// RECORDTYPE: HostingGetAccountHistory_PasswordUpdated
123114type HostingGetAccountHistory_PasswordUpdated struct {
124124- LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated"`
115115+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated"`
125116}
126117127118// HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory".
+2-2
api/ozone/moderationcancelScheduledActions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.cancelScheduledActions
4455-// schema: tools.ozone.moderation.cancelScheduledActions
55+package ozone
6677import (
88 "context"
+59-120
api/ozone/moderationdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.defs
4455-// schema: tools.ozone.moderation.defs
55+package ozone
6677import (
88 "encoding/json"
···1616// ModerationDefs_AccountEvent is a "accountEvent" in the tools.ozone.moderation.defs schema.
1717//
1818// Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
1919-//
2020-// RECORDTYPE: ModerationDefs_AccountEvent
2119type ModerationDefs_AccountEvent struct {
2222- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#accountEvent" cborgen:"$type,const=tools.ozone.moderation.defs#accountEvent"`
2020+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountEvent"`
2321 // active: Indicates that the account has a repository which can be fetched from the host that emitted this event.
2422 Active bool `json:"active" cborgen:"active"`
2523 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
···2826}
29273028// ModerationDefs_AccountHosting is a "accountHosting" in the tools.ozone.moderation.defs schema.
3131-//
3232-// RECORDTYPE: ModerationDefs_AccountHosting
3329type ModerationDefs_AccountHosting struct {
3434- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#accountHosting" cborgen:"$type,const=tools.ozone.moderation.defs#accountHosting"`
3030+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountHosting"`
3531 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
3632 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
3733 DeletedAt *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"`
···5955// ModerationDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the tools.ozone.moderation.defs schema.
6056//
6157// Age assurance info coming directly from users. Only works on DID subjects.
6262-//
6363-// RECORDTYPE: ModerationDefs_AgeAssuranceEvent
6458type ModerationDefs_AgeAssuranceEvent struct {
6565- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent"`
5959+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent"`
6660 // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format.
6761 AttemptId string `json:"attemptId" cborgen:"attemptId"`
6862 // completeIp: The IP address used when completing the AA flow.
···8276// ModerationDefs_AgeAssuranceOverrideEvent is a "ageAssuranceOverrideEvent" in the tools.ozone.moderation.defs schema.
8377//
8478// Age assurance status override by moderators. Only works on DID subjects.
8585-//
8686-// RECORDTYPE: ModerationDefs_AgeAssuranceOverrideEvent
8779type ModerationDefs_AgeAssuranceOverrideEvent struct {
8888- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent"`
8080+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent"`
8981 // comment: Comment describing the reason for the override.
9082 Comment string `json:"comment" cborgen:"comment"`
9183 // status: The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.
···116108 t.ModerationDefs_VideoDetails.LexiconTypeID = "tools.ozone.moderation.defs#videoDetails"
117109 return json.Marshal(t.ModerationDefs_VideoDetails)
118110 }
119119- return nil, fmt.Errorf("cannot marshal empty enum")
111111+ return nil, fmt.Errorf("can not marshal empty union as JSON")
120112}
113113+121114func (t *ModerationDefs_BlobView_Details) UnmarshalJSON(b []byte) error {
122115 typ, err := util.TypeExtract(b)
123116 if err != nil {
···140133// ModerationDefs_CancelScheduledTakedownEvent is a "cancelScheduledTakedownEvent" in the tools.ozone.moderation.defs schema.
141134//
142135// Logs cancellation of a scheduled takedown action for an account.
143143-//
144144-// RECORDTYPE: ModerationDefs_CancelScheduledTakedownEvent
145136type ModerationDefs_CancelScheduledTakedownEvent struct {
146146- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent" cborgen:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent"`
137137+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent"`
147138 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
148139}
149140150141// ModerationDefs_IdentityEvent is a "identityEvent" in the tools.ozone.moderation.defs schema.
151142//
152143// Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
153153-//
154154-// RECORDTYPE: ModerationDefs_IdentityEvent
155144type ModerationDefs_IdentityEvent struct {
156156- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#identityEvent" cborgen:"$type,const=tools.ozone.moderation.defs#identityEvent"`
145145+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#identityEvent"`
157146 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
158147 Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
159148 PdsHost *string `json:"pdsHost,omitempty" cborgen:"pdsHost,omitempty"`
···162151}
163152164153// ModerationDefs_ImageDetails is a "imageDetails" in the tools.ozone.moderation.defs schema.
165165-//
166166-// RECORDTYPE: ModerationDefs_ImageDetails
167154type ModerationDefs_ImageDetails struct {
168168- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#imageDetails" cborgen:"$type,const=tools.ozone.moderation.defs#imageDetails"`
155155+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#imageDetails"`
169156 Height int64 `json:"height" cborgen:"height"`
170157 Width int64 `json:"width" cborgen:"width"`
171158}
172159173160// ModerationDefs_ModEventAcknowledge is a "modEventAcknowledge" in the tools.ozone.moderation.defs schema.
174174-//
175175-// RECORDTYPE: ModerationDefs_ModEventAcknowledge
176161type ModerationDefs_ModEventAcknowledge struct {
177177- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge" cborgen:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge"`
162162+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge"`
178163 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
179164 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
180165 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
···183168// ModerationDefs_ModEventComment is a "modEventComment" in the tools.ozone.moderation.defs schema.
184169//
185170// Add a comment to a subject. An empty comment will clear any previously set sticky comment.
186186-//
187187-// RECORDTYPE: ModerationDefs_ModEventComment
188171type ModerationDefs_ModEventComment struct {
189189- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"`
172172+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"`
190173 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
191174 // sticky: Make the comment persistent on the subject
192175 Sticky *bool `json:"sticky,omitempty" cborgen:"sticky,omitempty"`
···195178// ModerationDefs_ModEventDivert is a "modEventDivert" in the tools.ozone.moderation.defs schema.
196179//
197180// Divert a record's blobs to a 3rd party service for further scanning/tagging
198198-//
199199-// RECORDTYPE: ModerationDefs_ModEventDivert
200181type ModerationDefs_ModEventDivert struct {
201201- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventDivert" cborgen:"$type,const=tools.ozone.moderation.defs#modEventDivert"`
182182+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventDivert"`
202183 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
203184}
204185205186// ModerationDefs_ModEventEmail is a "modEventEmail" in the tools.ozone.moderation.defs schema.
206187//
207207-// # Keep a log of outgoing email to a user
208208-//
209209-// RECORDTYPE: ModerationDefs_ModEventEmail
188188+// Keep a log of outgoing email to a user
210189type ModerationDefs_ModEventEmail struct {
211211- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventEmail" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEmail"`
190190+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEmail"`
212191 // comment: Additional comment about the outgoing comm.
213192 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
214193 // content: The content of the email sent to the user.
···218197}
219198220199// ModerationDefs_ModEventEscalate is a "modEventEscalate" in the tools.ozone.moderation.defs schema.
221221-//
222222-// RECORDTYPE: ModerationDefs_ModEventEscalate
223200type ModerationDefs_ModEventEscalate struct {
224224- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventEscalate" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEscalate"`
201201+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEscalate"`
225202 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
226203}
227204228205// ModerationDefs_ModEventLabel is a "modEventLabel" in the tools.ozone.moderation.defs schema.
229206//
230207// Apply/Negate labels on a subject
231231-//
232232-// RECORDTYPE: ModerationDefs_ModEventLabel
233208type ModerationDefs_ModEventLabel struct {
234234- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventLabel" cborgen:"$type,const=tools.ozone.moderation.defs#modEventLabel"`
209209+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventLabel"`
235210 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
236211 CreateLabelVals []string `json:"createLabelVals" cborgen:"createLabelVals"`
237212 // durationInHours: Indicates how long the label will remain on the subject. Only applies on labels that are being added.
···241216242217// ModerationDefs_ModEventMute is a "modEventMute" in the tools.ozone.moderation.defs schema.
243218//
244244-// # Mute incoming reports on a subject
245245-//
246246-// RECORDTYPE: ModerationDefs_ModEventMute
219219+// Mute incoming reports on a subject
247220type ModerationDefs_ModEventMute struct {
248248- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventMute" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMute"`
221221+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMute"`
249222 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
250223 // durationInHours: Indicates how long the subject should remain muted.
251224 DurationInHours int64 `json:"durationInHours" cborgen:"durationInHours"`
···253226254227// ModerationDefs_ModEventMuteReporter is a "modEventMuteReporter" in the tools.ozone.moderation.defs schema.
255228//
256256-// # Mute incoming reports from an account
257257-//
258258-// RECORDTYPE: ModerationDefs_ModEventMuteReporter
229229+// Mute incoming reports from an account
259230type ModerationDefs_ModEventMuteReporter struct {
260260- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter"`
231231+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter"`
261232 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
262233 // durationInHours: Indicates how long the account should remain muted. Falsy value here means a permanent mute.
263234 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
···266237// ModerationDefs_ModEventPriorityScore is a "modEventPriorityScore" in the tools.ozone.moderation.defs schema.
267238//
268239// Set priority score of the subject. Higher score means higher priority.
269269-//
270270-// RECORDTYPE: ModerationDefs_ModEventPriorityScore
271240type ModerationDefs_ModEventPriorityScore struct {
272272- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore" cborgen:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore"`
241241+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore"`
273242 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
274243 Score int64 `json:"score" cborgen:"score"`
275244}
276245277246// ModerationDefs_ModEventReport is a "modEventReport" in the tools.ozone.moderation.defs schema.
278247//
279279-// # Report a subject
280280-//
281281-// RECORDTYPE: ModerationDefs_ModEventReport
248248+// Report a subject
282249type ModerationDefs_ModEventReport struct {
283283- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventReport" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReport"`
250250+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReport"`
284251 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
285252 // isReporterMuted: Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.
286253 IsReporterMuted *bool `json:"isReporterMuted,omitempty" cborgen:"isReporterMuted,omitempty"`
···289256290257// ModerationDefs_ModEventResolveAppeal is a "modEventResolveAppeal" in the tools.ozone.moderation.defs schema.
291258//
292292-// # Resolve appeal on a subject
293293-//
294294-// RECORDTYPE: ModerationDefs_ModEventResolveAppeal
259259+// Resolve appeal on a subject
295260type ModerationDefs_ModEventResolveAppeal struct {
296296- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal" cborgen:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal"`
261261+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal"`
297262 // comment: Describe resolution.
298263 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
299264}
300265301266// ModerationDefs_ModEventReverseTakedown is a "modEventReverseTakedown" in the tools.ozone.moderation.defs schema.
302267//
303303-// # Revert take down action on a subject
304304-//
305305-// RECORDTYPE: ModerationDefs_ModEventReverseTakedown
268268+// Revert take down action on a subject
306269type ModerationDefs_ModEventReverseTakedown struct {
307307- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"`
270270+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"`
308271 // comment: Describe reasoning behind the reversal.
309272 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
310273}
···312275// ModerationDefs_ModEventTag is a "modEventTag" in the tools.ozone.moderation.defs schema.
313276//
314277// Add/Remove a tag on a subject
315315-//
316316-// RECORDTYPE: ModerationDefs_ModEventTag
317278type ModerationDefs_ModEventTag struct {
318318- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTag" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTag"`
279279+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTag"`
319280 // add: Tags to be added to the subject. If already exists, won't be duplicated.
320281 Add []string `json:"add" cborgen:"add"`
321282 // comment: Additional comment about added/removed tags.
···326287327288// ModerationDefs_ModEventTakedown is a "modEventTakedown" in the tools.ozone.moderation.defs schema.
328289//
329329-// # Take down a subject permanently or temporarily
330330-//
331331-// RECORDTYPE: ModerationDefs_ModEventTakedown
290290+// Take down a subject permanently or temporarily
332291type ModerationDefs_ModEventTakedown struct {
333333- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"`
292292+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"`
334293 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
335294 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
336295 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
···342301343302// ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema.
344303//
345345-// # Unmute action on a subject
346346-//
347347-// RECORDTYPE: ModerationDefs_ModEventUnmute
304304+// Unmute action on a subject
348305type ModerationDefs_ModEventUnmute struct {
349349- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventUnmute" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmute"`
306306+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmute"`
350307 // comment: Describe reasoning behind the reversal.
351308 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
352309}
353310354311// ModerationDefs_ModEventUnmuteReporter is a "modEventUnmuteReporter" in the tools.ozone.moderation.defs schema.
355312//
356356-// # Unmute incoming reports from an account
357357-//
358358-// RECORDTYPE: ModerationDefs_ModEventUnmuteReporter
313313+// Unmute incoming reports from an account
359314type ModerationDefs_ModEventUnmuteReporter struct {
360360- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter"`
315315+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter"`
361316 // comment: Describe reasoning behind the reversal.
362317 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
363318}
···510465 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent"
511466 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent)
512467 }
513513- return nil, fmt.Errorf("cannot marshal empty enum")
468468+ return nil, fmt.Errorf("can not marshal empty union as JSON")
514469}
470470+515471func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error {
516472 typ, err := util.TypeExtract(b)
517473 if err != nil {
···621577 t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound"
622578 return json.Marshal(t.ModerationDefs_RecordViewNotFound)
623579 }
624624- return nil, fmt.Errorf("cannot marshal empty enum")
580580+ return nil, fmt.Errorf("can not marshal empty union as JSON")
625581}
582582+626583func (t *ModerationDefs_ModEventViewDetail_Subject) UnmarshalJSON(b []byte) error {
627584 typ, err := util.TypeExtract(b)
628585 if err != nil {
···772729 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent"
773730 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent)
774731 }
775775- return nil, fmt.Errorf("cannot marshal empty enum")
732732+ return nil, fmt.Errorf("can not marshal empty union as JSON")
776733}
734734+777735func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error {
778736 typ, err := util.TypeExtract(b)
779737 if err != nil {
···878836 t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef"
879837 return json.Marshal(t.ConvoDefs_MessageRef)
880838 }
881881- return nil, fmt.Errorf("cannot marshal empty enum")
839839+ return nil, fmt.Errorf("can not marshal empty union as JSON")
882840}
841841+883842func (t *ModerationDefs_ModEventView_Subject) UnmarshalJSON(b []byte) error {
884843 typ, err := util.TypeExtract(b)
885844 if err != nil {
···925884// ModerationDefs_RecordEvent is a "recordEvent" in the tools.ozone.moderation.defs schema.
926885//
927886// Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.
928928-//
929929-// RECORDTYPE: ModerationDefs_RecordEvent
930887type ModerationDefs_RecordEvent struct {
931931- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordEvent" cborgen:"$type,const=tools.ozone.moderation.defs#recordEvent"`
888888+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordEvent"`
932889 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
933890 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
934891 Op string `json:"op" cborgen:"op"`
···936893}
937894938895// ModerationDefs_RecordHosting is a "recordHosting" in the tools.ozone.moderation.defs schema.
939939-//
940940-// RECORDTYPE: ModerationDefs_RecordHosting
941896type ModerationDefs_RecordHosting struct {
942942- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordHosting" cborgen:"$type,const=tools.ozone.moderation.defs#recordHosting"`
897897+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordHosting"`
943898 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
944899 DeletedAt *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"`
945900 Status string `json:"status" cborgen:"status"`
···947902}
948903949904// ModerationDefs_RecordView is a "recordView" in the tools.ozone.moderation.defs schema.
950950-//
951951-// RECORDTYPE: ModerationDefs_RecordView
952905type ModerationDefs_RecordView struct {
953953- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordView" cborgen:"$type,const=tools.ozone.moderation.defs#recordView"`
906906+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordView"`
954907 BlobCids []string `json:"blobCids" cborgen:"blobCids"`
955908 Cid string `json:"cid" cborgen:"cid"`
956909 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
···961914}
962915963916// ModerationDefs_RecordViewDetail is a "recordViewDetail" in the tools.ozone.moderation.defs schema.
964964-//
965965-// RECORDTYPE: ModerationDefs_RecordViewDetail
966917type ModerationDefs_RecordViewDetail struct {
967967- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewDetail"`
918918+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewDetail"`
968919 Blobs []*ModerationDefs_BlobView `json:"blobs" cborgen:"blobs"`
969920 Cid string `json:"cid" cborgen:"cid"`
970921 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
···976927}
977928978929// ModerationDefs_RecordViewNotFound is a "recordViewNotFound" in the tools.ozone.moderation.defs schema.
979979-//
980980-// RECORDTYPE: ModerationDefs_RecordViewNotFound
981930type ModerationDefs_RecordViewNotFound struct {
982982- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordViewNotFound" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewNotFound"`
931931+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewNotFound"`
983932 Uri string `json:"uri" cborgen:"uri"`
984933}
985934···1006955}
10079561008957// ModerationDefs_RepoView is a "repoView" in the tools.ozone.moderation.defs schema.
10091009-//
10101010-// RECORDTYPE: ModerationDefs_RepoView
1011958type ModerationDefs_RepoView struct {
10121012- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoView" cborgen:"$type,const=tools.ozone.moderation.defs#repoView"`
959959+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoView"`
1013960 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
1014961 Did string `json:"did" cborgen:"did"`
1015962 Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
···1024971}
10259721026973// ModerationDefs_RepoViewDetail is a "repoViewDetail" in the tools.ozone.moderation.defs schema.
10271027-//
10281028-// RECORDTYPE: ModerationDefs_RepoViewDetail
1029974type ModerationDefs_RepoViewDetail struct {
10301030- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewDetail"`
975975+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewDetail"`
1031976 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"`
1032977 Did string `json:"did" cborgen:"did"`
1033978 Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
···1045990}
10469911047992// ModerationDefs_RepoViewNotFound is a "repoViewNotFound" in the tools.ozone.moderation.defs schema.
10481048-//
10491049-// RECORDTYPE: ModerationDefs_RepoViewNotFound
1050993type ModerationDefs_RepoViewNotFound struct {
10511051- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoViewNotFound" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewNotFound"`
994994+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewNotFound"`
1052995 Did string `json:"did" cborgen:"did"`
1053996}
1054997···10761019// ModerationDefs_RevokeAccountCredentialsEvent is a "revokeAccountCredentialsEvent" in the tools.ozone.moderation.defs schema.
10771020//
10781021// Account credentials revocation by moderators. Only works on DID subjects.
10791079-//
10801080-// RECORDTYPE: ModerationDefs_RevokeAccountCredentialsEvent
10811022type ModerationDefs_RevokeAccountCredentialsEvent struct {
10821082- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent" cborgen:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent"`
10231023+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent"`
10831024 // comment: Comment describing the reason for the revocation.
10841025 Comment string `json:"comment" cborgen:"comment"`
10851026}
···10871028// ModerationDefs_ScheduleTakedownEvent is a "scheduleTakedownEvent" in the tools.ozone.moderation.defs schema.
10881029//
10891030// Logs a scheduled takedown action for an account.
10901090-//
10911091-// RECORDTYPE: ModerationDefs_ScheduleTakedownEvent
10921031type ModerationDefs_ScheduleTakedownEvent struct {
10931093- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent" cborgen:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent"`
10321032+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent"`
10941033 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
10951034 ExecuteAfter *string `json:"executeAfter,omitempty" cborgen:"executeAfter,omitempty"`
10961035 ExecuteAt *string `json:"executeAt,omitempty" cborgen:"executeAt,omitempty"`
···11851124 t.ModerationDefs_RecordHosting.LexiconTypeID = "tools.ozone.moderation.defs#recordHosting"
11861125 return json.Marshal(t.ModerationDefs_RecordHosting)
11871126 }
11881188- return nil, fmt.Errorf("cannot marshal empty enum")
11271127+ return nil, fmt.Errorf("can not marshal empty union as JSON")
11891128}
11291129+11901130func (t *ModerationDefs_SubjectStatusView_Hosting) UnmarshalJSON(b []byte) error {
11911131 typ, err := util.TypeExtract(b)
11921132 if err != nil {
···12251165 t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef"
12261166 return json.Marshal(t.ConvoDefs_MessageRef)
12271167 }
12281228- return nil, fmt.Errorf("cannot marshal empty enum")
11681168+ return nil, fmt.Errorf("can not marshal empty union as JSON")
12291169}
11701170+12301171func (t *ModerationDefs_SubjectStatusView_Subject) UnmarshalJSON(b []byte) error {
12311172 typ, err := util.TypeExtract(b)
12321173 if err != nil {
···12621203}
1263120412641205// ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema.
12651265-//
12661266-// RECORDTYPE: ModerationDefs_VideoDetails
12671206type ModerationDefs_VideoDetails struct {
12681268- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#videoDetails" cborgen:"$type,const=tools.ozone.moderation.defs#videoDetails"`
12071207+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#videoDetails"`
12691208 Height int64 `json:"height" cborgen:"height"`
12701209 Length int64 `json:"length" cborgen:"length"`
12711210 Width int64 `json:"width" cborgen:"width"`
+6-4
api/ozone/moderationemitEvent.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.emitEvent
4455-// schema: tools.ozone.moderation.emitEvent
55+package ozone
6677import (
88 "context"
···148148 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent"
149149 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent)
150150 }
151151- return nil, fmt.Errorf("cannot marshal empty enum")
151151+ return nil, fmt.Errorf("can not marshal empty union as JSON")
152152}
153153+153154func (t *ModerationEmitEvent_Input_Event) UnmarshalJSON(b []byte) error {
154155 typ, err := util.TypeExtract(b)
155156 if err != nil {
···249250 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef"
250251 return json.Marshal(t.RepoStrongRef)
251252 }
252252- return nil, fmt.Errorf("cannot marshal empty enum")
253253+ return nil, fmt.Errorf("can not marshal empty union as JSON")
253254}
255255+254256func (t *ModerationEmitEvent_Input_Subject) UnmarshalJSON(b []byte) error {
255257 typ, err := util.TypeExtract(b)
256258 if err != nil {
+2-2
api/ozone/moderationgetAccountTimeline.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getAccountTimeline
4455-// schema: tools.ozone.moderation.getAccountTimeline
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationgetEvent.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getEvent
4455-// schema: tools.ozone.moderation.getEvent
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationgetRecord.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getRecord
4455-// schema: tools.ozone.moderation.getRecord
55+package ozone
6677import (
88 "context"
+4-3
api/ozone/moderationgetRecords.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getRecords
4455-// schema: tools.ozone.moderation.getRecords
55+package ozone
6677import (
88 "context"
···3131 t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound"
3232 return json.Marshal(t.ModerationDefs_RecordViewNotFound)
3333 }
3434- return nil, fmt.Errorf("cannot marshal empty enum")
3434+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3535}
3636+3637func (t *ModerationGetRecords_Output_Records_Elem) UnmarshalJSON(b []byte) error {
3738 typ, err := util.TypeExtract(b)
3839 if err != nil {
+2-2
api/ozone/moderationgetRepo.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getRepo
4455-// schema: tools.ozone.moderation.getRepo
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationgetReporterStats.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getReporterStats
4455-// schema: tools.ozone.moderation.getReporterStats
55+package ozone
6677import (
88 "context"
+4-3
api/ozone/moderationgetRepos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getRepos
4455-// schema: tools.ozone.moderation.getRepos
55+package ozone
6677import (
88 "context"
···3131 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound"
3232 return json.Marshal(t.ModerationDefs_RepoViewNotFound)
3333 }
3434- return nil, fmt.Errorf("cannot marshal empty enum")
3434+ return nil, fmt.Errorf("can not marshal empty union as JSON")
3535}
3636+3637func (t *ModerationGetRepos_Output_Repos_Elem) UnmarshalJSON(b []byte) error {
3738 typ, err := util.TypeExtract(b)
3839 if err != nil {
+2-2
api/ozone/moderationgetSubjects.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.getSubjects
4455-// schema: tools.ozone.moderation.getSubjects
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationlistScheduledActions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.listScheduledActions
4455-// schema: tools.ozone.moderation.listScheduledActions
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationqueryEvents.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.queryEvents
4455-// schema: tools.ozone.moderation.queryEvents
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/moderationqueryStatuses.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.queryStatuses
4455-// schema: tools.ozone.moderation.queryStatuses
55+package ozone
6677import (
88 "context"
+6-7
api/ozone/moderationscheduleAction.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.scheduleAction
4455-// schema: tools.ozone.moderation.scheduleAction
55+package ozone
6677import (
88 "context"
···3939 t.ModerationScheduleAction_Takedown.LexiconTypeID = "tools.ozone.moderation.scheduleAction#takedown"
4040 return json.Marshal(t.ModerationScheduleAction_Takedown)
4141 }
4242- return nil, fmt.Errorf("cannot marshal empty enum")
4242+ return nil, fmt.Errorf("can not marshal empty union as JSON")
4343}
4444+4445func (t *ModerationScheduleAction_Input_Action) UnmarshalJSON(b []byte) error {
4546 typ, err := util.TypeExtract(b)
4647 if err != nil {
···77787879// ModerationScheduleAction_Takedown is a "takedown" in the tools.ozone.moderation.scheduleAction schema.
7980//
8080-// # Schedule a takedown action
8181-//
8282-// RECORDTYPE: ModerationScheduleAction_Takedown
8181+// Schedule a takedown action
8382type ModerationScheduleAction_Takedown struct {
8484- LexiconTypeID string `json:"$type,const=tools.ozone.moderation.scheduleAction#takedown" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#takedown"`
8383+ LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#takedown"`
8584 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged).
8685 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"`
8786 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
+2-2
api/ozone/moderationsearchRepos.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.moderation.searchRepos
4455-// schema: tools.ozone.moderation.searchRepos
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/reportdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.report.defs
4455-// schema: tools.ozone.report.defs
55+package ozone
+2-2
api/ozone/safelinkaddRule.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.addRule
4455-// schema: tools.ozone.safelink.addRule
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/safelinkdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.defs
4455-// schema: tools.ozone.safelink.defs
55+package ozone
6677// SafelinkDefs_Event is a "event" in the tools.ozone.safelink.defs schema.
88//
+2-2
api/ozone/safelinkqueryEvents.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.queryEvents
4455-// schema: tools.ozone.safelink.queryEvents
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/safelinkqueryRules.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.queryRules
4455-// schema: tools.ozone.safelink.queryRules
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/safelinkremoveRule.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.removeRule
4455-// schema: tools.ozone.safelink.removeRule
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/safelinkupdateRule.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.safelink.updateRule
4455-// schema: tools.ozone.safelink.updateRule
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/servergetConfig.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.server.getConfig
4455-// schema: tools.ozone.server.getConfig
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setaddValues.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.addValues
4455-// schema: tools.ozone.set.addValues
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.defs
4455-// schema: tools.ozone.set.defs
55+package ozone
6677// SetDefs_Set is a "set" in the tools.ozone.set.defs schema.
88type SetDefs_Set struct {
+2-2
api/ozone/setdeleteSet.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.deleteSet
4455-// schema: tools.ozone.set.deleteSet
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setdeleteValues.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.deleteValues
4455-// schema: tools.ozone.set.deleteValues
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setgetValues.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.getValues
4455-// schema: tools.ozone.set.getValues
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setquerySets.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.querySets
4455-// schema: tools.ozone.set.querySets
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/settingdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.setting.defs
4455-// schema: tools.ozone.setting.defs
55+package ozone
6677import (
88 "github.com/bluesky-social/indigo/lex/util"
+2-2
api/ozone/settinglistOptions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.setting.listOptions
4455-// schema: tools.ozone.setting.listOptions
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/settingremoveOptions.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.setting.removeOptions
4455-// schema: tools.ozone.setting.removeOptions
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/settingupsertOption.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.setting.upsertOption
4455-// schema: tools.ozone.setting.upsertOption
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/setupsertSet.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.set.upsertSet
4455-// schema: tools.ozone.set.upsertSet
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/signaturedefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.signature.defs
4455-// schema: tools.ozone.signature.defs
55+package ozone
6677// SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema.
88type SignatureDefs_SigDetail struct {
+2-2
api/ozone/signaturefindCorrelation.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.signature.findCorrelation
4455-// schema: tools.ozone.signature.findCorrelation
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/signaturefindRelatedAccounts.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.signature.findRelatedAccounts
4455-// schema: tools.ozone.signature.findRelatedAccounts
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/signaturesearchAccounts.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.signature.searchAccounts
4455-// schema: tools.ozone.signature.searchAccounts
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/teamaddMember.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.team.addMember
4455-// schema: tools.ozone.team.addMember
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/teamdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.team.defs
4455-// schema: tools.ozone.team.defs
55+package ozone
6677import (
88 appbskytypes "github.com/bluesky-social/indigo/api/bsky"
+2-2
api/ozone/teamdeleteMember.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.team.deleteMember
4455-// schema: tools.ozone.team.deleteMember
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/teamlistMembers.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.team.listMembers
4455-// schema: tools.ozone.team.listMembers
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/teamupdateMember.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.team.updateMember
4455-// schema: tools.ozone.team.updateMember
55+package ozone
6677import (
88 "context"
+6-4
api/ozone/verificationdefs.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.verification.defs
4455-// schema: tools.ozone.verification.defs
55+package ozone
6677import (
88 "encoding/json"
···5353 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound"
5454 return json.Marshal(t.ModerationDefs_RepoViewNotFound)
5555 }
5656- return nil, fmt.Errorf("cannot marshal empty enum")
5656+ return nil, fmt.Errorf("can not marshal empty union as JSON")
5757}
5858+5859func (t *VerificationDefs_VerificationView_IssuerRepo) UnmarshalJSON(b []byte) error {
5960 typ, err := util.TypeExtract(b)
6061 if err != nil {
···8889 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound"
8990 return json.Marshal(t.ModerationDefs_RepoViewNotFound)
9091 }
9191- return nil, fmt.Errorf("cannot marshal empty enum")
9292+ return nil, fmt.Errorf("can not marshal empty union as JSON")
9293}
9494+9395func (t *VerificationDefs_VerificationView_SubjectRepo) UnmarshalJSON(b []byte) error {
9496 typ, err := util.TypeExtract(b)
9597 if err != nil {
+2-2
api/ozone/verificationgrantVerifications.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.verification.grantVerifications
4455-// schema: tools.ozone.verification.grantVerifications
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/verificationlistVerifications.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.verification.listVerifications
4455-// schema: tools.ozone.verification.listVerifications
55+package ozone
6677import (
88 "context"
+2-2
api/ozone/verificationrevokeVerifications.go
···11// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2233-package ozone
33+// Lexicon schema: tools.ozone.verification.revokeVerifications
4455-// schema: tools.ozone.verification.revokeVerifications
55+package ozone
6677import (
88 "context"