// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: org.tangled.temp.webhook.listWebhooks import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( TempWebhookListWebhooksNSID = "org.tangled.temp.webhook.listWebhooks" ) // TempWebhookListWebhooks_Output is the output of a org.tangled.temp.webhook.listWebhooks call. type TempWebhookListWebhooks_Output struct { Webhooks []*TempWebhookListWebhooks_Webhook `json:"webhooks" cborgen:"webhooks"` } // TempWebhookListWebhooks_Webhook is a "webhook" in the org.tangled.temp.webhook.listWebhooks schema. type TempWebhookListWebhooks_Webhook struct { // active: Whether the webhook is currently enabled. Active bool `json:"active" cborgen:"active"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // events: Event types this webhook is subscribed to (e.g. 'push', 'repository:renamed'). Events []string `json:"events" cborgen:"events"` // id: Webhook identifier. Id int64 `json:"id" cborgen:"id"` UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"` // url: Endpoint URL that receives webhook payloads. Url string `json:"url" cborgen:"url"` } // TempWebhookListWebhooks calls the XRPC method "org.tangled.temp.webhook.listWebhooks". // // repoDid: DID of the repository as minted by the knot. func TempWebhookListWebhooks(ctx context.Context, c util.LexClient, repoDid string) (*TempWebhookListWebhooks_Output, error) { var out TempWebhookListWebhooks_Output params := map[string]interface{}{} params["repoDid"] = repoDid if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.webhook.listWebhooks", params, nil, &out); err != nil { return nil, err } return &out, nil }