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

// 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 *xrpc.Client, input *ModerationUpdateActorAccess_Input) error {
	if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
		return err
	}

	return nil
}
