// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package bsky

// schema: app.bsky.graph.getSuggestedFollowsByActor

import (
	"context"

	"github.com/bluesky-social/indigo/xrpc"
)

// GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call.
type GraphGetSuggestedFollowsByActor_Output struct {
	// isFallback: If true, response has fallen-back to generic results, and is not scoped using relativeToDid
	IsFallback  *bool                    `json:"isFallback,omitempty" cborgen:"isFallback,omitempty"`
	Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"`
}

// GraphGetSuggestedFollowsByActor calls the XRPC method "app.bsky.graph.getSuggestedFollowsByActor".
func GraphGetSuggestedFollowsByActor(ctx context.Context, c *xrpc.Client, actor string) (*GraphGetSuggestedFollowsByActor_Output, error) {
	var out GraphGetSuggestedFollowsByActor_Output

	params := map[string]interface{}{
		"actor": actor,
	}
	if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getSuggestedFollowsByActor", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
