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

package bsky

// schema: app.bsky.feed.getSuggestedFeeds

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

// FeedGetSuggestedFeeds_Output is the output of a app.bsky.feed.getSuggestedFeeds call.
type FeedGetSuggestedFeeds_Output struct {
	Cursor *string                   `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Feeds  []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"`
}

// FeedGetSuggestedFeeds calls the XRPC method "app.bsky.feed.getSuggestedFeeds".
func FeedGetSuggestedFeeds(ctx context.Context, c util.LexClient, cursor string, limit int64) (*FeedGetSuggestedFeeds_Output, error) {
	var out FeedGetSuggestedFeeds_Output

	params := map[string]interface{}{}
	if cursor != "" {
		params["cursor"] = cursor
	}
	if limit != 0 {
		params["limit"] = limit
	}
	if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getSuggestedFeeds", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
