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

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

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

	return &out, nil
}
