// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: org.tangled.webhook.toggleWebhook import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( WebhookToggleWebhookNSID = "org.tangled.webhook.toggleWebhook" ) // WebhookToggleWebhook_Input is the input argument to a org.tangled.webhook.toggleWebhook call. type WebhookToggleWebhook_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"` } // WebhookToggleWebhook_Output is the output of a org.tangled.webhook.toggleWebhook call. type WebhookToggleWebhook_Output struct { // active: New active state of the webhook. Active bool `json:"active" cborgen:"active"` } // WebhookToggleWebhook calls the XRPC method "org.tangled.webhook.toggleWebhook". func WebhookToggleWebhook(ctx context.Context, c util.LexClient, input *WebhookToggleWebhook_Input) (*WebhookToggleWebhook_Output, error) { var out WebhookToggleWebhook_Output if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.webhook.toggleWebhook", nil, input, &out); err != nil { return nil, err } return &out, nil }