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

package atproto

// schema: com.atproto.admin.getAccountInfos

import (
	"context"

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

// AdminGetAccountInfos_Output is the output of a com.atproto.admin.getAccountInfos call.
type AdminGetAccountInfos_Output struct {
	Infos []*AdminDefs_AccountView `json:"infos" cborgen:"infos"`
}

// AdminGetAccountInfos calls the XRPC method "com.atproto.admin.getAccountInfos".
func AdminGetAccountInfos(ctx context.Context, c util.LexClient, dids []string) (*AdminGetAccountInfos_Output, error) {
	var out AdminGetAccountInfos_Output

	params := map[string]interface{}{}
	params["dids"] = dids
	if err := c.LexDo(ctx, util.Query, "", "com.atproto.admin.getAccountInfos", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
