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

package tangled

// schema: sh.tangled.git.temp.listTags

import (
	"bytes"
	"context"

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

const (
	GitTempListTagsNSID = "sh.tangled.git.temp.listTags"
)

// GitTempListTags calls the XRPC method "sh.tangled.git.temp.listTags".
//
// cursor: Pagination cursor
// limit: Maximum number of tags to return
// repo: DID of the repository
func GitTempListTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error) {
	buf := new(bytes.Buffer)

	params := map[string]interface{}{}
	if cursor != "" {
		params["cursor"] = cursor
	}
	if limit != 0 {
		params["limit"] = limit
	}
	params["repo"] = repo
	if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.listTags", params, nil, buf); err != nil {
		return nil, err
	}

	return buf.Bytes(), nil
}
