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

package chat

// schema: chat.bsky.moderation.updateActorAccess

import (
	"context"

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

// ModerationUpdateActorAccess_Input is the input argument to a chat.bsky.moderation.updateActorAccess call.
type ModerationUpdateActorAccess_Input struct {
	Actor       string  `json:"actor" cborgen:"actor"`
	AllowAccess bool    `json:"allowAccess" cborgen:"allowAccess"`
	Ref         *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
}

// ModerationUpdateActorAccess calls the XRPC method "chat.bsky.moderation.updateActorAccess".
func ModerationUpdateActorAccess(ctx context.Context, c util.LexClient, input *ModerationUpdateActorAccess_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
		return err
	}

	return nil
}
