// 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/lex/util"
)

// 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"`
	// recId: Snowflake for this recommendation, use when submitting recommendation events.
	RecId       *int64                   `json:"recId,omitempty" cborgen:"recId,omitempty"`
	Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"`
}

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

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

	return &out, nil
}
