// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: org.tangled.temp.webhook.toggleWebhook import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( TempWebhookToggleWebhookNSID = "org.tangled.temp.webhook.toggleWebhook" ) // TempWebhookToggleWebhook_Input is the input argument to a org.tangled.temp.webhook.toggleWebhook call. type TempWebhookToggleWebhook_Input struct { // id: Webhook ID to toggle. Id int64 `json:"id" cborgen:"id"` // repoDid: DID of the repository as minted by the knot. RepoDid string `json:"repoDid" cborgen:"repoDid"` } // TempWebhookToggleWebhook_Output is the output of a org.tangled.temp.webhook.toggleWebhook call. type TempWebhookToggleWebhook_Output struct { // active: New active state of the webhook. Active bool `json:"active" cborgen:"active"` } // TempWebhookToggleWebhook calls the XRPC method "org.tangled.temp.webhook.toggleWebhook". func TempWebhookToggleWebhook(ctx context.Context, c util.LexClient, input *TempWebhookToggleWebhook_Input) (*TempWebhookToggleWebhook_Output, error) { var out TempWebhookToggleWebhook_Output if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.webhook.toggleWebhook", nil, input, &out); err != nil { return nil, err } return &out, nil }