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

package ozone

// schema: tools.ozone.signature.searchAccounts

import (
	"context"

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

// SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call.
type SignatureSearchAccounts_Output struct {
	Accounts []*comatprototypes.AdminDefs_AccountView `json:"accounts" cborgen:"accounts"`
	Cursor   *string                                  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

// SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts".
func SignatureSearchAccounts(ctx context.Context, c util.LexClient, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) {
	var out SignatureSearchAccounts_Output

	params := map[string]interface{}{}
	if cursor != "" {
		params["cursor"] = cursor
	}
	if limit != 0 {
		params["limit"] = limit
	}
	params["values"] = values
	if err := c.LexDo(ctx, util.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
