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

package atproto

// schema: com.atproto.identity.updateHandle

import (
	"context"

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

// IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.
type IdentityUpdateHandle_Input struct {
	// handle: The new handle.
	Handle string `json:"handle" cborgen:"handle"`
}

// IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".
func IdentityUpdateHandle(ctx context.Context, c util.LexClient, input *IdentityUpdateHandle_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
		return err
	}

	return nil
}
