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

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

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

	return &out, nil
}
