// 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/xrpc"
)

// 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 *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetActorLikes_Output, error) {
	var out FeedGetActorLikes_Output

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

	return &out, nil
}
