// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package org_tangled // schema: org.tangled.webhook.listWebhookDeliveries import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( WebhookListWebhookDeliveriesNSID = "org.tangled.webhook.listWebhookDeliveries" ) // WebhookListWebhookDeliveries_Output is the output of a org.tangled.webhook.listWebhookDeliveries call. type WebhookListWebhookDeliveries_Output struct { Deliveries []*WebhookDefs_Delivery `json:"deliveries" cborgen:"deliveries"` } // WebhookListWebhookDeliveries calls the XRPC method "org.tangled.webhook.listWebhookDeliveries". // // repo: DID of the repository as minted by the knot. func WebhookListWebhookDeliveries(ctx context.Context, c util.LexClient, limit int64, repo string, webhooks []string) (*WebhookListWebhookDeliveries_Output, error) { var out WebhookListWebhookDeliveries_Output params := map[string]interface{}{} if limit != 0 { params["limit"] = limit } params["repo"] = repo params["webhooks"] = webhooks if err := c.LexDo(ctx, util.Query, "", "org.tangled.webhook.listWebhookDeliveries", params, nil, &out); err != nil { return nil, err } return &out, nil }