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

package ozone

// schema: tools.ozone.team.updateMember

import (
	"context"

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

// TeamUpdateMember_Input is the input argument to a tools.ozone.team.updateMember call.
type TeamUpdateMember_Input struct {
	Did      string  `json:"did" cborgen:"did"`
	Disabled *bool   `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
	Role     *string `json:"role,omitempty" cborgen:"role,omitempty"`
}

// TeamUpdateMember calls the XRPC method "tools.ozone.team.updateMember".
func TeamUpdateMember(ctx context.Context, c *xrpc.Client, input *TeamUpdateMember_Input) (*TeamDefs_Member, error) {
	var out TeamDefs_Member
	if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.updateMember", nil, input, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
