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

package org_tangled

// schema: org.tangled.temp.spindle.moderation.unban

import (
	"context"

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

const (
	TempSpindleModerationUnbanNSID = "org.tangled.temp.spindle.moderation.unban"
)

// TempSpindleModerationUnban_Input is the input argument to a org.tangled.temp.spindle.moderation.unban call.
type TempSpindleModerationUnban_Input struct {
	// did: DID of the repository or account owner to unban
	Did string `json:"did" cborgen:"did"`
}

// TempSpindleModerationUnban calls the XRPC method "org.tangled.temp.spindle.moderation.unban".
func TempSpindleModerationUnban(ctx context.Context, c util.LexClient, input *TempSpindleModerationUnban_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.spindle.moderation.unban", nil, input, nil); err != nil {
		return err
	}

	return nil
}
