···2929 Visibility string `json:"visibility" cborgen:"visibility"`
3030}
31313232+// ActorDefs_FeedViewPref is a "feedViewPref" in the app.bsky.actor.defs schema.
3333+//
3434+// RECORDTYPE: ActorDefs_FeedViewPref
3535+type ActorDefs_FeedViewPref struct {
3636+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#feedViewPref" cborgen:"$type,const=app.bsky.actor.defs#feedViewPref"`
3737+ // feed: The URI of the feed, or an identifier which describes the feed.
3838+ Feed string `json:"feed" cborgen:"feed"`
3939+ // hideQuotePosts: Hide quote posts in the feed.
4040+ HideQuotePosts *bool `json:"hideQuotePosts,omitempty" cborgen:"hideQuotePosts,omitempty"`
4141+ // hideReplies: Hide replies in the feed.
4242+ HideReplies *bool `json:"hideReplies,omitempty" cborgen:"hideReplies,omitempty"`
4343+ // hideRepliesByLikeCount: Hide replies in the feed if they do not have this number of likes.
4444+ HideRepliesByLikeCount *int64 `json:"hideRepliesByLikeCount,omitempty" cborgen:"hideRepliesByLikeCount,omitempty"`
4545+ // hideRepliesByUnfollowed: Hide replies in the feed if they are not by followed users.
4646+ HideRepliesByUnfollowed *bool `json:"hideRepliesByUnfollowed,omitempty" cborgen:"hideRepliesByUnfollowed,omitempty"`
4747+ // hideReposts: Hide reposts in the feed.
4848+ HideReposts *bool `json:"hideReposts,omitempty" cborgen:"hideReposts,omitempty"`
4949+}
5050+5151+// ActorDefs_PersonalDetailsPref is a "personalDetailsPref" in the app.bsky.actor.defs schema.
5252+//
5353+// RECORDTYPE: ActorDefs_PersonalDetailsPref
5454+type ActorDefs_PersonalDetailsPref struct {
5555+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#personalDetailsPref" cborgen:"$type,const=app.bsky.actor.defs#personalDetailsPref"`
5656+ // birthDate: The birth date of the owner of the account.
5757+ BirthDate *string `json:"birthDate,omitempty" cborgen:"birthDate,omitempty"`
5858+}
5959+3260type ActorDefs_Preferences_Elem struct {
3333- ActorDefs_AdultContentPref *ActorDefs_AdultContentPref
3434- ActorDefs_ContentLabelPref *ActorDefs_ContentLabelPref
3535- ActorDefs_SavedFeedsPref *ActorDefs_SavedFeedsPref
6161+ ActorDefs_AdultContentPref *ActorDefs_AdultContentPref
6262+ ActorDefs_ContentLabelPref *ActorDefs_ContentLabelPref
6363+ ActorDefs_SavedFeedsPref *ActorDefs_SavedFeedsPref
6464+ ActorDefs_PersonalDetailsPref *ActorDefs_PersonalDetailsPref
6565+ ActorDefs_FeedViewPref *ActorDefs_FeedViewPref
6666+ ActorDefs_ThreadViewPref *ActorDefs_ThreadViewPref
3667}
37683869func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) {
···4879 t.ActorDefs_SavedFeedsPref.LexiconTypeID = "app.bsky.actor.defs#savedFeedsPref"
4980 return json.Marshal(t.ActorDefs_SavedFeedsPref)
5081 }
8282+ if t.ActorDefs_PersonalDetailsPref != nil {
8383+ t.ActorDefs_PersonalDetailsPref.LexiconTypeID = "app.bsky.actor.defs#personalDetailsPref"
8484+ return json.Marshal(t.ActorDefs_PersonalDetailsPref)
8585+ }
8686+ if t.ActorDefs_FeedViewPref != nil {
8787+ t.ActorDefs_FeedViewPref.LexiconTypeID = "app.bsky.actor.defs#feedViewPref"
8888+ return json.Marshal(t.ActorDefs_FeedViewPref)
8989+ }
9090+ if t.ActorDefs_ThreadViewPref != nil {
9191+ t.ActorDefs_ThreadViewPref.LexiconTypeID = "app.bsky.actor.defs#threadViewPref"
9292+ return json.Marshal(t.ActorDefs_ThreadViewPref)
9393+ }
5194 return nil, fmt.Errorf("cannot marshal empty enum")
5295}
5396func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error {
···66109 case "app.bsky.actor.defs#savedFeedsPref":
67110 t.ActorDefs_SavedFeedsPref = new(ActorDefs_SavedFeedsPref)
68111 return json.Unmarshal(b, t.ActorDefs_SavedFeedsPref)
112112+ case "app.bsky.actor.defs#personalDetailsPref":
113113+ t.ActorDefs_PersonalDetailsPref = new(ActorDefs_PersonalDetailsPref)
114114+ return json.Unmarshal(b, t.ActorDefs_PersonalDetailsPref)
115115+ case "app.bsky.actor.defs#feedViewPref":
116116+ t.ActorDefs_FeedViewPref = new(ActorDefs_FeedViewPref)
117117+ return json.Unmarshal(b, t.ActorDefs_FeedViewPref)
118118+ case "app.bsky.actor.defs#threadViewPref":
119119+ t.ActorDefs_ThreadViewPref = new(ActorDefs_ThreadViewPref)
120120+ return json.Unmarshal(b, t.ActorDefs_ThreadViewPref)
6912170122 default:
71123 return nil
···117169 LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#savedFeedsPref" cborgen:"$type,const=app.bsky.actor.defs#savedFeedsPref"`
118170 Pinned []string `json:"pinned" cborgen:"pinned"`
119171 Saved []string `json:"saved" cborgen:"saved"`
172172+}
173173+174174+// ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema.
175175+//
176176+// RECORDTYPE: ActorDefs_ThreadViewPref
177177+type ActorDefs_ThreadViewPref struct {
178178+ LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#threadViewPref" cborgen:"$type,const=app.bsky.actor.defs#threadViewPref"`
179179+ // prioritizeFollowedUsers: Show followed users at the top of all replies.
180180+ PrioritizeFollowedUsers *bool `json:"prioritizeFollowedUsers,omitempty" cborgen:"prioritizeFollowedUsers,omitempty"`
181181+ // sort: Sorting mode.
182182+ Sort *string `json:"sort,omitempty" cborgen:"sort,omitempty"`
120183}
121184122185// ActorDefs_ViewerState is a "viewerState" in the app.bsky.actor.defs schema.
+15-5
api/bsky/embedimages.go
···1717 Images []*EmbedImages_Image `json:"images" cborgen:"images"`
1818}
19192020+// EmbedImages_AspectRatio is a "aspectRatio" in the app.bsky.embed.images schema.
2121+//
2222+// width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
2323+type EmbedImages_AspectRatio struct {
2424+ Height int64 `json:"height" cborgen:"height"`
2525+ Width int64 `json:"width" cborgen:"width"`
2626+}
2727+2028// EmbedImages_Image is a "image" in the app.bsky.embed.images schema.
2129type EmbedImages_Image struct {
2222- Alt string `json:"alt" cborgen:"alt"`
2323- Image *util.LexBlob `json:"image" cborgen:"image"`
3030+ Alt string `json:"alt" cborgen:"alt"`
3131+ AspectRatio *EmbedImages_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
3232+ Image *util.LexBlob `json:"image" cborgen:"image"`
2433}
25342635// EmbedImages_View is a "view" in the app.bsky.embed.images schema.
···33423443// EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema.
3544type EmbedImages_ViewImage struct {
3636- Alt string `json:"alt" cborgen:"alt"`
3737- Fullsize string `json:"fullsize" cborgen:"fullsize"`
3838- Thumb string `json:"thumb" cborgen:"thumb"`
4545+ Alt string `json:"alt" cborgen:"alt"`
4646+ AspectRatio *EmbedImages_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
4747+ Fullsize string `json:"fullsize" cborgen:"fullsize"`
4848+ Thumb string `json:"thumb" cborgen:"thumb"`
3949}
+33
api/bsky/feedgetListFeed.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.feed.getListFeed
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// FeedGetListFeed_Output is the output of a app.bsky.feed.getListFeed call.
1414+type FeedGetListFeed_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
1717+}
1818+1919+// FeedGetListFeed calls the XRPC method "app.bsky.feed.getListFeed".
2020+func FeedGetListFeed(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*FeedGetListFeed_Output, error) {
2121+ var out FeedGetListFeed_Output
2222+2323+ params := map[string]interface{}{
2424+ "cursor": cursor,
2525+ "limit": limit,
2626+ "list": list,
2727+ }
2828+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getListFeed", params, nil, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+32
api/bsky/feedgetSuggestedFeeds.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.feed.getSuggestedFeeds
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// FeedGetSuggestedFeeds_Output is the output of a app.bsky.feed.getSuggestedFeeds call.
1414+type FeedGetSuggestedFeeds_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Feeds []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"`
1717+}
1818+1919+// FeedGetSuggestedFeeds calls the XRPC method "app.bsky.feed.getSuggestedFeeds".
2020+func FeedGetSuggestedFeeds(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
2121+ var out FeedGetSuggestedFeeds_Output
2222+2323+ params := map[string]interface{}{
2424+ "cursor": cursor,
2525+ "limit": limit,
2626+ }
2727+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
2828+ return nil, err
2929+ }
3030+3131+ return &out, nil
3232+}
+2-1
api/bsky/graphdefs.go
···39394040// GraphDefs_ListViewerState is a "listViewerState" in the app.bsky.graph.defs schema.
4141type GraphDefs_ListViewerState struct {
4242- Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"`
4242+ Blocked *string `json:"blocked,omitempty" cborgen:"blocked,omitempty"`
4343+ Muted *bool `json:"muted,omitempty" cborgen:"muted,omitempty"`
4344}
+30
api/bsky/graphgetSuggestedFollowsByActor.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package bsky
44+55+// schema: app.bsky.graph.getSuggestedFollowsByActor
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
1414+type GraphGetSuggestedFollowsByActor_Output struct {
1515+ Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"`
1616+}
1717+1818+// GraphGetSuggestedFollowsByActor calls the XRPC method "app.bsky.graph.getSuggestedFollowsByActor".
1919+func GraphGetSuggestedFollowsByActor(ctx context.Context, c *xrpc.Client, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
2020+ var out GraphGetSuggestedFollowsByActor_Output
2121+2222+ params := map[string]interface{}{
2323+ "actor": actor,
2424+ }
2525+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
2626+ return nil, err
2727+ }
2828+2929+ return &out, nil
3030+}