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

package bsky

// schema: app.bsky.feed.getQuotes

import (
	"context"

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

// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call.
type FeedGetQuotes_Output struct {
	Cid    *string              `json:"cid,omitempty" cborgen:"cid,omitempty"`
	Cursor *string              `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Posts  []*FeedDefs_PostView `json:"posts" cborgen:"posts"`
	Uri    string               `json:"uri" cborgen:"uri"`
}

// FeedGetQuotes calls the XRPC method "app.bsky.feed.getQuotes".
//
// cid: If supplied, filters to quotes of specific version (by CID) of the post record.
// uri: Reference (AT-URI) of post record
func FeedGetQuotes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) {
	var out FeedGetQuotes_Output

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

	return &out, nil
}
