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

package ozone

// schema: tools.ozone.communication.listTemplates

import (
	"context"

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

// CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call.
type CommunicationListTemplates_Output struct {
	CommunicationTemplates []*CommunicationDefs_TemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"`
}

// CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates".
func CommunicationListTemplates(ctx context.Context, c *xrpc.Client) (*CommunicationListTemplates_Output, error) {
	var out CommunicationListTemplates_Output
	if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
