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

package chat

// schema: chat.bsky.convo.muteConvo

import (
	"context"

	"github.com/bluesky-social/indigo/xrpc"
)

// ConvoMuteConvo_Input is the input argument to a chat.bsky.convo.muteConvo call.
type ConvoMuteConvo_Input struct {
	ConvoId string `json:"convoId" cborgen:"convoId"`
}

// ConvoMuteConvo_Output is the output of a chat.bsky.convo.muteConvo call.
type ConvoMuteConvo_Output struct {
	Convo *ConvoDefs_ConvoView `json:"convo" cborgen:"convo"`
}

// ConvoMuteConvo calls the XRPC method "chat.bsky.convo.muteConvo".
func ConvoMuteConvo(ctx context.Context, c *xrpc.Client, input *ConvoMuteConvo_Input) (*ConvoMuteConvo_Output, error) {
	var out ConvoMuteConvo_Output
	if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.muteConvo", nil, input, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
