this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

run lexgen with minor output formatting tweaks

+936 -1094
+4 -8
api/atproto/admindefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.defs 4 4 5 - // schema: com.atproto.admin.defs 5 + package atproto 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 25 25 } 26 26 27 27 // AdminDefs_RepoBlobRef is a "repoBlobRef" in the com.atproto.admin.defs schema. 28 - // 29 - // RECORDTYPE: AdminDefs_RepoBlobRef 30 28 type AdminDefs_RepoBlobRef struct { 31 - LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#repoBlobRef" cborgen:"$type,const=com.atproto.admin.defs#repoBlobRef"` 29 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#repoBlobRef"` 32 30 Cid string `json:"cid" cborgen:"cid"` 33 31 Did string `json:"did" cborgen:"did"` 34 32 RecordUri *string `json:"recordUri,omitempty" cborgen:"recordUri,omitempty"` 35 33 } 36 34 37 35 // AdminDefs_RepoRef is a "repoRef" in the com.atproto.admin.defs schema. 38 - // 39 - // RECORDTYPE: AdminDefs_RepoRef 40 36 type AdminDefs_RepoRef struct { 41 - LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#repoRef" cborgen:"$type,const=com.atproto.admin.defs#repoRef"` 37 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#repoRef"` 42 38 Did string `json:"did" cborgen:"did"` 43 39 } 44 40
+2 -2
api/atproto/admindeleteAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.deleteAccount 4 4 5 - // schema: com.atproto.admin.deleteAccount 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/admindisableAccountInvites.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.disableAccountInvites 4 4 5 - // schema: com.atproto.admin.disableAccountInvites 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/admindisableInviteCodes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.disableInviteCodes 4 4 5 - // schema: com.atproto.admin.disableInviteCodes 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminenableAccountInvites.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.enableAccountInvites 4 4 5 - // schema: com.atproto.admin.enableAccountInvites 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/admingetAccountInfo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.getAccountInfo 4 4 5 - // schema: com.atproto.admin.getAccountInfo 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/admingetAccountInfos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.getAccountInfos 4 4 5 - // schema: com.atproto.admin.getAccountInfos 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/admingetInviteCodes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.getInviteCodes 4 4 5 - // schema: com.atproto.admin.getInviteCodes 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+4 -3
api/atproto/admingetSubjectStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.getSubjectStatus 4 4 5 - // schema: com.atproto.admin.getSubjectStatus 5 + package atproto 6 6 7 7 import ( 8 8 "context" ··· 38 38 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef" 39 39 return json.Marshal(t.AdminDefs_RepoBlobRef) 40 40 } 41 - return nil, fmt.Errorf("cannot marshal empty enum") 41 + return nil, fmt.Errorf("can not marshal empty union as JSON") 42 42 } 43 + 43 44 func (t *AdminGetSubjectStatus_Output_Subject) UnmarshalJSON(b []byte) error { 44 45 typ, err := util.TypeExtract(b) 45 46 if err != nil {
+2 -2
api/atproto/adminsearchAccounts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.searchAccounts 4 4 5 - // schema: com.atproto.admin.searchAccounts 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminsendEmail.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.sendEmail 4 4 5 - // schema: com.atproto.admin.sendEmail 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminupdateAccountEmail.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.updateAccountEmail 4 4 5 - // schema: com.atproto.admin.updateAccountEmail 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminupdateAccountHandle.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.updateAccountHandle 4 4 5 - // schema: com.atproto.admin.updateAccountHandle 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminupdateAccountPassword.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.updateAccountPassword 4 4 5 - // schema: com.atproto.admin.updateAccountPassword 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/adminupdateAccountSigningKey.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.updateAccountSigningKey 4 4 5 - // schema: com.atproto.admin.updateAccountSigningKey 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+6 -4
api/atproto/adminupdateSubjectStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.admin.updateSubjectStatus 4 4 5 - // schema: com.atproto.admin.updateSubjectStatus 5 + package atproto 6 6 7 7 import ( 8 8 "context" ··· 38 38 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef" 39 39 return json.Marshal(t.AdminDefs_RepoBlobRef) 40 40 } 41 - return nil, fmt.Errorf("cannot marshal empty enum") 41 + return nil, fmt.Errorf("can not marshal empty union as JSON") 42 42 } 43 + 43 44 func (t *AdminUpdateSubjectStatus_Input_Subject) UnmarshalJSON(b []byte) error { 44 45 typ, err := util.TypeExtract(b) 45 46 if err != nil { ··· 87 88 t.AdminDefs_RepoBlobRef.LexiconTypeID = "com.atproto.admin.defs#repoBlobRef" 88 89 return json.Marshal(t.AdminDefs_RepoBlobRef) 89 90 } 90 - return nil, fmt.Errorf("cannot marshal empty enum") 91 + return nil, fmt.Errorf("can not marshal empty union as JSON") 91 92 } 93 + 92 94 func (t *AdminUpdateSubjectStatus_Output_Subject) UnmarshalJSON(b []byte) error { 93 95 typ, err := util.TypeExtract(b) 94 96 if err != nil {
+2 -2
api/atproto/identitydefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.defs 4 4 5 - // schema: com.atproto.identity.defs 5 + package atproto 6 6 7 7 // IdentityDefs_IdentityInfo is a "identityInfo" in the com.atproto.identity.defs schema. 8 8 type IdentityDefs_IdentityInfo struct {
+2 -2
api/atproto/identitygetRecommendedDidCredentials.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.getRecommendedDidCredentials 4 4 5 - // schema: com.atproto.identity.getRecommendedDidCredentials 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityrefreshIdentity.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.refreshIdentity 4 4 5 - // schema: com.atproto.identity.refreshIdentity 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityrequestPlcOperationSignature.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.requestPlcOperationSignature 4 4 5 - // schema: com.atproto.identity.requestPlcOperationSignature 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityresolveDid.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.resolveDid 4 4 5 - // schema: com.atproto.identity.resolveDid 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityresolveHandle.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.resolveHandle 4 4 5 - // schema: com.atproto.identity.resolveHandle 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityresolveIdentity.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.resolveIdentity 4 4 5 - // schema: com.atproto.identity.resolveIdentity 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identitysignPlcOperation.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.signPlcOperation 4 4 5 - // schema: com.atproto.identity.signPlcOperation 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identitysubmitPlcOperation.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.submitPlcOperation 4 4 5 - // schema: com.atproto.identity.submitPlcOperation 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/identityupdateHandle.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.identity.updateHandle 4 4 5 - // schema: com.atproto.identity.updateHandle 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+3 -5
api/atproto/labeldefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.label.defs 4 4 5 - // schema: com.atproto.label.defs 5 + package atproto 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 72 72 // LabelDefs_SelfLabels is a "selfLabels" in the com.atproto.label.defs schema. 73 73 // 74 74 // Metadata tags on an atproto record, published by the author within the record. 75 - // 76 - // RECORDTYPE: LabelDefs_SelfLabels 77 75 type LabelDefs_SelfLabels struct { 78 - LexiconTypeID string `json:"$type,const=com.atproto.label.defs#selfLabels" cborgen:"$type,const=com.atproto.label.defs#selfLabels"` 76 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#selfLabels"` 79 77 Values []*LabelDefs_SelfLabel `json:"values" cborgen:"values,preservenil"` 80 78 }
+2 -2
api/atproto/labelqueryLabels.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.label.queryLabels 4 4 5 - // schema: com.atproto.label.queryLabels 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/labelsubscribeLabels.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.label.subscribeLabels 4 4 5 - // schema: com.atproto.label.subscribeLabels 5 + package atproto 6 6 7 7 // LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema. 8 8 type LabelSubscribeLabels_Info struct {
+5 -5
api/atproto/lexiconschema.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.lexicon.schema 4 4 5 - // schema: com.atproto.lexicon.schema 5 + package atproto 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("com.atproto.lexicon.schema", &LexiconSchema{}) 13 - } // 14 - // RECORDTYPE: LexiconSchema 13 + } 14 + 15 15 type LexiconSchema struct { 16 - LexiconTypeID string `json:"$type,const=com.atproto.lexicon.schema" cborgen:"$type,const=com.atproto.lexicon.schema"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.lexicon.schema"` 17 17 // lexicon: Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. 18 18 Lexicon int64 `json:"lexicon" cborgen:"lexicon"` 19 19 }
+6 -4
api/atproto/moderationcreateReport.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.moderation.createReport 4 4 5 - // schema: com.atproto.moderation.createReport 5 + package atproto 6 6 7 7 import ( 8 8 "context" ··· 36 36 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 37 37 return json.Marshal(t.RepoStrongRef) 38 38 } 39 - return nil, fmt.Errorf("cannot marshal empty enum") 39 + return nil, fmt.Errorf("can not marshal empty union as JSON") 40 40 } 41 + 41 42 func (t *ModerationCreateReport_Input_Subject) UnmarshalJSON(b []byte) error { 42 43 typ, err := util.TypeExtract(b) 43 44 if err != nil { ··· 91 92 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 92 93 return json.Marshal(t.RepoStrongRef) 93 94 } 94 - return nil, fmt.Errorf("cannot marshal empty enum") 95 + return nil, fmt.Errorf("can not marshal empty union as JSON") 95 96 } 97 + 96 98 func (t *ModerationCreateReport_Output_Subject) UnmarshalJSON(b []byte) error { 97 99 typ, err := util.TypeExtract(b) 98 100 if err != nil {
+2 -2
api/atproto/moderationdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.moderation.defs 4 4 5 - // schema: com.atproto.moderation.defs 5 + package atproto
+14 -24
api/atproto/repoapplyWrites.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.applyWrites 4 4 5 - // schema: com.atproto.repo.applyWrites 5 + package atproto 6 6 7 7 import ( 8 8 "context" ··· 15 15 // RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema. 16 16 // 17 17 // Operation which creates a new record. 18 - // 19 - // RECORDTYPE: RepoApplyWrites_Create 20 18 type RepoApplyWrites_Create struct { 21 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#create" cborgen:"$type,const=com.atproto.repo.applyWrites#create"` 19 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#create"` 22 20 Collection string `json:"collection" cborgen:"collection"` 23 21 // rkey: NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. 24 22 Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"` ··· 26 24 } 27 25 28 26 // RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema. 29 - // 30 - // RECORDTYPE: RepoApplyWrites_CreateResult 31 27 type RepoApplyWrites_CreateResult struct { 32 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#createResult" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"` 28 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"` 33 29 Cid string `json:"cid" cborgen:"cid"` 34 30 Uri string `json:"uri" cborgen:"uri"` 35 31 ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"` ··· 38 34 // RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema. 39 35 // 40 36 // Operation which deletes an existing record. 41 - // 42 - // RECORDTYPE: RepoApplyWrites_Delete 43 37 type RepoApplyWrites_Delete struct { 44 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#delete" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"` 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"` 45 39 Collection string `json:"collection" cborgen:"collection"` 46 40 Rkey string `json:"rkey" cborgen:"rkey"` 47 41 } 48 42 49 43 // RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema. 50 - // 51 - // RECORDTYPE: RepoApplyWrites_DeleteResult 52 44 type RepoApplyWrites_DeleteResult struct { 53 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#deleteResult" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"` 45 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"` 54 46 } 55 47 56 48 // RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call. ··· 83 75 t.RepoApplyWrites_Delete.LexiconTypeID = "com.atproto.repo.applyWrites#delete" 84 76 return json.Marshal(t.RepoApplyWrites_Delete) 85 77 } 86 - return nil, fmt.Errorf("cannot marshal empty enum") 78 + return nil, fmt.Errorf("can not marshal empty union as JSON") 87 79 } 80 + 88 81 func (t *RepoApplyWrites_Input_Writes_Elem) UnmarshalJSON(b []byte) error { 89 82 typ, err := util.TypeExtract(b) 90 83 if err != nil { ··· 103 96 return json.Unmarshal(b, t.RepoApplyWrites_Delete) 104 97 105 98 default: 106 - return fmt.Errorf("closed enums must have a matching value") 99 + return fmt.Errorf("closed unions must match a listed schema") 107 100 } 108 101 } 109 102 ··· 132 125 t.RepoApplyWrites_DeleteResult.LexiconTypeID = "com.atproto.repo.applyWrites#deleteResult" 133 126 return json.Marshal(t.RepoApplyWrites_DeleteResult) 134 127 } 135 - return nil, fmt.Errorf("cannot marshal empty enum") 128 + return nil, fmt.Errorf("can not marshal empty union as JSON") 136 129 } 130 + 137 131 func (t *RepoApplyWrites_Output_Results_Elem) UnmarshalJSON(b []byte) error { 138 132 typ, err := util.TypeExtract(b) 139 133 if err != nil { ··· 152 146 return json.Unmarshal(b, t.RepoApplyWrites_DeleteResult) 153 147 154 148 default: 155 - return fmt.Errorf("closed enums must have a matching value") 149 + return fmt.Errorf("closed unions must match a listed schema") 156 150 } 157 151 } 158 152 159 153 // RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema. 160 154 // 161 155 // Operation which updates an existing record. 162 - // 163 - // RECORDTYPE: RepoApplyWrites_Update 164 156 type RepoApplyWrites_Update struct { 165 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#update" cborgen:"$type,const=com.atproto.repo.applyWrites#update"` 157 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#update"` 166 158 Collection string `json:"collection" cborgen:"collection"` 167 159 Rkey string `json:"rkey" cborgen:"rkey"` 168 160 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 169 161 } 170 162 171 163 // RepoApplyWrites_UpdateResult is a "updateResult" in the com.atproto.repo.applyWrites schema. 172 - // 173 - // RECORDTYPE: RepoApplyWrites_UpdateResult 174 164 type RepoApplyWrites_UpdateResult struct { 175 - LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#updateResult" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"` 165 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"` 176 166 Cid string `json:"cid" cborgen:"cid"` 177 167 Uri string `json:"uri" cborgen:"uri"` 178 168 ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
+2 -2
api/atproto/repocreateRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.createRecord 4 4 5 - // schema: com.atproto.repo.createRecord 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repodefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.defs 4 4 5 - // schema: com.atproto.repo.defs 5 + package atproto 6 6 7 7 // RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema. 8 8 type RepoDefs_CommitMeta struct {
+2 -2
api/atproto/repodeleteRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.deleteRecord 4 4 5 - // schema: com.atproto.repo.deleteRecord 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repodescribeRepo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.describeRepo 4 4 5 - // schema: com.atproto.repo.describeRepo 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repogetRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.getRecord 4 4 5 - // schema: com.atproto.repo.getRecord 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repoimportRepo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.importRepo 4 4 5 - // schema: com.atproto.repo.importRepo 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repolistMissingBlobs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.listMissingBlobs 4 4 5 - // schema: com.atproto.repo.listMissingBlobs 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repolistRecords.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.listRecords 4 4 5 - // schema: com.atproto.repo.listRecords 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/repoputRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.putRecord 4 4 5 - // schema: com.atproto.repo.putRecord 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+6 -5
api/atproto/repostrongRef.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.strongRef 4 4 5 - // schema: com.atproto.repo.strongRef 5 + package atproto 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("com.atproto.repo.strongRef#main", &RepoStrongRef{}) 13 - } // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema. 14 - // RECORDTYPE: RepoStrongRef 13 + } 14 + 15 + // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema. 15 16 type RepoStrongRef struct { 16 - LexiconTypeID string `json:"$type,const=com.atproto.repo.strongRef,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"` 17 + LexiconTypeID string `json:"$type,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"` 17 18 Cid string `json:"cid" cborgen:"cid"` 18 19 Uri string `json:"uri" cborgen:"uri"` 19 20 }
+2 -2
api/atproto/repouploadBlob.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.repo.uploadBlob 4 4 5 - // schema: com.atproto.repo.uploadBlob 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serveractivateAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.activateAccount 4 4 5 - // schema: com.atproto.server.activateAccount 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercheckAccountStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.checkAccountStatus 4 4 5 - // schema: com.atproto.server.checkAccountStatus 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverconfirmEmail.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.confirmEmail 4 4 5 - // schema: com.atproto.server.confirmEmail 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercreateAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.createAccount 4 4 5 - // schema: com.atproto.server.createAccount 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercreateAppPassword.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.createAppPassword 4 4 5 - // schema: com.atproto.server.createAppPassword 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercreateInviteCode.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.createInviteCode 4 4 5 - // schema: com.atproto.server.createInviteCode 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercreateInviteCodes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.createInviteCodes 4 4 5 - // schema: com.atproto.server.createInviteCodes 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servercreateSession.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.createSession 4 4 5 - // schema: com.atproto.server.createSession 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverdeactivateAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.deactivateAccount 4 4 5 - // schema: com.atproto.server.deactivateAccount 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.defs 4 4 5 - // schema: com.atproto.server.defs 5 + package atproto 6 6 7 7 // ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema. 8 8 type ServerDefs_InviteCode struct {
+2 -2
api/atproto/serverdeleteAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.deleteAccount 4 4 5 - // schema: com.atproto.server.deleteAccount 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverdeleteSession.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.deleteSession 4 4 5 - // schema: com.atproto.server.deleteSession 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverdescribeServer.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.describeServer 4 4 5 - // schema: com.atproto.server.describeServer 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servergetAccountInviteCodes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.getAccountInviteCodes 4 4 5 - // schema: com.atproto.server.getAccountInviteCodes 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servergetServiceAuth.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.getServiceAuth 4 4 5 - // schema: com.atproto.server.getServiceAuth 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/servergetSession.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.getSession 4 4 5 - // schema: com.atproto.server.getSession 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverlistAppPasswords.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.listAppPasswords 4 4 5 - // schema: com.atproto.server.listAppPasswords 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrefreshSession.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.refreshSession 4 4 5 - // schema: com.atproto.server.refreshSession 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrequestAccountDelete.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.requestAccountDelete 4 4 5 - // schema: com.atproto.server.requestAccountDelete 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrequestEmailConfirmation.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.requestEmailConfirmation 4 4 5 - // schema: com.atproto.server.requestEmailConfirmation 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrequestEmailUpdate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.requestEmailUpdate 4 4 5 - // schema: com.atproto.server.requestEmailUpdate 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrequestPasswordReset.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.requestPasswordReset 4 4 5 - // schema: com.atproto.server.requestPasswordReset 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverreserveSigningKey.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.reserveSigningKey 4 4 5 - // schema: com.atproto.server.reserveSigningKey 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverresetPassword.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.resetPassword 4 4 5 - // schema: com.atproto.server.resetPassword 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverrevokeAppPassword.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.revokeAppPassword 4 4 5 - // schema: com.atproto.server.revokeAppPassword 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/serverupdateEmail.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.server.updateEmail 4 4 5 - // schema: com.atproto.server.updateEmail 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.defs 4 4 5 - // schema: com.atproto.sync.defs 5 + package atproto
+2 -2
api/atproto/syncgetBlob.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getBlob 4 4 5 - // schema: com.atproto.sync.getBlob 5 + package atproto 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/atproto/syncgetBlocks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getBlocks 4 4 5 - // schema: com.atproto.sync.getBlocks 5 + package atproto 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/atproto/syncgetCheckout.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getCheckout 4 4 5 - // schema: com.atproto.sync.getCheckout 5 + package atproto 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/atproto/syncgetHead.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getHead 4 4 5 - // schema: com.atproto.sync.getHead 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncgetHostStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getHostStatus 4 4 5 - // schema: com.atproto.sync.getHostStatus 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncgetLatestCommit.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getLatestCommit 4 4 5 - // schema: com.atproto.sync.getLatestCommit 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncgetRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getRecord 4 4 5 - // schema: com.atproto.sync.getRecord 5 + package atproto 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/atproto/syncgetRepo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getRepo 4 4 5 - // schema: com.atproto.sync.getRepo 5 + package atproto 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/atproto/syncgetRepoStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.getRepoStatus 4 4 5 - // schema: com.atproto.sync.getRepoStatus 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/synclistBlobs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.listBlobs 4 4 5 - // schema: com.atproto.sync.listBlobs 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/synclistHosts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.listHosts 4 4 5 - // schema: com.atproto.sync.listHosts 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/synclistRepos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.listRepos 4 4 5 - // schema: com.atproto.sync.listRepos 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/synclistReposByCollection.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.listReposByCollection 4 4 5 - // schema: com.atproto.sync.listReposByCollection 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncnotifyOfUpdate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.notifyOfUpdate 4 4 5 - // schema: com.atproto.sync.notifyOfUpdate 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncrequestCrawl.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.requestCrawl 4 4 5 - // schema: com.atproto.sync.requestCrawl 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/syncsubscribeRepos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.sync.subscribeRepos 4 4 5 - // schema: com.atproto.sync.subscribeRepos 5 + package atproto 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util"
+2 -2
api/atproto/tempaddReservedHandle.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.addReservedHandle 4 4 5 - // schema: com.atproto.temp.addReservedHandle 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+6 -9
api/atproto/tempcheckHandleAvailability.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.checkHandleAvailability 4 4 5 - // schema: com.atproto.temp.checkHandleAvailability 5 + package atproto 6 6 7 7 import ( 8 8 "context" ··· 33 33 t.TempCheckHandleAvailability_ResultUnavailable.LexiconTypeID = "com.atproto.temp.checkHandleAvailability#resultUnavailable" 34 34 return json.Marshal(t.TempCheckHandleAvailability_ResultUnavailable) 35 35 } 36 - return nil, fmt.Errorf("cannot marshal empty enum") 36 + return nil, fmt.Errorf("can not marshal empty union as JSON") 37 37 } 38 + 38 39 func (t *TempCheckHandleAvailability_Output_Result) UnmarshalJSON(b []byte) error { 39 40 typ, err := util.TypeExtract(b) 40 41 if err != nil { ··· 57 58 // TempCheckHandleAvailability_ResultAvailable is a "resultAvailable" in the com.atproto.temp.checkHandleAvailability schema. 58 59 // 59 60 // Indicates the provided handle is available. 60 - // 61 - // RECORDTYPE: TempCheckHandleAvailability_ResultAvailable 62 61 type TempCheckHandleAvailability_ResultAvailable struct { 63 - LexiconTypeID string `json:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"` 62 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"` 64 63 } 65 64 66 65 // TempCheckHandleAvailability_ResultUnavailable is a "resultUnavailable" in the com.atproto.temp.checkHandleAvailability schema. 67 66 // 68 67 // Indicates the provided handle is unavailable and gives suggestions of available handles. 69 - // 70 - // RECORDTYPE: TempCheckHandleAvailability_ResultUnavailable 71 68 type TempCheckHandleAvailability_ResultUnavailable struct { 72 - LexiconTypeID string `json:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"` 69 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"` 73 70 // suggestions: List of suggested handles based on the provided inputs. 74 71 Suggestions []*TempCheckHandleAvailability_Suggestion `json:"suggestions" cborgen:"suggestions"` 75 72 }
+2 -2
api/atproto/tempcheckSignupQueue.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.checkSignupQueue 4 4 5 - // schema: com.atproto.temp.checkSignupQueue 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/tempdereferenceScope.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.dereferenceScope 4 4 5 - // schema: com.atproto.temp.dereferenceScope 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/tempfetchLabels.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.fetchLabels 4 4 5 - // schema: com.atproto.temp.fetchLabels 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/temprequestPhoneVerification.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.requestPhoneVerification 4 4 5 - // schema: com.atproto.temp.requestPhoneVerification 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+2 -2
api/atproto/temprevokeAccountCredentials.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package atproto 3 + // Lexicon schema: com.atproto.temp.revokeAccountCredentials 4 4 5 - // schema: com.atproto.temp.revokeAccountCredentials 5 + package atproto 6 6 7 7 import ( 8 8 "context"
+24 -48
api/bsky/actordefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.defs 4 4 5 - // schema: app.bsky.actor.defs 5 + package bsky 6 6 7 7 import ( 8 8 "encoding/json" ··· 13 13 ) 14 14 15 15 // ActorDefs_AdultContentPref is a "adultContentPref" in the app.bsky.actor.defs schema. 16 - // 17 - // RECORDTYPE: ActorDefs_AdultContentPref 18 16 type ActorDefs_AdultContentPref struct { 19 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#adultContentPref" cborgen:"$type,const=app.bsky.actor.defs#adultContentPref"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#adultContentPref"` 20 18 Enabled bool `json:"enabled" cborgen:"enabled"` 21 19 } 22 20 ··· 30 28 // ActorDefs_BskyAppStatePref is a "bskyAppStatePref" in the app.bsky.actor.defs schema. 31 29 // 32 30 // A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. 33 - // 34 - // RECORDTYPE: ActorDefs_BskyAppStatePref 35 31 type ActorDefs_BskyAppStatePref struct { 36 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#bskyAppStatePref" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"` 32 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#bskyAppStatePref"` 37 33 ActiveProgressGuide *ActorDefs_BskyAppProgressGuide `json:"activeProgressGuide,omitempty" cborgen:"activeProgressGuide,omitempty"` 38 34 // nuxs: Storage for NUXs the user has encountered. 39 35 Nuxs []*ActorDefs_Nux `json:"nuxs,omitempty" cborgen:"nuxs,omitempty"` ··· 42 38 } 43 39 44 40 // ActorDefs_ContentLabelPref is a "contentLabelPref" in the app.bsky.actor.defs schema. 45 - // 46 - // RECORDTYPE: ActorDefs_ContentLabelPref 47 41 type ActorDefs_ContentLabelPref struct { 48 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#contentLabelPref" cborgen:"$type,const=app.bsky.actor.defs#contentLabelPref"` 42 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#contentLabelPref"` 49 43 Label string `json:"label" cborgen:"label"` 50 44 // labelerDid: Which labeler does this preference apply to? If undefined, applies globally. 51 45 LabelerDid *string `json:"labelerDid,omitempty" cborgen:"labelerDid,omitempty"` ··· 53 47 } 54 48 55 49 // ActorDefs_FeedViewPref is a "feedViewPref" in the app.bsky.actor.defs schema. 56 - // 57 - // RECORDTYPE: ActorDefs_FeedViewPref 58 50 type ActorDefs_FeedViewPref struct { 59 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#feedViewPref" cborgen:"$type,const=app.bsky.actor.defs#feedViewPref"` 51 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#feedViewPref"` 60 52 // feed: The URI of the feed, or an identifier which describes the feed. 61 53 Feed string `json:"feed" cborgen:"feed"` 62 54 // hideQuotePosts: Hide quote posts in the feed. ··· 72 64 } 73 65 74 66 // ActorDefs_HiddenPostsPref is a "hiddenPostsPref" in the app.bsky.actor.defs schema. 75 - // 76 - // RECORDTYPE: ActorDefs_HiddenPostsPref 77 67 type ActorDefs_HiddenPostsPref struct { 78 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#hiddenPostsPref" cborgen:"$type,const=app.bsky.actor.defs#hiddenPostsPref"` 68 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#hiddenPostsPref"` 79 69 // items: A list of URIs of posts the account owner has hidden. 80 70 Items []string `json:"items" cborgen:"items"` 81 71 } 82 72 83 73 // ActorDefs_InterestsPref is a "interestsPref" in the app.bsky.actor.defs schema. 84 - // 85 - // RECORDTYPE: ActorDefs_InterestsPref 86 74 type ActorDefs_InterestsPref struct { 87 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#interestsPref" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"` 75 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#interestsPref"` 88 76 // tags: A list of tags which describe the account owner's interests gathered during onboarding. 89 77 Tags []string `json:"tags" cborgen:"tags"` 90 78 } ··· 103 91 } 104 92 105 93 // ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema. 106 - // 107 - // RECORDTYPE: ActorDefs_LabelersPref 108 94 type ActorDefs_LabelersPref struct { 109 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#labelersPref" cborgen:"$type,const=app.bsky.actor.defs#labelersPref"` 95 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#labelersPref"` 110 96 Labelers []*ActorDefs_LabelerPrefItem `json:"labelers" cborgen:"labelers"` 111 97 } 112 98 ··· 126 112 } 127 113 128 114 // ActorDefs_MutedWordsPref is a "mutedWordsPref" in the app.bsky.actor.defs schema. 129 - // 130 - // RECORDTYPE: ActorDefs_MutedWordsPref 131 115 type ActorDefs_MutedWordsPref struct { 132 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#mutedWordsPref" cborgen:"$type,const=app.bsky.actor.defs#mutedWordsPref"` 116 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#mutedWordsPref"` 133 117 // items: A list of words the account owner has muted. 134 118 Items []*ActorDefs_MutedWord `json:"items" cborgen:"items"` 135 119 } ··· 147 131 } 148 132 149 133 // ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema. 150 - // 151 - // RECORDTYPE: ActorDefs_PersonalDetailsPref 152 134 type ActorDefs_PersonalDetailsPref struct { 153 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#personalDetailsPref" cborgen:"$type,const=app.bsky.actor.defs#personalDetailsPref"` 135 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#personalDetailsPref"` 154 136 // birthDate: The birth date of account owner. 155 137 BirthDate *string `json:"birthDate,omitempty" cborgen:"birthDate,omitempty"` 156 138 } ··· 158 140 // ActorDefs_PostInteractionSettingsPref is a "postInteractionSettingsPref" in the app.bsky.actor.defs schema. 159 141 // 160 142 // 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. 161 - // 162 - // RECORDTYPE: ActorDefs_PostInteractionSettingsPref 163 143 type ActorDefs_PostInteractionSettingsPref struct { 164 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref" cborgen:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref"` 144 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#postInteractionSettingsPref"` 165 145 // 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. 166 146 PostgateEmbeddingRules []*ActorDefs_PostInteractionSettingsPref_PostgateEmbeddingRules_Elem `json:"postgateEmbeddingRules,omitempty" cborgen:"postgateEmbeddingRules,omitempty"` 167 147 // 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. ··· 177 157 t.FeedPostgate_DisableRule.LexiconTypeID = "app.bsky.feed.postgate#disableRule" 178 158 return json.Marshal(t.FeedPostgate_DisableRule) 179 159 } 180 - return nil, fmt.Errorf("cannot marshal empty enum") 160 + return nil, fmt.Errorf("can not marshal empty union as JSON") 181 161 } 162 + 182 163 func (t *ActorDefs_PostInteractionSettingsPref_PostgateEmbeddingRules_Elem) UnmarshalJSON(b []byte) error { 183 164 typ, err := util.TypeExtract(b) 184 165 if err != nil { ··· 219 200 t.FeedThreadgate_ListRule.LexiconTypeID = "app.bsky.feed.threadgate#listRule" 220 201 return json.Marshal(t.FeedThreadgate_ListRule) 221 202 } 222 - return nil, fmt.Errorf("cannot marshal empty enum") 203 + return nil, fmt.Errorf("can not marshal empty union as JSON") 223 204 } 205 + 224 206 func (t *ActorDefs_PostInteractionSettingsPref_ThreadgateAllowRules_Elem) UnmarshalJSON(b []byte) error { 225 207 typ, err := util.TypeExtract(b) 226 208 if err != nil { ··· 320 302 t.ActorDefs_VerificationPrefs.LexiconTypeID = "app.bsky.actor.defs#verificationPrefs" 321 303 return json.Marshal(t.ActorDefs_VerificationPrefs) 322 304 } 323 - return nil, fmt.Errorf("cannot marshal empty enum") 305 + return nil, fmt.Errorf("can not marshal empty union as JSON") 324 306 } 307 + 325 308 func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error { 326 309 typ, err := util.TypeExtract(b) 327 310 if err != nil { ··· 462 445 } 463 446 464 447 // ActorDefs_SavedFeedsPref is a "savedFeedsPref" in the app.bsky.actor.defs schema. 465 - // 466 - // RECORDTYPE: ActorDefs_SavedFeedsPref 467 448 type ActorDefs_SavedFeedsPref struct { 468 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPref" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPref"` 449 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPref"` 469 450 Pinned []string `json:"pinned" cborgen:"pinned"` 470 451 Saved []string `json:"saved" cborgen:"saved"` 471 452 TimelineIndex *int64 `json:"timelineIndex,omitempty" cborgen:"timelineIndex,omitempty"` 472 453 } 473 454 474 455 // ActorDefs_SavedFeedsPrefV2 is a "savedFeedsPrefV2" in the app.bsky.actor.defs schema. 475 - // 476 - // RECORDTYPE: ActorDefs_SavedFeedsPrefV2 477 456 type ActorDefs_SavedFeedsPrefV2 struct { 478 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2"` 457 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2"` 479 458 Items []*ActorDefs_SavedFeed `json:"items" cborgen:"items"` 480 459 } 481 460 ··· 502 481 t.EmbedExternal_View.LexiconTypeID = "app.bsky.embed.external#view" 503 482 return json.Marshal(t.EmbedExternal_View) 504 483 } 505 - return nil, fmt.Errorf("cannot marshal empty enum") 484 + return nil, fmt.Errorf("can not marshal empty union as JSON") 506 485 } 486 + 507 487 func (t *ActorDefs_StatusView_Embed) UnmarshalJSON(b []byte) error { 508 488 typ, err := util.TypeExtract(b) 509 489 if err != nil { ··· 521 501 } 522 502 523 503 // ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema. 524 - // 525 - // RECORDTYPE: ActorDefs_ThreadViewPref 526 504 type ActorDefs_ThreadViewPref struct { 527 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#threadViewPref" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"` 505 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"` 528 506 // prioritizeFollowedUsers: Show followed users at the top of all replies. 529 507 PrioritizeFollowedUsers *bool `json:"prioritizeFollowedUsers,omitempty" cborgen:"prioritizeFollowedUsers,omitempty"` 530 508 // sort: Sorting mode for threads. ··· 534 512 // ActorDefs_VerificationPrefs is a "verificationPrefs" in the app.bsky.actor.defs schema. 535 513 // 536 514 // Preferences for how verified accounts appear in the app. 537 - // 538 - // RECORDTYPE: ActorDefs_VerificationPrefs 539 515 type ActorDefs_VerificationPrefs struct { 540 - LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#verificationPrefs" cborgen:"$type,const=app.bsky.actor.defs#verificationPrefs"` 516 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#verificationPrefs"` 541 517 // hideBadges: Hide the blue check badges for verified accounts and trusted verifiers. 542 518 HideBadges *bool `json:"hideBadges,omitempty" cborgen:"hideBadges,omitempty"` 543 519 }
+2 -2
api/bsky/actorgetPreferences.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.getPreferences 4 4 5 - // schema: app.bsky.actor.getPreferences 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/actorgetProfile.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.getProfile 4 4 5 - // schema: app.bsky.actor.getProfile 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/actorgetProfiles.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.getProfiles 4 4 5 - // schema: app.bsky.actor.getProfiles 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/actorgetSuggestions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.getSuggestions 4 4 5 - // schema: app.bsky.actor.getSuggestions 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+8 -7
api/bsky/actorprofile.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.profile 4 4 5 - // schema: app.bsky.actor.profile 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 17 17 18 18 func init() { 19 19 util.RegisterType("app.bsky.actor.profile", &ActorProfile{}) 20 - } // 21 - // RECORDTYPE: ActorProfile 20 + } 21 + 22 22 type ActorProfile struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.actor.profile" cborgen:"$type,const=app.bsky.actor.profile"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.profile"` 24 24 // avatar: Small image to be displayed next to posts from account. AKA, 'profile picture' 25 25 Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 26 26 // banner: Larger horizontal image to display behind profile view. ··· 48 48 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels" 49 49 return json.Marshal(t.LabelDefs_SelfLabels) 50 50 } 51 - return nil, fmt.Errorf("cannot marshal empty enum") 51 + return nil, fmt.Errorf("can not marshal empty union as JSON") 52 52 } 53 + 53 54 func (t *ActorProfile_Labels) UnmarshalJSON(b []byte) error { 54 55 typ, err := util.TypeExtract(b) 55 56 if err != nil { ··· 75 76 if t.LabelDefs_SelfLabels != nil { 76 77 return t.LabelDefs_SelfLabels.MarshalCBOR(w) 77 78 } 78 - return fmt.Errorf("cannot cbor marshal empty enum") 79 + return fmt.Errorf("can not marshal empty union as CBOR") 79 80 } 80 81 func (t *ActorProfile_Labels) UnmarshalCBOR(r io.Reader) error { 81 82 typ, b, err := util.CborTypeExtractReader(r)
+2 -2
api/bsky/actorputPreferences.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.putPreferences 4 4 5 - // schema: app.bsky.actor.putPreferences 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/actorsearchActors.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.searchActors 4 4 5 - // schema: app.bsky.actor.searchActors 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/actorsearchActorsTypeahead.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.searchActorsTypeahead 4 4 5 - // schema: app.bsky.actor.searchActorsTypeahead 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+8 -7
api/bsky/actorstatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.actor.status 4 4 5 - // schema: app.bsky.actor.status 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 16 16 17 17 func init() { 18 18 util.RegisterType("app.bsky.actor.status", &ActorStatus{}) 19 - } // 20 - // RECORDTYPE: ActorStatus 19 + } 20 + 21 21 type ActorStatus struct { 22 - LexiconTypeID string `json:"$type,const=app.bsky.actor.status" cborgen:"$type,const=app.bsky.actor.status"` 22 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.status"` 23 23 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 24 24 // durationMinutes: The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. 25 25 DurationMinutes *int64 `json:"durationMinutes,omitempty" cborgen:"durationMinutes,omitempty"` ··· 39 39 t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external" 40 40 return json.Marshal(t.EmbedExternal) 41 41 } 42 - return nil, fmt.Errorf("cannot marshal empty enum") 42 + return nil, fmt.Errorf("can not marshal empty union as JSON") 43 43 } 44 + 44 45 func (t *ActorStatus_Embed) UnmarshalJSON(b []byte) error { 45 46 typ, err := util.TypeExtract(b) 46 47 if err != nil { ··· 66 67 if t.EmbedExternal != nil { 67 68 return t.EmbedExternal.MarshalCBOR(w) 68 69 } 69 - return fmt.Errorf("cannot cbor marshal empty enum") 70 + return fmt.Errorf("can not marshal empty union as CBOR") 70 71 } 71 72 func (t *ActorStatus_Embed) UnmarshalCBOR(r io.Reader) error { 72 73 typ, b, err := util.CborTypeExtractReader(r)
+2 -2
api/bsky/bookmarkcreateBookmark.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.bookmark.createBookmark 4 4 5 - // schema: app.bsky.bookmark.createBookmark 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+4 -3
api/bsky/bookmarkdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.bookmark.defs 4 4 5 - // schema: app.bsky.bookmark.defs 5 + package bsky 6 6 7 7 import ( 8 8 "encoding/json" ··· 47 47 t.FeedDefs_PostView.LexiconTypeID = "app.bsky.feed.defs#postView" 48 48 return json.Marshal(t.FeedDefs_PostView) 49 49 } 50 - return nil, fmt.Errorf("cannot marshal empty enum") 50 + return nil, fmt.Errorf("can not marshal empty union as JSON") 51 51 } 52 + 52 53 func (t *BookmarkDefs_BookmarkView_Item) UnmarshalJSON(b []byte) error { 53 54 typ, err := util.TypeExtract(b) 54 55 if err != nil {
+2 -2
api/bsky/bookmarkdeleteBookmark.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.bookmark.deleteBookmark 4 4 5 - // schema: app.bsky.bookmark.deleteBookmark 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/bookmarkgetBookmarks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.bookmark.getBookmarks 4 4 5 - // schema: app.bsky.bookmark.getBookmarks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/embeddefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.defs 4 4 5 - // schema: app.bsky.embed.defs 5 + package bsky 6 6 7 7 // EmbedDefs_AspectRatio is a "aspectRatio" in the app.bsky.embed.defs schema. 8 8 //
+8 -9
api/bsky/embedexternal.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.external 4 4 5 - // schema: app.bsky.embed.external 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.embed.external#main", &EmbedExternal{}) 13 - } // EmbedExternal is a "main" in the app.bsky.embed.external schema. 13 + } 14 + 15 + // EmbedExternal is a "main" in the app.bsky.embed.external schema. 16 + // 14 17 // A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). 15 - // 16 - // RECORDTYPE: EmbedExternal 17 18 type EmbedExternal struct { 18 - LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"` 19 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external"` 19 20 External *EmbedExternal_External `json:"external" cborgen:"external"` 20 21 } 21 22 ··· 28 29 } 29 30 30 31 // EmbedExternal_View is a "view" in the app.bsky.embed.external schema. 31 - // 32 - // RECORDTYPE: EmbedExternal_View 33 32 type EmbedExternal_View struct { 34 - LexiconTypeID string `json:"$type,const=app.bsky.embed.external#view" cborgen:"$type,const=app.bsky.embed.external#view"` 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external#view"` 35 34 External *EmbedExternal_ViewExternal `json:"external" cborgen:"external"` 36 35 } 37 36
+7 -8
api/bsky/embedimages.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.images 4 4 5 - // schema: app.bsky.embed.images 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.embed.images#main", &EmbedImages{}) 13 - } // EmbedImages is a "main" in the app.bsky.embed.images schema. 14 - // RECORDTYPE: EmbedImages 13 + } 14 + 15 + // EmbedImages is a "main" in the app.bsky.embed.images schema. 15 16 type EmbedImages struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images"` 17 18 Images []*EmbedImages_Image `json:"images" cborgen:"images"` 18 19 } 19 20 ··· 26 27 } 27 28 28 29 // EmbedImages_View is a "view" in the app.bsky.embed.images schema. 29 - // 30 - // RECORDTYPE: EmbedImages_View 31 30 type EmbedImages_View struct { 32 - LexiconTypeID string `json:"$type,const=app.bsky.embed.images#view" cborgen:"$type,const=app.bsky.embed.images#view"` 31 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images#view"` 33 32 Images []*EmbedImages_ViewImage `json:"images" cborgen:"images"` 34 33 } 35 34
+15 -22
api/bsky/embedrecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.record 4 4 5 - // schema: app.bsky.embed.record 5 + package bsky 6 6 7 7 import ( 8 8 "encoding/json" ··· 14 14 15 15 func init() { 16 16 util.RegisterType("app.bsky.embed.record#main", &EmbedRecord{}) 17 - } // EmbedRecord is a "main" in the app.bsky.embed.record schema. 18 - // RECORDTYPE: EmbedRecord 17 + } 18 + 19 + // EmbedRecord is a "main" in the app.bsky.embed.record schema. 19 20 type EmbedRecord struct { 20 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"` 21 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record"` 21 22 Record *comatprototypes.RepoStrongRef `json:"record" cborgen:"record"` 22 23 } 23 24 24 25 // EmbedRecord_View is a "view" in the app.bsky.embed.record schema. 25 - // 26 - // RECORDTYPE: EmbedRecord_View 27 26 type EmbedRecord_View struct { 28 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record#view" cborgen:"$type,const=app.bsky.embed.record#view"` 27 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#view"` 29 28 Record *EmbedRecord_View_Record `json:"record" cborgen:"record"` 30 29 } 31 30 32 31 // EmbedRecord_ViewBlocked is a "viewBlocked" in the app.bsky.embed.record schema. 33 - // 34 - // RECORDTYPE: EmbedRecord_ViewBlocked 35 32 type EmbedRecord_ViewBlocked struct { 36 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewBlocked" cborgen:"$type,const=app.bsky.embed.record#viewBlocked"` 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewBlocked"` 37 34 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"` 38 35 Blocked bool `json:"blocked" cborgen:"blocked"` 39 36 Uri string `json:"uri" cborgen:"uri"` 40 37 } 41 38 42 39 // EmbedRecord_ViewDetached is a "viewDetached" in the app.bsky.embed.record schema. 43 - // 44 - // RECORDTYPE: EmbedRecord_ViewDetached 45 40 type EmbedRecord_ViewDetached struct { 46 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewDetached" cborgen:"$type,const=app.bsky.embed.record#viewDetached"` 41 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewDetached"` 47 42 Detached bool `json:"detached" cborgen:"detached"` 48 43 Uri string `json:"uri" cborgen:"uri"` 49 44 } 50 45 51 46 // EmbedRecord_ViewNotFound is a "viewNotFound" in the app.bsky.embed.record schema. 52 - // 53 - // RECORDTYPE: EmbedRecord_ViewNotFound 54 47 type EmbedRecord_ViewNotFound struct { 55 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewNotFound" cborgen:"$type,const=app.bsky.embed.record#viewNotFound"` 48 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewNotFound"` 56 49 NotFound bool `json:"notFound" cborgen:"notFound"` 57 50 Uri string `json:"uri" cborgen:"uri"` 58 51 } 59 52 60 53 // EmbedRecord_ViewRecord is a "viewRecord" in the app.bsky.embed.record schema. 61 - // 62 - // RECORDTYPE: EmbedRecord_ViewRecord 63 54 type EmbedRecord_ViewRecord struct { 64 - LexiconTypeID string `json:"$type,const=app.bsky.embed.record#viewRecord" cborgen:"$type,const=app.bsky.embed.record#viewRecord"` 55 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#viewRecord"` 65 56 Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"` 66 57 Cid string `json:"cid" cborgen:"cid"` 67 58 Embeds []*EmbedRecord_ViewRecord_Embeds_Elem `json:"embeds,omitempty" cborgen:"embeds,omitempty"` ··· 105 96 t.EmbedRecordWithMedia_View.LexiconTypeID = "app.bsky.embed.recordWithMedia#view" 106 97 return json.Marshal(t.EmbedRecordWithMedia_View) 107 98 } 108 - return nil, fmt.Errorf("cannot marshal empty enum") 99 + return nil, fmt.Errorf("can not marshal empty union as JSON") 109 100 } 101 + 110 102 func (t *EmbedRecord_ViewRecord_Embeds_Elem) UnmarshalJSON(b []byte) error { 111 103 typ, err := util.TypeExtract(b) 112 104 if err != nil { ··· 179 171 t.GraphDefs_StarterPackViewBasic.LexiconTypeID = "app.bsky.graph.defs#starterPackViewBasic" 180 172 return json.Marshal(t.GraphDefs_StarterPackViewBasic) 181 173 } 182 - return nil, fmt.Errorf("cannot marshal empty enum") 174 + return nil, fmt.Errorf("can not marshal empty union as JSON") 183 175 } 176 + 184 177 func (t *EmbedRecord_View_Record) UnmarshalJSON(b []byte) error { 185 178 typ, err := util.TypeExtract(b) 186 179 if err != nil {
+12 -11
api/bsky/embedrecordWithMedia.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.recordWithMedia 4 4 5 - // schema: app.bsky.embed.recordWithMedia 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 16 16 17 17 func init() { 18 18 util.RegisterType("app.bsky.embed.recordWithMedia#main", &EmbedRecordWithMedia{}) 19 - } // EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema. 20 - // RECORDTYPE: EmbedRecordWithMedia 19 + } 20 + 21 + // EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema. 21 22 type EmbedRecordWithMedia struct { 22 - LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia" cborgen:"$type,const=app.bsky.embed.recordWithMedia"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.recordWithMedia"` 23 24 Media *EmbedRecordWithMedia_Media `json:"media" cborgen:"media"` 24 25 Record *EmbedRecord `json:"record" cborgen:"record"` 25 26 } ··· 43 44 t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external" 44 45 return json.Marshal(t.EmbedExternal) 45 46 } 46 - return nil, fmt.Errorf("cannot marshal empty enum") 47 + return nil, fmt.Errorf("can not marshal empty union as JSON") 47 48 } 49 + 48 50 func (t *EmbedRecordWithMedia_Media) UnmarshalJSON(b []byte) error { 49 51 typ, err := util.TypeExtract(b) 50 52 if err != nil { ··· 82 84 if t.EmbedExternal != nil { 83 85 return t.EmbedExternal.MarshalCBOR(w) 84 86 } 85 - return fmt.Errorf("cannot cbor marshal empty enum") 87 + return fmt.Errorf("can not marshal empty union as CBOR") 86 88 } 87 89 func (t *EmbedRecordWithMedia_Media) UnmarshalCBOR(r io.Reader) error { 88 90 typ, b, err := util.CborTypeExtractReader(r) ··· 107 109 } 108 110 109 111 // EmbedRecordWithMedia_View is a "view" in the app.bsky.embed.recordWithMedia schema. 110 - // 111 - // RECORDTYPE: EmbedRecordWithMedia_View 112 112 type EmbedRecordWithMedia_View struct { 113 - LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia#view" cborgen:"$type,const=app.bsky.embed.recordWithMedia#view"` 113 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.recordWithMedia#view"` 114 114 Media *EmbedRecordWithMedia_View_Media `json:"media" cborgen:"media"` 115 115 Record *EmbedRecord_View `json:"record" cborgen:"record"` 116 116 } ··· 134 134 t.EmbedExternal_View.LexiconTypeID = "app.bsky.embed.external#view" 135 135 return json.Marshal(t.EmbedExternal_View) 136 136 } 137 - return nil, fmt.Errorf("cannot marshal empty enum") 137 + return nil, fmt.Errorf("can not marshal empty union as JSON") 138 138 } 139 + 139 140 func (t *EmbedRecordWithMedia_View_Media) UnmarshalJSON(b []byte) error { 140 141 typ, err := util.TypeExtract(b) 141 142 if err != nil {
+7 -8
api/bsky/embedvideo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.embed.video 4 4 5 - // schema: app.bsky.embed.video 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.embed.video#main", &EmbedVideo{}) 13 - } // EmbedVideo is a "main" in the app.bsky.embed.video schema. 14 - // RECORDTYPE: EmbedVideo 13 + } 14 + 15 + // EmbedVideo is a "main" in the app.bsky.embed.video schema. 15 16 type EmbedVideo struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.embed.video" cborgen:"$type,const=app.bsky.embed.video"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video"` 17 18 // alt: Alt text description of the video, for accessibility. 18 19 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"` 19 20 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"` ··· 29 30 } 30 31 31 32 // EmbedVideo_View is a "view" in the app.bsky.embed.video schema. 32 - // 33 - // RECORDTYPE: EmbedVideo_View 34 33 type EmbedVideo_View struct { 35 - LexiconTypeID string `json:"$type,const=app.bsky.embed.video#view" cborgen:"$type,const=app.bsky.embed.video#view"` 34 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video#view"` 36 35 Alt *string `json:"alt,omitempty" cborgen:"alt,omitempty"` 37 36 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"` 38 37 Cid string `json:"cid" cborgen:"cid"`
+25 -36
api/bsky/feeddefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.defs 4 4 5 - // schema: app.bsky.feed.defs 5 + package bsky 6 6 7 7 import ( 8 8 "encoding/json" ··· 19 19 } 20 20 21 21 // FeedDefs_BlockedPost is a "blockedPost" in the app.bsky.feed.defs schema. 22 - // 23 - // RECORDTYPE: FeedDefs_BlockedPost 24 22 type FeedDefs_BlockedPost struct { 25 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#blockedPost" cborgen:"$type,const=app.bsky.feed.defs#blockedPost"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#blockedPost"` 26 24 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"` 27 25 Blocked bool `json:"blocked" cborgen:"blocked"` 28 26 Uri string `json:"uri" cborgen:"uri"` ··· 53 51 t.FeedDefs_ReasonPin.LexiconTypeID = "app.bsky.feed.defs#reasonPin" 54 52 return json.Marshal(t.FeedDefs_ReasonPin) 55 53 } 56 - return nil, fmt.Errorf("cannot marshal empty enum") 54 + return nil, fmt.Errorf("can not marshal empty union as JSON") 57 55 } 56 + 58 57 func (t *FeedDefs_FeedViewPost_Reason) UnmarshalJSON(b []byte) error { 59 58 typ, err := util.TypeExtract(b) 60 59 if err != nil { ··· 75 74 } 76 75 77 76 // FeedDefs_GeneratorView is a "generatorView" in the app.bsky.feed.defs schema. 78 - // 79 - // RECORDTYPE: FeedDefs_GeneratorView 80 77 type FeedDefs_GeneratorView struct { 81 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#generatorView" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` 78 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#generatorView"` 82 79 AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` 83 80 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 84 81 Cid string `json:"cid" cborgen:"cid"` ··· 111 108 } 112 109 113 110 // FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema. 114 - // 115 - // RECORDTYPE: FeedDefs_NotFoundPost 116 111 type FeedDefs_NotFoundPost struct { 117 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#notFoundPost" cborgen:"$type,const=app.bsky.feed.defs#notFoundPost"` 112 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#notFoundPost"` 118 113 NotFound bool `json:"notFound" cborgen:"notFound"` 119 114 Uri string `json:"uri" cborgen:"uri"` 120 115 } 121 116 122 117 // FeedDefs_PostView is a "postView" in the app.bsky.feed.defs schema. 123 - // 124 - // RECORDTYPE: FeedDefs_PostView 125 118 type FeedDefs_PostView struct { 126 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#postView" cborgen:"$type,const=app.bsky.feed.defs#postView"` 119 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#postView"` 127 120 Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"` 128 121 BookmarkCount *int64 `json:"bookmarkCount,omitempty" cborgen:"bookmarkCount,omitempty"` 129 122 Cid string `json:"cid" cborgen:"cid"` ··· 169 162 t.EmbedRecordWithMedia_View.LexiconTypeID = "app.bsky.embed.recordWithMedia#view" 170 163 return json.Marshal(t.EmbedRecordWithMedia_View) 171 164 } 172 - return nil, fmt.Errorf("cannot marshal empty enum") 165 + return nil, fmt.Errorf("can not marshal empty union as JSON") 173 166 } 167 + 174 168 func (t *FeedDefs_PostView_Embed) UnmarshalJSON(b []byte) error { 175 169 typ, err := util.TypeExtract(b) 176 170 if err != nil { ··· 200 194 } 201 195 202 196 // FeedDefs_ReasonPin is a "reasonPin" in the app.bsky.feed.defs schema. 203 - // 204 - // RECORDTYPE: FeedDefs_ReasonPin 205 197 type FeedDefs_ReasonPin struct { 206 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#reasonPin" cborgen:"$type,const=app.bsky.feed.defs#reasonPin"` 198 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#reasonPin"` 207 199 } 208 200 209 201 // FeedDefs_ReasonRepost is a "reasonRepost" in the app.bsky.feed.defs schema. 210 - // 211 - // RECORDTYPE: FeedDefs_ReasonRepost 212 202 type FeedDefs_ReasonRepost struct { 213 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#reasonRepost" cborgen:"$type,const=app.bsky.feed.defs#reasonRepost"` 203 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#reasonRepost"` 214 204 By *ActorDefs_ProfileViewBasic `json:"by" cborgen:"by"` 215 205 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 216 206 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` ··· 244 234 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost" 245 235 return json.Marshal(t.FeedDefs_BlockedPost) 246 236 } 247 - return nil, fmt.Errorf("cannot marshal empty enum") 237 + return nil, fmt.Errorf("can not marshal empty union as JSON") 248 238 } 239 + 249 240 func (t *FeedDefs_ReplyRef_Parent) UnmarshalJSON(b []byte) error { 250 241 typ, err := util.TypeExtract(b) 251 242 if err != nil { ··· 287 278 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost" 288 279 return json.Marshal(t.FeedDefs_BlockedPost) 289 280 } 290 - return nil, fmt.Errorf("cannot marshal empty enum") 281 + return nil, fmt.Errorf("can not marshal empty union as JSON") 291 282 } 283 + 292 284 func (t *FeedDefs_ReplyRef_Root) UnmarshalJSON(b []byte) error { 293 285 typ, err := util.TypeExtract(b) 294 286 if err != nil { ··· 333 325 t.FeedDefs_SkeletonReasonPin.LexiconTypeID = "app.bsky.feed.defs#skeletonReasonPin" 334 326 return json.Marshal(t.FeedDefs_SkeletonReasonPin) 335 327 } 336 - return nil, fmt.Errorf("cannot marshal empty enum") 328 + return nil, fmt.Errorf("can not marshal empty union as JSON") 337 329 } 330 + 338 331 func (t *FeedDefs_SkeletonFeedPost_Reason) UnmarshalJSON(b []byte) error { 339 332 typ, err := util.TypeExtract(b) 340 333 if err != nil { ··· 355 348 } 356 349 357 350 // FeedDefs_SkeletonReasonPin is a "skeletonReasonPin" in the app.bsky.feed.defs schema. 358 - // 359 - // RECORDTYPE: FeedDefs_SkeletonReasonPin 360 351 type FeedDefs_SkeletonReasonPin struct { 361 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#skeletonReasonPin" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonPin"` 352 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonPin"` 362 353 } 363 354 364 355 // FeedDefs_SkeletonReasonRepost is a "skeletonReasonRepost" in the app.bsky.feed.defs schema. 365 - // 366 - // RECORDTYPE: FeedDefs_SkeletonReasonRepost 367 356 type FeedDefs_SkeletonReasonRepost struct { 368 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#skeletonReasonRepost" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonRepost"` 357 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#skeletonReasonRepost"` 369 358 Repost string `json:"repost" cborgen:"repost"` 370 359 } 371 360 ··· 377 366 } 378 367 379 368 // FeedDefs_ThreadViewPost is a "threadViewPost" in the app.bsky.feed.defs schema. 380 - // 381 - // RECORDTYPE: FeedDefs_ThreadViewPost 382 369 type FeedDefs_ThreadViewPost struct { 383 - LexiconTypeID string `json:"$type,const=app.bsky.feed.defs#threadViewPost" cborgen:"$type,const=app.bsky.feed.defs#threadViewPost"` 370 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#threadViewPost"` 384 371 Parent *FeedDefs_ThreadViewPost_Parent `json:"parent,omitempty" cborgen:"parent,omitempty"` 385 372 Post *FeedDefs_PostView `json:"post" cborgen:"post"` 386 373 Replies []*FeedDefs_ThreadViewPost_Replies_Elem `json:"replies,omitempty" cborgen:"replies,omitempty"` ··· 406 393 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost" 407 394 return json.Marshal(t.FeedDefs_BlockedPost) 408 395 } 409 - return nil, fmt.Errorf("cannot marshal empty enum") 396 + return nil, fmt.Errorf("can not marshal empty union as JSON") 410 397 } 398 + 411 399 func (t *FeedDefs_ThreadViewPost_Parent) UnmarshalJSON(b []byte) error { 412 400 typ, err := util.TypeExtract(b) 413 401 if err != nil { ··· 449 437 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost" 450 438 return json.Marshal(t.FeedDefs_BlockedPost) 451 439 } 452 - return nil, fmt.Errorf("cannot marshal empty enum") 440 + return nil, fmt.Errorf("can not marshal empty union as JSON") 453 441 } 442 + 454 443 func (t *FeedDefs_ThreadViewPost_Replies_Elem) UnmarshalJSON(b []byte) error { 455 444 typ, err := util.TypeExtract(b) 456 445 if err != nil {
+2 -2
api/bsky/feeddescribeFeedGenerator.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.describeFeedGenerator 4 4 5 - // schema: app.bsky.feed.describeFeedGenerator 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+8 -7
api/bsky/feedgenerator.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.generator 4 4 5 - // schema: app.bsky.feed.generator 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 17 17 18 18 func init() { 19 19 util.RegisterType("app.bsky.feed.generator", &FeedGenerator{}) 20 - } // 21 - // RECORDTYPE: FeedGenerator 20 + } 21 + 22 22 type FeedGenerator struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.feed.generator" cborgen:"$type,const=app.bsky.feed.generator"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.generator"` 24 24 // acceptsInteractions: Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions 25 25 AcceptsInteractions *bool `json:"acceptsInteractions,omitempty" cborgen:"acceptsInteractions,omitempty"` 26 26 Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` ··· 44 44 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels" 45 45 return json.Marshal(t.LabelDefs_SelfLabels) 46 46 } 47 - return nil, fmt.Errorf("cannot marshal empty enum") 47 + return nil, fmt.Errorf("can not marshal empty union as JSON") 48 48 } 49 + 49 50 func (t *FeedGenerator_Labels) UnmarshalJSON(b []byte) error { 50 51 typ, err := util.TypeExtract(b) 51 52 if err != nil { ··· 71 72 if t.LabelDefs_SelfLabels != nil { 72 73 return t.LabelDefs_SelfLabels.MarshalCBOR(w) 73 74 } 74 - return fmt.Errorf("cannot cbor marshal empty enum") 75 + return fmt.Errorf("can not marshal empty union as CBOR") 75 76 } 76 77 func (t *FeedGenerator_Labels) UnmarshalCBOR(r io.Reader) error { 77 78 typ, b, err := util.CborTypeExtractReader(r)
+2 -2
api/bsky/feedgetActorFeeds.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getActorFeeds 4 4 5 - // schema: app.bsky.feed.getActorFeeds 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetActorLikes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getActorLikes 4 4 5 - // schema: app.bsky.feed.getActorLikes 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetAuthorFeed.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getAuthorFeed 4 4 5 - // schema: app.bsky.feed.getAuthorFeed 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetFeed.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getFeed 4 4 5 - // schema: app.bsky.feed.getFeed 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetFeedGenerator.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getFeedGenerator 4 4 5 - // schema: app.bsky.feed.getFeedGenerator 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetFeedGenerators.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getFeedGenerators 4 4 5 - // schema: app.bsky.feed.getFeedGenerators 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetFeedSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getFeedSkeleton 4 4 5 - // schema: app.bsky.feed.getFeedSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetLikes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getLikes 4 4 5 - // schema: app.bsky.feed.getLikes 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetListFeed.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getListFeed 4 4 5 - // schema: app.bsky.feed.getListFeed 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+4 -3
api/bsky/feedgetPostThread.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getPostThread 4 4 5 - // schema: app.bsky.feed.getPostThread 5 + package bsky 6 6 7 7 import ( 8 8 "context" ··· 37 37 t.FeedDefs_BlockedPost.LexiconTypeID = "app.bsky.feed.defs#blockedPost" 38 38 return json.Marshal(t.FeedDefs_BlockedPost) 39 39 } 40 - return nil, fmt.Errorf("cannot marshal empty enum") 40 + return nil, fmt.Errorf("can not marshal empty union as JSON") 41 41 } 42 + 42 43 func (t *FeedGetPostThread_Output_Thread) UnmarshalJSON(b []byte) error { 43 44 typ, err := util.TypeExtract(b) 44 45 if err != nil {
+2 -2
api/bsky/feedgetPosts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getPosts 4 4 5 - // schema: app.bsky.feed.getPosts 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetQuotes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getQuotes 4 4 5 - // schema: app.bsky.feed.getQuotes 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetRepostedBy.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getRepostedBy 4 4 5 - // schema: app.bsky.feed.getRepostedBy 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetSuggestedFeeds.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getSuggestedFeeds 4 4 5 - // schema: app.bsky.feed.getSuggestedFeeds 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedgetTimeline.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.getTimeline 4 4 5 - // schema: app.bsky.feed.getTimeline 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+5 -5
api/bsky/feedlike.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.like 4 4 5 - // schema: app.bsky.feed.like 5 + package bsky 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto" ··· 11 11 12 12 func init() { 13 13 util.RegisterType("app.bsky.feed.like", &FeedLike{}) 14 - } // 15 - // RECORDTYPE: FeedLike 14 + } 15 + 16 16 type FeedLike struct { 17 - LexiconTypeID string `json:"$type,const=app.bsky.feed.like" cborgen:"$type,const=app.bsky.feed.like"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.like"` 18 18 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 19 Subject *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"` 20 20 Via *comatprototypes.RepoStrongRef `json:"via,omitempty" cborgen:"via,omitempty"`
+11 -9
api/bsky/feedpost.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.post 4 4 5 - // schema: app.bsky.feed.post 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 17 17 18 18 func init() { 19 19 util.RegisterType("app.bsky.feed.post", &FeedPost{}) 20 - } // 21 - // RECORDTYPE: FeedPost 20 + } 21 + 22 22 type FeedPost struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.feed.post" cborgen:"$type,const=app.bsky.feed.post"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.post"` 24 24 // createdAt: Client-declared timestamp when this post was originally created. 25 25 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 26 26 Embed *FeedPost_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` ··· 68 68 t.EmbedRecordWithMedia.LexiconTypeID = "app.bsky.embed.recordWithMedia" 69 69 return json.Marshal(t.EmbedRecordWithMedia) 70 70 } 71 - return nil, fmt.Errorf("cannot marshal empty enum") 71 + return nil, fmt.Errorf("can not marshal empty union as JSON") 72 72 } 73 + 73 74 func (t *FeedPost_Embed) UnmarshalJSON(b []byte) error { 74 75 typ, err := util.TypeExtract(b) 75 76 if err != nil { ··· 119 120 if t.EmbedRecordWithMedia != nil { 120 121 return t.EmbedRecordWithMedia.MarshalCBOR(w) 121 122 } 122 - return fmt.Errorf("cannot cbor marshal empty enum") 123 + return fmt.Errorf("can not marshal empty union as CBOR") 123 124 } 124 125 func (t *FeedPost_Embed) UnmarshalCBOR(r io.Reader) error { 125 126 typ, b, err := util.CborTypeExtractReader(r) ··· 169 170 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels" 170 171 return json.Marshal(t.LabelDefs_SelfLabels) 171 172 } 172 - return nil, fmt.Errorf("cannot marshal empty enum") 173 + return nil, fmt.Errorf("can not marshal empty union as JSON") 173 174 } 175 + 174 176 func (t *FeedPost_Labels) UnmarshalJSON(b []byte) error { 175 177 typ, err := util.TypeExtract(b) 176 178 if err != nil { ··· 196 198 if t.LabelDefs_SelfLabels != nil { 197 199 return t.LabelDefs_SelfLabels.MarshalCBOR(w) 198 200 } 199 - return fmt.Errorf("cannot cbor marshal empty enum") 201 + return fmt.Errorf("can not marshal empty union as CBOR") 200 202 } 201 203 func (t *FeedPost_Labels) UnmarshalCBOR(r io.Reader) error { 202 204 typ, b, err := util.CborTypeExtractReader(r)
+9 -10
api/bsky/feedpostgate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.postgate 4 4 5 - // schema: app.bsky.feed.postgate 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 16 16 17 17 func init() { 18 18 util.RegisterType("app.bsky.feed.postgate", &FeedPostgate{}) 19 - } // 20 - // RECORDTYPE: FeedPostgate 19 + } 20 + 21 21 type FeedPostgate struct { 22 - LexiconTypeID string `json:"$type,const=app.bsky.feed.postgate" cborgen:"$type,const=app.bsky.feed.postgate"` 22 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.postgate"` 23 23 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 24 24 // detachedEmbeddingUris: List of AT-URIs embedding this post that the author has detached from. 25 25 DetachedEmbeddingUris []string `json:"detachedEmbeddingUris,omitempty" cborgen:"detachedEmbeddingUris,omitempty"` ··· 32 32 // FeedPostgate_DisableRule is a "disableRule" in the app.bsky.feed.postgate schema. 33 33 // 34 34 // Disables embedding of this post. 35 - // 36 - // RECORDTYPE: FeedPostgate_DisableRule 37 35 type FeedPostgate_DisableRule struct { 38 - LexiconTypeID string `json:"$type,const=app.bsky.feed.postgate#disableRule" cborgen:"$type,const=app.bsky.feed.postgate#disableRule"` 36 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.postgate#disableRule"` 39 37 } 40 38 41 39 type FeedPostgate_EmbeddingRules_Elem struct { ··· 47 45 t.FeedPostgate_DisableRule.LexiconTypeID = "app.bsky.feed.postgate#disableRule" 48 46 return json.Marshal(t.FeedPostgate_DisableRule) 49 47 } 50 - return nil, fmt.Errorf("cannot marshal empty enum") 48 + return nil, fmt.Errorf("can not marshal empty union as JSON") 51 49 } 50 + 52 51 func (t *FeedPostgate_EmbeddingRules_Elem) UnmarshalJSON(b []byte) error { 53 52 typ, err := util.TypeExtract(b) 54 53 if err != nil { ··· 74 73 if t.FeedPostgate_DisableRule != nil { 75 74 return t.FeedPostgate_DisableRule.MarshalCBOR(w) 76 75 } 77 - return fmt.Errorf("cannot cbor marshal empty enum") 76 + return fmt.Errorf("can not marshal empty union as CBOR") 78 77 } 79 78 func (t *FeedPostgate_EmbeddingRules_Elem) UnmarshalCBOR(r io.Reader) error { 80 79 typ, b, err := util.CborTypeExtractReader(r)
+5 -5
api/bsky/feedrepost.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.repost 4 4 5 - // schema: app.bsky.feed.repost 5 + package bsky 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto" ··· 11 11 12 12 func init() { 13 13 util.RegisterType("app.bsky.feed.repost", &FeedRepost{}) 14 - } // 15 - // RECORDTYPE: FeedRepost 14 + } 15 + 16 16 type FeedRepost struct { 17 - LexiconTypeID string `json:"$type,const=app.bsky.feed.repost" cborgen:"$type,const=app.bsky.feed.repost"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.repost"` 18 18 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 19 Subject *comatprototypes.RepoStrongRef `json:"subject" cborgen:"subject"` 20 20 Via *comatprototypes.RepoStrongRef `json:"via,omitempty" cborgen:"via,omitempty"`
+2 -2
api/bsky/feedsearchPosts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.searchPosts 4 4 5 - // schema: app.bsky.feed.searchPosts 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/feedsendInteractions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.sendInteractions 4 4 5 - // schema: app.bsky.feed.sendInteractions 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+12 -19
api/bsky/feedthreadgate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.feed.threadgate 4 4 5 - // schema: app.bsky.feed.threadgate 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 16 16 17 17 func init() { 18 18 util.RegisterType("app.bsky.feed.threadgate", &FeedThreadgate{}) 19 - } // 20 - // RECORDTYPE: FeedThreadgate 19 + } 20 + 21 21 type FeedThreadgate struct { 22 - LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate" cborgen:"$type,const=app.bsky.feed.threadgate"` 22 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate"` 23 23 // 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. 24 24 Allow []*FeedThreadgate_Allow_Elem `json:"allow,omitempty" cborgen:"allow,omitempty"` 25 25 CreatedAt string `json:"createdAt" cborgen:"createdAt"` ··· 53 53 t.FeedThreadgate_ListRule.LexiconTypeID = "app.bsky.feed.threadgate#listRule" 54 54 return json.Marshal(t.FeedThreadgate_ListRule) 55 55 } 56 - return nil, fmt.Errorf("cannot marshal empty enum") 56 + return nil, fmt.Errorf("can not marshal empty union as JSON") 57 57 } 58 + 58 59 func (t *FeedThreadgate_Allow_Elem) UnmarshalJSON(b []byte) error { 59 60 typ, err := util.TypeExtract(b) 60 61 if err != nil { ··· 98 99 if t.FeedThreadgate_ListRule != nil { 99 100 return t.FeedThreadgate_ListRule.MarshalCBOR(w) 100 101 } 101 - return fmt.Errorf("cannot cbor marshal empty enum") 102 + return fmt.Errorf("can not marshal empty union as CBOR") 102 103 } 103 104 func (t *FeedThreadgate_Allow_Elem) UnmarshalCBOR(r io.Reader) error { 104 105 typ, b, err := util.CborTypeExtractReader(r) ··· 128 129 // FeedThreadgate_FollowerRule is a "followerRule" in the app.bsky.feed.threadgate schema. 129 130 // 130 131 // Allow replies from actors who follow you. 131 - // 132 - // RECORDTYPE: FeedThreadgate_FollowerRule 133 132 type FeedThreadgate_FollowerRule struct { 134 - LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#followerRule" cborgen:"$type,const=app.bsky.feed.threadgate#followerRule"` 133 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#followerRule"` 135 134 } 136 135 137 136 // FeedThreadgate_FollowingRule is a "followingRule" in the app.bsky.feed.threadgate schema. 138 137 // 139 138 // Allow replies from actors you follow. 140 - // 141 - // RECORDTYPE: FeedThreadgate_FollowingRule 142 139 type FeedThreadgate_FollowingRule struct { 143 - LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#followingRule" cborgen:"$type,const=app.bsky.feed.threadgate#followingRule"` 140 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#followingRule"` 144 141 } 145 142 146 143 // FeedThreadgate_ListRule is a "listRule" in the app.bsky.feed.threadgate schema. 147 144 // 148 145 // Allow replies from actors on a list. 149 - // 150 - // RECORDTYPE: FeedThreadgate_ListRule 151 146 type FeedThreadgate_ListRule struct { 152 - LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#listRule" cborgen:"$type,const=app.bsky.feed.threadgate#listRule"` 147 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#listRule"` 153 148 List string `json:"list" cborgen:"list"` 154 149 } 155 150 156 151 // FeedThreadgate_MentionRule is a "mentionRule" in the app.bsky.feed.threadgate schema. 157 152 // 158 153 // Allow replies from actors mentioned in your post. 159 - // 160 - // RECORDTYPE: FeedThreadgate_MentionRule 161 154 type FeedThreadgate_MentionRule struct { 162 - LexiconTypeID string `json:"$type,const=app.bsky.feed.threadgate#mentionRule" cborgen:"$type,const=app.bsky.feed.threadgate#mentionRule"` 155 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.threadgate#mentionRule"` 163 156 }
+5 -5
api/bsky/graphblock.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.block 4 4 5 - // schema: app.bsky.graph.block 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.block", &GraphBlock{}) 13 - } // 14 - // RECORDTYPE: GraphBlock 13 + } 14 + 15 15 type GraphBlock struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.block" cborgen:"$type,const=app.bsky.graph.block"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.block"` 17 17 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 18 // subject: DID of the account to be blocked. 19 19 Subject string `json:"subject" cborgen:"subject"`
+6 -14
api/bsky/graphdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.defs 4 4 5 - // schema: app.bsky.graph.defs 5 + package bsky 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto" ··· 16 16 } 17 17 18 18 // GraphDefs_ListView is a "listView" in the app.bsky.graph.defs schema. 19 - // 20 - // RECORDTYPE: GraphDefs_ListView 21 19 type GraphDefs_ListView struct { 22 - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#listView" cborgen:"$type,const=app.bsky.graph.defs#listView"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#listView"` 23 21 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 24 22 Cid string `json:"cid" cborgen:"cid"` 25 23 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` ··· 56 54 // GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema. 57 55 // 58 56 // indicates that a handle or DID could not be resolved 59 - // 60 - // RECORDTYPE: GraphDefs_NotFoundActor 61 57 type GraphDefs_NotFoundActor struct { 62 - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#notFoundActor" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"` 58 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#notFoundActor"` 63 59 Actor string `json:"actor" cborgen:"actor"` 64 60 NotFound bool `json:"notFound" cborgen:"notFound"` 65 61 } ··· 67 63 // GraphDefs_Relationship is a "relationship" in the app.bsky.graph.defs schema. 68 64 // 69 65 // lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) 70 - // 71 - // RECORDTYPE: GraphDefs_Relationship 72 66 type GraphDefs_Relationship struct { 73 - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#relationship" cborgen:"$type,const=app.bsky.graph.defs#relationship"` 67 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#relationship"` 74 68 Did string `json:"did" cborgen:"did"` 75 69 // followedBy: if the actor is followed by this DID, contains the AT-URI of the follow record 76 70 FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"` ··· 94 88 } 95 89 96 90 // GraphDefs_StarterPackViewBasic is a "starterPackViewBasic" in the app.bsky.graph.defs schema. 97 - // 98 - // RECORDTYPE: GraphDefs_StarterPackViewBasic 99 91 type GraphDefs_StarterPackViewBasic struct { 100 - LexiconTypeID string `json:"$type,const=app.bsky.graph.defs#starterPackViewBasic" cborgen:"$type,const=app.bsky.graph.defs#starterPackViewBasic"` 92 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#starterPackViewBasic"` 101 93 Cid string `json:"cid" cborgen:"cid"` 102 94 Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"` 103 95 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
+5 -5
api/bsky/graphfollow.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.follow 4 4 5 - // schema: app.bsky.graph.follow 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.follow", &GraphFollow{}) 13 - } // 14 - // RECORDTYPE: GraphFollow 13 + } 14 + 15 15 type GraphFollow struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.follow" cborgen:"$type,const=app.bsky.graph.follow"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.follow"` 17 17 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 18 Subject string `json:"subject" cborgen:"subject"` 19 19 }
+2 -2
api/bsky/graphgetActorStarterPacks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getActorStarterPacks 4 4 5 - // schema: app.bsky.graph.getActorStarterPacks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetBlocks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getBlocks 4 4 5 - // schema: app.bsky.graph.getBlocks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetFollowers.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getFollowers 4 4 5 - // schema: app.bsky.graph.getFollowers 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetFollows.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getFollows 4 4 5 - // schema: app.bsky.graph.getFollows 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetKnownFollowers.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getKnownFollowers 4 4 5 - // schema: app.bsky.graph.getKnownFollowers 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetList.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getList 4 4 5 - // schema: app.bsky.graph.getList 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetListBlocks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getListBlocks 4 4 5 - // schema: app.bsky.graph.getListBlocks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetListMutes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getListMutes 4 4 5 - // schema: app.bsky.graph.getListMutes 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetLists.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getLists 4 4 5 - // schema: app.bsky.graph.getLists 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetListsWithMembership.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getListsWithMembership 4 4 5 - // schema: app.bsky.graph.getListsWithMembership 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetMutes.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getMutes 4 4 5 - // schema: app.bsky.graph.getMutes 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+4 -3
api/bsky/graphgetRelationships.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getRelationships 4 4 5 - // schema: app.bsky.graph.getRelationships 5 + package bsky 6 6 7 7 import ( 8 8 "context" ··· 32 32 t.GraphDefs_NotFoundActor.LexiconTypeID = "app.bsky.graph.defs#notFoundActor" 33 33 return json.Marshal(t.GraphDefs_NotFoundActor) 34 34 } 35 - return nil, fmt.Errorf("cannot marshal empty enum") 35 + return nil, fmt.Errorf("can not marshal empty union as JSON") 36 36 } 37 + 37 38 func (t *GraphGetRelationships_Output_Relationships_Elem) UnmarshalJSON(b []byte) error { 38 39 typ, err := util.TypeExtract(b) 39 40 if err != nil {
+2 -2
api/bsky/graphgetStarterPack.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getStarterPack 4 4 5 - // schema: app.bsky.graph.getStarterPack 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetStarterPacks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getStarterPacks 4 4 5 - // schema: app.bsky.graph.getStarterPacks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetStarterPacksWithMembership.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getStarterPacksWithMembership 4 4 5 - // schema: app.bsky.graph.getStarterPacksWithMembership 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphgetSuggestedFollowsByActor.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.getSuggestedFollowsByActor 4 4 5 - // schema: app.bsky.graph.getSuggestedFollowsByActor 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+8 -7
api/bsky/graphlist.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.list 4 4 5 - // schema: app.bsky.graph.list 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 17 17 18 18 func init() { 19 19 util.RegisterType("app.bsky.graph.list", &GraphList{}) 20 - } // 21 - // RECORDTYPE: GraphList 20 + } 21 + 22 22 type GraphList struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.graph.list" cborgen:"$type,const=app.bsky.graph.list"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.list"` 24 24 Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 25 25 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 26 26 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` ··· 41 41 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels" 42 42 return json.Marshal(t.LabelDefs_SelfLabels) 43 43 } 44 - return nil, fmt.Errorf("cannot marshal empty enum") 44 + return nil, fmt.Errorf("can not marshal empty union as JSON") 45 45 } 46 + 46 47 func (t *GraphList_Labels) UnmarshalJSON(b []byte) error { 47 48 typ, err := util.TypeExtract(b) 48 49 if err != nil { ··· 68 69 if t.LabelDefs_SelfLabels != nil { 69 70 return t.LabelDefs_SelfLabels.MarshalCBOR(w) 70 71 } 71 - return fmt.Errorf("cannot cbor marshal empty enum") 72 + return fmt.Errorf("can not marshal empty union as CBOR") 72 73 } 73 74 func (t *GraphList_Labels) UnmarshalCBOR(r io.Reader) error { 74 75 typ, b, err := util.CborTypeExtractReader(r)
+5 -5
api/bsky/graphlistblock.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.listblock 4 4 5 - // schema: app.bsky.graph.listblock 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.listblock", &GraphListblock{}) 13 - } // 14 - // RECORDTYPE: GraphListblock 13 + } 14 + 15 15 type GraphListblock struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.listblock" cborgen:"$type,const=app.bsky.graph.listblock"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.listblock"` 17 17 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 18 // subject: Reference (AT-URI) to the mod list record. 19 19 Subject string `json:"subject" cborgen:"subject"`
+5 -5
api/bsky/graphlistitem.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.listitem 4 4 5 - // schema: app.bsky.graph.listitem 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.listitem", &GraphListitem{}) 13 - } // 14 - // RECORDTYPE: GraphListitem 13 + } 14 + 15 15 type GraphListitem struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.listitem" cborgen:"$type,const=app.bsky.graph.listitem"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.listitem"` 17 17 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 18 // list: Reference (AT-URI) to the list record (app.bsky.graph.list). 19 19 List string `json:"list" cborgen:"list"`
+2 -2
api/bsky/graphmuteActor.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.muteActor 4 4 5 - // schema: app.bsky.graph.muteActor 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphmuteActorList.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.muteActorList 4 4 5 - // schema: app.bsky.graph.muteActorList 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphmuteThread.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.muteThread 4 4 5 - // schema: app.bsky.graph.muteThread 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphsearchStarterPacks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.searchStarterPacks 4 4 5 - // schema: app.bsky.graph.searchStarterPacks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+5 -5
api/bsky/graphstarterpack.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.starterpack 4 4 5 - // schema: app.bsky.graph.starterpack 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.starterpack", &GraphStarterpack{}) 13 - } // 14 - // RECORDTYPE: GraphStarterpack 13 + } 14 + 15 15 type GraphStarterpack struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.starterpack" cborgen:"$type,const=app.bsky.graph.starterpack"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.starterpack"` 17 17 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 18 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 19 19 DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
+2 -2
api/bsky/graphunmuteActor.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.unmuteActor 4 4 5 - // schema: app.bsky.graph.unmuteActor 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphunmuteActorList.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.unmuteActorList 4 4 5 - // schema: app.bsky.graph.unmuteActorList 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/graphunmuteThread.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.unmuteThread 4 4 5 - // schema: app.bsky.graph.unmuteThread 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+5 -5
api/bsky/graphverification.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.graph.verification 4 4 5 - // schema: app.bsky.graph.verification 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.graph.verification", &GraphVerification{}) 13 - } // 14 - // RECORDTYPE: GraphVerification 13 + } 14 + 15 15 type GraphVerification struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.graph.verification" cborgen:"$type,const=app.bsky.graph.verification"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.verification"` 17 17 // createdAt: Date of when the verification was created. 18 18 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 19 // 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
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.labeler.defs 4 4 5 - // schema: app.bsky.labeler.defs 5 + package bsky 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto" ··· 17 17 } 18 18 19 19 // LabelerDefs_LabelerView is a "labelerView" in the app.bsky.labeler.defs schema. 20 - // 21 - // RECORDTYPE: LabelerDefs_LabelerView 22 20 type LabelerDefs_LabelerView struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerView" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"` 21 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"` 24 22 Cid string `json:"cid" cborgen:"cid"` 25 23 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 26 24 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` ··· 31 29 } 32 30 33 31 // LabelerDefs_LabelerViewDetailed is a "labelerViewDetailed" in the app.bsky.labeler.defs schema. 34 - // 35 - // RECORDTYPE: LabelerDefs_LabelerViewDetailed 36 32 type LabelerDefs_LabelerViewDetailed struct { 37 - LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerViewDetailed" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"` 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"` 38 34 Cid string `json:"cid" cborgen:"cid"` 39 35 Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"` 40 36 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
+4 -3
api/bsky/labelergetServices.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.labeler.getServices 4 4 5 - // schema: app.bsky.labeler.getServices 5 + package bsky 6 6 7 7 import ( 8 8 "context" ··· 31 31 t.LabelerDefs_LabelerViewDetailed.LexiconTypeID = "app.bsky.labeler.defs#labelerViewDetailed" 32 32 return json.Marshal(t.LabelerDefs_LabelerViewDetailed) 33 33 } 34 - return nil, fmt.Errorf("cannot marshal empty enum") 34 + return nil, fmt.Errorf("can not marshal empty union as JSON") 35 35 } 36 + 36 37 func (t *LabelerGetServices_Output_Views_Elem) UnmarshalJSON(b []byte) error { 37 38 typ, err := util.TypeExtract(b) 38 39 if err != nil {
+8 -7
api/bsky/labelerservice.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.labeler.service 4 4 5 - // schema: app.bsky.labeler.service 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 17 17 18 18 func init() { 19 19 util.RegisterType("app.bsky.labeler.service", &LabelerService{}) 20 - } // 21 - // RECORDTYPE: LabelerService 20 + } 21 + 22 22 type LabelerService struct { 23 - LexiconTypeID string `json:"$type,const=app.bsky.labeler.service" cborgen:"$type,const=app.bsky.labeler.service"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.service"` 24 24 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 25 25 Labels *LabelerService_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"` 26 26 Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"` ··· 41 41 t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels" 42 42 return json.Marshal(t.LabelDefs_SelfLabels) 43 43 } 44 - return nil, fmt.Errorf("cannot marshal empty enum") 44 + return nil, fmt.Errorf("can not marshal empty union as JSON") 45 45 } 46 + 46 47 func (t *LabelerService_Labels) UnmarshalJSON(b []byte) error { 47 48 typ, err := util.TypeExtract(b) 48 49 if err != nil { ··· 68 69 if t.LabelDefs_SelfLabels != nil { 69 70 return t.LabelDefs_SelfLabels.MarshalCBOR(w) 70 71 } 71 - return fmt.Errorf("cannot cbor marshal empty enum") 72 + return fmt.Errorf("can not marshal empty union as CBOR") 72 73 } 73 74 func (t *LabelerService_Labels) UnmarshalCBOR(r io.Reader) error { 74 75 typ, b, err := util.CborTypeExtractReader(r)
+5 -5
api/bsky/notificationdeclaration.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.declaration 4 4 5 - // schema: app.bsky.notification.declaration 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("app.bsky.notification.declaration", &NotificationDeclaration{}) 13 - } // 14 - // RECORDTYPE: NotificationDeclaration 13 + } 14 + 15 15 type NotificationDeclaration struct { 16 - LexiconTypeID string `json:"$type,const=app.bsky.notification.declaration" cborgen:"$type,const=app.bsky.notification.declaration"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.declaration"` 17 17 // allowSubscriptions: A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. 18 18 AllowSubscriptions string `json:"allowSubscriptions" cborgen:"allowSubscriptions"` 19 19 }
+2 -2
api/bsky/notificationdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.defs 4 4 5 - // schema: app.bsky.notification.defs 5 + package bsky 6 6 7 7 // NotificationDefs_ActivitySubscription is a "activitySubscription" in the app.bsky.notification.defs schema. 8 8 type NotificationDefs_ActivitySubscription struct {
+2 -2
api/bsky/notificationgetPreferences.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.getPreferences 4 4 5 - // schema: app.bsky.notification.getPreferences 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationgetUnreadCount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.getUnreadCount 4 4 5 - // schema: app.bsky.notification.getUnreadCount 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationlistActivitySubscriptions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.listActivitySubscriptions 4 4 5 - // schema: app.bsky.notification.listActivitySubscriptions 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationlistNotifications.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.listNotifications 4 4 5 - // schema: app.bsky.notification.listNotifications 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationputActivitySubscription.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.putActivitySubscription 4 4 5 - // schema: app.bsky.notification.putActivitySubscription 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationputPreferences.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.putPreferences 4 4 5 - // schema: app.bsky.notification.putPreferences 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationputPreferencesV2.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.putPreferencesV2 4 4 5 - // schema: app.bsky.notification.putPreferencesV2 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationregisterPush.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.registerPush 4 4 5 - // schema: app.bsky.notification.registerPush 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationunregisterPush.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.unregisterPush 4 4 5 - // schema: app.bsky.notification.unregisterPush 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/notificationupdateSeen.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.notification.updateSeen 4 4 5 - // schema: app.bsky.notification.updateSeen 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+8 -13
api/bsky/richtextfacet.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.richtext.facet 4 4 5 - // schema: app.bsky.richtext.facet 5 + package bsky 6 6 7 7 import ( 8 8 "bytes" ··· 49 49 t.RichtextFacet_Tag.LexiconTypeID = "app.bsky.richtext.facet#tag" 50 50 return json.Marshal(t.RichtextFacet_Tag) 51 51 } 52 - return nil, fmt.Errorf("cannot marshal empty enum") 52 + return nil, fmt.Errorf("can not marshal empty union as JSON") 53 53 } 54 + 54 55 func (t *RichtextFacet_Features_Elem) UnmarshalJSON(b []byte) error { 55 56 typ, err := util.TypeExtract(b) 56 57 if err != nil { ··· 88 89 if t.RichtextFacet_Tag != nil { 89 90 return t.RichtextFacet_Tag.MarshalCBOR(w) 90 91 } 91 - return fmt.Errorf("cannot cbor marshal empty enum") 92 + return fmt.Errorf("can not marshal empty union as CBOR") 92 93 } 93 94 func (t *RichtextFacet_Features_Elem) UnmarshalCBOR(r io.Reader) error { 94 95 typ, b, err := util.CborTypeExtractReader(r) ··· 115 116 // RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema. 116 117 // 117 118 // Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. 118 - // 119 - // RECORDTYPE: RichtextFacet_Link 120 119 type RichtextFacet_Link struct { 121 - LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#link" cborgen:"$type,const=app.bsky.richtext.facet#link"` 120 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#link"` 122 121 Uri string `json:"uri" cborgen:"uri"` 123 122 } 124 123 125 124 // RichtextFacet_Mention is a "mention" in the app.bsky.richtext.facet schema. 126 125 // 127 126 // Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. 128 - // 129 - // RECORDTYPE: RichtextFacet_Mention 130 127 type RichtextFacet_Mention struct { 131 - LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#mention" cborgen:"$type,const=app.bsky.richtext.facet#mention"` 128 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#mention"` 132 129 Did string `json:"did" cborgen:"did"` 133 130 } 134 131 135 132 // RichtextFacet_Tag is a "tag" in the app.bsky.richtext.facet schema. 136 133 // 137 134 // 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'). 138 - // 139 - // RECORDTYPE: RichtextFacet_Tag 140 135 type RichtextFacet_Tag struct { 141 - LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#tag" cborgen:"$type,const=app.bsky.richtext.facet#tag"` 136 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#tag"` 142 137 Tag string `json:"tag" cborgen:"tag"` 143 138 }
+6 -14
api/bsky/unspecceddefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.defs 4 4 5 - // schema: app.bsky.unspecced.defs 5 + package bsky 6 6 7 7 // UnspeccedDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the app.bsky.unspecced.defs schema. 8 8 // ··· 64 64 } 65 65 66 66 // UnspeccedDefs_ThreadItemBlocked is a "threadItemBlocked" in the app.bsky.unspecced.defs schema. 67 - // 68 - // RECORDTYPE: UnspeccedDefs_ThreadItemBlocked 69 67 type UnspeccedDefs_ThreadItemBlocked struct { 70 - LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemBlocked" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemBlocked"` 68 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemBlocked"` 71 69 Author *FeedDefs_BlockedAuthor `json:"author" cborgen:"author"` 72 70 } 73 71 74 72 // UnspeccedDefs_ThreadItemNoUnauthenticated is a "threadItemNoUnauthenticated" in the app.bsky.unspecced.defs schema. 75 - // 76 - // RECORDTYPE: UnspeccedDefs_ThreadItemNoUnauthenticated 77 73 type UnspeccedDefs_ThreadItemNoUnauthenticated struct { 78 - LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated"` 74 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNoUnauthenticated"` 79 75 } 80 76 81 77 // UnspeccedDefs_ThreadItemNotFound is a "threadItemNotFound" in the app.bsky.unspecced.defs schema. 82 - // 83 - // RECORDTYPE: UnspeccedDefs_ThreadItemNotFound 84 78 type UnspeccedDefs_ThreadItemNotFound struct { 85 - LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemNotFound" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNotFound"` 79 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemNotFound"` 86 80 } 87 81 88 82 // UnspeccedDefs_ThreadItemPost is a "threadItemPost" in the app.bsky.unspecced.defs schema. 89 - // 90 - // RECORDTYPE: UnspeccedDefs_ThreadItemPost 91 83 type UnspeccedDefs_ThreadItemPost struct { 92 - LexiconTypeID string `json:"$type,const=app.bsky.unspecced.defs#threadItemPost" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemPost"` 84 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#threadItemPost"` 93 85 // hiddenByThreadgate: The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread. 94 86 HiddenByThreadgate bool `json:"hiddenByThreadgate" cborgen:"hiddenByThreadgate"` 95 87 // 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
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getAgeAssuranceState 4 4 5 - // schema: app.bsky.unspecced.getAgeAssuranceState 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetConfig.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getConfig 4 4 5 - // schema: app.bsky.unspecced.getConfig 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetOnboardingSuggestedStarterPacks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getOnboardingSuggestedStarterPacks 4 4 5 - // schema: app.bsky.unspecced.getOnboardingSuggestedStarterPacks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetOnboardingSuggestedStarterPacksSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton 4 4 5 - // schema: app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetPopularFeedGenerators.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getPopularFeedGenerators 4 4 5 - // schema: app.bsky.unspecced.getPopularFeedGenerators 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+4 -3
api/bsky/unspeccedgetPostThreadOtherV2.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getPostThreadOtherV2 4 4 5 - // schema: app.bsky.unspecced.getPostThreadOtherV2 5 + package bsky 6 6 7 7 import ( 8 8 "context" ··· 35 35 t.UnspeccedDefs_ThreadItemPost.LexiconTypeID = "app.bsky.unspecced.defs#threadItemPost" 36 36 return json.Marshal(t.UnspeccedDefs_ThreadItemPost) 37 37 } 38 - return nil, fmt.Errorf("cannot marshal empty enum") 38 + return nil, fmt.Errorf("can not marshal empty union as JSON") 39 39 } 40 + 40 41 func (t *UnspeccedGetPostThreadOtherV2_ThreadItem_Value) UnmarshalJSON(b []byte) error { 41 42 typ, err := util.TypeExtract(b) 42 43 if err != nil {
+4 -3
api/bsky/unspeccedgetPostThreadV2.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getPostThreadV2 4 4 5 - // schema: app.bsky.unspecced.getPostThreadV2 5 + package bsky 6 6 7 7 import ( 8 8 "context" ··· 53 53 t.UnspeccedDefs_ThreadItemBlocked.LexiconTypeID = "app.bsky.unspecced.defs#threadItemBlocked" 54 54 return json.Marshal(t.UnspeccedDefs_ThreadItemBlocked) 55 55 } 56 - return nil, fmt.Errorf("cannot marshal empty enum") 56 + return nil, fmt.Errorf("can not marshal empty union as JSON") 57 57 } 58 + 58 59 func (t *UnspeccedGetPostThreadV2_ThreadItem_Value) UnmarshalJSON(b []byte) error { 59 60 typ, err := util.TypeExtract(b) 60 61 if err != nil {
+2 -2
api/bsky/unspeccedgetSuggestedFeeds.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedFeeds 4 4 5 - // schema: app.bsky.unspecced.getSuggestedFeeds 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestedFeedsSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedFeedsSkeleton 4 4 5 - // schema: app.bsky.unspecced.getSuggestedFeedsSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestedStarterPacks.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedStarterPacks 4 4 5 - // schema: app.bsky.unspecced.getSuggestedStarterPacks 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestedStarterPacksSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedStarterPacksSkeleton 4 4 5 - // schema: app.bsky.unspecced.getSuggestedStarterPacksSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestedUsers.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedUsers 4 4 5 - // schema: app.bsky.unspecced.getSuggestedUsers 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestedUsersSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestedUsersSkeleton 4 4 5 - // schema: app.bsky.unspecced.getSuggestedUsersSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetSuggestionsSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getSuggestionsSkeleton 4 4 5 - // schema: app.bsky.unspecced.getSuggestionsSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetTaggedSuggestions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getTaggedSuggestions 4 4 5 - // schema: app.bsky.unspecced.getTaggedSuggestions 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetTrendingTopics.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getTrendingTopics 4 4 5 - // schema: app.bsky.unspecced.getTrendingTopics 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetTrends.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getTrends 4 4 5 - // schema: app.bsky.unspecced.getTrends 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedgetTrendsSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.getTrendsSkeleton 4 4 5 - // schema: app.bsky.unspecced.getTrendsSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedinitAgeAssurance.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.initAgeAssurance 4 4 5 - // schema: app.bsky.unspecced.initAgeAssurance 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedsearchActorsSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.searchActorsSkeleton 4 4 5 - // schema: app.bsky.unspecced.searchActorsSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedsearchPostsSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.searchPostsSkeleton 4 4 5 - // schema: app.bsky.unspecced.searchPostsSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/unspeccedsearchStarterPacksSkeleton.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.unspecced.searchStarterPacksSkeleton 4 4 5 - // schema: app.bsky.unspecced.searchStarterPacksSkeleton 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/videodefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.video.defs 4 4 5 - // schema: app.bsky.video.defs 5 + package bsky 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util"
+2 -2
api/bsky/videogetJobStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.video.getJobStatus 4 4 5 - // schema: app.bsky.video.getJobStatus 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/videogetUploadLimits.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.video.getUploadLimits 4 4 5 - // schema: app.bsky.video.getUploadLimits 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+2 -2
api/bsky/videouploadVideo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package bsky 3 + // Lexicon schema: app.bsky.video.uploadVideo 4 4 5 - // schema: app.bsky.video.uploadVideo 5 + package bsky 6 6 7 7 import ( 8 8 "context"
+5 -5
api/chat/actordeclaration.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.actor.declaration 4 4 5 - // schema: chat.bsky.actor.declaration 5 + package chat 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util" ··· 10 10 11 11 func init() { 12 12 util.RegisterType("chat.bsky.actor.declaration", &ActorDeclaration{}) 13 - } // 14 - // RECORDTYPE: ActorDeclaration 13 + } 14 + 15 15 type ActorDeclaration struct { 16 - LexiconTypeID string `json:"$type,const=chat.bsky.actor.declaration" cborgen:"$type,const=chat.bsky.actor.declaration"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.actor.declaration"` 17 17 AllowIncoming string `json:"allowIncoming" cborgen:"allowIncoming"` 18 18 }
+2 -2
api/chat/actordefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.actor.defs 4 4 5 - // schema: chat.bsky.actor.defs 5 + package chat 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
+2 -2
api/chat/actordeleteAccount.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.actor.deleteAccount 4 4 5 - // schema: chat.bsky.actor.deleteAccount 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/actorexportAccountData.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.actor.exportAccountData 4 4 5 - // schema: chat.bsky.actor.exportAccountData 5 + package chat 6 6 7 7 import ( 8 8 "bytes"
+2 -2
api/chat/convoacceptConvo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.acceptConvo 4 4 5 - // schema: chat.bsky.convo.acceptConvo 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convoaddReaction.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.addReaction 4 4 5 - // schema: chat.bsky.convo.addReaction 5 + package chat 6 6 7 7 import ( 8 8 "context"
+34 -53
api/chat/convodefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.defs 4 4 5 - // schema: chat.bsky.convo.defs 5 + package chat 6 6 7 7 import ( 8 8 "encoding/json" ··· 38 38 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 39 39 return json.Marshal(t.ConvoDefs_DeletedMessageView) 40 40 } 41 - return nil, fmt.Errorf("cannot marshal empty enum") 41 + return nil, fmt.Errorf("can not marshal empty union as JSON") 42 42 } 43 + 43 44 func (t *ConvoDefs_ConvoView_LastMessage) UnmarshalJSON(b []byte) error { 44 45 typ, err := util.TypeExtract(b) 45 46 if err != nil { ··· 68 69 t.ConvoDefs_MessageAndReactionView.LexiconTypeID = "chat.bsky.convo.defs#messageAndReactionView" 69 70 return json.Marshal(t.ConvoDefs_MessageAndReactionView) 70 71 } 71 - return nil, fmt.Errorf("cannot marshal empty enum") 72 + return nil, fmt.Errorf("can not marshal empty union as JSON") 72 73 } 74 + 73 75 func (t *ConvoDefs_ConvoView_LastReaction) UnmarshalJSON(b []byte) error { 74 76 typ, err := util.TypeExtract(b) 75 77 if err != nil { ··· 87 89 } 88 90 89 91 // ConvoDefs_DeletedMessageView is a "deletedMessageView" in the chat.bsky.convo.defs schema. 90 - // 91 - // RECORDTYPE: ConvoDefs_DeletedMessageView 92 92 type ConvoDefs_DeletedMessageView struct { 93 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#deletedMessageView" cborgen:"$type,const=chat.bsky.convo.defs#deletedMessageView"` 93 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#deletedMessageView"` 94 94 Id string `json:"id" cborgen:"id"` 95 95 Rev string `json:"rev" cborgen:"rev"` 96 96 Sender *ConvoDefs_MessageViewSender `json:"sender" cborgen:"sender"` ··· 98 98 } 99 99 100 100 // ConvoDefs_LogAcceptConvo is a "logAcceptConvo" in the chat.bsky.convo.defs schema. 101 - // 102 - // RECORDTYPE: ConvoDefs_LogAcceptConvo 103 101 type ConvoDefs_LogAcceptConvo struct { 104 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logAcceptConvo" cborgen:"$type,const=chat.bsky.convo.defs#logAcceptConvo"` 102 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logAcceptConvo"` 105 103 ConvoId string `json:"convoId" cborgen:"convoId"` 106 104 Rev string `json:"rev" cborgen:"rev"` 107 105 } 108 106 109 107 // ConvoDefs_LogAddReaction is a "logAddReaction" in the chat.bsky.convo.defs schema. 110 - // 111 - // RECORDTYPE: ConvoDefs_LogAddReaction 112 108 type ConvoDefs_LogAddReaction struct { 113 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logAddReaction" cborgen:"$type,const=chat.bsky.convo.defs#logAddReaction"` 109 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logAddReaction"` 114 110 ConvoId string `json:"convoId" cborgen:"convoId"` 115 111 Message *ConvoDefs_LogAddReaction_Message `json:"message" cborgen:"message"` 116 112 Reaction *ConvoDefs_ReactionView `json:"reaction" cborgen:"reaction"` ··· 131 127 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 132 128 return json.Marshal(t.ConvoDefs_DeletedMessageView) 133 129 } 134 - return nil, fmt.Errorf("cannot marshal empty enum") 130 + return nil, fmt.Errorf("can not marshal empty union as JSON") 135 131 } 132 + 136 133 func (t *ConvoDefs_LogAddReaction_Message) UnmarshalJSON(b []byte) error { 137 134 typ, err := util.TypeExtract(b) 138 135 if err != nil { ··· 153 150 } 154 151 155 152 // ConvoDefs_LogBeginConvo is a "logBeginConvo" in the chat.bsky.convo.defs schema. 156 - // 157 - // RECORDTYPE: ConvoDefs_LogBeginConvo 158 153 type ConvoDefs_LogBeginConvo struct { 159 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logBeginConvo" cborgen:"$type,const=chat.bsky.convo.defs#logBeginConvo"` 154 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logBeginConvo"` 160 155 ConvoId string `json:"convoId" cborgen:"convoId"` 161 156 Rev string `json:"rev" cborgen:"rev"` 162 157 } 163 158 164 159 // ConvoDefs_LogCreateMessage is a "logCreateMessage" in the chat.bsky.convo.defs schema. 165 - // 166 - // RECORDTYPE: ConvoDefs_LogCreateMessage 167 160 type ConvoDefs_LogCreateMessage struct { 168 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logCreateMessage" cborgen:"$type,const=chat.bsky.convo.defs#logCreateMessage"` 161 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logCreateMessage"` 169 162 ConvoId string `json:"convoId" cborgen:"convoId"` 170 163 Message *ConvoDefs_LogCreateMessage_Message `json:"message" cborgen:"message"` 171 164 Rev string `json:"rev" cborgen:"rev"` ··· 185 178 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 186 179 return json.Marshal(t.ConvoDefs_DeletedMessageView) 187 180 } 188 - return nil, fmt.Errorf("cannot marshal empty enum") 181 + return nil, fmt.Errorf("can not marshal empty union as JSON") 189 182 } 183 + 190 184 func (t *ConvoDefs_LogCreateMessage_Message) UnmarshalJSON(b []byte) error { 191 185 typ, err := util.TypeExtract(b) 192 186 if err != nil { ··· 207 201 } 208 202 209 203 // ConvoDefs_LogDeleteMessage is a "logDeleteMessage" in the chat.bsky.convo.defs schema. 210 - // 211 - // RECORDTYPE: ConvoDefs_LogDeleteMessage 212 204 type ConvoDefs_LogDeleteMessage struct { 213 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logDeleteMessage" cborgen:"$type,const=chat.bsky.convo.defs#logDeleteMessage"` 205 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logDeleteMessage"` 214 206 ConvoId string `json:"convoId" cborgen:"convoId"` 215 207 Message *ConvoDefs_LogDeleteMessage_Message `json:"message" cborgen:"message"` 216 208 Rev string `json:"rev" cborgen:"rev"` ··· 230 222 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 231 223 return json.Marshal(t.ConvoDefs_DeletedMessageView) 232 224 } 233 - return nil, fmt.Errorf("cannot marshal empty enum") 225 + return nil, fmt.Errorf("can not marshal empty union as JSON") 234 226 } 227 + 235 228 func (t *ConvoDefs_LogDeleteMessage_Message) UnmarshalJSON(b []byte) error { 236 229 typ, err := util.TypeExtract(b) 237 230 if err != nil { ··· 252 245 } 253 246 254 247 // ConvoDefs_LogLeaveConvo is a "logLeaveConvo" in the chat.bsky.convo.defs schema. 255 - // 256 - // RECORDTYPE: ConvoDefs_LogLeaveConvo 257 248 type ConvoDefs_LogLeaveConvo struct { 258 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logLeaveConvo" cborgen:"$type,const=chat.bsky.convo.defs#logLeaveConvo"` 249 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logLeaveConvo"` 259 250 ConvoId string `json:"convoId" cborgen:"convoId"` 260 251 Rev string `json:"rev" cborgen:"rev"` 261 252 } 262 253 263 254 // ConvoDefs_LogMuteConvo is a "logMuteConvo" in the chat.bsky.convo.defs schema. 264 - // 265 - // RECORDTYPE: ConvoDefs_LogMuteConvo 266 255 type ConvoDefs_LogMuteConvo struct { 267 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logMuteConvo" cborgen:"$type,const=chat.bsky.convo.defs#logMuteConvo"` 256 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logMuteConvo"` 268 257 ConvoId string `json:"convoId" cborgen:"convoId"` 269 258 Rev string `json:"rev" cborgen:"rev"` 270 259 } 271 260 272 261 // ConvoDefs_LogReadMessage is a "logReadMessage" in the chat.bsky.convo.defs schema. 273 - // 274 - // RECORDTYPE: ConvoDefs_LogReadMessage 275 262 type ConvoDefs_LogReadMessage struct { 276 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logReadMessage" cborgen:"$type,const=chat.bsky.convo.defs#logReadMessage"` 263 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logReadMessage"` 277 264 ConvoId string `json:"convoId" cborgen:"convoId"` 278 265 Message *ConvoDefs_LogReadMessage_Message `json:"message" cborgen:"message"` 279 266 Rev string `json:"rev" cborgen:"rev"` ··· 293 280 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 294 281 return json.Marshal(t.ConvoDefs_DeletedMessageView) 295 282 } 296 - return nil, fmt.Errorf("cannot marshal empty enum") 283 + return nil, fmt.Errorf("can not marshal empty union as JSON") 297 284 } 285 + 298 286 func (t *ConvoDefs_LogReadMessage_Message) UnmarshalJSON(b []byte) error { 299 287 typ, err := util.TypeExtract(b) 300 288 if err != nil { ··· 315 303 } 316 304 317 305 // ConvoDefs_LogRemoveReaction is a "logRemoveReaction" in the chat.bsky.convo.defs schema. 318 - // 319 - // RECORDTYPE: ConvoDefs_LogRemoveReaction 320 306 type ConvoDefs_LogRemoveReaction struct { 321 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logRemoveReaction" cborgen:"$type,const=chat.bsky.convo.defs#logRemoveReaction"` 307 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logRemoveReaction"` 322 308 ConvoId string `json:"convoId" cborgen:"convoId"` 323 309 Message *ConvoDefs_LogRemoveReaction_Message `json:"message" cborgen:"message"` 324 310 Reaction *ConvoDefs_ReactionView `json:"reaction" cborgen:"reaction"` ··· 339 325 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 340 326 return json.Marshal(t.ConvoDefs_DeletedMessageView) 341 327 } 342 - return nil, fmt.Errorf("cannot marshal empty enum") 328 + return nil, fmt.Errorf("can not marshal empty union as JSON") 343 329 } 330 + 344 331 func (t *ConvoDefs_LogRemoveReaction_Message) UnmarshalJSON(b []byte) error { 345 332 typ, err := util.TypeExtract(b) 346 333 if err != nil { ··· 361 348 } 362 349 363 350 // ConvoDefs_LogUnmuteConvo is a "logUnmuteConvo" in the chat.bsky.convo.defs schema. 364 - // 365 - // RECORDTYPE: ConvoDefs_LogUnmuteConvo 366 351 type ConvoDefs_LogUnmuteConvo struct { 367 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#logUnmuteConvo" cborgen:"$type,const=chat.bsky.convo.defs#logUnmuteConvo"` 352 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#logUnmuteConvo"` 368 353 ConvoId string `json:"convoId" cborgen:"convoId"` 369 354 Rev string `json:"rev" cborgen:"rev"` 370 355 } 371 356 372 357 // ConvoDefs_MessageAndReactionView is a "messageAndReactionView" in the chat.bsky.convo.defs schema. 373 - // 374 - // RECORDTYPE: ConvoDefs_MessageAndReactionView 375 358 type ConvoDefs_MessageAndReactionView struct { 376 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#messageAndReactionView" cborgen:"$type,const=chat.bsky.convo.defs#messageAndReactionView"` 359 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#messageAndReactionView"` 377 360 Message *ConvoDefs_MessageView `json:"message" cborgen:"message"` 378 361 Reaction *ConvoDefs_ReactionView `json:"reaction" cborgen:"reaction"` 379 362 } ··· 395 378 t.EmbedRecord.LexiconTypeID = "app.bsky.embed.record" 396 379 return json.Marshal(t.EmbedRecord) 397 380 } 398 - return nil, fmt.Errorf("cannot marshal empty enum") 381 + return nil, fmt.Errorf("can not marshal empty union as JSON") 399 382 } 383 + 400 384 func (t *ConvoDefs_MessageInput_Embed) UnmarshalJSON(b []byte) error { 401 385 typ, err := util.TypeExtract(b) 402 386 if err != nil { ··· 414 398 } 415 399 416 400 // ConvoDefs_MessageRef is a "messageRef" in the chat.bsky.convo.defs schema. 417 - // 418 - // RECORDTYPE: ConvoDefs_MessageRef 419 401 type ConvoDefs_MessageRef struct { 420 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#messageRef" cborgen:"$type,const=chat.bsky.convo.defs#messageRef"` 402 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#messageRef"` 421 403 ConvoId string `json:"convoId" cborgen:"convoId"` 422 404 Did string `json:"did" cborgen:"did"` 423 405 MessageId string `json:"messageId" cborgen:"messageId"` 424 406 } 425 407 426 408 // ConvoDefs_MessageView is a "messageView" in the chat.bsky.convo.defs schema. 427 - // 428 - // RECORDTYPE: ConvoDefs_MessageView 429 409 type ConvoDefs_MessageView struct { 430 - LexiconTypeID string `json:"$type,const=chat.bsky.convo.defs#messageView" cborgen:"$type,const=chat.bsky.convo.defs#messageView"` 410 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#messageView"` 431 411 Embed *ConvoDefs_MessageView_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 432 412 // facets: Annotations of text (mentions, URLs, hashtags, etc) 433 413 Facets []*appbskytypes.RichtextFacet `json:"facets,omitempty" cborgen:"facets,omitempty"` ··· 454 434 t.EmbedRecord_View.LexiconTypeID = "app.bsky.embed.record#view" 455 435 return json.Marshal(t.EmbedRecord_View) 456 436 } 457 - return nil, fmt.Errorf("cannot marshal empty enum") 437 + return nil, fmt.Errorf("can not marshal empty union as JSON") 458 438 } 439 + 459 440 func (t *ConvoDefs_MessageView_Embed) UnmarshalJSON(b []byte) error { 460 441 typ, err := util.TypeExtract(b) 461 442 if err != nil {
+2 -2
api/chat/convodeleteMessageForSelf.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.deleteMessageForSelf 4 4 5 - // schema: chat.bsky.convo.deleteMessageForSelf 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convogetConvo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.getConvo 4 4 5 - // schema: chat.bsky.convo.getConvo 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convogetConvoAvailability.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.getConvoAvailability 4 4 5 - // schema: chat.bsky.convo.getConvoAvailability 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convogetConvoForMembers.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.getConvoForMembers 4 4 5 - // schema: chat.bsky.convo.getConvoForMembers 5 + package chat 6 6 7 7 import ( 8 8 "context"
+4 -3
api/chat/convogetLog.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.getLog 4 4 5 - // schema: chat.bsky.convo.getLog 5 + package chat 6 6 7 7 import ( 8 8 "context" ··· 72 72 t.ConvoDefs_LogRemoveReaction.LexiconTypeID = "chat.bsky.convo.defs#logRemoveReaction" 73 73 return json.Marshal(t.ConvoDefs_LogRemoveReaction) 74 74 } 75 - return nil, fmt.Errorf("cannot marshal empty enum") 75 + return nil, fmt.Errorf("can not marshal empty union as JSON") 76 76 } 77 + 77 78 func (t *ConvoGetLog_Output_Logs_Elem) UnmarshalJSON(b []byte) error { 78 79 typ, err := util.TypeExtract(b) 79 80 if err != nil {
+4 -3
api/chat/convogetMessages.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.getMessages 4 4 5 - // schema: chat.bsky.convo.getMessages 5 + package chat 6 6 7 7 import ( 8 8 "context" ··· 32 32 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 33 33 return json.Marshal(t.ConvoDefs_DeletedMessageView) 34 34 } 35 - return nil, fmt.Errorf("cannot marshal empty enum") 35 + return nil, fmt.Errorf("can not marshal empty union as JSON") 36 36 } 37 + 37 38 func (t *ConvoGetMessages_Output_Messages_Elem) UnmarshalJSON(b []byte) error { 38 39 typ, err := util.TypeExtract(b) 39 40 if err != nil {
+2 -2
api/chat/convoleaveConvo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.leaveConvo 4 4 5 - // schema: chat.bsky.convo.leaveConvo 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convolistConvos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.listConvos 4 4 5 - // schema: chat.bsky.convo.listConvos 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convomuteConvo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.muteConvo 4 4 5 - // schema: chat.bsky.convo.muteConvo 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convoremoveReaction.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.removeReaction 4 4 5 - // schema: chat.bsky.convo.removeReaction 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convosendMessage.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.sendMessage 4 4 5 - // schema: chat.bsky.convo.sendMessage 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convosendMessageBatch.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.sendMessageBatch 4 4 5 - // schema: chat.bsky.convo.sendMessageBatch 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convounmuteConvo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.unmuteConvo 4 4 5 - // schema: chat.bsky.convo.unmuteConvo 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convoupdateAllRead.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.updateAllRead 4 4 5 - // schema: chat.bsky.convo.updateAllRead 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/convoupdateRead.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.convo.updateRead 4 4 5 - // schema: chat.bsky.convo.updateRead 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/chat/moderationgetActorMetadata.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.moderation.getActorMetadata 4 4 5 - // schema: chat.bsky.moderation.getActorMetadata 5 + package chat 6 6 7 7 import ( 8 8 "context"
+4 -3
api/chat/moderationgetMessageContext.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.moderation.getMessageContext 4 4 5 - // schema: chat.bsky.moderation.getMessageContext 5 + package chat 6 6 7 7 import ( 8 8 "context" ··· 31 31 t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView" 32 32 return json.Marshal(t.ConvoDefs_DeletedMessageView) 33 33 } 34 - return nil, fmt.Errorf("cannot marshal empty enum") 34 + return nil, fmt.Errorf("can not marshal empty union as JSON") 35 35 } 36 + 36 37 func (t *ModerationGetMessageContext_Output_Messages_Elem) UnmarshalJSON(b []byte) error { 37 38 typ, err := util.TypeExtract(b) 38 39 if err != nil {
+2 -2
api/chat/moderationupdateActorAccess.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package chat 3 + // Lexicon schema: chat.bsky.moderation.updateActorAccess 4 4 5 - // schema: chat.bsky.moderation.updateActorAccess 5 + package chat 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/communicationcreateTemplate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.communication.createTemplate 4 4 5 - // schema: tools.ozone.communication.createTemplate 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/communicationdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.communication.defs 4 4 5 - // schema: tools.ozone.communication.defs 5 + package ozone 6 6 7 7 // CommunicationDefs_TemplateView is a "templateView" in the tools.ozone.communication.defs schema. 8 8 type CommunicationDefs_TemplateView struct {
+2 -2
api/ozone/communicationdeleteTemplate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.communication.deleteTemplate 4 4 5 - // schema: tools.ozone.communication.deleteTemplate 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/communicationlistTemplates.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.communication.listTemplates 4 4 5 - // schema: tools.ozone.communication.listTemplates 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/communicationupdateTemplate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.communication.updateTemplate 4 4 5 - // schema: tools.ozone.communication.updateTemplate 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+9 -18
api/ozone/hostinggetAccountHistory.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.hosting.getAccountHistory 4 4 5 - // schema: tools.ozone.hosting.getAccountHistory 5 + package ozone 6 6 7 7 import ( 8 8 "context" ··· 13 13 ) 14 14 15 15 // HostingGetAccountHistory_AccountCreated is a "accountCreated" in the tools.ozone.hosting.getAccountHistory schema. 16 - // 17 - // RECORDTYPE: HostingGetAccountHistory_AccountCreated 18 16 type HostingGetAccountHistory_AccountCreated struct { 19 - LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated"` 20 18 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 21 19 Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"` 22 20 } 23 21 24 22 // HostingGetAccountHistory_EmailConfirmed is a "emailConfirmed" in the tools.ozone.hosting.getAccountHistory schema. 25 - // 26 - // RECORDTYPE: HostingGetAccountHistory_EmailConfirmed 27 23 type HostingGetAccountHistory_EmailConfirmed struct { 28 - LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed"` 24 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailConfirmed"` 29 25 Email string `json:"email" cborgen:"email"` 30 26 } 31 27 32 28 // HostingGetAccountHistory_EmailUpdated is a "emailUpdated" in the tools.ozone.hosting.getAccountHistory schema. 33 - // 34 - // RECORDTYPE: HostingGetAccountHistory_EmailUpdated 35 29 type HostingGetAccountHistory_EmailUpdated struct { 36 - LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated"` 30 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#emailUpdated"` 37 31 Email string `json:"email" cborgen:"email"` 38 32 } 39 33 ··· 73 67 t.HostingGetAccountHistory_HandleUpdated.LexiconTypeID = "tools.ozone.hosting.getAccountHistory#handleUpdated" 74 68 return json.Marshal(t.HostingGetAccountHistory_HandleUpdated) 75 69 } 76 - return nil, fmt.Errorf("cannot marshal empty enum") 70 + return nil, fmt.Errorf("can not marshal empty union as JSON") 77 71 } 72 + 78 73 func (t *HostingGetAccountHistory_Event_Details) UnmarshalJSON(b []byte) error { 79 74 typ, err := util.TypeExtract(b) 80 75 if err != nil { ··· 104 99 } 105 100 106 101 // HostingGetAccountHistory_HandleUpdated is a "handleUpdated" in the tools.ozone.hosting.getAccountHistory schema. 107 - // 108 - // RECORDTYPE: HostingGetAccountHistory_HandleUpdated 109 102 type HostingGetAccountHistory_HandleUpdated struct { 110 - LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated"` 103 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#handleUpdated"` 111 104 Handle string `json:"handle" cborgen:"handle"` 112 105 } 113 106 ··· 118 111 } 119 112 120 113 // HostingGetAccountHistory_PasswordUpdated is a "passwordUpdated" in the tools.ozone.hosting.getAccountHistory schema. 121 - // 122 - // RECORDTYPE: HostingGetAccountHistory_PasswordUpdated 123 114 type HostingGetAccountHistory_PasswordUpdated struct { 124 - LexiconTypeID string `json:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated"` 115 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated"` 125 116 } 126 117 127 118 // HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory".
+2 -2
api/ozone/moderationcancelScheduledActions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.cancelScheduledActions 4 4 5 - // schema: tools.ozone.moderation.cancelScheduledActions 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+59 -120
api/ozone/moderationdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.defs 4 4 5 - // schema: tools.ozone.moderation.defs 5 + package ozone 6 6 7 7 import ( 8 8 "encoding/json" ··· 16 16 // ModerationDefs_AccountEvent is a "accountEvent" in the tools.ozone.moderation.defs schema. 17 17 // 18 18 // Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 19 - // 20 - // RECORDTYPE: ModerationDefs_AccountEvent 21 19 type ModerationDefs_AccountEvent struct { 22 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#accountEvent" cborgen:"$type,const=tools.ozone.moderation.defs#accountEvent"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountEvent"` 23 21 // active: Indicates that the account has a repository which can be fetched from the host that emitted this event. 24 22 Active bool `json:"active" cborgen:"active"` 25 23 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` ··· 28 26 } 29 27 30 28 // ModerationDefs_AccountHosting is a "accountHosting" in the tools.ozone.moderation.defs schema. 31 - // 32 - // RECORDTYPE: ModerationDefs_AccountHosting 33 29 type ModerationDefs_AccountHosting struct { 34 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#accountHosting" cborgen:"$type,const=tools.ozone.moderation.defs#accountHosting"` 30 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountHosting"` 35 31 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 36 32 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"` 37 33 DeletedAt *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"` ··· 59 55 // ModerationDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the tools.ozone.moderation.defs schema. 60 56 // 61 57 // Age assurance info coming directly from users. Only works on DID subjects. 62 - // 63 - // RECORDTYPE: ModerationDefs_AgeAssuranceEvent 64 58 type ModerationDefs_AgeAssuranceEvent struct { 65 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent"` 59 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent"` 66 60 // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format. 67 61 AttemptId string `json:"attemptId" cborgen:"attemptId"` 68 62 // completeIp: The IP address used when completing the AA flow. ··· 82 76 // ModerationDefs_AgeAssuranceOverrideEvent is a "ageAssuranceOverrideEvent" in the tools.ozone.moderation.defs schema. 83 77 // 84 78 // Age assurance status override by moderators. Only works on DID subjects. 85 - // 86 - // RECORDTYPE: ModerationDefs_AgeAssuranceOverrideEvent 87 79 type ModerationDefs_AgeAssuranceOverrideEvent struct { 88 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent"` 80 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent"` 89 81 // comment: Comment describing the reason for the override. 90 82 Comment string `json:"comment" cborgen:"comment"` 91 83 // 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. ··· 116 108 t.ModerationDefs_VideoDetails.LexiconTypeID = "tools.ozone.moderation.defs#videoDetails" 117 109 return json.Marshal(t.ModerationDefs_VideoDetails) 118 110 } 119 - return nil, fmt.Errorf("cannot marshal empty enum") 111 + return nil, fmt.Errorf("can not marshal empty union as JSON") 120 112 } 113 + 121 114 func (t *ModerationDefs_BlobView_Details) UnmarshalJSON(b []byte) error { 122 115 typ, err := util.TypeExtract(b) 123 116 if err != nil { ··· 140 133 // ModerationDefs_CancelScheduledTakedownEvent is a "cancelScheduledTakedownEvent" in the tools.ozone.moderation.defs schema. 141 134 // 142 135 // Logs cancellation of a scheduled takedown action for an account. 143 - // 144 - // RECORDTYPE: ModerationDefs_CancelScheduledTakedownEvent 145 136 type ModerationDefs_CancelScheduledTakedownEvent struct { 146 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent" cborgen:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent"` 137 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#cancelScheduledTakedownEvent"` 147 138 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 148 139 } 149 140 150 141 // ModerationDefs_IdentityEvent is a "identityEvent" in the tools.ozone.moderation.defs schema. 151 142 // 152 143 // Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 153 - // 154 - // RECORDTYPE: ModerationDefs_IdentityEvent 155 144 type ModerationDefs_IdentityEvent struct { 156 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#identityEvent" cborgen:"$type,const=tools.ozone.moderation.defs#identityEvent"` 145 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#identityEvent"` 157 146 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 158 147 Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"` 159 148 PdsHost *string `json:"pdsHost,omitempty" cborgen:"pdsHost,omitempty"` ··· 162 151 } 163 152 164 153 // ModerationDefs_ImageDetails is a "imageDetails" in the tools.ozone.moderation.defs schema. 165 - // 166 - // RECORDTYPE: ModerationDefs_ImageDetails 167 154 type ModerationDefs_ImageDetails struct { 168 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#imageDetails" cborgen:"$type,const=tools.ozone.moderation.defs#imageDetails"` 155 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#imageDetails"` 169 156 Height int64 `json:"height" cborgen:"height"` 170 157 Width int64 `json:"width" cborgen:"width"` 171 158 } 172 159 173 160 // ModerationDefs_ModEventAcknowledge is a "modEventAcknowledge" in the tools.ozone.moderation.defs schema. 174 - // 175 - // RECORDTYPE: ModerationDefs_ModEventAcknowledge 176 161 type ModerationDefs_ModEventAcknowledge struct { 177 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge" cborgen:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge"` 162 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventAcknowledge"` 178 163 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged). 179 164 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"` 180 165 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` ··· 183 168 // ModerationDefs_ModEventComment is a "modEventComment" in the tools.ozone.moderation.defs schema. 184 169 // 185 170 // Add a comment to a subject. An empty comment will clear any previously set sticky comment. 186 - // 187 - // RECORDTYPE: ModerationDefs_ModEventComment 188 171 type ModerationDefs_ModEventComment struct { 189 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventComment" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"` 172 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventComment"` 190 173 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 191 174 // sticky: Make the comment persistent on the subject 192 175 Sticky *bool `json:"sticky,omitempty" cborgen:"sticky,omitempty"` ··· 195 178 // ModerationDefs_ModEventDivert is a "modEventDivert" in the tools.ozone.moderation.defs schema. 196 179 // 197 180 // Divert a record's blobs to a 3rd party service for further scanning/tagging 198 - // 199 - // RECORDTYPE: ModerationDefs_ModEventDivert 200 181 type ModerationDefs_ModEventDivert struct { 201 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventDivert" cborgen:"$type,const=tools.ozone.moderation.defs#modEventDivert"` 182 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventDivert"` 202 183 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 203 184 } 204 185 205 186 // ModerationDefs_ModEventEmail is a "modEventEmail" in the tools.ozone.moderation.defs schema. 206 187 // 207 - // # Keep a log of outgoing email to a user 208 - // 209 - // RECORDTYPE: ModerationDefs_ModEventEmail 188 + // Keep a log of outgoing email to a user 210 189 type ModerationDefs_ModEventEmail struct { 211 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventEmail" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEmail"` 190 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEmail"` 212 191 // comment: Additional comment about the outgoing comm. 213 192 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 214 193 // content: The content of the email sent to the user. ··· 218 197 } 219 198 220 199 // ModerationDefs_ModEventEscalate is a "modEventEscalate" in the tools.ozone.moderation.defs schema. 221 - // 222 - // RECORDTYPE: ModerationDefs_ModEventEscalate 223 200 type ModerationDefs_ModEventEscalate struct { 224 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventEscalate" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEscalate"` 201 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventEscalate"` 225 202 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 226 203 } 227 204 228 205 // ModerationDefs_ModEventLabel is a "modEventLabel" in the tools.ozone.moderation.defs schema. 229 206 // 230 207 // Apply/Negate labels on a subject 231 - // 232 - // RECORDTYPE: ModerationDefs_ModEventLabel 233 208 type ModerationDefs_ModEventLabel struct { 234 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventLabel" cborgen:"$type,const=tools.ozone.moderation.defs#modEventLabel"` 209 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventLabel"` 235 210 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 236 211 CreateLabelVals []string `json:"createLabelVals" cborgen:"createLabelVals"` 237 212 // durationInHours: Indicates how long the label will remain on the subject. Only applies on labels that are being added. ··· 241 216 242 217 // ModerationDefs_ModEventMute is a "modEventMute" in the tools.ozone.moderation.defs schema. 243 218 // 244 - // # Mute incoming reports on a subject 245 - // 246 - // RECORDTYPE: ModerationDefs_ModEventMute 219 + // Mute incoming reports on a subject 247 220 type ModerationDefs_ModEventMute struct { 248 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventMute" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMute"` 221 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMute"` 249 222 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 250 223 // durationInHours: Indicates how long the subject should remain muted. 251 224 DurationInHours int64 `json:"durationInHours" cborgen:"durationInHours"` ··· 253 226 254 227 // ModerationDefs_ModEventMuteReporter is a "modEventMuteReporter" in the tools.ozone.moderation.defs schema. 255 228 // 256 - // # Mute incoming reports from an account 257 - // 258 - // RECORDTYPE: ModerationDefs_ModEventMuteReporter 229 + // Mute incoming reports from an account 259 230 type ModerationDefs_ModEventMuteReporter struct { 260 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter"` 231 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventMuteReporter"` 261 232 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 262 233 // durationInHours: Indicates how long the account should remain muted. Falsy value here means a permanent mute. 263 234 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` ··· 266 237 // ModerationDefs_ModEventPriorityScore is a "modEventPriorityScore" in the tools.ozone.moderation.defs schema. 267 238 // 268 239 // Set priority score of the subject. Higher score means higher priority. 269 - // 270 - // RECORDTYPE: ModerationDefs_ModEventPriorityScore 271 240 type ModerationDefs_ModEventPriorityScore struct { 272 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore" cborgen:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore"` 241 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventPriorityScore"` 273 242 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 274 243 Score int64 `json:"score" cborgen:"score"` 275 244 } 276 245 277 246 // ModerationDefs_ModEventReport is a "modEventReport" in the tools.ozone.moderation.defs schema. 278 247 // 279 - // # Report a subject 280 - // 281 - // RECORDTYPE: ModerationDefs_ModEventReport 248 + // Report a subject 282 249 type ModerationDefs_ModEventReport struct { 283 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventReport" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReport"` 250 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReport"` 284 251 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 285 252 // 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. 286 253 IsReporterMuted *bool `json:"isReporterMuted,omitempty" cborgen:"isReporterMuted,omitempty"` ··· 289 256 290 257 // ModerationDefs_ModEventResolveAppeal is a "modEventResolveAppeal" in the tools.ozone.moderation.defs schema. 291 258 // 292 - // # Resolve appeal on a subject 293 - // 294 - // RECORDTYPE: ModerationDefs_ModEventResolveAppeal 259 + // Resolve appeal on a subject 295 260 type ModerationDefs_ModEventResolveAppeal struct { 296 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal" cborgen:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal"` 261 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventResolveAppeal"` 297 262 // comment: Describe resolution. 298 263 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 299 264 } 300 265 301 266 // ModerationDefs_ModEventReverseTakedown is a "modEventReverseTakedown" in the tools.ozone.moderation.defs schema. 302 267 // 303 - // # Revert take down action on a subject 304 - // 305 - // RECORDTYPE: ModerationDefs_ModEventReverseTakedown 268 + // Revert take down action on a subject 306 269 type ModerationDefs_ModEventReverseTakedown struct { 307 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"` 270 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"` 308 271 // comment: Describe reasoning behind the reversal. 309 272 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 310 273 } ··· 312 275 // ModerationDefs_ModEventTag is a "modEventTag" in the tools.ozone.moderation.defs schema. 313 276 // 314 277 // Add/Remove a tag on a subject 315 - // 316 - // RECORDTYPE: ModerationDefs_ModEventTag 317 278 type ModerationDefs_ModEventTag struct { 318 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTag" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTag"` 279 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTag"` 319 280 // add: Tags to be added to the subject. If already exists, won't be duplicated. 320 281 Add []string `json:"add" cborgen:"add"` 321 282 // comment: Additional comment about added/removed tags. ··· 326 287 327 288 // ModerationDefs_ModEventTakedown is a "modEventTakedown" in the tools.ozone.moderation.defs schema. 328 289 // 329 - // # Take down a subject permanently or temporarily 330 - // 331 - // RECORDTYPE: ModerationDefs_ModEventTakedown 290 + // Take down a subject permanently or temporarily 332 291 type ModerationDefs_ModEventTakedown struct { 333 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventTakedown" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"` 292 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventTakedown"` 334 293 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged). 335 294 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"` 336 295 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` ··· 342 301 343 302 // ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema. 344 303 // 345 - // # Unmute action on a subject 346 - // 347 - // RECORDTYPE: ModerationDefs_ModEventUnmute 304 + // Unmute action on a subject 348 305 type ModerationDefs_ModEventUnmute struct { 349 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventUnmute" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmute"` 306 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmute"` 350 307 // comment: Describe reasoning behind the reversal. 351 308 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 352 309 } 353 310 354 311 // ModerationDefs_ModEventUnmuteReporter is a "modEventUnmuteReporter" in the tools.ozone.moderation.defs schema. 355 312 // 356 - // # Unmute incoming reports from an account 357 - // 358 - // RECORDTYPE: ModerationDefs_ModEventUnmuteReporter 313 + // Unmute incoming reports from an account 359 314 type ModerationDefs_ModEventUnmuteReporter struct { 360 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter"` 315 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventUnmuteReporter"` 361 316 // comment: Describe reasoning behind the reversal. 362 317 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 363 318 } ··· 510 465 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent" 511 466 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent) 512 467 } 513 - return nil, fmt.Errorf("cannot marshal empty enum") 468 + return nil, fmt.Errorf("can not marshal empty union as JSON") 514 469 } 470 + 515 471 func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error { 516 472 typ, err := util.TypeExtract(b) 517 473 if err != nil { ··· 621 577 t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound" 622 578 return json.Marshal(t.ModerationDefs_RecordViewNotFound) 623 579 } 624 - return nil, fmt.Errorf("cannot marshal empty enum") 580 + return nil, fmt.Errorf("can not marshal empty union as JSON") 625 581 } 582 + 626 583 func (t *ModerationDefs_ModEventViewDetail_Subject) UnmarshalJSON(b []byte) error { 627 584 typ, err := util.TypeExtract(b) 628 585 if err != nil { ··· 772 729 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent" 773 730 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent) 774 731 } 775 - return nil, fmt.Errorf("cannot marshal empty enum") 732 + return nil, fmt.Errorf("can not marshal empty union as JSON") 776 733 } 734 + 777 735 func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error { 778 736 typ, err := util.TypeExtract(b) 779 737 if err != nil { ··· 878 836 t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef" 879 837 return json.Marshal(t.ConvoDefs_MessageRef) 880 838 } 881 - return nil, fmt.Errorf("cannot marshal empty enum") 839 + return nil, fmt.Errorf("can not marshal empty union as JSON") 882 840 } 841 + 883 842 func (t *ModerationDefs_ModEventView_Subject) UnmarshalJSON(b []byte) error { 884 843 typ, err := util.TypeExtract(b) 885 844 if err != nil { ··· 925 884 // ModerationDefs_RecordEvent is a "recordEvent" in the tools.ozone.moderation.defs schema. 926 885 // 927 886 // Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. 928 - // 929 - // RECORDTYPE: ModerationDefs_RecordEvent 930 887 type ModerationDefs_RecordEvent struct { 931 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordEvent" cborgen:"$type,const=tools.ozone.moderation.defs#recordEvent"` 888 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordEvent"` 932 889 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 933 890 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 934 891 Op string `json:"op" cborgen:"op"` ··· 936 893 } 937 894 938 895 // ModerationDefs_RecordHosting is a "recordHosting" in the tools.ozone.moderation.defs schema. 939 - // 940 - // RECORDTYPE: ModerationDefs_RecordHosting 941 896 type ModerationDefs_RecordHosting struct { 942 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordHosting" cborgen:"$type,const=tools.ozone.moderation.defs#recordHosting"` 897 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordHosting"` 943 898 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 944 899 DeletedAt *string `json:"deletedAt,omitempty" cborgen:"deletedAt,omitempty"` 945 900 Status string `json:"status" cborgen:"status"` ··· 947 902 } 948 903 949 904 // ModerationDefs_RecordView is a "recordView" in the tools.ozone.moderation.defs schema. 950 - // 951 - // RECORDTYPE: ModerationDefs_RecordView 952 905 type ModerationDefs_RecordView struct { 953 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordView" cborgen:"$type,const=tools.ozone.moderation.defs#recordView"` 906 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordView"` 954 907 BlobCids []string `json:"blobCids" cborgen:"blobCids"` 955 908 Cid string `json:"cid" cborgen:"cid"` 956 909 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` ··· 961 914 } 962 915 963 916 // ModerationDefs_RecordViewDetail is a "recordViewDetail" in the tools.ozone.moderation.defs schema. 964 - // 965 - // RECORDTYPE: ModerationDefs_RecordViewDetail 966 917 type ModerationDefs_RecordViewDetail struct { 967 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewDetail"` 918 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewDetail"` 968 919 Blobs []*ModerationDefs_BlobView `json:"blobs" cborgen:"blobs"` 969 920 Cid string `json:"cid" cborgen:"cid"` 970 921 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` ··· 976 927 } 977 928 978 929 // ModerationDefs_RecordViewNotFound is a "recordViewNotFound" in the tools.ozone.moderation.defs schema. 979 - // 980 - // RECORDTYPE: ModerationDefs_RecordViewNotFound 981 930 type ModerationDefs_RecordViewNotFound struct { 982 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#recordViewNotFound" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewNotFound"` 931 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordViewNotFound"` 983 932 Uri string `json:"uri" cborgen:"uri"` 984 933 } 985 934 ··· 1006 955 } 1007 956 1008 957 // ModerationDefs_RepoView is a "repoView" in the tools.ozone.moderation.defs schema. 1009 - // 1010 - // RECORDTYPE: ModerationDefs_RepoView 1011 958 type ModerationDefs_RepoView struct { 1012 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoView" cborgen:"$type,const=tools.ozone.moderation.defs#repoView"` 959 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoView"` 1013 960 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"` 1014 961 Did string `json:"did" cborgen:"did"` 1015 962 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` ··· 1024 971 } 1025 972 1026 973 // ModerationDefs_RepoViewDetail is a "repoViewDetail" in the tools.ozone.moderation.defs schema. 1027 - // 1028 - // RECORDTYPE: ModerationDefs_RepoViewDetail 1029 974 type ModerationDefs_RepoViewDetail struct { 1030 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoViewDetail" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewDetail"` 975 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewDetail"` 1031 976 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"` 1032 977 Did string `json:"did" cborgen:"did"` 1033 978 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` ··· 1045 990 } 1046 991 1047 992 // ModerationDefs_RepoViewNotFound is a "repoViewNotFound" in the tools.ozone.moderation.defs schema. 1048 - // 1049 - // RECORDTYPE: ModerationDefs_RepoViewNotFound 1050 993 type ModerationDefs_RepoViewNotFound struct { 1051 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#repoViewNotFound" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewNotFound"` 994 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#repoViewNotFound"` 1052 995 Did string `json:"did" cborgen:"did"` 1053 996 } 1054 997 ··· 1076 1019 // ModerationDefs_RevokeAccountCredentialsEvent is a "revokeAccountCredentialsEvent" in the tools.ozone.moderation.defs schema. 1077 1020 // 1078 1021 // Account credentials revocation by moderators. Only works on DID subjects. 1079 - // 1080 - // RECORDTYPE: ModerationDefs_RevokeAccountCredentialsEvent 1081 1022 type ModerationDefs_RevokeAccountCredentialsEvent struct { 1082 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent" cborgen:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent"` 1023 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#revokeAccountCredentialsEvent"` 1083 1024 // comment: Comment describing the reason for the revocation. 1084 1025 Comment string `json:"comment" cborgen:"comment"` 1085 1026 } ··· 1087 1028 // ModerationDefs_ScheduleTakedownEvent is a "scheduleTakedownEvent" in the tools.ozone.moderation.defs schema. 1088 1029 // 1089 1030 // Logs a scheduled takedown action for an account. 1090 - // 1091 - // RECORDTYPE: ModerationDefs_ScheduleTakedownEvent 1092 1031 type ModerationDefs_ScheduleTakedownEvent struct { 1093 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent" cborgen:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent"` 1032 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#scheduleTakedownEvent"` 1094 1033 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 1095 1034 ExecuteAfter *string `json:"executeAfter,omitempty" cborgen:"executeAfter,omitempty"` 1096 1035 ExecuteAt *string `json:"executeAt,omitempty" cborgen:"executeAt,omitempty"` ··· 1185 1124 t.ModerationDefs_RecordHosting.LexiconTypeID = "tools.ozone.moderation.defs#recordHosting" 1186 1125 return json.Marshal(t.ModerationDefs_RecordHosting) 1187 1126 } 1188 - return nil, fmt.Errorf("cannot marshal empty enum") 1127 + return nil, fmt.Errorf("can not marshal empty union as JSON") 1189 1128 } 1129 + 1190 1130 func (t *ModerationDefs_SubjectStatusView_Hosting) UnmarshalJSON(b []byte) error { 1191 1131 typ, err := util.TypeExtract(b) 1192 1132 if err != nil { ··· 1225 1165 t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef" 1226 1166 return json.Marshal(t.ConvoDefs_MessageRef) 1227 1167 } 1228 - return nil, fmt.Errorf("cannot marshal empty enum") 1168 + return nil, fmt.Errorf("can not marshal empty union as JSON") 1229 1169 } 1170 + 1230 1171 func (t *ModerationDefs_SubjectStatusView_Subject) UnmarshalJSON(b []byte) error { 1231 1172 typ, err := util.TypeExtract(b) 1232 1173 if err != nil { ··· 1262 1203 } 1263 1204 1264 1205 // ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema. 1265 - // 1266 - // RECORDTYPE: ModerationDefs_VideoDetails 1267 1206 type ModerationDefs_VideoDetails struct { 1268 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#videoDetails" cborgen:"$type,const=tools.ozone.moderation.defs#videoDetails"` 1207 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#videoDetails"` 1269 1208 Height int64 `json:"height" cborgen:"height"` 1270 1209 Length int64 `json:"length" cborgen:"length"` 1271 1210 Width int64 `json:"width" cborgen:"width"`
+6 -4
api/ozone/moderationemitEvent.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.emitEvent 4 4 5 - // schema: tools.ozone.moderation.emitEvent 5 + package ozone 6 6 7 7 import ( 8 8 "context" ··· 148 148 t.ModerationDefs_CancelScheduledTakedownEvent.LexiconTypeID = "tools.ozone.moderation.defs#cancelScheduledTakedownEvent" 149 149 return json.Marshal(t.ModerationDefs_CancelScheduledTakedownEvent) 150 150 } 151 - return nil, fmt.Errorf("cannot marshal empty enum") 151 + return nil, fmt.Errorf("can not marshal empty union as JSON") 152 152 } 153 + 153 154 func (t *ModerationEmitEvent_Input_Event) UnmarshalJSON(b []byte) error { 154 155 typ, err := util.TypeExtract(b) 155 156 if err != nil { ··· 249 250 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 250 251 return json.Marshal(t.RepoStrongRef) 251 252 } 252 - return nil, fmt.Errorf("cannot marshal empty enum") 253 + return nil, fmt.Errorf("can not marshal empty union as JSON") 253 254 } 255 + 254 256 func (t *ModerationEmitEvent_Input_Subject) UnmarshalJSON(b []byte) error { 255 257 typ, err := util.TypeExtract(b) 256 258 if err != nil {
+2 -2
api/ozone/moderationgetAccountTimeline.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getAccountTimeline 4 4 5 - // schema: tools.ozone.moderation.getAccountTimeline 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationgetEvent.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getEvent 4 4 5 - // schema: tools.ozone.moderation.getEvent 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationgetRecord.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getRecord 4 4 5 - // schema: tools.ozone.moderation.getRecord 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+4 -3
api/ozone/moderationgetRecords.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getRecords 4 4 5 - // schema: tools.ozone.moderation.getRecords 5 + package ozone 6 6 7 7 import ( 8 8 "context" ··· 31 31 t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound" 32 32 return json.Marshal(t.ModerationDefs_RecordViewNotFound) 33 33 } 34 - return nil, fmt.Errorf("cannot marshal empty enum") 34 + return nil, fmt.Errorf("can not marshal empty union as JSON") 35 35 } 36 + 36 37 func (t *ModerationGetRecords_Output_Records_Elem) UnmarshalJSON(b []byte) error { 37 38 typ, err := util.TypeExtract(b) 38 39 if err != nil {
+2 -2
api/ozone/moderationgetRepo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getRepo 4 4 5 - // schema: tools.ozone.moderation.getRepo 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationgetReporterStats.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getReporterStats 4 4 5 - // schema: tools.ozone.moderation.getReporterStats 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+4 -3
api/ozone/moderationgetRepos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getRepos 4 4 5 - // schema: tools.ozone.moderation.getRepos 5 + package ozone 6 6 7 7 import ( 8 8 "context" ··· 31 31 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound" 32 32 return json.Marshal(t.ModerationDefs_RepoViewNotFound) 33 33 } 34 - return nil, fmt.Errorf("cannot marshal empty enum") 34 + return nil, fmt.Errorf("can not marshal empty union as JSON") 35 35 } 36 + 36 37 func (t *ModerationGetRepos_Output_Repos_Elem) UnmarshalJSON(b []byte) error { 37 38 typ, err := util.TypeExtract(b) 38 39 if err != nil {
+2 -2
api/ozone/moderationgetSubjects.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.getSubjects 4 4 5 - // schema: tools.ozone.moderation.getSubjects 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationlistScheduledActions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.listScheduledActions 4 4 5 - // schema: tools.ozone.moderation.listScheduledActions 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationqueryEvents.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.queryEvents 4 4 5 - // schema: tools.ozone.moderation.queryEvents 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/moderationqueryStatuses.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.queryStatuses 4 4 5 - // schema: tools.ozone.moderation.queryStatuses 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+6 -7
api/ozone/moderationscheduleAction.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.scheduleAction 4 4 5 - // schema: tools.ozone.moderation.scheduleAction 5 + package ozone 6 6 7 7 import ( 8 8 "context" ··· 39 39 t.ModerationScheduleAction_Takedown.LexiconTypeID = "tools.ozone.moderation.scheduleAction#takedown" 40 40 return json.Marshal(t.ModerationScheduleAction_Takedown) 41 41 } 42 - return nil, fmt.Errorf("cannot marshal empty enum") 42 + return nil, fmt.Errorf("can not marshal empty union as JSON") 43 43 } 44 + 44 45 func (t *ModerationScheduleAction_Input_Action) UnmarshalJSON(b []byte) error { 45 46 typ, err := util.TypeExtract(b) 46 47 if err != nil { ··· 77 78 78 79 // ModerationScheduleAction_Takedown is a "takedown" in the tools.ozone.moderation.scheduleAction schema. 79 80 // 80 - // # Schedule a takedown action 81 - // 82 - // RECORDTYPE: ModerationScheduleAction_Takedown 81 + // Schedule a takedown action 83 82 type ModerationScheduleAction_Takedown struct { 84 - LexiconTypeID string `json:"$type,const=tools.ozone.moderation.scheduleAction#takedown" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#takedown"` 83 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#takedown"` 85 84 // acknowledgeAccountSubjects: If true, all other reports on content authored by this account will be resolved (acknowledged). 86 85 AcknowledgeAccountSubjects *bool `json:"acknowledgeAccountSubjects,omitempty" cborgen:"acknowledgeAccountSubjects,omitempty"` 87 86 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
+2 -2
api/ozone/moderationsearchRepos.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.moderation.searchRepos 4 4 5 - // schema: tools.ozone.moderation.searchRepos 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/reportdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.report.defs 4 4 5 - // schema: tools.ozone.report.defs 5 + package ozone
+2 -2
api/ozone/safelinkaddRule.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.addRule 4 4 5 - // schema: tools.ozone.safelink.addRule 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/safelinkdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.defs 4 4 5 - // schema: tools.ozone.safelink.defs 5 + package ozone 6 6 7 7 // SafelinkDefs_Event is a "event" in the tools.ozone.safelink.defs schema. 8 8 //
+2 -2
api/ozone/safelinkqueryEvents.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.queryEvents 4 4 5 - // schema: tools.ozone.safelink.queryEvents 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/safelinkqueryRules.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.queryRules 4 4 5 - // schema: tools.ozone.safelink.queryRules 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/safelinkremoveRule.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.removeRule 4 4 5 - // schema: tools.ozone.safelink.removeRule 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/safelinkupdateRule.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.safelink.updateRule 4 4 5 - // schema: tools.ozone.safelink.updateRule 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/servergetConfig.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.server.getConfig 4 4 5 - // schema: tools.ozone.server.getConfig 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setaddValues.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.addValues 4 4 5 - // schema: tools.ozone.set.addValues 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.defs 4 4 5 - // schema: tools.ozone.set.defs 5 + package ozone 6 6 7 7 // SetDefs_Set is a "set" in the tools.ozone.set.defs schema. 8 8 type SetDefs_Set struct {
+2 -2
api/ozone/setdeleteSet.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.deleteSet 4 4 5 - // schema: tools.ozone.set.deleteSet 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setdeleteValues.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.deleteValues 4 4 5 - // schema: tools.ozone.set.deleteValues 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setgetValues.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.getValues 4 4 5 - // schema: tools.ozone.set.getValues 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setquerySets.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.querySets 4 4 5 - // schema: tools.ozone.set.querySets 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/settingdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.setting.defs 4 4 5 - // schema: tools.ozone.setting.defs 5 + package ozone 6 6 7 7 import ( 8 8 "github.com/bluesky-social/indigo/lex/util"
+2 -2
api/ozone/settinglistOptions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.setting.listOptions 4 4 5 - // schema: tools.ozone.setting.listOptions 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/settingremoveOptions.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.setting.removeOptions 4 4 5 - // schema: tools.ozone.setting.removeOptions 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/settingupsertOption.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.setting.upsertOption 4 4 5 - // schema: tools.ozone.setting.upsertOption 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/setupsertSet.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.set.upsertSet 4 4 5 - // schema: tools.ozone.set.upsertSet 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/signaturedefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.signature.defs 4 4 5 - // schema: tools.ozone.signature.defs 5 + package ozone 6 6 7 7 // SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema. 8 8 type SignatureDefs_SigDetail struct {
+2 -2
api/ozone/signaturefindCorrelation.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.signature.findCorrelation 4 4 5 - // schema: tools.ozone.signature.findCorrelation 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/signaturefindRelatedAccounts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.signature.findRelatedAccounts 4 4 5 - // schema: tools.ozone.signature.findRelatedAccounts 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/signaturesearchAccounts.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.signature.searchAccounts 4 4 5 - // schema: tools.ozone.signature.searchAccounts 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/teamaddMember.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.team.addMember 4 4 5 - // schema: tools.ozone.team.addMember 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/teamdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.team.defs 4 4 5 - // schema: tools.ozone.team.defs 5 + package ozone 6 6 7 7 import ( 8 8 appbskytypes "github.com/bluesky-social/indigo/api/bsky"
+2 -2
api/ozone/teamdeleteMember.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.team.deleteMember 4 4 5 - // schema: tools.ozone.team.deleteMember 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/teamlistMembers.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.team.listMembers 4 4 5 - // schema: tools.ozone.team.listMembers 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/teamupdateMember.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.team.updateMember 4 4 5 - // schema: tools.ozone.team.updateMember 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+6 -4
api/ozone/verificationdefs.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.verification.defs 4 4 5 - // schema: tools.ozone.verification.defs 5 + package ozone 6 6 7 7 import ( 8 8 "encoding/json" ··· 53 53 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound" 54 54 return json.Marshal(t.ModerationDefs_RepoViewNotFound) 55 55 } 56 - return nil, fmt.Errorf("cannot marshal empty enum") 56 + return nil, fmt.Errorf("can not marshal empty union as JSON") 57 57 } 58 + 58 59 func (t *VerificationDefs_VerificationView_IssuerRepo) UnmarshalJSON(b []byte) error { 59 60 typ, err := util.TypeExtract(b) 60 61 if err != nil { ··· 88 89 t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound" 89 90 return json.Marshal(t.ModerationDefs_RepoViewNotFound) 90 91 } 91 - return nil, fmt.Errorf("cannot marshal empty enum") 92 + return nil, fmt.Errorf("can not marshal empty union as JSON") 92 93 } 94 + 93 95 func (t *VerificationDefs_VerificationView_SubjectRepo) UnmarshalJSON(b []byte) error { 94 96 typ, err := util.TypeExtract(b) 95 97 if err != nil {
+2 -2
api/ozone/verificationgrantVerifications.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.verification.grantVerifications 4 4 5 - // schema: tools.ozone.verification.grantVerifications 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/verificationlistVerifications.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.verification.listVerifications 4 4 5 - // schema: tools.ozone.verification.listVerifications 5 + package ozone 6 6 7 7 import ( 8 8 "context"
+2 -2
api/ozone/verificationrevokeVerifications.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package ozone 3 + // Lexicon schema: tools.ozone.verification.revokeVerifications 4 4 5 - // schema: tools.ozone.verification.revokeVerifications 5 + package ozone 6 6 7 7 import ( 8 8 "context"