this repo has no description
0
fork

Configure Feed

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

run new lexgen code

This mostly matches previous lexgen output. The biggest differences are
with ordering of definitions and some fields and whitespace.

This run does roll up a small number of actual lexicon changes, notably
the com.atproto.lexicon.resolveLexicon endpoint (which the old lexgen
did not support) and updates to getPostThreadV2.

+1004 -794
+7 -4
api/atproto/admindefs.go
··· 10 10 11 11 // AdminDefs_AccountView is a "accountView" in the com.atproto.admin.defs schema. 12 12 type AdminDefs_AccountView struct { 13 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#accountView"` 13 14 DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"` 14 15 Did string `json:"did" cborgen:"did"` 15 16 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` ··· 40 41 41 42 // AdminDefs_StatusAttr is a "statusAttr" in the com.atproto.admin.defs schema. 42 43 type AdminDefs_StatusAttr struct { 43 - Applied bool `json:"applied" cborgen:"applied"` 44 - Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 44 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#statusAttr"` 45 + Applied bool `json:"applied" cborgen:"applied"` 46 + Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 45 47 } 46 48 47 49 // AdminDefs_ThreatSignature is a "threatSignature" in the com.atproto.admin.defs schema. 48 50 type AdminDefs_ThreatSignature struct { 49 - Property string `json:"property" cborgen:"property"` 50 - Value string `json:"value" cborgen:"value"` 51 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.admin.defs#threatSignature"` 52 + Property string `json:"property" cborgen:"property"` 53 + Value string `json:"value" cborgen:"value"` 51 54 }
+2 -1
api/atproto/identitydefs.go
··· 6 6 7 7 // IdentityDefs_IdentityInfo is a "identityInfo" in the com.atproto.identity.defs schema. 8 8 type IdentityDefs_IdentityInfo struct { 9 - Did string `json:"did" cborgen:"did"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.identity.defs#identityInfo"` 10 + Did string `json:"did" cborgen:"did"` 10 11 // didDoc: The complete DID document for the identity. 11 12 DidDoc interface{} `json:"didDoc" cborgen:"didDoc"` 12 13 // handle: The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
+4
api/atproto/labeldefs.go
··· 12 12 // 13 13 // Metadata tag on an atproto resource (eg, repo or record). 14 14 type LabelDefs_Label struct { 15 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#label"` 15 16 // cid: Optionally, CID specifying the specific version of 'uri' resource this label applies to. 16 17 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 17 18 // cts: Timestamp when this label was created. ··· 36 37 // 37 38 // Declares a label value and its expected interpretations and behaviors. 38 39 type LabelDefs_LabelValueDefinition struct { 40 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#labelValueDefinition"` 39 41 // adultOnly: Does the user need to have adult content enabled in order to configure this label? 40 42 AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"` 41 43 // blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. ··· 53 55 // 54 56 // Strings which describe the label in the UI, localized into a specific language. 55 57 type LabelDefs_LabelValueDefinitionStrings struct { 58 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#labelValueDefinitionStrings"` 56 59 // description: A longer description of what the label means and why it might be applied. 57 60 Description string `json:"description" cborgen:"description"` 58 61 // lang: The code of the language these strings are written in. ··· 65 68 // 66 69 // Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. 67 70 type LabelDefs_SelfLabel struct { 71 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.label.defs#selfLabel"` 68 72 // val: The short string name of the value or type of this label. 69 73 Val string `json:"val" cborgen:"val"` 70 74 }
+36
api/atproto/lexiconresolveLexicon.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + // Lexicon schema: com.atproto.lexicon.resolveLexicon 4 + 5 + package atproto 6 + 7 + import ( 8 + "context" 9 + 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // LexiconResolveLexicon_Output is the output of a com.atproto.lexicon.resolveLexicon call. 14 + type LexiconResolveLexicon_Output struct { 15 + // cid: The CID of the lexicon schema record. 16 + Cid string `json:"cid" cborgen:"cid"` 17 + // schema: The resolved lexicon schema record. 18 + Schema *LexiconSchema `json:"schema" cborgen:"schema"` 19 + // uri: The AT-URI of the lexicon schema record. 20 + Uri string `json:"uri" cborgen:"uri"` 21 + } 22 + 23 + // LexiconResolveLexicon calls the XRPC method "com.atproto.lexicon.resolveLexicon". 24 + // 25 + // nsid: The lexicon NSID to resolve. 26 + func LexiconResolveLexicon(ctx context.Context, c lexutil.LexClient, nsid string) (*LexiconResolveLexicon_Output, error) { 27 + var out LexiconResolveLexicon_Output 28 + 29 + params := map[string]interface{}{} 30 + params["nsid"] = nsid 31 + if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.lexicon.resolveLexicon", params, nil, &out); err != nil { 32 + return nil, err 33 + } 34 + 35 + return &out, nil 36 + }
+11 -10
api/atproto/moderationcreateReport.go
··· 57 57 } 58 58 } 59 59 60 - // ModerationCreateReport_ModTool is a "modTool" in the com.atproto.moderation.createReport schema. 61 - // 62 - // Moderation tool information for tracing the source of the action 63 - type ModerationCreateReport_ModTool struct { 64 - // meta: Additional arbitrary metadata about the source 65 - Meta *interface{} `json:"meta,omitempty" cborgen:"meta,omitempty"` 66 - // name: Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome') 67 - Name string `json:"name" cborgen:"name"` 68 - } 69 - 70 60 // ModerationCreateReport_Output is the output of a com.atproto.moderation.createReport call. 71 61 type ModerationCreateReport_Output struct { 72 62 CreatedAt string `json:"createdAt" cborgen:"createdAt"` ··· 121 111 122 112 return &out, nil 123 113 } 114 + 115 + // ModerationCreateReport_ModTool is a "modTool" in the com.atproto.moderation.createReport schema. 116 + // 117 + // Moderation tool information for tracing the source of the action 118 + type ModerationCreateReport_ModTool struct { 119 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.moderation.createReport#modTool"` 120 + // meta: Additional arbitrary metadata about the source 121 + Meta *interface{} `json:"meta,omitempty" cborgen:"meta,omitempty"` 122 + // name: Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome') 123 + Name string `json:"name" cborgen:"name"` 124 + }
+43 -43
api/atproto/repoapplyWrites.go
··· 12 12 lexutil "github.com/bluesky-social/indigo/lex/util" 13 13 ) 14 14 15 - // RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema. 16 - // 17 - // Operation which creates a new record. 18 - type RepoApplyWrites_Create struct { 19 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#create"` 20 - Collection string `json:"collection" cborgen:"collection"` 21 - // rkey: NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. 22 - Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"` 23 - Value *lexutil.LexiconTypeDecoder `json:"value" cborgen:"value"` 24 - } 25 - 26 - // RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema. 27 - type RepoApplyWrites_CreateResult struct { 28 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"` 29 - Cid string `json:"cid" cborgen:"cid"` 30 - Uri string `json:"uri" cborgen:"uri"` 31 - ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"` 32 - } 33 - 34 - // RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema. 35 - // 36 - // Operation which deletes an existing record. 37 - type RepoApplyWrites_Delete struct { 38 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"` 39 - Collection string `json:"collection" cborgen:"collection"` 40 - Rkey string `json:"rkey" cborgen:"rkey"` 41 - } 42 - 43 - // RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema. 44 - type RepoApplyWrites_DeleteResult struct { 45 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"` 46 - } 47 - 48 15 // RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call. 49 16 type RepoApplyWrites_Input struct { 50 17 // repo: The handle or DID of the repo (aka, current account). ··· 148 115 } 149 116 } 150 117 118 + // RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites". 119 + func RepoApplyWrites(ctx context.Context, c lexutil.LexClient, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) { 120 + var out RepoApplyWrites_Output 121 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil { 122 + return nil, err 123 + } 124 + 125 + return &out, nil 126 + } 127 + 128 + // RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema. 129 + // 130 + // Operation which creates a new record. 131 + type RepoApplyWrites_Create struct { 132 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#create"` 133 + Collection string `json:"collection" cborgen:"collection"` 134 + // rkey: NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. 135 + Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"` 136 + Value *lexutil.LexiconTypeDecoder `json:"value" cborgen:"value"` 137 + } 138 + 139 + // RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema. 140 + type RepoApplyWrites_CreateResult struct { 141 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"` 142 + Cid string `json:"cid" cborgen:"cid"` 143 + Uri string `json:"uri" cborgen:"uri"` 144 + ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"` 145 + } 146 + 147 + // RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema. 148 + // 149 + // Operation which deletes an existing record. 150 + type RepoApplyWrites_Delete struct { 151 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"` 152 + Collection string `json:"collection" cborgen:"collection"` 153 + Rkey string `json:"rkey" cborgen:"rkey"` 154 + } 155 + 156 + // RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema. 157 + type RepoApplyWrites_DeleteResult struct { 158 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"` 159 + } 160 + 151 161 // RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema. 152 162 // 153 163 // Operation which updates an existing record. ··· 165 175 Uri string `json:"uri" cborgen:"uri"` 166 176 ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"` 167 177 } 168 - 169 - // RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites". 170 - func RepoApplyWrites(ctx context.Context, c lexutil.LexClient, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) { 171 - var out RepoApplyWrites_Output 172 - if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil { 173 - return nil, err 174 - } 175 - 176 - return &out, nil 177 - }
+3 -2
api/atproto/repodefs.go
··· 6 6 7 7 // RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema. 8 8 type RepoDefs_CommitMeta struct { 9 - Cid string `json:"cid" cborgen:"cid"` 10 - Rev string `json:"rev" cborgen:"rev"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.defs#commitMeta"` 10 + Cid string `json:"cid" cborgen:"cid"` 11 + Rev string `json:"rev" cborgen:"rev"` 11 12 }
+7 -6
api/atproto/repolistMissingBlobs.go
··· 16 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 17 } 18 18 19 - // RepoListMissingBlobs_RecordBlob is a "recordBlob" in the com.atproto.repo.listMissingBlobs schema. 20 - type RepoListMissingBlobs_RecordBlob struct { 21 - Cid string `json:"cid" cborgen:"cid"` 22 - RecordUri string `json:"recordUri" cborgen:"recordUri"` 23 - } 24 - 25 19 // RepoListMissingBlobs calls the XRPC method "com.atproto.repo.listMissingBlobs". 26 20 func RepoListMissingBlobs(ctx context.Context, c lexutil.LexClient, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) { 27 21 var out RepoListMissingBlobs_Output ··· 39 33 40 34 return &out, nil 41 35 } 36 + 37 + // RepoListMissingBlobs_RecordBlob is a "recordBlob" in the com.atproto.repo.listMissingBlobs schema. 38 + type RepoListMissingBlobs_RecordBlob struct { 39 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.listMissingBlobs#recordBlob"` 40 + Cid string `json:"cid" cborgen:"cid"` 41 + RecordUri string `json:"recordUri" cborgen:"recordUri"` 42 + }
+10 -9
api/atproto/repolistRecords.go
··· 16 16 Records []*RepoListRecords_Record `json:"records" cborgen:"records"` 17 17 } 18 18 19 - // RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema. 20 - type RepoListRecords_Record struct { 21 - Cid string `json:"cid" cborgen:"cid"` 22 - Uri string `json:"uri" cborgen:"uri"` 23 - Value *lexutil.LexiconTypeDecoder `json:"value" cborgen:"value"` 24 - } 25 - 26 19 // RepoListRecords calls the XRPC method "com.atproto.repo.listRecords". 27 20 // 28 21 // collection: The NSID of the record type. ··· 33 26 var out RepoListRecords_Output 34 27 35 28 params := map[string]interface{}{} 36 - params["collection"] = collection 37 29 if cursor != "" { 38 30 params["cursor"] = cursor 39 31 } 40 32 if limit != 0 { 41 33 params["limit"] = limit 42 34 } 43 - params["repo"] = repo 44 35 if reverse { 45 36 params["reverse"] = reverse 46 37 } 38 + params["collection"] = collection 39 + params["repo"] = repo 47 40 if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil { 48 41 return nil, err 49 42 } 50 43 51 44 return &out, nil 52 45 } 46 + 47 + // RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema. 48 + type RepoListRecords_Record struct { 49 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.repo.listRecords#record"` 50 + Cid string `json:"cid" cborgen:"cid"` 51 + Uri string `json:"uri" cborgen:"uri"` 52 + Value *lexutil.LexiconTypeDecoder `json:"value" cborgen:"value"` 53 + }
+1 -1
api/atproto/repoputRecord.go
··· 23 23 // swapCommit: Compare and swap with the previous commit by CID. 24 24 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"` 25 25 // swapRecord: Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation 26 - SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"` 26 + SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"` 27 27 // validate: Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. 28 28 Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"` 29 29 }
-1
api/atproto/repostrongRef.go
··· 12 12 lexutil.RegisterType("com.atproto.repo.strongRef#main", &RepoStrongRef{}) 13 13 } 14 14 15 - // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema. 16 15 type RepoStrongRef struct { 17 16 LexiconTypeID string `json:"$type,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"` 18 17 Cid string `json:"cid" cborgen:"cid"`
-1
api/atproto/servercreateAccount.go
··· 29 29 } 30 30 31 31 // ServerCreateAccount_Output is the output of a com.atproto.server.createAccount call. 32 - // 33 32 // Account login session returned on successful account creation. 34 33 type ServerCreateAccount_Output struct { 35 34 AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
+9 -8
api/atproto/servercreateAppPassword.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema. 14 - type ServerCreateAppPassword_AppPassword struct { 15 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 16 - Name string `json:"name" cborgen:"name"` 17 - Password string `json:"password" cborgen:"password"` 18 - Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 19 - } 20 - 21 13 // ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call. 22 14 type ServerCreateAppPassword_Input struct { 23 15 // name: A short name for the App Password, to help distinguish them. ··· 35 27 36 28 return &out, nil 37 29 } 30 + 31 + // ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema. 32 + type ServerCreateAppPassword_AppPassword struct { 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.createAppPassword#appPassword"` 34 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 35 + Name string `json:"name" cborgen:"name"` 36 + Password string `json:"password" cborgen:"password"` 37 + Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 38 + }
+7 -6
api/atproto/servercreateInviteCodes.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema. 14 - type ServerCreateInviteCodes_AccountCodes struct { 15 - Account string `json:"account" cborgen:"account"` 16 - Codes []string `json:"codes" cborgen:"codes"` 17 - } 18 - 19 13 // ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call. 20 14 type ServerCreateInviteCodes_Input struct { 21 15 CodeCount int64 `json:"codeCount" cborgen:"codeCount"` ··· 37 31 38 32 return &out, nil 39 33 } 34 + 35 + // ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema. 36 + type ServerCreateInviteCodes_AccountCodes struct { 37 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.createInviteCodes#accountCodes"` 38 + Account string `json:"account" cborgen:"account"` 39 + Codes []string `json:"codes" cborgen:"codes"` 40 + }
+11 -9
api/atproto/serverdefs.go
··· 6 6 7 7 // ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema. 8 8 type ServerDefs_InviteCode struct { 9 - Available int64 `json:"available" cborgen:"available"` 10 - Code string `json:"code" cborgen:"code"` 11 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 12 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 13 - Disabled bool `json:"disabled" cborgen:"disabled"` 14 - ForAccount string `json:"forAccount" cborgen:"forAccount"` 15 - Uses []*ServerDefs_InviteCodeUse `json:"uses" cborgen:"uses"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.defs#inviteCode"` 10 + Available int64 `json:"available" cborgen:"available"` 11 + Code string `json:"code" cborgen:"code"` 12 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 13 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 14 + Disabled bool `json:"disabled" cborgen:"disabled"` 15 + ForAccount string `json:"forAccount" cborgen:"forAccount"` 16 + Uses []*ServerDefs_InviteCodeUse `json:"uses" cborgen:"uses"` 16 17 } 17 18 18 19 // ServerDefs_InviteCodeUse is a "inviteCodeUse" in the com.atproto.server.defs schema. 19 20 type ServerDefs_InviteCodeUse struct { 20 - UsedAt string `json:"usedAt" cborgen:"usedAt"` 21 - UsedBy string `json:"usedBy" cborgen:"usedBy"` 21 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.defs#inviteCodeUse"` 22 + UsedAt string `json:"usedAt" cborgen:"usedAt"` 23 + UsedBy string `json:"usedBy" cborgen:"usedBy"` 22 24 }
+13 -11
api/atproto/serverdescribeServer.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema. 14 - type ServerDescribeServer_Contact struct { 15 - Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 16 - } 17 - 18 - // ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema. 19 - type ServerDescribeServer_Links struct { 20 - PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` 21 - TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"` 22 - } 23 - 24 13 // ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call. 25 14 type ServerDescribeServer_Output struct { 26 15 // availableUserDomains: List of domain suffixes that can be used in account handles. ··· 45 34 46 35 return &out, nil 47 36 } 37 + 38 + // ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema. 39 + type ServerDescribeServer_Contact struct { 40 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.describeServer#contact"` 41 + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 42 + } 43 + 44 + // ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema. 45 + type ServerDescribeServer_Links struct { 46 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.describeServer#links"` 47 + PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` 48 + TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"` 49 + }
+1 -1
api/atproto/servergetServiceAuth.go
··· 24 24 var out ServerGetServiceAuth_Output 25 25 26 26 params := map[string]interface{}{} 27 - params["aud"] = aud 28 27 if exp != 0 { 29 28 params["exp"] = exp 30 29 } 31 30 if lxm != "" { 32 31 params["lxm"] = lxm 33 32 } 33 + params["aud"] = aud 34 34 if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil { 35 35 return nil, err 36 36 }
+8 -7
api/atproto/serverlistAppPasswords.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema. 14 - type ServerListAppPasswords_AppPassword struct { 15 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 16 - Name string `json:"name" cborgen:"name"` 17 - Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 18 - } 19 - 20 13 // ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call. 21 14 type ServerListAppPasswords_Output struct { 22 15 Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"` ··· 31 24 32 25 return &out, nil 33 26 } 27 + 28 + // ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema. 29 + type ServerListAppPasswords_AppPassword struct { 30 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.server.listAppPasswords#appPassword"` 31 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 32 + Name string `json:"name" cborgen:"name"` 33 + Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 34 + }
+1 -1
api/atproto/syncgetRepo.go
··· 19 19 buf := new(bytes.Buffer) 20 20 21 21 params := map[string]interface{}{} 22 - params["did"] = did 23 22 if since != "" { 24 23 params["since"] = since 25 24 } 25 + params["did"] = did 26 26 if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil { 27 27 return nil, err 28 28 }
+1 -1
api/atproto/synclistBlobs.go
··· 27 27 if cursor != "" { 28 28 params["cursor"] = cursor 29 29 } 30 - params["did"] = did 31 30 if limit != 0 { 32 31 params["limit"] = limit 33 32 } 34 33 if since != "" { 35 34 params["since"] = since 36 35 } 36 + params["did"] = did 37 37 if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil { 38 38 return nil, err 39 39 }
+11 -10
api/atproto/synclistHosts.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // SyncListHosts_Host is a "host" in the com.atproto.sync.listHosts schema. 14 - type SyncListHosts_Host struct { 15 - AccountCount *int64 `json:"accountCount,omitempty" cborgen:"accountCount,omitempty"` 16 - // hostname: hostname of server; not a URL (no scheme) 17 - Hostname string `json:"hostname" cborgen:"hostname"` 18 - // seq: Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). 19 - Seq *int64 `json:"seq,omitempty" cborgen:"seq,omitempty"` 20 - Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 21 - } 22 - 23 13 // SyncListHosts_Output is the output of a com.atproto.sync.listHosts call. 24 14 type SyncListHosts_Output struct { 25 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` ··· 44 34 45 35 return &out, nil 46 36 } 37 + 38 + // SyncListHosts_Host is a "host" in the com.atproto.sync.listHosts schema. 39 + type SyncListHosts_Host struct { 40 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.sync.listHosts#host"` 41 + AccountCount *int64 `json:"accountCount,omitempty" cborgen:"accountCount,omitempty"` 42 + // hostname: hostname of server; not a URL (no scheme) 43 + Hostname string `json:"hostname" cborgen:"hostname"` 44 + // seq: Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). 45 + Seq *int64 `json:"seq,omitempty" cborgen:"seq,omitempty"` 46 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 47 + }
+12 -11
api/atproto/synclistRepos.go
··· 16 16 Repos []*SyncListRepos_Repo `json:"repos" cborgen:"repos"` 17 17 } 18 18 19 - // SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema. 20 - type SyncListRepos_Repo struct { 21 - Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 22 - Did string `json:"did" cborgen:"did"` 23 - // head: Current repo commit CID 24 - Head string `json:"head" cborgen:"head"` 25 - Rev string `json:"rev" cborgen:"rev"` 26 - // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. 27 - Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 28 - } 29 - 30 19 // SyncListRepos calls the XRPC method "com.atproto.sync.listRepos". 31 20 func SyncListRepos(ctx context.Context, c lexutil.LexClient, cursor string, limit int64) (*SyncListRepos_Output, error) { 32 21 var out SyncListRepos_Output ··· 44 33 45 34 return &out, nil 46 35 } 36 + 37 + // SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema. 38 + type SyncListRepos_Repo struct { 39 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.sync.listRepos#repo"` 40 + Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 41 + Did string `json:"did" cborgen:"did"` 42 + // head: Current repo commit CID 43 + Head string `json:"head" cborgen:"head"` 44 + Rev string `json:"rev" cborgen:"rev"` 45 + // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. 46 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 47 + }
+7 -6
api/atproto/synclistReposByCollection.go
··· 16 16 Repos []*SyncListReposByCollection_Repo `json:"repos" cborgen:"repos"` 17 17 } 18 18 19 - // SyncListReposByCollection_Repo is a "repo" in the com.atproto.sync.listReposByCollection schema. 20 - type SyncListReposByCollection_Repo struct { 21 - Did string `json:"did" cborgen:"did"` 22 - } 23 - 24 19 // SyncListReposByCollection calls the XRPC method "com.atproto.sync.listReposByCollection". 25 20 // 26 21 // limit: Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. ··· 28 23 var out SyncListReposByCollection_Output 29 24 30 25 params := map[string]interface{}{} 31 - params["collection"] = collection 32 26 if cursor != "" { 33 27 params["cursor"] = cursor 34 28 } 35 29 if limit != 0 { 36 30 params["limit"] = limit 37 31 } 32 + params["collection"] = collection 38 33 if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil { 39 34 return nil, err 40 35 } 41 36 42 37 return &out, nil 43 38 } 39 + 40 + // SyncListReposByCollection_Repo is a "repo" in the com.atproto.sync.listReposByCollection schema. 41 + type SyncListReposByCollection_Repo struct { 42 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.sync.listReposByCollection#repo"` 43 + Did string `json:"did" cborgen:"did"` 44 + }
+4 -4
api/atproto/syncsubscribeRepos.go
··· 27 27 type SyncSubscribeRepos_Commit struct { 28 28 Blobs []lexutil.LexLink `json:"blobs" cborgen:"blobs"` 29 29 // blocks: CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. 30 - Blocks lexutil.LexBytes `json:"blocks,omitempty" cborgen:"blocks,omitempty"` 30 + Blocks lexutil.LexBytes `json:"blocks" cborgen:"blocks"` 31 31 // commit: Repo commit object CID. 32 32 Commit lexutil.LexLink `json:"commit" cborgen:"commit"` 33 33 Ops []*SyncSubscribeRepos_RepoOp `json:"ops" cborgen:"ops"` ··· 42 42 // seq: The stream sequence number of this message. 43 43 Seq int64 `json:"seq" cborgen:"seq"` 44 44 // since: The rev of the last emitted commit from this repo (if any). 45 - Since *string `json:"since" cborgen:"since"` 45 + Since *string `json:"since,omitempty" cborgen:"since,omitempty"` 46 46 // time: Timestamp of when this message was originally broadcast. 47 47 Time string `json:"time" cborgen:"time"` 48 48 // tooBig: DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. ··· 72 72 type SyncSubscribeRepos_RepoOp struct { 73 73 Action string `json:"action" cborgen:"action"` 74 74 // cid: For creates and updates, the new record CID. For deletions, null. 75 - Cid *lexutil.LexLink `json:"cid" cborgen:"cid"` 75 + Cid *lexutil.LexLink `json:"cid,omitempty" cborgen:"cid,omitempty"` 76 76 Path string `json:"path" cborgen:"path"` 77 77 // prev: For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. 78 78 Prev *lexutil.LexLink `json:"prev,omitempty" cborgen:"prev,omitempty"` ··· 83 83 // Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. 84 84 type SyncSubscribeRepos_Sync struct { 85 85 // blocks: CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. 86 - Blocks lexutil.LexBytes `json:"blocks,omitempty" cborgen:"blocks,omitempty"` 86 + Blocks lexutil.LexBytes `json:"blocks" cborgen:"blocks"` 87 87 // did: The account this repo event corresponds to. Must match that in the commit object. 88 88 Did string `json:"did" cborgen:"did"` 89 89 // rev: The rev of the commit. This value must match that in the commit object.
+24 -23
api/atproto/tempcheckHandleAvailability.go
··· 54 54 } 55 55 } 56 56 57 - // TempCheckHandleAvailability_ResultAvailable is a "resultAvailable" in the com.atproto.temp.checkHandleAvailability schema. 58 - // 59 - // Indicates the provided handle is available. 60 - type TempCheckHandleAvailability_ResultAvailable struct { 61 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"` 62 - } 63 - 64 - // TempCheckHandleAvailability_ResultUnavailable is a "resultUnavailable" in the com.atproto.temp.checkHandleAvailability schema. 65 - // 66 - // Indicates the provided handle is unavailable and gives suggestions of available handles. 67 - type TempCheckHandleAvailability_ResultUnavailable struct { 68 - LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"` 69 - // suggestions: List of suggested handles based on the provided inputs. 70 - Suggestions []*TempCheckHandleAvailability_Suggestion `json:"suggestions" cborgen:"suggestions"` 71 - } 72 - 73 - // TempCheckHandleAvailability_Suggestion is a "suggestion" in the com.atproto.temp.checkHandleAvailability schema. 74 - type TempCheckHandleAvailability_Suggestion struct { 75 - Handle string `json:"handle" cborgen:"handle"` 76 - // method: Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. 77 - Method string `json:"method" cborgen:"method"` 78 - } 79 - 80 57 // TempCheckHandleAvailability calls the XRPC method "com.atproto.temp.checkHandleAvailability". 81 58 // 82 59 // birthDate: User-provided birth date. Might be used to build handle suggestions. ··· 99 76 100 77 return &out, nil 101 78 } 79 + 80 + // TempCheckHandleAvailability_ResultAvailable is a "resultAvailable" in the com.atproto.temp.checkHandleAvailability schema. 81 + // 82 + // Indicates the provided handle is available. 83 + type TempCheckHandleAvailability_ResultAvailable struct { 84 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultAvailable"` 85 + } 86 + 87 + // TempCheckHandleAvailability_ResultUnavailable is a "resultUnavailable" in the com.atproto.temp.checkHandleAvailability schema. 88 + // 89 + // Indicates the provided handle is unavailable and gives suggestions of available handles. 90 + type TempCheckHandleAvailability_ResultUnavailable struct { 91 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#resultUnavailable"` 92 + // suggestions: List of suggested handles based on the provided inputs. 93 + Suggestions []*TempCheckHandleAvailability_Suggestion `json:"suggestions" cborgen:"suggestions"` 94 + } 95 + 96 + // TempCheckHandleAvailability_Suggestion is a "suggestion" in the com.atproto.temp.checkHandleAvailability schema. 97 + type TempCheckHandleAvailability_Suggestion struct { 98 + LexiconTypeID string `json:"$type" cborgen:"$type,const=com.atproto.temp.checkHandleAvailability#suggestion"` 99 + Handle string `json:"handle" cborgen:"handle"` 100 + // method: Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. 101 + Method string `json:"method" cborgen:"method"` 102 + }
+38 -24
api/bsky/actordefs.go
··· 22 22 // 23 23 // If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. 24 24 type ActorDefs_BskyAppProgressGuide struct { 25 - Guide string `json:"guide" cborgen:"guide"` 25 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#bskyAppProgressGuide"` 26 + Guide string `json:"guide" cborgen:"guide"` 26 27 } 27 28 28 29 // ActorDefs_BskyAppStatePref is a "bskyAppStatePref" in the app.bsky.actor.defs schema. ··· 81 82 // 82 83 // The subject's followers whom you also follow 83 84 type ActorDefs_KnownFollowers struct { 84 - Count int64 `json:"count" cborgen:"count"` 85 - Followers []*ActorDefs_ProfileViewBasic `json:"followers" cborgen:"followers"` 85 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#knownFollowers"` 86 + Count int64 `json:"count" cborgen:"count"` 87 + Followers []*ActorDefs_ProfileViewBasic `json:"followers" cborgen:"followers"` 86 88 } 87 89 88 90 // ActorDefs_LabelerPrefItem is a "labelerPrefItem" in the app.bsky.actor.defs schema. 89 91 type ActorDefs_LabelerPrefItem struct { 90 - Did string `json:"did" cborgen:"did"` 92 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#labelerPrefItem"` 93 + Did string `json:"did" cborgen:"did"` 91 94 } 92 95 93 96 // ActorDefs_LabelersPref is a "labelersPref" in the app.bsky.actor.defs schema. ··· 100 103 // 101 104 // A word that the account owner has muted. 102 105 type ActorDefs_MutedWord struct { 106 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#mutedWord"` 103 107 // actorTarget: Groups of users to apply the muted word to. If undefined, applies to all users. 104 108 ActorTarget *string `json:"actorTarget,omitempty" cborgen:"actorTarget,omitempty"` 105 109 // expiresAt: The date and time at which the muted word will expire and no longer be applied. ··· 122 126 // 123 127 // A new user experiences (NUX) storage object 124 128 type ActorDefs_Nux struct { 125 - Completed bool `json:"completed" cborgen:"completed"` 129 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#nux"` 130 + Completed bool `json:"completed" cborgen:"completed"` 126 131 // data: Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. 127 132 Data *string `json:"data,omitempty" cborgen:"data,omitempty"` 128 133 // expiresAt: The date and time at which the NUX will expire and should be considered completed. ··· 226 231 } 227 232 } 228 233 229 - type ActorDefs_Preferences_Elem struct { 234 + type ActorDefs_Preferences struct { 230 235 ActorDefs_AdultContentPref *ActorDefs_AdultContentPref 231 236 ActorDefs_ContentLabelPref *ActorDefs_ContentLabelPref 232 237 ActorDefs_SavedFeedsPref *ActorDefs_SavedFeedsPref ··· 243 248 ActorDefs_VerificationPrefs *ActorDefs_VerificationPrefs 244 249 } 245 250 246 - func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) { 251 + func (t *ActorDefs_Preferences) MarshalJSON() ([]byte, error) { 247 252 if t.ActorDefs_AdultContentPref != nil { 248 253 t.ActorDefs_AdultContentPref.LexiconTypeID = "app.bsky.actor.defs#adultContentPref" 249 254 return json.Marshal(t.ActorDefs_AdultContentPref) ··· 303 308 return nil, fmt.Errorf("can not marshal empty union as JSON") 304 309 } 305 310 306 - func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error { 311 + func (t *ActorDefs_Preferences) UnmarshalJSON(b []byte) error { 307 312 typ, err := lexutil.TypeExtract(b) 308 313 if err != nil { 309 314 return err ··· 359 364 360 365 // ActorDefs_ProfileAssociated is a "profileAssociated" in the app.bsky.actor.defs schema. 361 366 type ActorDefs_ProfileAssociated struct { 367 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileAssociated"` 362 368 ActivitySubscription *ActorDefs_ProfileAssociatedActivitySubscription `json:"activitySubscription,omitempty" cborgen:"activitySubscription,omitempty"` 363 369 Chat *ActorDefs_ProfileAssociatedChat `json:"chat,omitempty" cborgen:"chat,omitempty"` 364 370 Feedgens *int64 `json:"feedgens,omitempty" cborgen:"feedgens,omitempty"` ··· 369 375 370 376 // ActorDefs_ProfileAssociatedActivitySubscription is a "profileAssociatedActivitySubscription" in the app.bsky.actor.defs schema. 371 377 type ActorDefs_ProfileAssociatedActivitySubscription struct { 378 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileAssociatedActivitySubscription"` 372 379 AllowSubscriptions string `json:"allowSubscriptions" cborgen:"allowSubscriptions"` 373 380 } 374 381 375 382 // ActorDefs_ProfileAssociatedChat is a "profileAssociatedChat" in the app.bsky.actor.defs schema. 376 383 type ActorDefs_ProfileAssociatedChat struct { 384 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileAssociatedChat"` 377 385 AllowIncoming string `json:"allowIncoming" cborgen:"allowIncoming"` 378 386 } 379 387 380 388 // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. 381 389 type ActorDefs_ProfileView struct { 382 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 383 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 384 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 390 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileView"` 391 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 392 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 393 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 385 394 // debug: Debug information for internal development 386 395 Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 387 396 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` ··· 398 407 399 408 // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema. 400 409 type ActorDefs_ProfileViewBasic struct { 401 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 402 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 403 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 410 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileViewBasic"` 411 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 412 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 413 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 404 414 // debug: Debug information for internal development 405 415 Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 406 416 Did string `json:"did" cborgen:"did"` ··· 415 425 416 426 // ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema. 417 427 type ActorDefs_ProfileViewDetailed struct { 418 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 419 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 420 - Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 421 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 428 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#profileViewDetailed"` 429 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 430 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 431 + Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 432 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 422 433 // debug: Debug information for internal development 423 434 Debug *interface{} `json:"debug,omitempty" cborgen:"debug,omitempty"` 424 435 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` ··· 441 452 442 453 // ActorDefs_SavedFeed is a "savedFeed" in the app.bsky.actor.defs schema. 443 454 type ActorDefs_SavedFeed struct { 444 - Id string `json:"id" cborgen:"id"` 445 - Pinned bool `json:"pinned" cborgen:"pinned"` 446 - Type string `json:"type" cborgen:"type"` 447 - Value string `json:"value" cborgen:"value"` 455 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#savedFeed"` 456 + Id string `json:"id" cborgen:"id"` 457 + Pinned bool `json:"pinned" cborgen:"pinned"` 458 + Type string `json:"type" cborgen:"type"` 459 + Value string `json:"value" cborgen:"value"` 448 460 } 449 461 450 462 // ActorDefs_SavedFeedsPref is a "savedFeedsPref" in the app.bsky.actor.defs schema. ··· 463 475 464 476 // ActorDefs_StatusView is a "statusView" in the app.bsky.actor.defs schema. 465 477 type ActorDefs_StatusView struct { 478 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#statusView"` 466 479 // embed: An optional embed associated with the status. 467 480 Embed *ActorDefs_StatusView_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 468 481 // expiresAt: The date when this status will expire. The application might choose to no longer return the status after expiration. ··· 505 518 // ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema. 506 519 type ActorDefs_ThreadViewPref struct { 507 520 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"` 508 - // prioritizeFollowedUsers: Show followed users at the top of all replies. 509 - PrioritizeFollowedUsers *bool `json:"prioritizeFollowedUsers,omitempty" cborgen:"prioritizeFollowedUsers,omitempty"` 510 521 // sort: Sorting mode for threads. 511 522 Sort *string `json:"sort,omitempty" cborgen:"sort,omitempty"` 512 523 } ··· 524 535 // 525 536 // Represents the verification information about the user this object is attached to. 526 537 type ActorDefs_VerificationState struct { 538 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#verificationState"` 527 539 // trustedVerifierStatus: The user's status as a trusted verifier. 528 540 TrustedVerifierStatus string `json:"trustedVerifierStatus" cborgen:"trustedVerifierStatus"` 529 541 // verifications: All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. ··· 536 548 // 537 549 // An individual verification for an associated subject. 538 550 type ActorDefs_VerificationView struct { 551 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#verificationView"` 539 552 // createdAt: Timestamp when the verification was created. 540 553 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 541 554 // isValid: True if the verification passes validation, otherwise false. ··· 550 563 // 551 564 // Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. 552 565 type ActorDefs_ViewerState struct { 566 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.actor.defs#viewerState"` 553 567 // activitySubscription: This property is present only in selected cases, as an optimization. 554 568 ActivitySubscription *NotificationDefs_ActivitySubscription `json:"activitySubscription,omitempty" cborgen:"activitySubscription,omitempty"` 555 569 BlockedBy *bool `json:"blockedBy,omitempty" cborgen:"blockedBy,omitempty"`
+2 -4
api/bsky/actorgetPreferences.go
··· 12 12 13 13 // ActorGetPreferences_Output is the output of a app.bsky.actor.getPreferences call. 14 14 type ActorGetPreferences_Output struct { 15 - Preferences []ActorDefs_Preferences_Elem `json:"preferences" cborgen:"preferences"` 15 + Preferences *ActorDefs_Preferences `json:"preferences" cborgen:"preferences"` 16 16 } 17 17 18 18 // ActorGetPreferences calls the XRPC method "app.bsky.actor.getPreferences". 19 19 func ActorGetPreferences(ctx context.Context, c lexutil.LexClient) (*ActorGetPreferences_Output, error) { 20 20 var out ActorGetPreferences_Output 21 - 22 - params := map[string]interface{}{} 23 - if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.actor.getPreferences", params, nil, &out); err != nil { 21 + if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.actor.getPreferences", nil, nil, &out); err != nil { 24 22 return nil, err 25 23 } 26 24
+1 -1
api/bsky/actorputPreferences.go
··· 12 12 13 13 // ActorPutPreferences_Input is the input argument to a app.bsky.actor.putPreferences call. 14 14 type ActorPutPreferences_Input struct { 15 - Preferences []ActorDefs_Preferences_Elem `json:"preferences" cborgen:"preferences"` 15 + Preferences *ActorDefs_Preferences `json:"preferences" cborgen:"preferences"` 16 16 } 17 17 18 18 // ActorPutPreferences calls the XRPC method "app.bsky.actor.putPreferences".
+4 -2
api/bsky/bookmarkdefs.go
··· 16 16 // 17 17 // Object used to store bookmark data in stash. 18 18 type BookmarkDefs_Bookmark struct { 19 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.bookmark.defs#bookmark"` 19 20 // subject: A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported. 20 21 Subject *comatproto.RepoStrongRef `json:"subject" cborgen:"subject"` 21 22 } 22 23 23 24 // BookmarkDefs_BookmarkView is a "bookmarkView" in the app.bsky.bookmark.defs schema. 24 25 type BookmarkDefs_BookmarkView struct { 25 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 26 - Item *BookmarkDefs_BookmarkView_Item `json:"item" cborgen:"item"` 26 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.bookmark.defs#bookmarkView"` 27 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 28 + Item *BookmarkDefs_BookmarkView_Item `json:"item" cborgen:"item"` 27 29 // subject: A strong ref to the bookmarked record. 28 30 Subject *comatproto.RepoStrongRef `json:"subject" cborgen:"subject"` 29 31 }
+3 -2
api/bsky/embeddefs.go
··· 8 8 // 9 9 // width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. 10 10 type EmbedDefs_AspectRatio struct { 11 - Height int64 `json:"height" cborgen:"height"` 12 - Width int64 `json:"width" cborgen:"width"` 11 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.defs#aspectRatio"` 12 + Height int64 `json:"height" cborgen:"height"` 13 + Width int64 `json:"width" cborgen:"width"` 13 14 }
+10 -10
api/bsky/embedexternal.go
··· 12 12 lexutil.RegisterType("app.bsky.embed.external#main", &EmbedExternal{}) 13 13 } 14 14 15 - // EmbedExternal is a "main" in the app.bsky.embed.external schema. 16 - // 17 15 // A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). 18 16 type EmbedExternal struct { 19 17 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external"` ··· 22 20 23 21 // EmbedExternal_External is a "external" in the app.bsky.embed.external schema. 24 22 type EmbedExternal_External struct { 25 - Description string `json:"description" cborgen:"description"` 26 - Thumb *lexutil.LexBlob `json:"thumb,omitempty" cborgen:"thumb,omitempty"` 27 - Title string `json:"title" cborgen:"title"` 28 - Uri string `json:"uri" cborgen:"uri"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external#external"` 24 + Description string `json:"description" cborgen:"description"` 25 + Thumb *lexutil.LexBlob `json:"thumb,omitempty" cborgen:"thumb,omitempty"` 26 + Title string `json:"title" cborgen:"title"` 27 + Uri string `json:"uri" cborgen:"uri"` 29 28 } 30 29 31 30 // EmbedExternal_View is a "view" in the app.bsky.embed.external schema. ··· 36 35 37 36 // EmbedExternal_ViewExternal is a "viewExternal" in the app.bsky.embed.external schema. 38 37 type EmbedExternal_ViewExternal struct { 39 - Description string `json:"description" cborgen:"description"` 40 - Thumb *string `json:"thumb,omitempty" cborgen:"thumb,omitempty"` 41 - Title string `json:"title" cborgen:"title"` 42 - Uri string `json:"uri" cborgen:"uri"` 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.external#viewExternal"` 39 + Description string `json:"description" cborgen:"description"` 40 + Thumb *string `json:"thumb,omitempty" cborgen:"thumb,omitempty"` 41 + Title string `json:"title" cborgen:"title"` 42 + Uri string `json:"uri" cborgen:"uri"` 43 43 }
+2 -1
api/bsky/embedimages.go
··· 12 12 lexutil.RegisterType("app.bsky.embed.images#main", &EmbedImages{}) 13 13 } 14 14 15 - // EmbedImages is a "main" in the app.bsky.embed.images schema. 16 15 type EmbedImages struct { 17 16 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images"` 18 17 Images []*EmbedImages_Image `json:"images" cborgen:"images"` ··· 20 19 21 20 // EmbedImages_Image is a "image" in the app.bsky.embed.images schema. 22 21 type EmbedImages_Image struct { 22 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images#image"` 23 23 // alt: Alt text description of the image, for accessibility. 24 24 Alt string `json:"alt" cborgen:"alt"` 25 25 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"` ··· 34 34 35 35 // EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema. 36 36 type EmbedImages_ViewImage struct { 37 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.images#viewImage"` 37 38 // alt: Alt text description of the image, for accessibility. 38 39 Alt string `json:"alt" cborgen:"alt"` 39 40 AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
+83 -84
api/bsky/embedrecord.go
··· 16 16 lexutil.RegisterType("app.bsky.embed.record#main", &EmbedRecord{}) 17 17 } 18 18 19 - // EmbedRecord is a "main" in the app.bsky.embed.record schema. 20 19 type EmbedRecord struct { 21 20 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record"` 22 21 Record *comatproto.RepoStrongRef `json:"record" cborgen:"record"` ··· 26 25 type EmbedRecord_View struct { 27 26 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.record#view"` 28 27 Record *EmbedRecord_View_Record `json:"record" cborgen:"record"` 28 + } 29 + 30 + type EmbedRecord_View_Record struct { 31 + EmbedRecord_ViewRecord *EmbedRecord_ViewRecord 32 + EmbedRecord_ViewNotFound *EmbedRecord_ViewNotFound 33 + EmbedRecord_ViewBlocked *EmbedRecord_ViewBlocked 34 + EmbedRecord_ViewDetached *EmbedRecord_ViewDetached 35 + FeedDefs_GeneratorView *FeedDefs_GeneratorView 36 + GraphDefs_ListView *GraphDefs_ListView 37 + LabelerDefs_LabelerView *LabelerDefs_LabelerView 38 + GraphDefs_StarterPackViewBasic *GraphDefs_StarterPackViewBasic 39 + } 40 + 41 + func (t *EmbedRecord_View_Record) MarshalJSON() ([]byte, error) { 42 + if t.EmbedRecord_ViewRecord != nil { 43 + t.EmbedRecord_ViewRecord.LexiconTypeID = "app.bsky.embed.record#viewRecord" 44 + return json.Marshal(t.EmbedRecord_ViewRecord) 45 + } 46 + if t.EmbedRecord_ViewNotFound != nil { 47 + t.EmbedRecord_ViewNotFound.LexiconTypeID = "app.bsky.embed.record#viewNotFound" 48 + return json.Marshal(t.EmbedRecord_ViewNotFound) 49 + } 50 + if t.EmbedRecord_ViewBlocked != nil { 51 + t.EmbedRecord_ViewBlocked.LexiconTypeID = "app.bsky.embed.record#viewBlocked" 52 + return json.Marshal(t.EmbedRecord_ViewBlocked) 53 + } 54 + if t.EmbedRecord_ViewDetached != nil { 55 + t.EmbedRecord_ViewDetached.LexiconTypeID = "app.bsky.embed.record#viewDetached" 56 + return json.Marshal(t.EmbedRecord_ViewDetached) 57 + } 58 + if t.FeedDefs_GeneratorView != nil { 59 + t.FeedDefs_GeneratorView.LexiconTypeID = "app.bsky.feed.defs#generatorView" 60 + return json.Marshal(t.FeedDefs_GeneratorView) 61 + } 62 + if t.GraphDefs_ListView != nil { 63 + t.GraphDefs_ListView.LexiconTypeID = "app.bsky.graph.defs#listView" 64 + return json.Marshal(t.GraphDefs_ListView) 65 + } 66 + if t.LabelerDefs_LabelerView != nil { 67 + t.LabelerDefs_LabelerView.LexiconTypeID = "app.bsky.labeler.defs#labelerView" 68 + return json.Marshal(t.LabelerDefs_LabelerView) 69 + } 70 + if t.GraphDefs_StarterPackViewBasic != nil { 71 + t.GraphDefs_StarterPackViewBasic.LexiconTypeID = "app.bsky.graph.defs#starterPackViewBasic" 72 + return json.Marshal(t.GraphDefs_StarterPackViewBasic) 73 + } 74 + return nil, fmt.Errorf("can not marshal empty union as JSON") 75 + } 76 + 77 + func (t *EmbedRecord_View_Record) UnmarshalJSON(b []byte) error { 78 + typ, err := lexutil.TypeExtract(b) 79 + if err != nil { 80 + return err 81 + } 82 + 83 + switch typ { 84 + case "app.bsky.embed.record#viewRecord": 85 + t.EmbedRecord_ViewRecord = new(EmbedRecord_ViewRecord) 86 + return json.Unmarshal(b, t.EmbedRecord_ViewRecord) 87 + case "app.bsky.embed.record#viewNotFound": 88 + t.EmbedRecord_ViewNotFound = new(EmbedRecord_ViewNotFound) 89 + return json.Unmarshal(b, t.EmbedRecord_ViewNotFound) 90 + case "app.bsky.embed.record#viewBlocked": 91 + t.EmbedRecord_ViewBlocked = new(EmbedRecord_ViewBlocked) 92 + return json.Unmarshal(b, t.EmbedRecord_ViewBlocked) 93 + case "app.bsky.embed.record#viewDetached": 94 + t.EmbedRecord_ViewDetached = new(EmbedRecord_ViewDetached) 95 + return json.Unmarshal(b, t.EmbedRecord_ViewDetached) 96 + case "app.bsky.feed.defs#generatorView": 97 + t.FeedDefs_GeneratorView = new(FeedDefs_GeneratorView) 98 + return json.Unmarshal(b, t.FeedDefs_GeneratorView) 99 + case "app.bsky.graph.defs#listView": 100 + t.GraphDefs_ListView = new(GraphDefs_ListView) 101 + return json.Unmarshal(b, t.GraphDefs_ListView) 102 + case "app.bsky.labeler.defs#labelerView": 103 + t.LabelerDefs_LabelerView = new(LabelerDefs_LabelerView) 104 + return json.Unmarshal(b, t.LabelerDefs_LabelerView) 105 + case "app.bsky.graph.defs#starterPackViewBasic": 106 + t.GraphDefs_StarterPackViewBasic = new(GraphDefs_StarterPackViewBasic) 107 + return json.Unmarshal(b, t.GraphDefs_StarterPackViewBasic) 108 + default: 109 + return nil 110 + } 29 111 } 30 112 31 113 // EmbedRecord_ViewBlocked is a "viewBlocked" in the app.bsky.embed.record schema. ··· 125 207 return nil 126 208 } 127 209 } 128 - 129 - type EmbedRecord_View_Record struct { 130 - EmbedRecord_ViewRecord *EmbedRecord_ViewRecord 131 - EmbedRecord_ViewNotFound *EmbedRecord_ViewNotFound 132 - EmbedRecord_ViewBlocked *EmbedRecord_ViewBlocked 133 - EmbedRecord_ViewDetached *EmbedRecord_ViewDetached 134 - FeedDefs_GeneratorView *FeedDefs_GeneratorView 135 - GraphDefs_ListView *GraphDefs_ListView 136 - LabelerDefs_LabelerView *LabelerDefs_LabelerView 137 - GraphDefs_StarterPackViewBasic *GraphDefs_StarterPackViewBasic 138 - } 139 - 140 - func (t *EmbedRecord_View_Record) MarshalJSON() ([]byte, error) { 141 - if t.EmbedRecord_ViewRecord != nil { 142 - t.EmbedRecord_ViewRecord.LexiconTypeID = "app.bsky.embed.record#viewRecord" 143 - return json.Marshal(t.EmbedRecord_ViewRecord) 144 - } 145 - if t.EmbedRecord_ViewNotFound != nil { 146 - t.EmbedRecord_ViewNotFound.LexiconTypeID = "app.bsky.embed.record#viewNotFound" 147 - return json.Marshal(t.EmbedRecord_ViewNotFound) 148 - } 149 - if t.EmbedRecord_ViewBlocked != nil { 150 - t.EmbedRecord_ViewBlocked.LexiconTypeID = "app.bsky.embed.record#viewBlocked" 151 - return json.Marshal(t.EmbedRecord_ViewBlocked) 152 - } 153 - if t.EmbedRecord_ViewDetached != nil { 154 - t.EmbedRecord_ViewDetached.LexiconTypeID = "app.bsky.embed.record#viewDetached" 155 - return json.Marshal(t.EmbedRecord_ViewDetached) 156 - } 157 - if t.FeedDefs_GeneratorView != nil { 158 - t.FeedDefs_GeneratorView.LexiconTypeID = "app.bsky.feed.defs#generatorView" 159 - return json.Marshal(t.FeedDefs_GeneratorView) 160 - } 161 - if t.GraphDefs_ListView != nil { 162 - t.GraphDefs_ListView.LexiconTypeID = "app.bsky.graph.defs#listView" 163 - return json.Marshal(t.GraphDefs_ListView) 164 - } 165 - if t.LabelerDefs_LabelerView != nil { 166 - t.LabelerDefs_LabelerView.LexiconTypeID = "app.bsky.labeler.defs#labelerView" 167 - return json.Marshal(t.LabelerDefs_LabelerView) 168 - } 169 - if t.GraphDefs_StarterPackViewBasic != nil { 170 - t.GraphDefs_StarterPackViewBasic.LexiconTypeID = "app.bsky.graph.defs#starterPackViewBasic" 171 - return json.Marshal(t.GraphDefs_StarterPackViewBasic) 172 - } 173 - return nil, fmt.Errorf("can not marshal empty union as JSON") 174 - } 175 - 176 - func (t *EmbedRecord_View_Record) UnmarshalJSON(b []byte) error { 177 - typ, err := lexutil.TypeExtract(b) 178 - if err != nil { 179 - return err 180 - } 181 - 182 - switch typ { 183 - case "app.bsky.embed.record#viewRecord": 184 - t.EmbedRecord_ViewRecord = new(EmbedRecord_ViewRecord) 185 - return json.Unmarshal(b, t.EmbedRecord_ViewRecord) 186 - case "app.bsky.embed.record#viewNotFound": 187 - t.EmbedRecord_ViewNotFound = new(EmbedRecord_ViewNotFound) 188 - return json.Unmarshal(b, t.EmbedRecord_ViewNotFound) 189 - case "app.bsky.embed.record#viewBlocked": 190 - t.EmbedRecord_ViewBlocked = new(EmbedRecord_ViewBlocked) 191 - return json.Unmarshal(b, t.EmbedRecord_ViewBlocked) 192 - case "app.bsky.embed.record#viewDetached": 193 - t.EmbedRecord_ViewDetached = new(EmbedRecord_ViewDetached) 194 - return json.Unmarshal(b, t.EmbedRecord_ViewDetached) 195 - case "app.bsky.feed.defs#generatorView": 196 - t.FeedDefs_GeneratorView = new(FeedDefs_GeneratorView) 197 - return json.Unmarshal(b, t.FeedDefs_GeneratorView) 198 - case "app.bsky.graph.defs#listView": 199 - t.GraphDefs_ListView = new(GraphDefs_ListView) 200 - return json.Unmarshal(b, t.GraphDefs_ListView) 201 - case "app.bsky.labeler.defs#labelerView": 202 - t.LabelerDefs_LabelerView = new(LabelerDefs_LabelerView) 203 - return json.Unmarshal(b, t.LabelerDefs_LabelerView) 204 - case "app.bsky.graph.defs#starterPackViewBasic": 205 - t.GraphDefs_StarterPackViewBasic = new(GraphDefs_StarterPackViewBasic) 206 - return json.Unmarshal(b, t.GraphDefs_StarterPackViewBasic) 207 - default: 208 - return nil 209 - } 210 - }
-1
api/bsky/embedrecordWithMedia.go
··· 18 18 lexutil.RegisterType("app.bsky.embed.recordWithMedia#main", &EmbedRecordWithMedia{}) 19 19 } 20 20 21 - // EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema. 22 21 type EmbedRecordWithMedia struct { 23 22 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.recordWithMedia"` 24 23 Media *EmbedRecordWithMedia_Media `json:"media" cborgen:"media"`
+3 -3
api/bsky/embedvideo.go
··· 12 12 lexutil.RegisterType("app.bsky.embed.video#main", &EmbedVideo{}) 13 13 } 14 14 15 - // EmbedVideo is a "main" in the app.bsky.embed.video schema. 16 15 type EmbedVideo struct { 17 16 LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video"` 18 17 // alt: Alt text description of the video, for accessibility. ··· 25 24 26 25 // EmbedVideo_Caption is a "caption" in the app.bsky.embed.video schema. 27 26 type EmbedVideo_Caption struct { 28 - File *lexutil.LexBlob `json:"file" cborgen:"file"` 29 - Lang string `json:"lang" cborgen:"lang"` 27 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.embed.video#caption"` 28 + File *lexutil.LexBlob `json:"file" cborgen:"file"` 29 + Lang string `json:"lang" cborgen:"lang"` 30 30 } 31 31 32 32 // EmbedVideo_View is a "view" in the app.bsky.embed.video schema.
+17 -8
api/bsky/feeddefs.go
··· 14 14 15 15 // FeedDefs_BlockedAuthor is a "blockedAuthor" in the app.bsky.feed.defs schema. 16 16 type FeedDefs_BlockedAuthor struct { 17 - Did string `json:"did" cborgen:"did"` 18 - Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#blockedAuthor"` 18 + Did string `json:"did" cborgen:"did"` 19 + Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 19 20 } 20 21 21 22 // FeedDefs_BlockedPost is a "blockedPost" in the app.bsky.feed.defs schema. ··· 28 29 29 30 // FeedDefs_FeedViewPost is a "feedViewPost" in the app.bsky.feed.defs schema. 30 31 type FeedDefs_FeedViewPost struct { 32 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#feedViewPost"` 31 33 // feedContext: Context provided by feed generator that may be passed back alongside interactions. 32 34 FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 33 35 Post *FeedDefs_PostView `json:"post" cborgen:"post"` ··· 93 95 94 96 // FeedDefs_GeneratorViewerState is a "generatorViewerState" in the app.bsky.feed.defs schema. 95 97 type FeedDefs_GeneratorViewerState struct { 96 - Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 98 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#generatorViewerState"` 99 + Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 97 100 } 98 101 99 102 // FeedDefs_Interaction is a "interaction" in the app.bsky.feed.defs schema. 100 103 type FeedDefs_Interaction struct { 101 - Event *string `json:"event,omitempty" cborgen:"event,omitempty"` 104 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#interaction"` 105 + Event *string `json:"event,omitempty" cborgen:"event,omitempty"` 102 106 // feedContext: Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. 103 107 FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 104 108 Item *string `json:"item,omitempty" cborgen:"item,omitempty"` ··· 209 213 210 214 // FeedDefs_ReplyRef is a "replyRef" in the app.bsky.feed.defs schema. 211 215 type FeedDefs_ReplyRef struct { 216 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#replyRef"` 212 217 // grandparentAuthor: When parent is a reply to another post, this is the author of that post. 213 218 GrandparentAuthor *ActorDefs_ProfileViewBasic `json:"grandparentAuthor,omitempty" cborgen:"grandparentAuthor,omitempty"` 214 219 Parent *FeedDefs_ReplyRef_Parent `json:"parent" cborgen:"parent"` ··· 303 308 304 309 // FeedDefs_SkeletonFeedPost is a "skeletonFeedPost" in the app.bsky.feed.defs schema. 305 310 type FeedDefs_SkeletonFeedPost struct { 311 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#skeletonFeedPost"` 306 312 // feedContext: Context that will be passed through to client and may be passed to feed generator back alongside interactions. 307 313 FeedContext *string `json:"feedContext,omitempty" cborgen:"feedContext,omitempty"` 308 314 Post string `json:"post" cborgen:"post"` ··· 359 365 // 360 366 // Metadata about this post within the context of the thread it is in. 361 367 type FeedDefs_ThreadContext struct { 368 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#threadContext"` 362 369 RootAuthorLike *string `json:"rootAuthorLike,omitempty" cborgen:"rootAuthorLike,omitempty"` 363 370 } 364 371 ··· 459 466 460 467 // FeedDefs_ThreadgateView is a "threadgateView" in the app.bsky.feed.defs schema. 461 468 type FeedDefs_ThreadgateView struct { 462 - Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 463 - Lists []*GraphDefs_ListViewBasic `json:"lists,omitempty" cborgen:"lists,omitempty"` 464 - Record *lexutil.LexiconTypeDecoder `json:"record,omitempty" cborgen:"record,omitempty"` 465 - Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"` 469 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#threadgateView"` 470 + Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 471 + Lists []*GraphDefs_ListViewBasic `json:"lists,omitempty" cborgen:"lists,omitempty"` 472 + Record *lexutil.LexiconTypeDecoder `json:"record,omitempty" cborgen:"record,omitempty"` 473 + Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"` 466 474 } 467 475 468 476 // FeedDefs_ViewerState is a "viewerState" in the app.bsky.feed.defs schema. 469 477 // 470 478 // Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. 471 479 type FeedDefs_ViewerState struct { 480 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.defs#viewerState"` 472 481 Bookmarked *bool `json:"bookmarked,omitempty" cborgen:"bookmarked,omitempty"` 473 482 EmbeddingDisabled *bool `json:"embeddingDisabled,omitempty" cborgen:"embeddingDisabled,omitempty"` 474 483 Like *string `json:"like,omitempty" cborgen:"like,omitempty"`
+13 -11
api/bsky/feeddescribeFeedGenerator.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // FeedDescribeFeedGenerator_Feed is a "feed" in the app.bsky.feed.describeFeedGenerator schema. 14 - type FeedDescribeFeedGenerator_Feed struct { 15 - Uri string `json:"uri" cborgen:"uri"` 16 - } 17 - 18 - // FeedDescribeFeedGenerator_Links is a "links" in the app.bsky.feed.describeFeedGenerator schema. 19 - type FeedDescribeFeedGenerator_Links struct { 20 - PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` 21 - TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"` 22 - } 23 - 24 13 // FeedDescribeFeedGenerator_Output is the output of a app.bsky.feed.describeFeedGenerator call. 25 14 type FeedDescribeFeedGenerator_Output struct { 26 15 Did string `json:"did" cborgen:"did"` ··· 37 26 38 27 return &out, nil 39 28 } 29 + 30 + // FeedDescribeFeedGenerator_Feed is a "feed" in the app.bsky.feed.describeFeedGenerator schema. 31 + type FeedDescribeFeedGenerator_Feed struct { 32 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.describeFeedGenerator#feed"` 33 + Uri string `json:"uri" cborgen:"uri"` 34 + } 35 + 36 + // FeedDescribeFeedGenerator_Links is a "links" in the app.bsky.feed.describeFeedGenerator schema. 37 + type FeedDescribeFeedGenerator_Links struct { 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.describeFeedGenerator#links"` 39 + PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"` 40 + TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"` 41 + }
+1 -1
api/bsky/feedgetActorFeeds.go
··· 21 21 var out FeedGetActorFeeds_Output 22 22 23 23 params := map[string]interface{}{} 24 - params["actor"] = actor 25 24 if cursor != "" { 26 25 params["cursor"] = cursor 27 26 } 28 27 if limit != 0 { 29 28 params["limit"] = limit 30 29 } 30 + params["actor"] = actor 31 31 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getActorFeeds", params, nil, &out); err != nil { 32 32 return nil, err 33 33 }
+1 -1
api/bsky/feedgetActorLikes.go
··· 21 21 var out FeedGetActorLikes_Output 22 22 23 23 params := map[string]interface{}{} 24 - params["actor"] = actor 25 24 if cursor != "" { 26 25 params["cursor"] = cursor 27 26 } 28 27 if limit != 0 { 29 28 params["limit"] = limit 30 29 } 30 + params["actor"] = actor 31 31 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getActorLikes", params, nil, &out); err != nil { 32 32 return nil, err 33 33 }
+1 -1
api/bsky/feedgetAuthorFeed.go
··· 23 23 var out FeedGetAuthorFeed_Output 24 24 25 25 params := map[string]interface{}{} 26 - params["actor"] = actor 27 26 if cursor != "" { 28 27 params["cursor"] = cursor 29 28 } ··· 36 35 if limit != 0 { 37 36 params["limit"] = limit 38 37 } 38 + params["actor"] = actor 39 39 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil { 40 40 return nil, err 41 41 }
+1 -1
api/bsky/feedgetFeed.go
··· 24 24 if cursor != "" { 25 25 params["cursor"] = cursor 26 26 } 27 - params["feed"] = feed 28 27 if limit != 0 { 29 28 params["limit"] = limit 30 29 } 30 + params["feed"] = feed 31 31 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil { 32 32 return nil, err 33 33 }
+1 -1
api/bsky/feedgetFeedSkeleton.go
··· 28 28 if cursor != "" { 29 29 params["cursor"] = cursor 30 30 } 31 - params["feed"] = feed 32 31 if limit != 0 { 33 32 params["limit"] = limit 34 33 } 34 + params["feed"] = feed 35 35 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getFeedSkeleton", params, nil, &out); err != nil { 36 36 return nil, err 37 37 }
+8 -7
api/bsky/feedgetLikes.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // FeedGetLikes_Like is a "like" in the app.bsky.feed.getLikes schema. 14 - type FeedGetLikes_Like struct { 15 - Actor *ActorDefs_ProfileView `json:"actor" cborgen:"actor"` 16 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 17 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 18 - } 19 - 20 13 // FeedGetLikes_Output is the output of a app.bsky.feed.getLikes call. 21 14 type FeedGetLikes_Output struct { 22 15 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` ··· 49 42 50 43 return &out, nil 51 44 } 45 + 46 + // FeedGetLikes_Like is a "like" in the app.bsky.feed.getLikes schema. 47 + type FeedGetLikes_Like struct { 48 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.getLikes#like"` 49 + Actor *ActorDefs_ProfileView `json:"actor" cborgen:"actor"` 50 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 51 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 52 + }
+17 -14
api/bsky/feedpost.go
··· 149 149 } 150 150 } 151 151 152 - // FeedPost_Entity is a "entity" in the app.bsky.feed.post schema. 153 - // 154 - // Deprecated: use facets instead. 155 - type FeedPost_Entity struct { 156 - Index *FeedPost_TextSlice `json:"index" cborgen:"index"` 157 - // type: Expected values are 'mention' and 'link'. 158 - Type string `json:"type" cborgen:"type"` 159 - Value string `json:"value" cborgen:"value"` 160 - } 161 - 162 152 // Self-label values for this post. Effectively content warnings. 163 153 type FeedPost_Labels struct { 164 154 LabelDefs_SelfLabels *comatproto.LabelDefs_SelfLabels ··· 214 204 } 215 205 } 216 206 207 + // FeedPost_Entity is a "entity" in the app.bsky.feed.post schema. 208 + // 209 + // Deprecated: use facets instead. 210 + type FeedPost_Entity struct { 211 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.post#entity"` 212 + Index *FeedPost_TextSlice `json:"index" cborgen:"index"` 213 + // type: Expected values are 'mention' and 'link'. 214 + Type string `json:"type" cborgen:"type"` 215 + Value string `json:"value" cborgen:"value"` 216 + } 217 + 217 218 // FeedPost_ReplyRef is a "replyRef" in the app.bsky.feed.post schema. 218 219 type FeedPost_ReplyRef struct { 219 - Parent *comatproto.RepoStrongRef `json:"parent" cborgen:"parent"` 220 - Root *comatproto.RepoStrongRef `json:"root" cborgen:"root"` 220 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.post#replyRef"` 221 + Parent *comatproto.RepoStrongRef `json:"parent" cborgen:"parent"` 222 + Root *comatproto.RepoStrongRef `json:"root" cborgen:"root"` 221 223 } 222 224 223 225 // FeedPost_TextSlice is a "textSlice" in the app.bsky.feed.post schema. 224 226 // 225 227 // Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. 226 228 type FeedPost_TextSlice struct { 227 - End int64 `json:"end" cborgen:"end"` 228 - Start int64 `json:"start" cborgen:"start"` 229 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.post#textSlice"` 230 + End int64 `json:"end" cborgen:"end"` 231 + Start int64 `json:"start" cborgen:"start"` 229 232 }
+7 -7
api/bsky/feedpostgate.go
··· 29 29 Post string `json:"post" cborgen:"post"` 30 30 } 31 31 32 - // FeedPostgate_DisableRule is a "disableRule" in the app.bsky.feed.postgate schema. 33 - // 34 - // Disables embedding of this post. 35 - type FeedPostgate_DisableRule struct { 36 - LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.postgate#disableRule"` 37 - } 38 - 39 32 type FeedPostgate_EmbeddingRules_Elem struct { 40 33 FeedPostgate_DisableRule *FeedPostgate_DisableRule 41 34 } ··· 89 82 return nil 90 83 } 91 84 } 85 + 86 + // FeedPostgate_DisableRule is a "disableRule" in the app.bsky.feed.postgate schema. 87 + // 88 + // Disables embedding of this post. 89 + type FeedPostgate_DisableRule struct { 90 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.feed.postgate#disableRule"` 91 + }
+1 -1
api/bsky/feedsearchPosts.go
··· 53 53 if mentions != "" { 54 54 params["mentions"] = mentions 55 55 } 56 - params["q"] = q 57 56 if since != "" { 58 57 params["since"] = since 59 58 } ··· 69 68 if url != "" { 70 69 params["url"] = url 71 70 } 71 + params["q"] = q 72 72 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil { 73 73 return nil, err 74 74 }
+8 -4
api/bsky/graphdefs.go
··· 11 11 12 12 // GraphDefs_ListItemView is a "listItemView" in the app.bsky.graph.defs schema. 13 13 type GraphDefs_ListItemView struct { 14 - Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` 15 - Uri string `json:"uri" cborgen:"uri"` 14 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#listItemView"` 15 + Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` 16 + Uri string `json:"uri" cborgen:"uri"` 16 17 } 17 18 18 19 // GraphDefs_ListView is a "listView" in the app.bsky.graph.defs schema. ··· 34 35 35 36 // GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema. 36 37 type GraphDefs_ListViewBasic struct { 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#listViewBasic"` 37 39 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 38 40 Cid string `json:"cid" cborgen:"cid"` 39 41 IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` ··· 47 49 48 50 // GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema. 49 51 type GraphDefs_ListViewerState struct { 50 - Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"` 51 - Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"` 52 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#listViewerState"` 53 + Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"` 54 + Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"` 52 55 } 53 56 54 57 // GraphDefs_NotFoundActor is a "notFoundActor" in the app.bsky.graph.defs schema. ··· 74 77 75 78 // GraphDefs_StarterPackView is a "starterPackView" in the app.bsky.graph.defs schema. 76 79 type GraphDefs_StarterPackView struct { 80 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.defs#starterPackView"` 77 81 Cid string `json:"cid" cborgen:"cid"` 78 82 Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"` 79 83 Feeds []*FeedDefs_GeneratorView `json:"feeds,omitempty" cborgen:"feeds,omitempty"`
+1 -1
api/bsky/graphgetActorStarterPacks.go
··· 21 21 var out GraphGetActorStarterPacks_Output 22 22 23 23 params := map[string]interface{}{} 24 - params["actor"] = actor 25 24 if cursor != "" { 26 25 params["cursor"] = cursor 27 26 } 28 27 if limit != 0 { 29 28 params["limit"] = limit 30 29 } 30 + params["actor"] = actor 31 31 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil { 32 32 return nil, err 33 33 }
+1 -1
api/bsky/graphgetFollowers.go
··· 22 22 var out GraphGetFollowers_Output 23 23 24 24 params := map[string]interface{}{} 25 - params["actor"] = actor 26 25 if cursor != "" { 27 26 params["cursor"] = cursor 28 27 } 29 28 if limit != 0 { 30 29 params["limit"] = limit 31 30 } 31 + params["actor"] = actor 32 32 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil { 33 33 return nil, err 34 34 }
+1 -1
api/bsky/graphgetFollows.go
··· 22 22 var out GraphGetFollows_Output 23 23 24 24 params := map[string]interface{}{} 25 - params["actor"] = actor 26 25 if cursor != "" { 27 26 params["cursor"] = cursor 28 27 } 29 28 if limit != 0 { 30 29 params["limit"] = limit 31 30 } 31 + params["actor"] = actor 32 32 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil { 33 33 return nil, err 34 34 }
+1 -1
api/bsky/graphgetKnownFollowers.go
··· 22 22 var out GraphGetKnownFollowers_Output 23 23 24 24 params := map[string]interface{}{} 25 - params["actor"] = actor 26 25 if cursor != "" { 27 26 params["cursor"] = cursor 28 27 } 29 28 if limit != 0 { 30 29 params["limit"] = limit 31 30 } 31 + params["actor"] = actor 32 32 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil { 33 33 return nil, err 34 34 }
+1 -1
api/bsky/graphgetLists.go
··· 24 24 var out GraphGetLists_Output 25 25 26 26 params := map[string]interface{}{} 27 - params["actor"] = actor 28 27 if cursor != "" { 29 28 params["cursor"] = cursor 30 29 } ··· 34 33 if len(purposes) != 0 { 35 34 params["purposes"] = purposes 36 35 } 36 + params["actor"] = actor 37 37 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil { 38 38 return nil, err 39 39 }
+10 -9
api/bsky/graphgetListsWithMembership.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // GraphGetListsWithMembership_ListWithMembership is a "listWithMembership" in the app.bsky.graph.getListsWithMembership schema. 14 - // 15 - // A list and an optional list item indicating membership of a target user to that list. 16 - type GraphGetListsWithMembership_ListWithMembership struct { 17 - List *GraphDefs_ListView `json:"list" cborgen:"list"` 18 - ListItem *GraphDefs_ListItemView `json:"listItem,omitempty" cborgen:"listItem,omitempty"` 19 - } 20 - 21 13 // GraphGetListsWithMembership_Output is the output of a app.bsky.graph.getListsWithMembership call. 22 14 type GraphGetListsWithMembership_Output struct { 23 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` ··· 32 24 var out GraphGetListsWithMembership_Output 33 25 34 26 params := map[string]interface{}{} 35 - params["actor"] = actor 36 27 if cursor != "" { 37 28 params["cursor"] = cursor 38 29 } ··· 42 33 if len(purposes) != 0 { 43 34 params["purposes"] = purposes 44 35 } 36 + params["actor"] = actor 45 37 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getListsWithMembership", params, nil, &out); err != nil { 46 38 return nil, err 47 39 } 48 40 49 41 return &out, nil 50 42 } 43 + 44 + // GraphGetListsWithMembership_ListWithMembership is a "listWithMembership" in the app.bsky.graph.getListsWithMembership schema. 45 + // 46 + // A list and an optional list item indicating membership of a target user to that list. 47 + type GraphGetListsWithMembership_ListWithMembership struct { 48 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.getListsWithMembership#listWithMembership"` 49 + List *GraphDefs_ListView `json:"list" cborgen:"list"` 50 + ListItem *GraphDefs_ListItemView `json:"listItem,omitempty" cborgen:"listItem,omitempty"` 51 + }
+1 -1
api/bsky/graphgetRelationships.go
··· 61 61 var out GraphGetRelationships_Output 62 62 63 63 params := map[string]interface{}{} 64 - params["actor"] = actor 65 64 if len(others) != 0 { 66 65 params["others"] = others 67 66 } 67 + params["actor"] = actor 68 68 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getRelationships", params, nil, &out); err != nil { 69 69 return nil, err 70 70 }
+10 -9
api/bsky/graphgetStarterPacksWithMembership.go
··· 16 16 StarterPacksWithMembership []*GraphGetStarterPacksWithMembership_StarterPackWithMembership `json:"starterPacksWithMembership" cborgen:"starterPacksWithMembership"` 17 17 } 18 18 19 - // GraphGetStarterPacksWithMembership_StarterPackWithMembership is a "starterPackWithMembership" in the app.bsky.graph.getStarterPacksWithMembership schema. 20 - // 21 - // A starter pack and an optional list item indicating membership of a target user to that starter pack. 22 - type GraphGetStarterPacksWithMembership_StarterPackWithMembership struct { 23 - ListItem *GraphDefs_ListItemView `json:"listItem,omitempty" cborgen:"listItem,omitempty"` 24 - StarterPack *GraphDefs_StarterPackView `json:"starterPack" cborgen:"starterPack"` 25 - } 26 - 27 19 // GraphGetStarterPacksWithMembership calls the XRPC method "app.bsky.graph.getStarterPacksWithMembership". 28 20 // 29 21 // actor: The account (actor) to check for membership. ··· 31 23 var out GraphGetStarterPacksWithMembership_Output 32 24 33 25 params := map[string]interface{}{} 34 - params["actor"] = actor 35 26 if cursor != "" { 36 27 params["cursor"] = cursor 37 28 } 38 29 if limit != 0 { 39 30 params["limit"] = limit 40 31 } 32 + params["actor"] = actor 41 33 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.graph.getStarterPacksWithMembership", params, nil, &out); err != nil { 42 34 return nil, err 43 35 } 44 36 45 37 return &out, nil 46 38 } 39 + 40 + // GraphGetStarterPacksWithMembership_StarterPackWithMembership is a "starterPackWithMembership" in the app.bsky.graph.getStarterPacksWithMembership schema. 41 + // 42 + // A starter pack and an optional list item indicating membership of a target user to that starter pack. 43 + type GraphGetStarterPacksWithMembership_StarterPackWithMembership struct { 44 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership"` 45 + ListItem *GraphDefs_ListItemView `json:"listItem,omitempty" cborgen:"listItem,omitempty"` 46 + StarterPack *GraphDefs_StarterPackView `json:"starterPack" cborgen:"starterPack"` 47 + }
+2 -1
api/bsky/graphstarterpack.go
··· 26 26 27 27 // GraphStarterpack_FeedItem is a "feedItem" in the app.bsky.graph.starterpack schema. 28 28 type GraphStarterpack_FeedItem struct { 29 - Uri string `json:"uri" cborgen:"uri"` 29 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.graph.starterpack#feedItem"` 30 + Uri string `json:"uri" cborgen:"uri"` 30 31 }
+3 -1
api/bsky/labelerdefs.go
··· 10 10 11 11 // LabelerDefs_LabelerPolicies is a "labelerPolicies" in the app.bsky.labeler.defs schema. 12 12 type LabelerDefs_LabelerPolicies struct { 13 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerPolicies"` 13 14 // labelValueDefinitions: Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. 14 15 LabelValueDefinitions []*comatproto.LabelDefs_LabelValueDefinition `json:"labelValueDefinitions,omitempty" cborgen:"labelValueDefinitions,omitempty"` 15 16 // labelValues: The label values which this labeler publishes. May include global or custom labels. ··· 49 50 50 51 // LabelerDefs_LabelerViewerState is a "labelerViewerState" in the app.bsky.labeler.defs schema. 51 52 type LabelerDefs_LabelerViewerState struct { 52 - Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 53 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewerState"` 54 + Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 53 55 }
+16 -9
api/bsky/notificationdefs.go
··· 6 6 7 7 // NotificationDefs_ActivitySubscription is a "activitySubscription" in the app.bsky.notification.defs schema. 8 8 type NotificationDefs_ActivitySubscription struct { 9 - Post bool `json:"post" cborgen:"post"` 10 - Reply bool `json:"reply" cborgen:"reply"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#activitySubscription"` 10 + Post bool `json:"post" cborgen:"post"` 11 + Reply bool `json:"reply" cborgen:"reply"` 11 12 } 12 13 13 14 // NotificationDefs_ChatPreference is a "chatPreference" in the app.bsky.notification.defs schema. 14 15 type NotificationDefs_ChatPreference struct { 15 - Include string `json:"include" cborgen:"include"` 16 - Push bool `json:"push" cborgen:"push"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#chatPreference"` 17 + Include string `json:"include" cborgen:"include"` 18 + Push bool `json:"push" cborgen:"push"` 17 19 } 18 20 19 21 // NotificationDefs_FilterablePreference is a "filterablePreference" in the app.bsky.notification.defs schema. 20 22 type NotificationDefs_FilterablePreference struct { 21 - Include string `json:"include" cborgen:"include"` 22 - List bool `json:"list" cborgen:"list"` 23 - Push bool `json:"push" cborgen:"push"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#filterablePreference"` 24 + Include string `json:"include" cborgen:"include"` 25 + List bool `json:"list" cborgen:"list"` 26 + Push bool `json:"push" cborgen:"push"` 24 27 } 25 28 26 29 // NotificationDefs_Preference is a "preference" in the app.bsky.notification.defs schema. 27 30 type NotificationDefs_Preference struct { 28 - List bool `json:"list" cborgen:"list"` 29 - Push bool `json:"push" cborgen:"push"` 31 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#preference"` 32 + List bool `json:"list" cborgen:"list"` 33 + Push bool `json:"push" cborgen:"push"` 30 34 } 31 35 32 36 // NotificationDefs_Preferences is a "preferences" in the app.bsky.notification.defs schema. 33 37 type NotificationDefs_Preferences struct { 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#preferences"` 34 39 Chat *NotificationDefs_ChatPreference `json:"chat" cborgen:"chat"` 35 40 Follow *NotificationDefs_FilterablePreference `json:"follow" cborgen:"follow"` 36 41 Like *NotificationDefs_FilterablePreference `json:"like" cborgen:"like"` ··· 48 53 49 54 // NotificationDefs_RecordDeleted is a "recordDeleted" in the app.bsky.notification.defs schema. 50 55 type NotificationDefs_RecordDeleted struct { 56 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#recordDeleted"` 51 57 } 52 58 53 59 // NotificationDefs_SubjectActivitySubscription is a "subjectActivitySubscription" in the app.bsky.notification.defs schema. 54 60 // 55 61 // Object used to store activity subscription data in stash. 56 62 type NotificationDefs_SubjectActivitySubscription struct { 63 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.defs#subjectActivitySubscription"` 57 64 ActivitySubscription *NotificationDefs_ActivitySubscription `json:"activitySubscription" cborgen:"activitySubscription"` 58 65 Subject string `json:"subject" cborgen:"subject"` 59 66 }
+1 -3
api/bsky/notificationgetPreferences.go
··· 18 18 // NotificationGetPreferences calls the XRPC method "app.bsky.notification.getPreferences". 19 19 func NotificationGetPreferences(ctx context.Context, c lexutil.LexClient) (*NotificationGetPreferences_Output, error) { 20 20 var out NotificationGetPreferences_Output 21 - 22 - params := map[string]interface{}{} 23 - if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.notification.getPreferences", params, nil, &out); err != nil { 21 + if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.notification.getPreferences", nil, nil, &out); err != nil { 24 22 return nil, err 25 23 } 26 24
+15 -14
api/bsky/notificationlistNotifications.go
··· 11 11 lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 - // NotificationListNotifications_Notification is a "notification" in the app.bsky.notification.listNotifications schema. 15 - type NotificationListNotifications_Notification struct { 16 - Author *ActorDefs_ProfileView `json:"author" cborgen:"author"` 17 - Cid string `json:"cid" cborgen:"cid"` 18 - IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 19 - IsRead bool `json:"isRead" cborgen:"isRead"` 20 - Labels []*comatproto.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 21 - // reason: The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. 22 - Reason string `json:"reason" cborgen:"reason"` 23 - ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"` 24 - Record *lexutil.LexiconTypeDecoder `json:"record" cborgen:"record"` 25 - Uri string `json:"uri" cborgen:"uri"` 26 - } 27 - 28 14 // NotificationListNotifications_Output is the output of a app.bsky.notification.listNotifications call. 29 15 type NotificationListNotifications_Output struct { 30 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` ··· 61 47 62 48 return &out, nil 63 49 } 50 + 51 + // NotificationListNotifications_Notification is a "notification" in the app.bsky.notification.listNotifications schema. 52 + type NotificationListNotifications_Notification struct { 53 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.notification.listNotifications#notification"` 54 + Author *ActorDefs_ProfileView `json:"author" cborgen:"author"` 55 + Cid string `json:"cid" cborgen:"cid"` 56 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 57 + IsRead bool `json:"isRead" cborgen:"isRead"` 58 + Labels []*comatproto.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 59 + // reason: The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. 60 + Reason string `json:"reason" cborgen:"reason"` 61 + ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"` 62 + Record *lexutil.LexiconTypeDecoder `json:"record" cborgen:"record"` 63 + Uri string `json:"uri" cborgen:"uri"` 64 + }
+16 -12
api/bsky/richtextfacet.go
··· 14 14 cbg "github.com/whyrusleeping/cbor-gen" 15 15 ) 16 16 17 - // RichtextFacet is a "main" in the app.bsky.richtext.facet schema. 18 - // 17 + func init() { 18 + lexutil.RegisterType("app.bsky.richtext.facet#main", &RichtextFacet{}) 19 + } 20 + 19 21 // Annotation of a sub-string within rich text. 20 22 type RichtextFacet struct { 21 - Features []*RichtextFacet_Features_Elem `json:"features" cborgen:"features"` 22 - Index *RichtextFacet_ByteSlice `json:"index" cborgen:"index"` 23 - } 24 - 25 - // RichtextFacet_ByteSlice is a "byteSlice" in the app.bsky.richtext.facet schema. 26 - // 27 - // Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. 28 - type RichtextFacet_ByteSlice struct { 29 - ByteEnd int64 `json:"byteEnd" cborgen:"byteEnd"` 30 - ByteStart int64 `json:"byteStart" cborgen:"byteStart"` 23 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet"` 24 + Features []*RichtextFacet_Features_Elem `json:"features" cborgen:"features"` 25 + Index *RichtextFacet_ByteSlice `json:"index" cborgen:"index"` 31 26 } 32 27 33 28 type RichtextFacet_Features_Elem struct { ··· 110 105 default: 111 106 return nil 112 107 } 108 + } 109 + 110 + // RichtextFacet_ByteSlice is a "byteSlice" in the app.bsky.richtext.facet schema. 111 + // 112 + // Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. 113 + type RichtextFacet_ByteSlice struct { 114 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.richtext.facet#byteSlice"` 115 + ByteEnd int64 `json:"byteEnd" cborgen:"byteEnd"` 116 + ByteStart int64 `json:"byteStart" cborgen:"byteStart"` 113 117 } 114 118 115 119 // RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema.
+31 -23
api/bsky/unspecceddefs.go
··· 8 8 // 9 9 // Object used to store age assurance data in stash. 10 10 type UnspeccedDefs_AgeAssuranceEvent struct { 11 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#ageAssuranceEvent"` 11 12 // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format. 12 13 AttemptId string `json:"attemptId" cborgen:"attemptId"` 13 14 // completeIp: The IP address used when completing the AA flow. ··· 30 31 // 31 32 // The computed state of the age assurance process, returned to the user in question on certain authenticated requests. 32 33 type UnspeccedDefs_AgeAssuranceState struct { 34 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#ageAssuranceState"` 33 35 // lastInitiatedAt: The timestamp when this state was last updated. 34 36 LastInitiatedAt *string `json:"lastInitiatedAt,omitempty" cborgen:"lastInitiatedAt,omitempty"` 35 37 // status: The status of the age assurance process. ··· 38 40 39 41 // UnspeccedDefs_SkeletonSearchActor is a "skeletonSearchActor" in the app.bsky.unspecced.defs schema. 40 42 type UnspeccedDefs_SkeletonSearchActor struct { 41 - Did string `json:"did" cborgen:"did"` 43 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#skeletonSearchActor"` 44 + Did string `json:"did" cborgen:"did"` 42 45 } 43 46 44 47 // UnspeccedDefs_SkeletonSearchPost is a "skeletonSearchPost" in the app.bsky.unspecced.defs schema. 45 48 type UnspeccedDefs_SkeletonSearchPost struct { 46 - Uri string `json:"uri" cborgen:"uri"` 49 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#skeletonSearchPost"` 50 + Uri string `json:"uri" cborgen:"uri"` 47 51 } 48 52 49 53 // UnspeccedDefs_SkeletonSearchStarterPack is a "skeletonSearchStarterPack" in the app.bsky.unspecced.defs schema. 50 54 type UnspeccedDefs_SkeletonSearchStarterPack struct { 51 - Uri string `json:"uri" cborgen:"uri"` 55 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#skeletonSearchStarterPack"` 56 + Uri string `json:"uri" cborgen:"uri"` 52 57 } 53 58 54 59 // UnspeccedDefs_SkeletonTrend is a "skeletonTrend" in the app.bsky.unspecced.defs schema. 55 60 type UnspeccedDefs_SkeletonTrend struct { 56 - Category *string `json:"category,omitempty" cborgen:"category,omitempty"` 57 - Dids []string `json:"dids" cborgen:"dids"` 58 - DisplayName string `json:"displayName" cborgen:"displayName"` 59 - Link string `json:"link" cborgen:"link"` 60 - PostCount int64 `json:"postCount" cborgen:"postCount"` 61 - StartedAt string `json:"startedAt" cborgen:"startedAt"` 62 - Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 63 - Topic string `json:"topic" cborgen:"topic"` 61 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#skeletonTrend"` 62 + Category *string `json:"category,omitempty" cborgen:"category,omitempty"` 63 + Dids []string `json:"dids" cborgen:"dids"` 64 + DisplayName string `json:"displayName" cborgen:"displayName"` 65 + Link string `json:"link" cborgen:"link"` 66 + PostCount int64 `json:"postCount" cborgen:"postCount"` 67 + StartedAt string `json:"startedAt" cborgen:"startedAt"` 68 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 69 + Topic string `json:"topic" cborgen:"topic"` 64 70 } 65 71 66 72 // UnspeccedDefs_ThreadItemBlocked is a "threadItemBlocked" in the app.bsky.unspecced.defs schema. ··· 97 103 98 104 // UnspeccedDefs_TrendView is a "trendView" in the app.bsky.unspecced.defs schema. 99 105 type UnspeccedDefs_TrendView struct { 100 - Actors []*ActorDefs_ProfileViewBasic `json:"actors" cborgen:"actors"` 101 - Category *string `json:"category,omitempty" cborgen:"category,omitempty"` 102 - DisplayName string `json:"displayName" cborgen:"displayName"` 103 - Link string `json:"link" cborgen:"link"` 104 - PostCount int64 `json:"postCount" cborgen:"postCount"` 105 - StartedAt string `json:"startedAt" cborgen:"startedAt"` 106 - Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 107 - Topic string `json:"topic" cborgen:"topic"` 106 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#trendView"` 107 + Actors []*ActorDefs_ProfileViewBasic `json:"actors" cborgen:"actors"` 108 + Category *string `json:"category,omitempty" cborgen:"category,omitempty"` 109 + DisplayName string `json:"displayName" cborgen:"displayName"` 110 + Link string `json:"link" cborgen:"link"` 111 + PostCount int64 `json:"postCount" cborgen:"postCount"` 112 + StartedAt string `json:"startedAt" cborgen:"startedAt"` 113 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 114 + Topic string `json:"topic" cborgen:"topic"` 108 115 } 109 116 110 117 // UnspeccedDefs_TrendingTopic is a "trendingTopic" in the app.bsky.unspecced.defs schema. 111 118 type UnspeccedDefs_TrendingTopic struct { 112 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 113 - DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 114 - Link string `json:"link" cborgen:"link"` 115 - Topic string `json:"topic" cborgen:"topic"` 119 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.defs#trendingTopic"` 120 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 121 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 122 + Link string `json:"link" cborgen:"link"` 123 + Topic string `json:"topic" cborgen:"topic"` 116 124 }
+7 -6
api/bsky/unspeccedgetConfig.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // UnspeccedGetConfig_LiveNowConfig is a "liveNowConfig" in the app.bsky.unspecced.getConfig schema. 14 - type UnspeccedGetConfig_LiveNowConfig struct { 15 - Did string `json:"did" cborgen:"did"` 16 - Domains []string `json:"domains" cborgen:"domains"` 17 - } 18 - 19 13 // UnspeccedGetConfig_Output is the output of a app.bsky.unspecced.getConfig call. 20 14 type UnspeccedGetConfig_Output struct { 21 15 CheckEmailConfirmed *bool `json:"checkEmailConfirmed,omitempty" cborgen:"checkEmailConfirmed,omitempty"` ··· 31 25 32 26 return &out, nil 33 27 } 28 + 29 + // UnspeccedGetConfig_LiveNowConfig is a "liveNowConfig" in the app.bsky.unspecced.getConfig schema. 30 + type UnspeccedGetConfig_LiveNowConfig struct { 31 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.getConfig#liveNowConfig"` 32 + Did string `json:"did" cborgen:"did"` 33 + Domains []string `json:"domains" cborgen:"domains"` 34 + }
+16 -19
api/bsky/unspeccedgetPostThreadOtherV2.go
··· 18 18 Thread []*UnspeccedGetPostThreadOtherV2_ThreadItem `json:"thread" cborgen:"thread"` 19 19 } 20 20 21 + // UnspeccedGetPostThreadOtherV2 calls the XRPC method "app.bsky.unspecced.getPostThreadOtherV2". 22 + // 23 + // anchor: Reference (AT-URI) to post record. This is the anchor post. 24 + func UnspeccedGetPostThreadOtherV2(ctx context.Context, c lexutil.LexClient, anchor string) (*UnspeccedGetPostThreadOtherV2_Output, error) { 25 + var out UnspeccedGetPostThreadOtherV2_Output 26 + 27 + params := map[string]interface{}{} 28 + params["anchor"] = anchor 29 + if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getPostThreadOtherV2", params, nil, &out); err != nil { 30 + return nil, err 31 + } 32 + 33 + return &out, nil 34 + } 35 + 21 36 // UnspeccedGetPostThreadOtherV2_ThreadItem is a "threadItem" in the app.bsky.unspecced.getPostThreadOtherV2 schema. 22 37 type UnspeccedGetPostThreadOtherV2_ThreadItem struct { 38 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.getPostThreadOtherV2#threadItem"` 23 39 // depth: The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths. 24 40 Depth int64 `json:"depth" cborgen:"depth"` 25 41 Uri string `json:"uri" cborgen:"uri"` ··· 52 68 return nil 53 69 } 54 70 } 55 - 56 - // UnspeccedGetPostThreadOtherV2 calls the XRPC method "app.bsky.unspecced.getPostThreadOtherV2". 57 - // 58 - // anchor: Reference (AT-URI) to post record. This is the anchor post. 59 - // prioritizeFollowedUsers: Whether to prioritize posts from followed users. It only has effect when the user is authenticated. 60 - func UnspeccedGetPostThreadOtherV2(ctx context.Context, c lexutil.LexClient, anchor string, prioritizeFollowedUsers bool) (*UnspeccedGetPostThreadOtherV2_Output, error) { 61 - var out UnspeccedGetPostThreadOtherV2_Output 62 - 63 - params := map[string]interface{}{} 64 - params["anchor"] = anchor 65 - if prioritizeFollowedUsers { 66 - params["prioritizeFollowedUsers"] = prioritizeFollowedUsers 67 - } 68 - if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getPostThreadOtherV2", params, nil, &out); err != nil { 69 - return nil, err 70 - } 71 - 72 - return &out, nil 73 - }
+32 -35
api/bsky/unspeccedgetPostThreadV2.go
··· 21 21 Threadgate *FeedDefs_ThreadgateView `json:"threadgate,omitempty" cborgen:"threadgate,omitempty"` 22 22 } 23 23 24 + // UnspeccedGetPostThreadV2 calls the XRPC method "app.bsky.unspecced.getPostThreadV2". 25 + // 26 + // above: Whether to include parents above the anchor. 27 + // anchor: Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post. 28 + // below: How many levels of replies to include below the anchor. 29 + // branchingFactor: Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated). 30 + // sort: Sorting for the thread replies. 31 + func UnspeccedGetPostThreadV2(ctx context.Context, c lexutil.LexClient, above bool, anchor string, below int64, branchingFactor int64, sort string) (*UnspeccedGetPostThreadV2_Output, error) { 32 + var out UnspeccedGetPostThreadV2_Output 33 + 34 + params := map[string]interface{}{} 35 + if above { 36 + params["above"] = above 37 + } 38 + if below != 0 { 39 + params["below"] = below 40 + } 41 + if branchingFactor != 0 { 42 + params["branchingFactor"] = branchingFactor 43 + } 44 + if sort != "" { 45 + params["sort"] = sort 46 + } 47 + params["anchor"] = anchor 48 + if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getPostThreadV2", params, nil, &out); err != nil { 49 + return nil, err 50 + } 51 + 52 + return &out, nil 53 + } 54 + 24 55 // UnspeccedGetPostThreadV2_ThreadItem is a "threadItem" in the app.bsky.unspecced.getPostThreadV2 schema. 25 56 type UnspeccedGetPostThreadV2_ThreadItem struct { 57 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.getPostThreadV2#threadItem"` 26 58 // depth: The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths. 27 59 Depth int64 `json:"depth" cborgen:"depth"` 28 60 Uri string `json:"uri" cborgen:"uri"` ··· 79 111 return nil 80 112 } 81 113 } 82 - 83 - // UnspeccedGetPostThreadV2 calls the XRPC method "app.bsky.unspecced.getPostThreadV2". 84 - // 85 - // above: Whether to include parents above the anchor. 86 - // anchor: Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post. 87 - // below: How many levels of replies to include below the anchor. 88 - // branchingFactor: Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated). 89 - // prioritizeFollowedUsers: Whether to prioritize posts from followed users. It only has effect when the user is authenticated. 90 - // sort: Sorting for the thread replies. 91 - func UnspeccedGetPostThreadV2(ctx context.Context, c lexutil.LexClient, above bool, anchor string, below int64, branchingFactor int64, prioritizeFollowedUsers bool, sort string) (*UnspeccedGetPostThreadV2_Output, error) { 92 - var out UnspeccedGetPostThreadV2_Output 93 - 94 - params := map[string]interface{}{} 95 - if above { 96 - params["above"] = above 97 - } 98 - params["anchor"] = anchor 99 - if below != 0 { 100 - params["below"] = below 101 - } 102 - if branchingFactor != 0 { 103 - params["branchingFactor"] = branchingFactor 104 - } 105 - if prioritizeFollowedUsers { 106 - params["prioritizeFollowedUsers"] = prioritizeFollowedUsers 107 - } 108 - if sort != "" { 109 - params["sort"] = sort 110 - } 111 - if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getPostThreadV2", params, nil, &out); err != nil { 112 - return nil, err 113 - } 114 - 115 - return &out, nil 116 - }
+9 -10
api/bsky/unspeccedgetTaggedSuggestions.go
··· 15 15 Suggestions []*UnspeccedGetTaggedSuggestions_Suggestion `json:"suggestions" cborgen:"suggestions"` 16 16 } 17 17 18 - // UnspeccedGetTaggedSuggestions_Suggestion is a "suggestion" in the app.bsky.unspecced.getTaggedSuggestions schema. 19 - type UnspeccedGetTaggedSuggestions_Suggestion struct { 20 - Subject string `json:"subject" cborgen:"subject"` 21 - SubjectType string `json:"subjectType" cborgen:"subjectType"` 22 - Tag string `json:"tag" cborgen:"tag"` 23 - } 24 - 25 18 // UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions". 26 19 func UnspeccedGetTaggedSuggestions(ctx context.Context, c lexutil.LexClient) (*UnspeccedGetTaggedSuggestions_Output, error) { 27 20 var out UnspeccedGetTaggedSuggestions_Output 28 - 29 - params := map[string]interface{}{} 30 - if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil { 21 + if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.getTaggedSuggestions", nil, nil, &out); err != nil { 31 22 return nil, err 32 23 } 33 24 34 25 return &out, nil 35 26 } 27 + 28 + // UnspeccedGetTaggedSuggestions_Suggestion is a "suggestion" in the app.bsky.unspecced.getTaggedSuggestions schema. 29 + type UnspeccedGetTaggedSuggestions_Suggestion struct { 30 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.unspecced.getTaggedSuggestions#suggestion"` 31 + Subject string `json:"subject" cborgen:"subject"` 32 + SubjectType string `json:"subjectType" cborgen:"subjectType"` 33 + Tag string `json:"tag" cborgen:"tag"` 34 + }
+1 -1
api/bsky/unspeccedsearchActorsSkeleton.go
··· 34 34 if limit != 0 { 35 35 params["limit"] = limit 36 36 } 37 - params["q"] = q 38 37 if typeahead { 39 38 params["typeahead"] = typeahead 40 39 } 41 40 if viewer != "" { 42 41 params["viewer"] = viewer 43 42 } 43 + params["q"] = q 44 44 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil { 45 45 return nil, err 46 46 }
+1 -1
api/bsky/unspeccedsearchPostsSkeleton.go
··· 54 54 if mentions != "" { 55 55 params["mentions"] = mentions 56 56 } 57 - params["q"] = q 58 57 if since != "" { 59 58 params["since"] = since 60 59 } ··· 73 72 if viewer != "" { 74 73 params["viewer"] = viewer 75 74 } 75 + params["q"] = q 76 76 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil { 77 77 return nil, err 78 78 }
+1 -1
api/bsky/unspeccedsearchStarterPacksSkeleton.go
··· 33 33 if limit != 0 { 34 34 params["limit"] = limit 35 35 } 36 - params["q"] = q 37 36 if viewer != "" { 38 37 params["viewer"] = viewer 39 38 } 39 + params["q"] = q 40 40 if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil { 41 41 return nil, err 42 42 }
+6 -5
api/bsky/videodefs.go
··· 10 10 11 11 // VideoDefs_JobStatus is a "jobStatus" in the app.bsky.video.defs schema. 12 12 type VideoDefs_JobStatus struct { 13 - Blob *lexutil.LexBlob `json:"blob,omitempty" cborgen:"blob,omitempty"` 14 - Did string `json:"did" cborgen:"did"` 15 - Error *string `json:"error,omitempty" cborgen:"error,omitempty"` 16 - JobId string `json:"jobId" cborgen:"jobId"` 17 - Message *string `json:"message,omitempty" cborgen:"message,omitempty"` 13 + LexiconTypeID string `json:"$type" cborgen:"$type,const=app.bsky.video.defs#jobStatus"` 14 + Blob *lexutil.LexBlob `json:"blob,omitempty" cborgen:"blob,omitempty"` 15 + Did string `json:"did" cborgen:"did"` 16 + Error *string `json:"error,omitempty" cborgen:"error,omitempty"` 17 + JobId string `json:"jobId" cborgen:"jobId"` 18 + Message *string `json:"message,omitempty" cborgen:"message,omitempty"` 18 19 // progress: Progress within the current processing state. 19 20 Progress *int64 `json:"progress,omitempty" cborgen:"progress,omitempty"` 20 21 // state: The state of the video processing job. All values not listed as a known value indicate that the job is in process.
+3 -2
api/chat/actordefs.go
··· 11 11 12 12 // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the chat.bsky.actor.defs schema. 13 13 type ActorDefs_ProfileViewBasic struct { 14 - Associated *appbsky.ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 15 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 14 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.actor.defs#profileViewBasic"` 15 + Associated *appbsky.ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 16 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 16 17 // chatDisabled: Set to true when the actor cannot actively participate in conversations 17 18 ChatDisabled *bool `json:"chatDisabled,omitempty" cborgen:"chatDisabled,omitempty"` 18 19 Did string `json:"did" cborgen:"did"`
+1
api/chat/actorexportAccountData.go
··· 14 14 // ActorExportAccountData calls the XRPC method "chat.bsky.actor.exportAccountData". 15 15 func ActorExportAccountData(ctx context.Context, c lexutil.LexClient) ([]byte, error) { 16 16 buf := new(bytes.Buffer) 17 + 17 18 if err := c.LexDo(ctx, lexutil.Query, "", "chat.bsky.actor.exportAccountData", nil, nil, buf); err != nil { 18 19 return nil, err 19 20 }
+24 -19
api/chat/convodefs.go
··· 14 14 15 15 // ConvoDefs_ConvoView is a "convoView" in the chat.bsky.convo.defs schema. 16 16 type ConvoDefs_ConvoView struct { 17 - Id string `json:"id" cborgen:"id"` 18 - LastMessage *ConvoDefs_ConvoView_LastMessage `json:"lastMessage,omitempty" cborgen:"lastMessage,omitempty"` 19 - LastReaction *ConvoDefs_ConvoView_LastReaction `json:"lastReaction,omitempty" cborgen:"lastReaction,omitempty"` 20 - Members []*ActorDefs_ProfileViewBasic `json:"members" cborgen:"members"` 21 - Muted bool `json:"muted" cborgen:"muted"` 22 - Rev string `json:"rev" cborgen:"rev"` 23 - Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 24 - UnreadCount int64 `json:"unreadCount" cborgen:"unreadCount"` 17 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#convoView"` 18 + Id string `json:"id" cborgen:"id"` 19 + LastMessage *ConvoDefs_ConvoView_LastMessage `json:"lastMessage,omitempty" cborgen:"lastMessage,omitempty"` 20 + LastReaction *ConvoDefs_ConvoView_LastReaction `json:"lastReaction,omitempty" cborgen:"lastReaction,omitempty"` 21 + Members []*ActorDefs_ProfileViewBasic `json:"members" cborgen:"members"` 22 + Muted bool `json:"muted" cborgen:"muted"` 23 + Rev string `json:"rev" cborgen:"rev"` 24 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 25 + UnreadCount int64 `json:"unreadCount" cborgen:"unreadCount"` 25 26 } 26 27 27 28 type ConvoDefs_ConvoView_LastMessage struct { ··· 354 355 Reaction *ConvoDefs_ReactionView `json:"reaction" cborgen:"reaction"` 355 356 } 356 357 357 - // ConvoDefs_MessageInput is the input argument to a chat.bsky.convo.defs call. 358 + // ConvoDefs_MessageInput is a "messageInput" in the chat.bsky.convo.defs schema. 358 359 type ConvoDefs_MessageInput struct { 359 - Embed *ConvoDefs_MessageInput_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 360 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#messageInput"` 361 + Embed *ConvoDefs_MessageInput_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 360 362 // facets: Annotations of text (mentions, URLs, hashtags, etc) 361 363 Facets []*appbsky.RichtextFacet `json:"facets,omitempty" cborgen:"facets,omitempty"` 362 364 Text string `json:"text" cborgen:"text"` ··· 412 414 Text string `json:"text" cborgen:"text"` 413 415 } 414 416 415 - // ConvoDefs_MessageViewSender is a "messageViewSender" in the chat.bsky.convo.defs schema. 416 - type ConvoDefs_MessageViewSender struct { 417 - Did string `json:"did" cborgen:"did"` 418 - } 419 - 420 417 type ConvoDefs_MessageView_Embed struct { 421 418 EmbedRecord_View *appbsky.EmbedRecord_View 422 419 } ··· 444 441 } 445 442 } 446 443 444 + // ConvoDefs_MessageViewSender is a "messageViewSender" in the chat.bsky.convo.defs schema. 445 + type ConvoDefs_MessageViewSender struct { 446 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#messageViewSender"` 447 + Did string `json:"did" cborgen:"did"` 448 + } 449 + 447 450 // ConvoDefs_ReactionView is a "reactionView" in the chat.bsky.convo.defs schema. 448 451 type ConvoDefs_ReactionView struct { 449 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 450 - Sender *ConvoDefs_ReactionViewSender `json:"sender" cborgen:"sender"` 451 - Value string `json:"value" cborgen:"value"` 452 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#reactionView"` 453 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 454 + Sender *ConvoDefs_ReactionViewSender `json:"sender" cborgen:"sender"` 455 + Value string `json:"value" cborgen:"value"` 452 456 } 453 457 454 458 // ConvoDefs_ReactionViewSender is a "reactionViewSender" in the chat.bsky.convo.defs schema. 455 459 type ConvoDefs_ReactionViewSender struct { 456 - Did string `json:"did" cborgen:"did"` 460 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.defs#reactionViewSender"` 461 + Did string `json:"did" cborgen:"did"` 457 462 }
+1 -1
api/chat/convogetMessages.go
··· 58 58 var out ConvoGetMessages_Output 59 59 60 60 params := map[string]interface{}{} 61 - params["convoId"] = convoId 62 61 if cursor != "" { 63 62 params["cursor"] = cursor 64 63 } 65 64 if limit != 0 { 66 65 params["limit"] = limit 67 66 } 67 + params["convoId"] = convoId 68 68 if err := c.LexDo(ctx, lexutil.Query, "", "chat.bsky.convo.getMessages", params, nil, &out); err != nil { 69 69 return nil, err 70 70 }
+7 -6
api/chat/convosendMessageBatch.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ConvoSendMessageBatch_BatchItem is a "batchItem" in the chat.bsky.convo.sendMessageBatch schema. 14 - type ConvoSendMessageBatch_BatchItem struct { 15 - ConvoId string `json:"convoId" cborgen:"convoId"` 16 - Message *ConvoDefs_MessageInput `json:"message" cborgen:"message"` 17 - } 18 - 19 13 // ConvoSendMessageBatch_Input is the input argument to a chat.bsky.convo.sendMessageBatch call. 20 14 type ConvoSendMessageBatch_Input struct { 21 15 Items []*ConvoSendMessageBatch_BatchItem `json:"items" cborgen:"items"` ··· 35 29 36 30 return &out, nil 37 31 } 32 + 33 + // ConvoSendMessageBatch_BatchItem is a "batchItem" in the chat.bsky.convo.sendMessageBatch schema. 34 + type ConvoSendMessageBatch_BatchItem struct { 35 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.convo.sendMessageBatch#batchItem"` 36 + ConvoId string `json:"convoId" cborgen:"convoId"` 37 + Message *ConvoDefs_MessageInput `json:"message" cborgen:"message"` 38 + }
+9 -8
api/chat/moderationgetActorMetadata.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ModerationGetActorMetadata_Metadata is a "metadata" in the chat.bsky.moderation.getActorMetadata schema. 14 - type ModerationGetActorMetadata_Metadata struct { 15 - Convos int64 `json:"convos" cborgen:"convos"` 16 - ConvosStarted int64 `json:"convosStarted" cborgen:"convosStarted"` 17 - MessagesReceived int64 `json:"messagesReceived" cborgen:"messagesReceived"` 18 - MessagesSent int64 `json:"messagesSent" cborgen:"messagesSent"` 19 - } 20 - 21 13 // ModerationGetActorMetadata_Output is the output of a chat.bsky.moderation.getActorMetadata call. 22 14 type ModerationGetActorMetadata_Output struct { 23 15 All *ModerationGetActorMetadata_Metadata `json:"all" cborgen:"all"` ··· 37 29 38 30 return &out, nil 39 31 } 32 + 33 + // ModerationGetActorMetadata_Metadata is a "metadata" in the chat.bsky.moderation.getActorMetadata schema. 34 + type ModerationGetActorMetadata_Metadata struct { 35 + LexiconTypeID string `json:"$type" cborgen:"$type,const=chat.bsky.moderation.getActorMetadata#metadata"` 36 + Convos int64 `json:"convos" cborgen:"convos"` 37 + ConvosStarted int64 `json:"convosStarted" cborgen:"convosStarted"` 38 + MessagesReceived int64 `json:"messagesReceived" cborgen:"messagesReceived"` 39 + MessagesSent int64 `json:"messagesSent" cborgen:"messagesSent"` 40 + }
+1
api/ozone/communicationdefs.go
··· 6 6 7 7 // CommunicationDefs_TemplateView is a "templateView" in the tools.ozone.communication.defs schema. 8 8 type CommunicationDefs_TemplateView struct { 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.communication.defs#templateView"` 9 10 // contentMarkdown: Subject of the message, used in emails. 10 11 ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"` 11 12 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
+32 -31
api/ozone/hostinggetAccountHistory.go
··· 12 12 lexutil "github.com/bluesky-social/indigo/lex/util" 13 13 ) 14 14 15 + // HostingGetAccountHistory_Output is the output of a tools.ozone.hosting.getAccountHistory call. 16 + type HostingGetAccountHistory_Output struct { 17 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 18 + Events []*HostingGetAccountHistory_Event `json:"events" cborgen:"events"` 19 + } 20 + 21 + // HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory". 22 + func HostingGetAccountHistory(ctx context.Context, c lexutil.LexClient, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) { 23 + var out HostingGetAccountHistory_Output 24 + 25 + params := map[string]interface{}{} 26 + if cursor != "" { 27 + params["cursor"] = cursor 28 + } 29 + if len(events) != 0 { 30 + params["events"] = events 31 + } 32 + if limit != 0 { 33 + params["limit"] = limit 34 + } 35 + params["did"] = did 36 + if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil { 37 + return nil, err 38 + } 39 + 40 + return &out, nil 41 + } 42 + 15 43 // HostingGetAccountHistory_AccountCreated is a "accountCreated" in the tools.ozone.hosting.getAccountHistory schema. 16 44 type HostingGetAccountHistory_AccountCreated struct { 17 45 LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#accountCreated"` ··· 33 61 34 62 // HostingGetAccountHistory_Event is a "event" in the tools.ozone.hosting.getAccountHistory schema. 35 63 type HostingGetAccountHistory_Event struct { 36 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 37 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 38 - Details *HostingGetAccountHistory_Event_Details `json:"details" cborgen:"details"` 64 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#event"` 65 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 66 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 67 + Details *HostingGetAccountHistory_Event_Details `json:"details" cborgen:"details"` 39 68 } 40 69 41 70 type HostingGetAccountHistory_Event_Details struct { ··· 103 132 Handle string `json:"handle" cborgen:"handle"` 104 133 } 105 134 106 - // HostingGetAccountHistory_Output is the output of a tools.ozone.hosting.getAccountHistory call. 107 - type HostingGetAccountHistory_Output struct { 108 - Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 109 - Events []*HostingGetAccountHistory_Event `json:"events" cborgen:"events"` 110 - } 111 - 112 135 // HostingGetAccountHistory_PasswordUpdated is a "passwordUpdated" in the tools.ozone.hosting.getAccountHistory schema. 113 136 type HostingGetAccountHistory_PasswordUpdated struct { 114 137 LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.hosting.getAccountHistory#passwordUpdated"` 115 138 } 116 - 117 - // HostingGetAccountHistory calls the XRPC method "tools.ozone.hosting.getAccountHistory". 118 - func HostingGetAccountHistory(ctx context.Context, c lexutil.LexClient, cursor string, did string, events []string, limit int64) (*HostingGetAccountHistory_Output, error) { 119 - var out HostingGetAccountHistory_Output 120 - 121 - params := map[string]interface{}{} 122 - if cursor != "" { 123 - params["cursor"] = cursor 124 - } 125 - params["did"] = did 126 - if len(events) != 0 { 127 - params["events"] = events 128 - } 129 - if limit != 0 { 130 - params["limit"] = limit 131 - } 132 - if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.hosting.getAccountHistory", params, nil, &out); err != nil { 133 - return nil, err 134 - } 135 - 136 - return &out, nil 137 - }
+17 -15
api/ozone/moderationcancelScheduledActions.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // ModerationCancelScheduledActions_CancellationResults is a "cancellationResults" in the tools.ozone.moderation.cancelScheduledActions schema. 14 - type ModerationCancelScheduledActions_CancellationResults struct { 15 - // failed: DIDs for which cancellation failed with error details 16 - Failed []*ModerationCancelScheduledActions_FailedCancellation `json:"failed" cborgen:"failed"` 17 - // succeeded: DIDs for which all pending scheduled actions were successfully cancelled 18 - Succeeded []string `json:"succeeded" cborgen:"succeeded"` 19 - } 20 - 21 - // ModerationCancelScheduledActions_FailedCancellation is a "failedCancellation" in the tools.ozone.moderation.cancelScheduledActions schema. 22 - type ModerationCancelScheduledActions_FailedCancellation struct { 23 - Did string `json:"did" cborgen:"did"` 24 - Error string `json:"error" cborgen:"error"` 25 - ErrorCode *string `json:"errorCode,omitempty" cborgen:"errorCode,omitempty"` 26 - } 27 - 28 13 // ModerationCancelScheduledActions_Input is the input argument to a tools.ozone.moderation.cancelScheduledActions call. 29 14 type ModerationCancelScheduledActions_Input struct { 30 15 // comment: Optional comment describing the reason for cancellation ··· 42 27 43 28 return &out, nil 44 29 } 30 + 31 + // ModerationCancelScheduledActions_CancellationResults is a "cancellationResults" in the tools.ozone.moderation.cancelScheduledActions schema. 32 + type ModerationCancelScheduledActions_CancellationResults struct { 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.cancelScheduledActions#cancellationResults"` 34 + // failed: DIDs for which cancellation failed with error details 35 + Failed []*ModerationCancelScheduledActions_FailedCancellation `json:"failed" cborgen:"failed"` 36 + // succeeded: DIDs for which all pending scheduled actions were successfully cancelled 37 + Succeeded []string `json:"succeeded" cborgen:"succeeded"` 38 + } 39 + 40 + // ModerationCancelScheduledActions_FailedCancellation is a "failedCancellation" in the tools.ozone.moderation.cancelScheduledActions schema. 41 + type ModerationCancelScheduledActions_FailedCancellation struct { 42 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.cancelScheduledActions#failedCancellation"` 43 + Did string `json:"did" cborgen:"did"` 44 + Error string `json:"error" cborgen:"error"` 45 + ErrorCode *string `json:"errorCode,omitempty" cborgen:"errorCode,omitempty"` 46 + }
+117 -85
api/ozone/moderationdefs.go
··· 40 40 // 41 41 // Statistics about a particular account subject 42 42 type ModerationDefs_AccountStats struct { 43 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountStats"` 43 44 // appealCount: Total number of appeals against a moderation action on the account 44 45 AppealCount *int64 `json:"appealCount,omitempty" cborgen:"appealCount,omitempty"` 45 46 // escalateCount: Number of times the account was escalated ··· 56 57 // 57 58 // Strike information for an account 58 59 type ModerationDefs_AccountStrike struct { 60 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#accountStrike"` 59 61 // activeStrikeCount: Current number of active strikes (excluding expired strikes) 60 62 ActiveStrikeCount *int64 `json:"activeStrikeCount,omitempty" cborgen:"activeStrikeCount,omitempty"` 61 63 // firstStrikeAt: Timestamp of the first strike received ··· 100 102 101 103 // ModerationDefs_BlobView is a "blobView" in the tools.ozone.moderation.defs schema. 102 104 type ModerationDefs_BlobView struct { 103 - Cid string `json:"cid" cborgen:"cid"` 104 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 105 - Details *ModerationDefs_BlobView_Details `json:"details,omitempty" cborgen:"details,omitempty"` 106 - MimeType string `json:"mimeType" cborgen:"mimeType"` 107 - Moderation *ModerationDefs_Moderation `json:"moderation,omitempty" cborgen:"moderation,omitempty"` 108 - Size int64 `json:"size" cborgen:"size"` 105 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#blobView"` 106 + Cid string `json:"cid" cborgen:"cid"` 107 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 108 + Details *ModerationDefs_BlobView_Details `json:"details,omitempty" cborgen:"details,omitempty"` 109 + MimeType string `json:"mimeType" cborgen:"mimeType"` 110 + Moderation *ModerationDefs_Moderation `json:"moderation,omitempty" cborgen:"moderation,omitempty"` 111 + Size int64 `json:"size" cborgen:"size"` 109 112 } 110 113 111 114 type ModerationDefs_BlobView_Details struct { ··· 352 355 353 356 // ModerationDefs_ModEventView is a "modEventView" in the tools.ozone.moderation.defs schema. 354 357 type ModerationDefs_ModEventView struct { 358 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventView"` 355 359 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 356 360 CreatedBy string `json:"createdBy" cborgen:"createdBy"` 357 361 CreatorHandle *string `json:"creatorHandle,omitempty" cborgen:"creatorHandle,omitempty"` ··· 363 367 SubjectHandle *string `json:"subjectHandle,omitempty" cborgen:"subjectHandle,omitempty"` 364 368 } 365 369 366 - // ModerationDefs_ModEventViewDetail is a "modEventViewDetail" in the tools.ozone.moderation.defs schema. 367 - type ModerationDefs_ModEventViewDetail struct { 368 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 369 - CreatedBy string `json:"createdBy" cborgen:"createdBy"` 370 - Event *ModerationDefs_ModEventViewDetail_Event `json:"event" cborgen:"event"` 371 - Id int64 `json:"id" cborgen:"id"` 372 - ModTool *ModerationDefs_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 373 - Subject *ModerationDefs_ModEventViewDetail_Subject `json:"subject" cborgen:"subject"` 374 - SubjectBlobs []*ModerationDefs_BlobView `json:"subjectBlobs" cborgen:"subjectBlobs"` 375 - } 376 - 377 - type ModerationDefs_ModEventViewDetail_Event struct { 370 + type ModerationDefs_ModEventView_Event struct { 378 371 ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 379 372 ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 380 373 ModerationDefs_ModEventComment *ModerationDefs_ModEventComment ··· 401 394 ModerationDefs_CancelScheduledTakedownEvent *ModerationDefs_CancelScheduledTakedownEvent 402 395 } 403 396 404 - func (t *ModerationDefs_ModEventViewDetail_Event) MarshalJSON() ([]byte, error) { 397 + func (t *ModerationDefs_ModEventView_Event) MarshalJSON() ([]byte, error) { 405 398 if t.ModerationDefs_ModEventTakedown != nil { 406 399 t.ModerationDefs_ModEventTakedown.LexiconTypeID = "tools.ozone.moderation.defs#modEventTakedown" 407 400 return json.Marshal(t.ModerationDefs_ModEventTakedown) ··· 501 494 return nil, fmt.Errorf("can not marshal empty union as JSON") 502 495 } 503 496 504 - func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error { 497 + func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error { 505 498 typ, err := lexutil.TypeExtract(b) 506 499 if err != nil { 507 500 return err ··· 585 578 } 586 579 } 587 580 588 - type ModerationDefs_ModEventViewDetail_Subject struct { 589 - ModerationDefs_RepoView *ModerationDefs_RepoView 590 - ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound 591 - ModerationDefs_RecordView *ModerationDefs_RecordView 592 - ModerationDefs_RecordViewNotFound *ModerationDefs_RecordViewNotFound 581 + type ModerationDefs_ModEventView_Subject struct { 582 + AdminDefs_RepoRef *comatproto.AdminDefs_RepoRef 583 + RepoStrongRef *comatproto.RepoStrongRef 584 + ConvoDefs_MessageRef *chatbsky.ConvoDefs_MessageRef 593 585 } 594 586 595 - func (t *ModerationDefs_ModEventViewDetail_Subject) MarshalJSON() ([]byte, error) { 596 - if t.ModerationDefs_RepoView != nil { 597 - t.ModerationDefs_RepoView.LexiconTypeID = "tools.ozone.moderation.defs#repoView" 598 - return json.Marshal(t.ModerationDefs_RepoView) 587 + func (t *ModerationDefs_ModEventView_Subject) MarshalJSON() ([]byte, error) { 588 + if t.AdminDefs_RepoRef != nil { 589 + t.AdminDefs_RepoRef.LexiconTypeID = "com.atproto.admin.defs#repoRef" 590 + return json.Marshal(t.AdminDefs_RepoRef) 599 591 } 600 - if t.ModerationDefs_RepoViewNotFound != nil { 601 - t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound" 602 - return json.Marshal(t.ModerationDefs_RepoViewNotFound) 592 + if t.RepoStrongRef != nil { 593 + t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 594 + return json.Marshal(t.RepoStrongRef) 603 595 } 604 - if t.ModerationDefs_RecordView != nil { 605 - t.ModerationDefs_RecordView.LexiconTypeID = "tools.ozone.moderation.defs#recordView" 606 - return json.Marshal(t.ModerationDefs_RecordView) 607 - } 608 - if t.ModerationDefs_RecordViewNotFound != nil { 609 - t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound" 610 - return json.Marshal(t.ModerationDefs_RecordViewNotFound) 596 + if t.ConvoDefs_MessageRef != nil { 597 + t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef" 598 + return json.Marshal(t.ConvoDefs_MessageRef) 611 599 } 612 600 return nil, fmt.Errorf("can not marshal empty union as JSON") 613 601 } 614 602 615 - func (t *ModerationDefs_ModEventViewDetail_Subject) UnmarshalJSON(b []byte) error { 603 + func (t *ModerationDefs_ModEventView_Subject) UnmarshalJSON(b []byte) error { 616 604 typ, err := lexutil.TypeExtract(b) 617 605 if err != nil { 618 606 return err 619 607 } 620 608 621 609 switch typ { 622 - case "tools.ozone.moderation.defs#repoView": 623 - t.ModerationDefs_RepoView = new(ModerationDefs_RepoView) 624 - return json.Unmarshal(b, t.ModerationDefs_RepoView) 625 - case "tools.ozone.moderation.defs#repoViewNotFound": 626 - t.ModerationDefs_RepoViewNotFound = new(ModerationDefs_RepoViewNotFound) 627 - return json.Unmarshal(b, t.ModerationDefs_RepoViewNotFound) 628 - case "tools.ozone.moderation.defs#recordView": 629 - t.ModerationDefs_RecordView = new(ModerationDefs_RecordView) 630 - return json.Unmarshal(b, t.ModerationDefs_RecordView) 631 - case "tools.ozone.moderation.defs#recordViewNotFound": 632 - t.ModerationDefs_RecordViewNotFound = new(ModerationDefs_RecordViewNotFound) 633 - return json.Unmarshal(b, t.ModerationDefs_RecordViewNotFound) 610 + case "com.atproto.admin.defs#repoRef": 611 + t.AdminDefs_RepoRef = new(comatproto.AdminDefs_RepoRef) 612 + return json.Unmarshal(b, t.AdminDefs_RepoRef) 613 + case "com.atproto.repo.strongRef": 614 + t.RepoStrongRef = new(comatproto.RepoStrongRef) 615 + return json.Unmarshal(b, t.RepoStrongRef) 616 + case "chat.bsky.convo.defs#messageRef": 617 + t.ConvoDefs_MessageRef = new(chatbsky.ConvoDefs_MessageRef) 618 + return json.Unmarshal(b, t.ConvoDefs_MessageRef) 634 619 default: 635 620 return nil 636 621 } 637 622 } 638 623 639 - type ModerationDefs_ModEventView_Event struct { 624 + // ModerationDefs_ModEventViewDetail is a "modEventViewDetail" in the tools.ozone.moderation.defs schema. 625 + type ModerationDefs_ModEventViewDetail struct { 626 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventViewDetail"` 627 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 628 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 629 + Event *ModerationDefs_ModEventViewDetail_Event `json:"event" cborgen:"event"` 630 + Id int64 `json:"id" cborgen:"id"` 631 + ModTool *ModerationDefs_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 632 + Subject *ModerationDefs_ModEventViewDetail_Subject `json:"subject" cborgen:"subject"` 633 + SubjectBlobs []*ModerationDefs_BlobView `json:"subjectBlobs" cborgen:"subjectBlobs"` 634 + } 635 + 636 + type ModerationDefs_ModEventViewDetail_Event struct { 640 637 ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 641 638 ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 642 639 ModerationDefs_ModEventComment *ModerationDefs_ModEventComment ··· 663 660 ModerationDefs_CancelScheduledTakedownEvent *ModerationDefs_CancelScheduledTakedownEvent 664 661 } 665 662 666 - func (t *ModerationDefs_ModEventView_Event) MarshalJSON() ([]byte, error) { 663 + func (t *ModerationDefs_ModEventViewDetail_Event) MarshalJSON() ([]byte, error) { 667 664 if t.ModerationDefs_ModEventTakedown != nil { 668 665 t.ModerationDefs_ModEventTakedown.LexiconTypeID = "tools.ozone.moderation.defs#modEventTakedown" 669 666 return json.Marshal(t.ModerationDefs_ModEventTakedown) ··· 763 760 return nil, fmt.Errorf("can not marshal empty union as JSON") 764 761 } 765 762 766 - func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error { 763 + func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error { 767 764 typ, err := lexutil.TypeExtract(b) 768 765 if err != nil { 769 766 return err ··· 847 844 } 848 845 } 849 846 850 - type ModerationDefs_ModEventView_Subject struct { 851 - AdminDefs_RepoRef *comatproto.AdminDefs_RepoRef 852 - RepoStrongRef *comatproto.RepoStrongRef 853 - ConvoDefs_MessageRef *chatbsky.ConvoDefs_MessageRef 847 + type ModerationDefs_ModEventViewDetail_Subject struct { 848 + ModerationDefs_RepoView *ModerationDefs_RepoView 849 + ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound 850 + ModerationDefs_RecordView *ModerationDefs_RecordView 851 + ModerationDefs_RecordViewNotFound *ModerationDefs_RecordViewNotFound 854 852 } 855 853 856 - func (t *ModerationDefs_ModEventView_Subject) MarshalJSON() ([]byte, error) { 857 - if t.AdminDefs_RepoRef != nil { 858 - t.AdminDefs_RepoRef.LexiconTypeID = "com.atproto.admin.defs#repoRef" 859 - return json.Marshal(t.AdminDefs_RepoRef) 854 + func (t *ModerationDefs_ModEventViewDetail_Subject) MarshalJSON() ([]byte, error) { 855 + if t.ModerationDefs_RepoView != nil { 856 + t.ModerationDefs_RepoView.LexiconTypeID = "tools.ozone.moderation.defs#repoView" 857 + return json.Marshal(t.ModerationDefs_RepoView) 858 + } 859 + if t.ModerationDefs_RepoViewNotFound != nil { 860 + t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound" 861 + return json.Marshal(t.ModerationDefs_RepoViewNotFound) 860 862 } 861 - if t.RepoStrongRef != nil { 862 - t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 863 - return json.Marshal(t.RepoStrongRef) 863 + if t.ModerationDefs_RecordView != nil { 864 + t.ModerationDefs_RecordView.LexiconTypeID = "tools.ozone.moderation.defs#recordView" 865 + return json.Marshal(t.ModerationDefs_RecordView) 864 866 } 865 - if t.ConvoDefs_MessageRef != nil { 866 - t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef" 867 - return json.Marshal(t.ConvoDefs_MessageRef) 867 + if t.ModerationDefs_RecordViewNotFound != nil { 868 + t.ModerationDefs_RecordViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#recordViewNotFound" 869 + return json.Marshal(t.ModerationDefs_RecordViewNotFound) 868 870 } 869 871 return nil, fmt.Errorf("can not marshal empty union as JSON") 870 872 } 871 873 872 - func (t *ModerationDefs_ModEventView_Subject) UnmarshalJSON(b []byte) error { 874 + func (t *ModerationDefs_ModEventViewDetail_Subject) UnmarshalJSON(b []byte) error { 873 875 typ, err := lexutil.TypeExtract(b) 874 876 if err != nil { 875 877 return err 876 878 } 877 879 878 880 switch typ { 879 - case "com.atproto.admin.defs#repoRef": 880 - t.AdminDefs_RepoRef = new(comatproto.AdminDefs_RepoRef) 881 - return json.Unmarshal(b, t.AdminDefs_RepoRef) 882 - case "com.atproto.repo.strongRef": 883 - t.RepoStrongRef = new(comatproto.RepoStrongRef) 884 - return json.Unmarshal(b, t.RepoStrongRef) 885 - case "chat.bsky.convo.defs#messageRef": 886 - t.ConvoDefs_MessageRef = new(chatbsky.ConvoDefs_MessageRef) 887 - return json.Unmarshal(b, t.ConvoDefs_MessageRef) 881 + case "tools.ozone.moderation.defs#repoView": 882 + t.ModerationDefs_RepoView = new(ModerationDefs_RepoView) 883 + return json.Unmarshal(b, t.ModerationDefs_RepoView) 884 + case "tools.ozone.moderation.defs#repoViewNotFound": 885 + t.ModerationDefs_RepoViewNotFound = new(ModerationDefs_RepoViewNotFound) 886 + return json.Unmarshal(b, t.ModerationDefs_RepoViewNotFound) 887 + case "tools.ozone.moderation.defs#recordView": 888 + t.ModerationDefs_RecordView = new(ModerationDefs_RecordView) 889 + return json.Unmarshal(b, t.ModerationDefs_RecordView) 890 + case "tools.ozone.moderation.defs#recordViewNotFound": 891 + t.ModerationDefs_RecordViewNotFound = new(ModerationDefs_RecordViewNotFound) 892 + return json.Unmarshal(b, t.ModerationDefs_RecordViewNotFound) 888 893 default: 889 894 return nil 890 895 } ··· 894 899 // 895 900 // Moderation tool information for tracing the source of the action 896 901 type ModerationDefs_ModTool struct { 902 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modTool"` 897 903 // meta: Additional arbitrary metadata about the source 898 904 Meta *interface{} `json:"meta,omitempty" cborgen:"meta,omitempty"` 899 905 // name: Name/identifier of the source (e.g., 'automod', 'ozone/workspace') ··· 902 908 903 909 // ModerationDefs_Moderation is a "moderation" in the tools.ozone.moderation.defs schema. 904 910 type ModerationDefs_Moderation struct { 911 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#moderation"` 905 912 SubjectStatus *ModerationDefs_SubjectStatusView `json:"subjectStatus,omitempty" cborgen:"subjectStatus,omitempty"` 906 913 } 907 914 908 915 // ModerationDefs_ModerationDetail is a "moderationDetail" in the tools.ozone.moderation.defs schema. 909 916 type ModerationDefs_ModerationDetail struct { 917 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#moderationDetail"` 910 918 SubjectStatus *ModerationDefs_SubjectStatusView `json:"subjectStatus,omitempty" cborgen:"subjectStatus,omitempty"` 911 919 } 912 920 ··· 965 973 // 966 974 // Statistics about a set of record subject items 967 975 type ModerationDefs_RecordsStats struct { 976 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#recordsStats"` 968 977 // appealedCount: Number of items that were appealed at least once 969 978 AppealedCount *int64 `json:"appealedCount,omitempty" cborgen:"appealedCount,omitempty"` 970 979 // escalatedCount: Number of items that were escalated at least once ··· 1026 1035 1027 1036 // ModerationDefs_ReporterStats is a "reporterStats" in the tools.ozone.moderation.defs schema. 1028 1037 type ModerationDefs_ReporterStats struct { 1038 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#reporterStats"` 1029 1039 // accountReportCount: The total number of reports made by the user on accounts. 1030 1040 AccountReportCount int64 `json:"accountReportCount" cborgen:"accountReportCount"` 1031 1041 Did string `json:"did" cborgen:"did"` ··· 1069 1079 // 1070 1080 // View of a scheduled moderation action 1071 1081 type ModerationDefs_ScheduledActionView struct { 1082 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#scheduledActionView"` 1072 1083 // action: Type of action to be executed 1073 1084 Action string `json:"action" cborgen:"action"` 1074 1085 // createdAt: When the scheduled action was created ··· 1103 1114 1104 1115 // ModerationDefs_SubjectStatusView is a "subjectStatusView" in the tools.ozone.moderation.defs schema. 1105 1116 type ModerationDefs_SubjectStatusView struct { 1117 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#subjectStatusView"` 1106 1118 // accountStats: Statistics related to the account subject 1107 1119 AccountStats *ModerationDefs_AccountStats `json:"accountStats,omitempty" cborgen:"accountStats,omitempty"` 1108 1120 // accountStrike: Strike information for the account (account-level only) ··· 1223 1235 // 1224 1236 // Detailed view of a subject. For record subjects, the author's repo and profile will be returned. 1225 1237 type ModerationDefs_SubjectView struct { 1226 - Profile *lexutil.LexiconTypeDecoder `json:"profile,omitempty" cborgen:"profile,omitempty"` 1227 - Record *ModerationDefs_RecordViewDetail `json:"record,omitempty" cborgen:"record,omitempty"` 1228 - Repo *ModerationDefs_RepoViewDetail `json:"repo,omitempty" cborgen:"repo,omitempty"` 1229 - Status *ModerationDefs_SubjectStatusView `json:"status,omitempty" cborgen:"status,omitempty"` 1230 - Subject string `json:"subject" cborgen:"subject"` 1231 - Type *string `json:"type" cborgen:"type"` 1238 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#subjectView"` 1239 + Profile *ModerationDefs_SubjectView_Profile `json:"profile,omitempty" cborgen:"profile,omitempty"` 1240 + Record *ModerationDefs_RecordViewDetail `json:"record,omitempty" cborgen:"record,omitempty"` 1241 + Repo *ModerationDefs_RepoViewDetail `json:"repo,omitempty" cborgen:"repo,omitempty"` 1242 + Status *ModerationDefs_SubjectStatusView `json:"status,omitempty" cborgen:"status,omitempty"` 1243 + Subject string `json:"subject" cborgen:"subject"` 1244 + Type *string `json:"type" cborgen:"type"` 1245 + } 1246 + 1247 + type ModerationDefs_SubjectView_Profile struct { 1248 + } 1249 + 1250 + func (t *ModerationDefs_SubjectView_Profile) MarshalJSON() ([]byte, error) { 1251 + return nil, fmt.Errorf("can not marshal empty union as JSON") 1252 + } 1253 + 1254 + func (t *ModerationDefs_SubjectView_Profile) UnmarshalJSON(b []byte) error { 1255 + typ, err := lexutil.TypeExtract(b) 1256 + if err != nil { 1257 + return err 1258 + } 1259 + 1260 + switch typ { 1261 + default: 1262 + return nil 1263 + } 1232 1264 } 1233 1265 1234 1266 // ModerationDefs_VideoDetails is a "videoDetails" in the tools.ozone.moderation.defs schema.
+15 -13
api/ozone/moderationgetAccountTimeline.go
··· 15 15 Timeline []*ModerationGetAccountTimeline_TimelineItem `json:"timeline" cborgen:"timeline"` 16 16 } 17 17 18 - // ModerationGetAccountTimeline_TimelineItem is a "timelineItem" in the tools.ozone.moderation.getAccountTimeline schema. 19 - type ModerationGetAccountTimeline_TimelineItem struct { 20 - Day string `json:"day" cborgen:"day"` 21 - Summary []*ModerationGetAccountTimeline_TimelineItemSummary `json:"summary" cborgen:"summary"` 22 - } 23 - 24 - // ModerationGetAccountTimeline_TimelineItemSummary is a "timelineItemSummary" in the tools.ozone.moderation.getAccountTimeline schema. 25 - type ModerationGetAccountTimeline_TimelineItemSummary struct { 26 - Count int64 `json:"count" cborgen:"count"` 27 - EventSubjectType string `json:"eventSubjectType" cborgen:"eventSubjectType"` 28 - EventType string `json:"eventType" cborgen:"eventType"` 29 - } 30 - 31 18 // ModerationGetAccountTimeline calls the XRPC method "tools.ozone.moderation.getAccountTimeline". 32 19 func ModerationGetAccountTimeline(ctx context.Context, c lexutil.LexClient, did string) (*ModerationGetAccountTimeline_Output, error) { 33 20 var out ModerationGetAccountTimeline_Output ··· 40 27 41 28 return &out, nil 42 29 } 30 + 31 + // ModerationGetAccountTimeline_TimelineItem is a "timelineItem" in the tools.ozone.moderation.getAccountTimeline schema. 32 + type ModerationGetAccountTimeline_TimelineItem struct { 33 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.getAccountTimeline#timelineItem"` 34 + Day string `json:"day" cborgen:"day"` 35 + Summary []*ModerationGetAccountTimeline_TimelineItemSummary `json:"summary" cborgen:"summary"` 36 + } 37 + 38 + // ModerationGetAccountTimeline_TimelineItemSummary is a "timelineItemSummary" in the tools.ozone.moderation.getAccountTimeline schema. 39 + type ModerationGetAccountTimeline_TimelineItemSummary struct { 40 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.getAccountTimeline#timelineItemSummary"` 41 + Count int64 `json:"count" cborgen:"count"` 42 + EventSubjectType string `json:"eventSubjectType" cborgen:"eventSubjectType"` 43 + EventType string `json:"eventType" cborgen:"eventType"` 44 + }
+22 -19
api/ozone/moderationscheduleAction.go
··· 12 12 lexutil "github.com/bluesky-social/indigo/lex/util" 13 13 ) 14 14 15 - // ModerationScheduleAction_FailedScheduling is a "failedScheduling" in the tools.ozone.moderation.scheduleAction schema. 16 - type ModerationScheduleAction_FailedScheduling struct { 17 - Error string `json:"error" cborgen:"error"` 18 - ErrorCode *string `json:"errorCode,omitempty" cborgen:"errorCode,omitempty"` 19 - Subject string `json:"subject" cborgen:"subject"` 20 - } 21 - 22 15 // ModerationScheduleAction_Input is the input argument to a tools.ozone.moderation.scheduleAction call. 23 16 type ModerationScheduleAction_Input struct { 24 17 Action *ModerationScheduleAction_Input_Action `json:"action" cborgen:"action"` ··· 57 50 } 58 51 } 59 52 53 + // ModerationScheduleAction calls the XRPC method "tools.ozone.moderation.scheduleAction". 54 + func ModerationScheduleAction(ctx context.Context, c lexutil.LexClient, input *ModerationScheduleAction_Input) (*ModerationScheduleAction_ScheduledActionResults, error) { 55 + var out ModerationScheduleAction_ScheduledActionResults 56 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.moderation.scheduleAction", nil, input, &out); err != nil { 57 + return nil, err 58 + } 59 + 60 + return &out, nil 61 + } 62 + 63 + // ModerationScheduleAction_FailedScheduling is a "failedScheduling" in the tools.ozone.moderation.scheduleAction schema. 64 + type ModerationScheduleAction_FailedScheduling struct { 65 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#failedScheduling"` 66 + Error string `json:"error" cborgen:"error"` 67 + ErrorCode *string `json:"errorCode,omitempty" cborgen:"errorCode,omitempty"` 68 + Subject string `json:"subject" cborgen:"subject"` 69 + } 70 + 60 71 // ModerationScheduleAction_ScheduledActionResults is a "scheduledActionResults" in the tools.ozone.moderation.scheduleAction schema. 61 72 type ModerationScheduleAction_ScheduledActionResults struct { 62 - Failed []*ModerationScheduleAction_FailedScheduling `json:"failed" cborgen:"failed"` 63 - Succeeded []string `json:"succeeded" cborgen:"succeeded"` 73 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#scheduledActionResults"` 74 + Failed []*ModerationScheduleAction_FailedScheduling `json:"failed" cborgen:"failed"` 75 + Succeeded []string `json:"succeeded" cborgen:"succeeded"` 64 76 } 65 77 66 78 // ModerationScheduleAction_SchedulingConfig is a "schedulingConfig" in the tools.ozone.moderation.scheduleAction schema. 67 79 // 68 80 // Configuration for when the action should be executed 69 81 type ModerationScheduleAction_SchedulingConfig struct { 82 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.scheduleAction#schedulingConfig"` 70 83 // executeAfter: Earliest time to execute the action (for randomized scheduling) 71 84 ExecuteAfter *string `json:"executeAfter,omitempty" cborgen:"executeAfter,omitempty"` 72 85 // executeAt: Exact time to execute the action ··· 88 101 // policies: Names/Keywords of the policies that drove the decision. 89 102 Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` 90 103 } 91 - 92 - // ModerationScheduleAction calls the XRPC method "tools.ozone.moderation.scheduleAction". 93 - func ModerationScheduleAction(ctx context.Context, c lexutil.LexClient, input *ModerationScheduleAction_Input) (*ModerationScheduleAction_ScheduledActionResults, error) { 94 - var out ModerationScheduleAction_ScheduledActionResults 95 - if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.moderation.scheduleAction", nil, input, &out); err != nil { 96 - return nil, err 97 - } 98 - 99 - return &out, nil 100 - }
+4 -2
api/ozone/safelinkdefs.go
··· 8 8 // 9 9 // An event for URL safety decisions 10 10 type SafelinkDefs_Event struct { 11 - Action *string `json:"action" cborgen:"action"` 11 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.safelink.defs#event"` 12 + Action *string `json:"action" cborgen:"action"` 12 13 // comment: Optional comment about the decision 13 14 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 14 15 CreatedAt string `json:"createdAt" cborgen:"createdAt"` ··· 27 28 // 28 29 // Input for creating a URL safety rule 29 30 type SafelinkDefs_UrlRule struct { 30 - Action *string `json:"action" cborgen:"action"` 31 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.safelink.defs#urlRule"` 32 + Action *string `json:"action" cborgen:"action"` 31 33 // comment: Optional comment about the decision 32 34 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 33 35 // createdAt: Timestamp when the rule was created
+12 -10
api/ozone/servergetConfig.go
··· 21 21 Viewer *ServerGetConfig_ViewerConfig `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 22 22 } 23 23 24 - // ServerGetConfig_ServiceConfig is a "serviceConfig" in the tools.ozone.server.getConfig schema. 25 - type ServerGetConfig_ServiceConfig struct { 26 - Url *string `json:"url,omitempty" cborgen:"url,omitempty"` 27 - } 28 - 29 - // ServerGetConfig_ViewerConfig is a "viewerConfig" in the tools.ozone.server.getConfig schema. 30 - type ServerGetConfig_ViewerConfig struct { 31 - Role *string `json:"role,omitempty" cborgen:"role,omitempty"` 32 - } 33 - 34 24 // ServerGetConfig calls the XRPC method "tools.ozone.server.getConfig". 35 25 func ServerGetConfig(ctx context.Context, c lexutil.LexClient) (*ServerGetConfig_Output, error) { 36 26 var out ServerGetConfig_Output ··· 40 30 41 31 return &out, nil 42 32 } 33 + 34 + // ServerGetConfig_ServiceConfig is a "serviceConfig" in the tools.ozone.server.getConfig schema. 35 + type ServerGetConfig_ServiceConfig struct { 36 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.server.getConfig#serviceConfig"` 37 + Url *string `json:"url,omitempty" cborgen:"url,omitempty"` 38 + } 39 + 40 + // ServerGetConfig_ViewerConfig is a "viewerConfig" in the tools.ozone.server.getConfig schema. 41 + type ServerGetConfig_ViewerConfig struct { 42 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.server.getConfig#viewerConfig"` 43 + Role *string `json:"role,omitempty" cborgen:"role,omitempty"` 44 + }
+9 -7
api/ozone/setdefs.go
··· 6 6 7 7 // SetDefs_Set is a "set" in the tools.ozone.set.defs schema. 8 8 type SetDefs_Set struct { 9 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 10 - Name string `json:"name" cborgen:"name"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.set.defs#set"` 10 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 11 + Name string `json:"name" cborgen:"name"` 11 12 } 12 13 13 14 // SetDefs_SetView is a "setView" in the tools.ozone.set.defs schema. 14 15 type SetDefs_SetView struct { 15 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 16 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 17 - Name string `json:"name" cborgen:"name"` 18 - SetSize int64 `json:"setSize" cborgen:"setSize"` 19 - UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"` 16 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.set.defs#setView"` 17 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 18 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 19 + Name string `json:"name" cborgen:"name"` 20 + SetSize int64 `json:"setSize" cborgen:"setSize"` 21 + UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"` 20 22 }
+1
api/ozone/settingdefs.go
··· 10 10 11 11 // SettingDefs_Option is a "option" in the tools.ozone.setting.defs schema. 12 12 type SettingDefs_Option struct { 13 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.setting.defs#option"` 13 14 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 14 15 CreatedBy string `json:"createdBy" cborgen:"createdBy"` 15 16 Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
+3 -2
api/ozone/signaturedefs.go
··· 6 6 7 7 // SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema. 8 8 type SignatureDefs_SigDetail struct { 9 - Property string `json:"property" cborgen:"property"` 10 - Value string `json:"value" cborgen:"value"` 9 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.signature.defs#sigDetail"` 10 + Property string `json:"property" cborgen:"property"` 11 + Value string `json:"value" cborgen:"value"` 11 12 }
+8 -7
api/ozone/signaturefindRelatedAccounts.go
··· 17 17 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 18 18 } 19 19 20 - // SignatureFindRelatedAccounts_RelatedAccount is a "relatedAccount" in the tools.ozone.signature.findRelatedAccounts schema. 21 - type SignatureFindRelatedAccounts_RelatedAccount struct { 22 - Account *comatproto.AdminDefs_AccountView `json:"account" cborgen:"account"` 23 - Similarities []*SignatureDefs_SigDetail `json:"similarities,omitempty" cborgen:"similarities,omitempty"` 24 - } 25 - 26 20 // SignatureFindRelatedAccounts calls the XRPC method "tools.ozone.signature.findRelatedAccounts". 27 21 func SignatureFindRelatedAccounts(ctx context.Context, c lexutil.LexClient, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error) { 28 22 var out SignatureFindRelatedAccounts_Output ··· 31 25 if cursor != "" { 32 26 params["cursor"] = cursor 33 27 } 34 - params["did"] = did 35 28 if limit != 0 { 36 29 params["limit"] = limit 37 30 } 31 + params["did"] = did 38 32 if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.signature.findRelatedAccounts", params, nil, &out); err != nil { 39 33 return nil, err 40 34 } 41 35 42 36 return &out, nil 43 37 } 38 + 39 + // SignatureFindRelatedAccounts_RelatedAccount is a "relatedAccount" in the tools.ozone.signature.findRelatedAccounts schema. 40 + type SignatureFindRelatedAccounts_RelatedAccount struct { 41 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.signature.findRelatedAccounts#relatedAccount"` 42 + Account *comatproto.AdminDefs_AccountView `json:"account" cborgen:"account"` 43 + Similarities []*SignatureDefs_SigDetail `json:"similarities,omitempty" cborgen:"similarities,omitempty"` 44 + }
+1
api/ozone/teamdefs.go
··· 10 10 11 11 // TeamDefs_Member is a "member" in the tools.ozone.team.defs schema. 12 12 type TeamDefs_Member struct { 13 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.team.defs#member"` 13 14 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 14 15 Did string `json:"did" cborgen:"did"` 15 16 Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
+45 -6
api/ozone/verificationdefs.go
··· 15 15 // 16 16 // Verification data for the associated subject. 17 17 type VerificationDefs_VerificationView struct { 18 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.verification.defs#verificationView"` 18 19 // createdAt: Timestamp when the verification was created. 19 20 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 20 21 // 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. ··· 22 23 // handle: Handle 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 handle matches the one at the time of verifying. 23 24 Handle string `json:"handle" cborgen:"handle"` 24 25 // issuer: The user who issued this verification. 25 - Issuer string `json:"issuer" cborgen:"issuer"` 26 - IssuerProfile *lexutil.LexiconTypeDecoder `json:"issuerProfile,omitempty" cborgen:"issuerProfile,omitempty"` 27 - IssuerRepo *VerificationDefs_VerificationView_IssuerRepo `json:"issuerRepo,omitempty" cborgen:"issuerRepo,omitempty"` 26 + Issuer string `json:"issuer" cborgen:"issuer"` 27 + IssuerProfile *VerificationDefs_VerificationView_IssuerProfile `json:"issuerProfile,omitempty" cborgen:"issuerProfile,omitempty"` 28 + IssuerRepo *VerificationDefs_VerificationView_IssuerRepo `json:"issuerRepo,omitempty" cborgen:"issuerRepo,omitempty"` 28 29 // revokeReason: Describes the reason for revocation, also indicating that the verification is no longer valid. 29 30 RevokeReason *string `json:"revokeReason,omitempty" cborgen:"revokeReason,omitempty"` 30 31 // revokedAt: Timestamp when the verification was revoked. ··· 32 33 // revokedBy: The user who revoked this verification. 33 34 RevokedBy *string `json:"revokedBy,omitempty" cborgen:"revokedBy,omitempty"` 34 35 // subject: The subject of the verification. 35 - Subject string `json:"subject" cborgen:"subject"` 36 - SubjectProfile *lexutil.LexiconTypeDecoder `json:"subjectProfile,omitempty" cborgen:"subjectProfile,omitempty"` 37 - SubjectRepo *VerificationDefs_VerificationView_SubjectRepo `json:"subjectRepo,omitempty" cborgen:"subjectRepo,omitempty"` 36 + Subject string `json:"subject" cborgen:"subject"` 37 + SubjectProfile *VerificationDefs_VerificationView_SubjectProfile `json:"subjectProfile,omitempty" cborgen:"subjectProfile,omitempty"` 38 + SubjectRepo *VerificationDefs_VerificationView_SubjectRepo `json:"subjectRepo,omitempty" cborgen:"subjectRepo,omitempty"` 38 39 // uri: The AT-URI of the verification record. 39 40 Uri string `json:"uri" cborgen:"uri"` 40 41 } 41 42 43 + type VerificationDefs_VerificationView_IssuerProfile struct { 44 + } 45 + 46 + func (t *VerificationDefs_VerificationView_IssuerProfile) MarshalJSON() ([]byte, error) { 47 + return nil, fmt.Errorf("can not marshal empty union as JSON") 48 + } 49 + 50 + func (t *VerificationDefs_VerificationView_IssuerProfile) UnmarshalJSON(b []byte) error { 51 + typ, err := lexutil.TypeExtract(b) 52 + if err != nil { 53 + return err 54 + } 55 + 56 + switch typ { 57 + default: 58 + return nil 59 + } 60 + } 61 + 42 62 type VerificationDefs_VerificationView_IssuerRepo struct { 43 63 ModerationDefs_RepoViewDetail *ModerationDefs_RepoViewDetail 44 64 ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound ··· 69 89 case "tools.ozone.moderation.defs#repoViewNotFound": 70 90 t.ModerationDefs_RepoViewNotFound = new(ModerationDefs_RepoViewNotFound) 71 91 return json.Unmarshal(b, t.ModerationDefs_RepoViewNotFound) 92 + default: 93 + return nil 94 + } 95 + } 96 + 97 + type VerificationDefs_VerificationView_SubjectProfile struct { 98 + } 99 + 100 + func (t *VerificationDefs_VerificationView_SubjectProfile) MarshalJSON() ([]byte, error) { 101 + return nil, fmt.Errorf("can not marshal empty union as JSON") 102 + } 103 + 104 + func (t *VerificationDefs_VerificationView_SubjectProfile) UnmarshalJSON(b []byte) error { 105 + typ, err := lexutil.TypeExtract(b) 106 + if err != nil { 107 + return err 108 + } 109 + 110 + switch typ { 72 111 default: 73 112 return nil 74 113 }
+23 -21
api/ozone/verificationgrantVerifications.go
··· 10 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 - // VerificationGrantVerifications_GrantError is a "grantError" in the tools.ozone.verification.grantVerifications schema. 14 - // 15 - // Error object for failed verifications. 16 - type VerificationGrantVerifications_GrantError struct { 17 - // error: Error message describing the reason for failure. 18 - Error string `json:"error" cborgen:"error"` 19 - // subject: The did of the subject being verified 20 - Subject string `json:"subject" cborgen:"subject"` 21 - } 22 - 23 13 // VerificationGrantVerifications_Input is the input argument to a tools.ozone.verification.grantVerifications call. 24 14 type VerificationGrantVerifications_Input struct { 25 15 // verifications: Array of verification requests to process ··· 32 22 Verifications []*VerificationDefs_VerificationView `json:"verifications" cborgen:"verifications"` 33 23 } 34 24 35 - // VerificationGrantVerifications_VerificationInput is the input argument to a tools.ozone.verification.grantVerifications call. 25 + // VerificationGrantVerifications calls the XRPC method "tools.ozone.verification.grantVerifications". 26 + func VerificationGrantVerifications(ctx context.Context, c lexutil.LexClient, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) { 27 + var out VerificationGrantVerifications_Output 28 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + } 34 + 35 + // VerificationGrantVerifications_GrantError is a "grantError" in the tools.ozone.verification.grantVerifications schema. 36 + // 37 + // Error object for failed verifications. 38 + type VerificationGrantVerifications_GrantError struct { 39 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.verification.grantVerifications#grantError"` 40 + // error: Error message describing the reason for failure. 41 + Error string `json:"error" cborgen:"error"` 42 + // subject: The did of the subject being verified 43 + Subject string `json:"subject" cborgen:"subject"` 44 + } 45 + 46 + // VerificationGrantVerifications_VerificationInput is a "verificationInput" in the tools.ozone.verification.grantVerifications schema. 36 47 type VerificationGrantVerifications_VerificationInput struct { 48 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.verification.grantVerifications#verificationInput"` 37 49 // createdAt: Timestamp for verification record. Defaults to current time when not specified. 38 50 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 39 51 // displayName: Display name of the subject the verification applies to at the moment of verifying. ··· 43 55 // subject: The did of the subject being verified 44 56 Subject string `json:"subject" cborgen:"subject"` 45 57 } 46 - 47 - // VerificationGrantVerifications calls the XRPC method "tools.ozone.verification.grantVerifications". 48 - func VerificationGrantVerifications(ctx context.Context, c lexutil.LexClient, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) { 49 - var out VerificationGrantVerifications_Output 50 - if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil { 51 - return nil, err 52 - } 53 - 54 - return &out, nil 55 - }
+11 -10
api/ozone/verificationrevokeVerifications.go
··· 26 26 RevokedVerifications []string `json:"revokedVerifications" cborgen:"revokedVerifications"` 27 27 } 28 28 29 + // VerificationRevokeVerifications calls the XRPC method "tools.ozone.verification.revokeVerifications". 30 + func VerificationRevokeVerifications(ctx context.Context, c lexutil.LexClient, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) { 31 + var out VerificationRevokeVerifications_Output 32 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil { 33 + return nil, err 34 + } 35 + 36 + return &out, nil 37 + } 38 + 29 39 // VerificationRevokeVerifications_RevokeError is a "revokeError" in the tools.ozone.verification.revokeVerifications schema. 30 40 // 31 41 // Error object for failed revocations 32 42 type VerificationRevokeVerifications_RevokeError struct { 43 + LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.verification.revokeVerifications#revokeError"` 33 44 // error: Description of the error that occurred during revocation. 34 45 Error string `json:"error" cborgen:"error"` 35 46 // uri: The AT-URI of the verification record that failed to revoke. 36 47 Uri string `json:"uri" cborgen:"uri"` 37 48 } 38 - 39 - // VerificationRevokeVerifications calls the XRPC method "tools.ozone.verification.revokeVerifications". 40 - func VerificationRevokeVerifications(ctx context.Context, c lexutil.LexClient, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) { 41 - var out VerificationRevokeVerifications_Output 42 - if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil { 43 - return nil, err 44 - } 45 - 46 - return &out, nil 47 - }