1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.graph.getSuggestedFollowsByActor
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
14type GraphGetSuggestedFollowsByActor_Output struct {
15 // isFallback: If true, response has fallen-back to generic results, and is not scoped using relativeToDid
16 IsFallback *bool `json:"isFallback,omitempty" cborgen:"isFallback,omitempty"`
17 // recId: Snowflake for this recommendation, use when submitting recommendation events.
18 RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"`
19 Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"`
20}
21
22// GraphGetSuggestedFollowsByActor calls the XRPC method "app.bsky.graph.getSuggestedFollowsByActor".
23func GraphGetSuggestedFollowsByActor(ctx context.Context, c *xrpc.Client, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
24 var out GraphGetSuggestedFollowsByActor_Output
25
26 params := map[string]interface{}{
27 "actor": actor,
28 }
29 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
30 return nil, err
31 }
32
33 return &out, nil
34}