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