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

package bsky

// schema: app.bsky.graph.getMutes

import (
	"context"

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

// GraphGetMutes_Output is the output of a app.bsky.graph.getMutes call.
type GraphGetMutes_Output struct {
	Cursor *string                  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Mutes  []*ActorDefs_ProfileView `json:"mutes" cborgen:"mutes"`
}

// GraphGetMutes calls the XRPC method "app.bsky.graph.getMutes".
func GraphGetMutes(ctx context.Context, c util.LexClient, cursor string, limit int64) (*GraphGetMutes_Output, error) {
	var out GraphGetMutes_Output

	params := map[string]interface{}{}
	if cursor != "" {
		params["cursor"] = cursor
	}
	if limit != 0 {
		params["limit"] = limit
	}
	if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getMutes", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
