porting all github actions from bluesky-social/indigo to tangled CI

Update lexgen/cborgen with latest lexicons (#688)

Updating lexgen to get access to the latest starter pack endpoints on
the appview.

There are a few breaking changes that came along with it, representing
the most up-to-date lexicons:
- `api/bsky/actorgetSuggestionsSkeleton.go` replaced with
`api/bsky/unspeccedgetSuggestionsSkeleton.go`, and dead
`ActorDefs_SkeletonActor` type removed from `api/bsky/actordefs.go`.
- `viewer` param removed from `api/bsky/actorsearchActorsTypeahead.go`

authored by bnewbold.net and committed by GitHub dcbf733f c3deb2a8

+1
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 + DeactivatedAt *string `json:"deactivatedAt,omitempty" cborgen:"deactivatedAt,omitempty"` 13 14 Did string `json:"did" cborgen:"did"` 14 15 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 15 16 EmailConfirmedAt *string `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"`
+3 -2
api/atproto/admingetSubjectStatus.go
··· 15 15 16 16 // AdminGetSubjectStatus_Output is the output of a com.atproto.admin.getSubjectStatus call. 17 17 type AdminGetSubjectStatus_Output struct { 18 - Subject *AdminGetSubjectStatus_Output_Subject `json:"subject" cborgen:"subject"` 19 - Takedown *AdminDefs_StatusAttr `json:"takedown,omitempty" cborgen:"takedown,omitempty"` 18 + Deactivated *AdminDefs_StatusAttr `json:"deactivated,omitempty" cborgen:"deactivated,omitempty"` 19 + Subject *AdminGetSubjectStatus_Output_Subject `json:"subject" cborgen:"subject"` 20 + Takedown *AdminDefs_StatusAttr `json:"takedown,omitempty" cborgen:"takedown,omitempty"` 20 21 } 21 22 22 23 type AdminGetSubjectStatus_Output_Subject struct {
+33
api/atproto/adminsearchAccounts.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.searchAccounts 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminSearchAccounts_Output is the output of a com.atproto.admin.searchAccounts call. 14 + type AdminSearchAccounts_Output struct { 15 + Accounts []*AdminDefs_AccountView `json:"accounts" cborgen:"accounts"` 16 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 + } 18 + 19 + // AdminSearchAccounts calls the XRPC method "com.atproto.admin.searchAccounts". 20 + func AdminSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, email string, limit int64) (*AdminSearchAccounts_Output, error) { 21 + var out AdminSearchAccounts_Output 22 + 23 + params := map[string]interface{}{ 24 + "cursor": cursor, 25 + "email": email, 26 + "limit": limit, 27 + } 28 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.searchAccounts", params, nil, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+3 -2
api/atproto/adminupdateSubjectStatus.go
··· 15 15 16 16 // AdminUpdateSubjectStatus_Input is the input argument to a com.atproto.admin.updateSubjectStatus call. 17 17 type AdminUpdateSubjectStatus_Input struct { 18 - Subject *AdminUpdateSubjectStatus_Input_Subject `json:"subject" cborgen:"subject"` 19 - Takedown *AdminDefs_StatusAttr `json:"takedown,omitempty" cborgen:"takedown,omitempty"` 18 + Deactivated *AdminDefs_StatusAttr `json:"deactivated,omitempty" cborgen:"deactivated,omitempty"` 19 + Subject *AdminUpdateSubjectStatus_Input_Subject `json:"subject" cborgen:"subject"` 20 + Takedown *AdminDefs_StatusAttr `json:"takedown,omitempty" cborgen:"takedown,omitempty"` 20 21 } 21 22 22 23 type AdminUpdateSubjectStatus_Input_Subject struct {
+6 -3
api/atproto/servercreateAppPassword.go
··· 12 12 13 13 // ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema. 14 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"` 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"` 18 19 } 19 20 20 21 // ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call. 21 22 type ServerCreateAppPassword_Input struct { 22 23 // name: A short name for the App Password, to help distinguish them. 23 24 Name string `json:"name" cborgen:"name"` 25 + // privileged: If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. 26 + Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 24 27 } 25 28 26 29 // ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".
+3
api/atproto/servercreateSession.go
··· 21 21 // ServerCreateSession_Output is the output of a com.atproto.server.createSession call. 22 22 type ServerCreateSession_Output struct { 23 23 AccessJwt string `json:"accessJwt" cborgen:"accessJwt"` 24 + Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 24 25 Did string `json:"did" cborgen:"did"` 25 26 DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"` 26 27 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` ··· 28 29 EmailConfirmed *bool `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"` 29 30 Handle string `json:"handle" cborgen:"handle"` 30 31 RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"` 32 + // 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. 33 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 31 34 } 32 35 33 36 // ServerCreateSession calls the XRPC method "com.atproto.server.createSession".
+3
api/atproto/servergetSession.go
··· 12 12 13 13 // ServerGetSession_Output is the output of a com.atproto.server.getSession call. 14 14 type ServerGetSession_Output struct { 15 + Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 15 16 Did string `json:"did" cborgen:"did"` 16 17 DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"` 17 18 Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 18 19 EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"` 19 20 EmailConfirmed *bool `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"` 20 21 Handle string `json:"handle" cborgen:"handle"` 22 + // 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. 23 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 21 24 } 22 25 23 26 // ServerGetSession calls the XRPC method "com.atproto.server.getSession".
+3 -2
api/atproto/serverlistAppPasswords.go
··· 12 12 13 13 // ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema. 14 14 type ServerListAppPasswords_AppPassword struct { 15 - CreatedAt string `json:"createdAt" cborgen:"createdAt"` 16 - Name string `json:"name" cborgen:"name"` 15 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 16 + Name string `json:"name" cborgen:"name"` 17 + Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"` 17 18 } 18 19 19 20 // ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call.
+3
api/atproto/serverrefreshSession.go
··· 13 13 // ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call. 14 14 type ServerRefreshSession_Output struct { 15 15 AccessJwt string `json:"accessJwt" cborgen:"accessJwt"` 16 + Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 16 17 Did string `json:"did" cborgen:"did"` 17 18 DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"` 18 19 Handle string `json:"handle" cborgen:"handle"` 19 20 RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"` 21 + // status: Hosting status of the account. If not specified, then assume 'active'. 22 + Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 20 23 } 21 24 22 25 // ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
+65 -26
api/bsky/actordefs.go
··· 68 68 Tags []string `json:"tags" cborgen:"tags"` 69 69 } 70 70 71 + // ActorDefs_KnownFollowers is a "knownFollowers" in the app.bsky.actor.defs schema. 72 + // 73 + // The subject's followers whom you also follow 74 + type ActorDefs_KnownFollowers struct { 75 + Count int64 `json:"count" cborgen:"count"` 76 + Followers []*ActorDefs_ProfileViewBasic `json:"followers" cborgen:"followers"` 77 + } 78 + 71 79 // ActorDefs_LabelerPrefItem is a "labelerPrefItem" in the app.bsky.actor.defs schema. 72 80 type ActorDefs_LabelerPrefItem struct { 73 81 Did string `json:"did" cborgen:"did"` ··· 110 118 ActorDefs_AdultContentPref *ActorDefs_AdultContentPref 111 119 ActorDefs_ContentLabelPref *ActorDefs_ContentLabelPref 112 120 ActorDefs_SavedFeedsPref *ActorDefs_SavedFeedsPref 121 + ActorDefs_SavedFeedsPrefV2 *ActorDefs_SavedFeedsPrefV2 113 122 ActorDefs_PersonalDetailsPref *ActorDefs_PersonalDetailsPref 114 123 ActorDefs_FeedViewPref *ActorDefs_FeedViewPref 115 124 ActorDefs_ThreadViewPref *ActorDefs_ThreadViewPref ··· 131 140 t.ActorDefs_SavedFeedsPref.LexiconTypeID = "app.bsky.actor.defs#savedFeedsPref" 132 141 return json.Marshal(t.ActorDefs_SavedFeedsPref) 133 142 } 143 + if t.ActorDefs_SavedFeedsPrefV2 != nil { 144 + t.ActorDefs_SavedFeedsPrefV2.LexiconTypeID = "app.bsky.actor.defs#savedFeedsPrefV2" 145 + return json.Marshal(t.ActorDefs_SavedFeedsPrefV2) 146 + } 134 147 if t.ActorDefs_PersonalDetailsPref != nil { 135 148 t.ActorDefs_PersonalDetailsPref.LexiconTypeID = "app.bsky.actor.defs#personalDetailsPref" 136 149 return json.Marshal(t.ActorDefs_PersonalDetailsPref) ··· 173 186 case "app.bsky.actor.defs#savedFeedsPref": 174 187 t.ActorDefs_SavedFeedsPref = new(ActorDefs_SavedFeedsPref) 175 188 return json.Unmarshal(b, t.ActorDefs_SavedFeedsPref) 189 + case "app.bsky.actor.defs#savedFeedsPrefV2": 190 + t.ActorDefs_SavedFeedsPrefV2 = new(ActorDefs_SavedFeedsPrefV2) 191 + return json.Unmarshal(b, t.ActorDefs_SavedFeedsPrefV2) 176 192 case "app.bsky.actor.defs#personalDetailsPref": 177 193 t.ActorDefs_PersonalDetailsPref = new(ActorDefs_PersonalDetailsPref) 178 194 return json.Unmarshal(b, t.ActorDefs_PersonalDetailsPref) ··· 199 215 200 216 // ActorDefs_ProfileAssociated is a "profileAssociated" in the app.bsky.actor.defs schema. 201 217 type ActorDefs_ProfileAssociated struct { 202 - Feedgens *int64 `json:"feedgens,omitempty" cborgen:"feedgens,omitempty"` 203 - Labeler *bool `json:"labeler,omitempty" cborgen:"labeler,omitempty"` 204 - Lists *int64 `json:"lists,omitempty" cborgen:"lists,omitempty"` 218 + Chat *ActorDefs_ProfileAssociatedChat `json:"chat,omitempty" cborgen:"chat,omitempty"` 219 + Feedgens *int64 `json:"feedgens,omitempty" cborgen:"feedgens,omitempty"` 220 + Labeler *bool `json:"labeler,omitempty" cborgen:"labeler,omitempty"` 221 + Lists *int64 `json:"lists,omitempty" cborgen:"lists,omitempty"` 222 + StarterPacks *int64 `json:"starterPacks,omitempty" cborgen:"starterPacks,omitempty"` 223 + } 224 + 225 + // ActorDefs_ProfileAssociatedChat is a "profileAssociatedChat" in the app.bsky.actor.defs schema. 226 + type ActorDefs_ProfileAssociatedChat struct { 227 + AllowIncoming string `json:"allowIncoming" cborgen:"allowIncoming"` 205 228 } 206 229 207 230 // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. 208 231 type ActorDefs_ProfileView struct { 209 232 Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 210 233 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 234 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 211 235 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 212 236 Did string `json:"did" cborgen:"did"` 213 237 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` ··· 221 245 type ActorDefs_ProfileViewBasic struct { 222 246 Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 223 247 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 248 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 224 249 Did string `json:"did" cborgen:"did"` 225 250 DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 226 251 Handle string `json:"handle" cborgen:"handle"` ··· 230 255 231 256 // ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema. 232 257 type ActorDefs_ProfileViewDetailed struct { 233 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 234 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 235 - Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 236 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 237 - Did string `json:"did" cborgen:"did"` 238 - DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 239 - FollowersCount *int64 `json:"followersCount,omitempty" cborgen:"followersCount,omitempty"` 240 - FollowsCount *int64 `json:"followsCount,omitempty" cborgen:"followsCount,omitempty"` 241 - Handle string `json:"handle" cborgen:"handle"` 242 - IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 243 - Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 244 - PostsCount *int64 `json:"postsCount,omitempty" cborgen:"postsCount,omitempty"` 245 - Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 258 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 259 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 260 + Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"` 261 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 262 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 263 + Did string `json:"did" cborgen:"did"` 264 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 265 + FollowersCount *int64 `json:"followersCount,omitempty" cborgen:"followersCount,omitempty"` 266 + FollowsCount *int64 `json:"followsCount,omitempty" cborgen:"followsCount,omitempty"` 267 + Handle string `json:"handle" cborgen:"handle"` 268 + IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 269 + JoinedViaStarterPack *GraphDefs_StarterPackViewBasic `json:"joinedViaStarterPack,omitempty" cborgen:"joinedViaStarterPack,omitempty"` 270 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 271 + PostsCount *int64 `json:"postsCount,omitempty" cborgen:"postsCount,omitempty"` 272 + Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 273 + } 274 + 275 + // ActorDefs_SavedFeed is a "savedFeed" in the app.bsky.actor.defs schema. 276 + type ActorDefs_SavedFeed struct { 277 + Id string `json:"id" cborgen:"id"` 278 + Pinned bool `json:"pinned" cborgen:"pinned"` 279 + Type string `json:"type" cborgen:"type"` 280 + Value string `json:"value" cborgen:"value"` 246 281 } 247 282 248 283 // ActorDefs_SavedFeedsPref is a "savedFeedsPref" in the app.bsky.actor.defs schema. ··· 255 290 TimelineIndex *int64 `json:"timelineIndex,omitempty" cborgen:"timelineIndex,omitempty"` 256 291 } 257 292 258 - // ActorDefs_SkeletonActor is a "skeletonActor" in the app.bsky.actor.defs schema. 259 - type ActorDefs_SkeletonActor struct { 260 - Did string `json:"did" cborgen:"did"` 293 + // ActorDefs_SavedFeedsPrefV2 is a "savedFeedsPrefV2" in the app.bsky.actor.defs schema. 294 + // 295 + // RECORDTYPE: ActorDefs_SavedFeedsPrefV2 296 + type ActorDefs_SavedFeedsPrefV2 struct { 297 + LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPrefV2"` 298 + Items []*ActorDefs_SavedFeed `json:"items" cborgen:"items"` 261 299 } 262 300 263 301 // ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema. ··· 275 313 // 276 314 // Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. 277 315 type ActorDefs_ViewerState struct { 278 - BlockedBy *bool `json:"blockedBy,omitempty" cborgen:"blockedBy,omitempty"` 279 - Blocking *string `json:"blocking,omitempty" cborgen:"blocking,omitempty"` 280 - BlockingByList *GraphDefs_ListViewBasic `json:"blockingByList,omitempty" cborgen:"blockingByList,omitempty"` 281 - FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"` 282 - Following *string `json:"following,omitempty" cborgen:"following,omitempty"` 283 - Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"` 284 - MutedByList *GraphDefs_ListViewBasic `json:"mutedByList,omitempty" cborgen:"mutedByList,omitempty"` 316 + BlockedBy *bool `json:"blockedBy,omitempty" cborgen:"blockedBy,omitempty"` 317 + Blocking *string `json:"blocking,omitempty" cborgen:"blocking,omitempty"` 318 + BlockingByList *GraphDefs_ListViewBasic `json:"blockingByList,omitempty" cborgen:"blockingByList,omitempty"` 319 + FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"` 320 + Following *string `json:"following,omitempty" cborgen:"following,omitempty"` 321 + KnownFollowers *ActorDefs_KnownFollowers `json:"knownFollowers,omitempty" cborgen:"knownFollowers,omitempty"` 322 + Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"` 323 + MutedByList *GraphDefs_ListViewBasic `json:"mutedByList,omitempty" cborgen:"mutedByList,omitempty"` 285 324 }
-35
api/bsky/actorgetSuggestionsSkeleton.go
··· 1 - // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 - 3 - package bsky 4 - 5 - // schema: app.bsky.actor.getSuggestionsSkeleton 6 - 7 - import ( 8 - "context" 9 - 10 - "github.com/bluesky-social/indigo/xrpc" 11 - ) 12 - 13 - // ActorGetSuggestionsSkeleton_Output is the output of a app.bsky.actor.getSuggestionsSkeleton call. 14 - type ActorGetSuggestionsSkeleton_Output struct { 15 - Actors []*ActorDefs_SkeletonActor `json:"actors" cborgen:"actors"` 16 - Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 - } 18 - 19 - // ActorGetSuggestionsSkeleton calls the XRPC method "app.bsky.actor.getSuggestionsSkeleton". 20 - // 21 - // viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. 22 - func ActorGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, viewer string) (*ActorGetSuggestionsSkeleton_Output, error) { 23 - var out ActorGetSuggestionsSkeleton_Output 24 - 25 - params := map[string]interface{}{ 26 - "cursor": cursor, 27 - "limit": limit, 28 - "viewer": viewer, 29 - } 30 - if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getSuggestionsSkeleton", params, nil, &out); err != nil { 31 - return nil, err 32 - } 33 - 34 - return &out, nil 35 - }
+4 -6
api/bsky/actorsearchActorsTypeahead.go
··· 19 19 // 20 20 // q: Search query prefix; not a full query string. 21 21 // term: DEPRECATED: use 'q' instead. 22 - // viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. 23 - func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, q string, term string, viewer string) (*ActorSearchActorsTypeahead_Output, error) { 22 + func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) { 24 23 var out ActorSearchActorsTypeahead_Output 25 24 26 25 params := map[string]interface{}{ 27 - "limit": limit, 28 - "q": q, 29 - "term": term, 30 - "viewer": viewer, 26 + "limit": limit, 27 + "q": q, 28 + "term": term, 31 29 } 32 30 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil { 33 31 return nil, err
+5 -2
api/bsky/feeddefs.go
··· 187 187 188 188 // FeedDefs_ReplyRef is a "replyRef" in the app.bsky.feed.defs schema. 189 189 type FeedDefs_ReplyRef struct { 190 - Parent *FeedDefs_ReplyRef_Parent `json:"parent" cborgen:"parent"` 191 - Root *FeedDefs_ReplyRef_Root `json:"root" cborgen:"root"` 190 + // grandparentAuthor: When parent is a reply to another post, this is the author of that post. 191 + GrandparentAuthor *ActorDefs_ProfileViewBasic `json:"grandparentAuthor,omitempty" cborgen:"grandparentAuthor,omitempty"` 192 + Parent *FeedDefs_ReplyRef_Parent `json:"parent" cborgen:"parent"` 193 + Root *FeedDefs_ReplyRef_Root `json:"root" cborgen:"root"` 192 194 } 193 195 194 196 type FeedDefs_ReplyRef_Parent struct { ··· 431 433 Like *string `json:"like,omitempty" cborgen:"like,omitempty"` 432 434 ReplyDisabled *bool `json:"replyDisabled,omitempty" cborgen:"replyDisabled,omitempty"` 433 435 Repost *string `json:"repost,omitempty" cborgen:"repost,omitempty"` 436 + ThreadMuted *bool `json:"threadMuted,omitempty" cborgen:"threadMuted,omitempty"` 434 437 }
+39 -8
api/bsky/graphdefs.go
··· 6 6 7 7 import ( 8 8 comatprototypes "github.com/bluesky-social/indigo/api/atproto" 9 + "github.com/bluesky-social/indigo/lex/util" 9 10 ) 10 11 11 12 // GraphDefs_ListItemView is a "listItemView" in the app.bsky.graph.defs schema. ··· 26 27 DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"` 27 28 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 28 29 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 30 + ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"` 29 31 Name string `json:"name" cborgen:"name"` 30 32 Purpose *string `json:"purpose" cborgen:"purpose"` 31 33 Uri string `json:"uri" cborgen:"uri"` ··· 34 36 35 37 // GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema. 36 38 type GraphDefs_ListViewBasic struct { 37 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 38 - Cid string `json:"cid" cborgen:"cid"` 39 - IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 40 - Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 41 - Name string `json:"name" cborgen:"name"` 42 - Purpose *string `json:"purpose" cborgen:"purpose"` 43 - Uri string `json:"uri" cborgen:"uri"` 44 - Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 39 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 40 + Cid string `json:"cid" cborgen:"cid"` 41 + IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 42 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 43 + ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"` 44 + Name string `json:"name" cborgen:"name"` 45 + Purpose *string `json:"purpose" cborgen:"purpose"` 46 + Uri string `json:"uri" cborgen:"uri"` 47 + Viewer *GraphDefs_ListViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 45 48 } 46 49 47 50 // GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema. ··· 74 77 // following: if the actor follows this DID, this is the AT-URI of the follow record 75 78 Following *string `json:"following,omitempty" cborgen:"following,omitempty"` 76 79 } 80 + 81 + // GraphDefs_StarterPackView is a "starterPackView" in the app.bsky.graph.defs schema. 82 + type GraphDefs_StarterPackView struct { 83 + Cid string `json:"cid" cborgen:"cid"` 84 + Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"` 85 + Feeds []*FeedDefs_GeneratorView `json:"feeds,omitempty" cborgen:"feeds,omitempty"` 86 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 87 + JoinedAllTimeCount *int64 `json:"joinedAllTimeCount,omitempty" cborgen:"joinedAllTimeCount,omitempty"` 88 + JoinedWeekCount *int64 `json:"joinedWeekCount,omitempty" cborgen:"joinedWeekCount,omitempty"` 89 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 90 + List *GraphDefs_ListViewBasic `json:"list,omitempty" cborgen:"list,omitempty"` 91 + ListItemsSample []*GraphDefs_ListItemView `json:"listItemsSample,omitempty" cborgen:"listItemsSample,omitempty"` 92 + Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"` 93 + Uri string `json:"uri" cborgen:"uri"` 94 + } 95 + 96 + // GraphDefs_StarterPackViewBasic is a "starterPackViewBasic" in the app.bsky.graph.defs schema. 97 + type GraphDefs_StarterPackViewBasic struct { 98 + Cid string `json:"cid" cborgen:"cid"` 99 + Creator *ActorDefs_ProfileViewBasic `json:"creator" cborgen:"creator"` 100 + IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 101 + JoinedAllTimeCount *int64 `json:"joinedAllTimeCount,omitempty" cborgen:"joinedAllTimeCount,omitempty"` 102 + JoinedWeekCount *int64 `json:"joinedWeekCount,omitempty" cborgen:"joinedWeekCount,omitempty"` 103 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 104 + ListItemCount *int64 `json:"listItemCount,omitempty" cborgen:"listItemCount,omitempty"` 105 + Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"` 106 + Uri string `json:"uri" cborgen:"uri"` 107 + }
+33
api/bsky/graphgetActorStarterPacks.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.getActorStarterPacks 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphGetActorStarterPacks_Output is the output of a app.bsky.graph.getActorStarterPacks call. 14 + type GraphGetActorStarterPacks_Output struct { 15 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 + StarterPacks []*GraphDefs_StarterPackViewBasic `json:"starterPacks" cborgen:"starterPacks"` 17 + } 18 + 19 + // GraphGetActorStarterPacks calls the XRPC method "app.bsky.graph.getActorStarterPacks". 20 + func GraphGetActorStarterPacks(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetActorStarterPacks_Output, error) { 21 + var out GraphGetActorStarterPacks_Output 22 + 23 + params := map[string]interface{}{ 24 + "actor": actor, 25 + "cursor": cursor, 26 + "limit": limit, 27 + } 28 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getActorStarterPacks", params, nil, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+34
api/bsky/graphgetKnownFollowers.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.getKnownFollowers 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphGetKnownFollowers_Output is the output of a app.bsky.graph.getKnownFollowers call. 14 + type GraphGetKnownFollowers_Output struct { 15 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 + Followers []*ActorDefs_ProfileView `json:"followers" cborgen:"followers"` 17 + Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` 18 + } 19 + 20 + // GraphGetKnownFollowers calls the XRPC method "app.bsky.graph.getKnownFollowers". 21 + func GraphGetKnownFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetKnownFollowers_Output, error) { 22 + var out GraphGetKnownFollowers_Output 23 + 24 + params := map[string]interface{}{ 25 + "actor": actor, 26 + "cursor": cursor, 27 + "limit": limit, 28 + } 29 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getKnownFollowers", params, nil, &out); err != nil { 30 + return nil, err 31 + } 32 + 33 + return &out, nil 34 + }
+32
api/bsky/graphgetStarterPack.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.getStarterPack 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphGetStarterPack_Output is the output of a app.bsky.graph.getStarterPack call. 14 + type GraphGetStarterPack_Output struct { 15 + StarterPack *GraphDefs_StarterPackView `json:"starterPack" cborgen:"starterPack"` 16 + } 17 + 18 + // GraphGetStarterPack calls the XRPC method "app.bsky.graph.getStarterPack". 19 + // 20 + // starterPack: Reference (AT-URI) of the starter pack record. 21 + func GraphGetStarterPack(ctx context.Context, c *xrpc.Client, starterPack string) (*GraphGetStarterPack_Output, error) { 22 + var out GraphGetStarterPack_Output 23 + 24 + params := map[string]interface{}{ 25 + "starterPack": starterPack, 26 + } 27 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPack", params, nil, &out); err != nil { 28 + return nil, err 29 + } 30 + 31 + return &out, nil 32 + }
+30
api/bsky/graphgetStarterPacks.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.getStarterPacks 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphGetStarterPacks_Output is the output of a app.bsky.graph.getStarterPacks call. 14 + type GraphGetStarterPacks_Output struct { 15 + StarterPacks []*GraphDefs_StarterPackViewBasic `json:"starterPacks" cborgen:"starterPacks"` 16 + } 17 + 18 + // GraphGetStarterPacks calls the XRPC method "app.bsky.graph.getStarterPacks". 19 + func GraphGetStarterPacks(ctx context.Context, c *xrpc.Client, uris []string) (*GraphGetStarterPacks_Output, error) { 20 + var out GraphGetStarterPacks_Output 21 + 22 + params := map[string]interface{}{ 23 + "uris": uris, 24 + } 25 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil { 26 + return nil, err 27 + } 28 + 29 + return &out, nil 30 + }
+25
api/bsky/graphmuteThread.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.muteThread 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphMuteThread_Input is the input argument to a app.bsky.graph.muteThread call. 14 + type GraphMuteThread_Input struct { 15 + Root string `json:"root" cborgen:"root"` 16 + } 17 + 18 + // GraphMuteThread calls the XRPC method "app.bsky.graph.muteThread". 19 + func GraphMuteThread(ctx context.Context, c *xrpc.Client, input *GraphMuteThread_Input) error { 20 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil { 21 + return err 22 + } 23 + 24 + return nil 25 + }
+25
api/bsky/graphunmuteThread.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.unmuteThread 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphUnmuteThread_Input is the input argument to a app.bsky.graph.unmuteThread call. 14 + type GraphUnmuteThread_Input struct { 15 + Root string `json:"root" cborgen:"root"` 16 + } 17 + 18 + // GraphUnmuteThread calls the XRPC method "app.bsky.graph.unmuteThread". 19 + func GraphUnmuteThread(ctx context.Context, c *xrpc.Client, input *GraphUnmuteThread_Input) error { 20 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil { 21 + return err 22 + } 23 + 24 + return nil 25 + }
+1 -1
api/bsky/notificationlistNotifications.go
··· 19 19 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 20 20 IsRead bool `json:"isRead" cborgen:"isRead"` 21 21 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 22 - // reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'. 22 + // reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'. 23 23 Reason string `json:"reason" cborgen:"reason"` 24 24 ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"` 25 25 Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
+35
api/bsky/unspeccedgetSuggestionsSkeleton.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.getSuggestionsSkeleton 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // UnspeccedGetSuggestionsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestionsSkeleton call. 14 + type UnspeccedGetSuggestionsSkeleton_Output struct { 15 + Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"` 16 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 + } 18 + 19 + // UnspeccedGetSuggestionsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestionsSkeleton". 20 + // 21 + // viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. 22 + func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) { 23 + var out UnspeccedGetSuggestionsSkeleton_Output 24 + 25 + params := map[string]interface{}{ 26 + "cursor": cursor, 27 + "limit": limit, 28 + "viewer": viewer, 29 + } 30 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil { 31 + return nil, err 32 + } 33 + 34 + return &out, nil 35 + }