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

// 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 *xrpc.Client, dids []string) (*AdminGetAccountInfos_Output, error) {
	var out AdminGetAccountInfos_Output

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

	return &out, nil
}
