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

package atproto

// schema: com.atproto.admin.getAccountInfo

import (
	"context"

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

// AdminGetAccountInfo calls the XRPC method "com.atproto.admin.getAccountInfo".
func AdminGetAccountInfo(ctx context.Context, c util.LexClient, did string) (*AdminDefs_AccountView, error) {
	var out AdminDefs_AccountView

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

	return &out, nil
}
