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

package atproto

// schema: com.atproto.admin.enableAccountInvites

import (
	"context"

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

// AdminEnableAccountInvites_Input is the input argument to a com.atproto.admin.enableAccountInvites call.
type AdminEnableAccountInvites_Input struct {
	Account string `json:"account" cborgen:"account"`
	// note: Optional reason for enabled invites.
	Note *string `json:"note,omitempty" cborgen:"note,omitempty"`
}

// AdminEnableAccountInvites calls the XRPC method "com.atproto.admin.enableAccountInvites".
func AdminEnableAccountInvites(ctx context.Context, c util.LexClient, input *AdminEnableAccountInvites_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.admin.enableAccountInvites", nil, input, nil); err != nil {
		return err
	}

	return nil
}
