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

package ozone

// schema: tools.ozone.set.upsertSet

import (
	"context"

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

// SetUpsertSet calls the XRPC method "tools.ozone.set.upsertSet".
func SetUpsertSet(ctx context.Context, c util.LexClient, input *SetDefs_Set) (*SetDefs_SetView, error) {
	var out SetDefs_SetView
	if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.set.upsertSet", nil, input, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
