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

package bsky

// schema: app.bsky.feed.getActorLikes

import (
	"context"

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

// FeedGetActorLikes_Output is the output of a app.bsky.feed.getActorLikes call.
type FeedGetActorLikes_Output struct {
	Cursor *string                  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Feed   []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
}

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

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

	return &out, nil
}
