// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: org.tangled.temp.webhook.getDeliveriesForWebhooks import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( TempWebhookGetDeliveriesForWebhooksNSID = "org.tangled.temp.webhook.getDeliveriesForWebhooks" ) // TempWebhookGetDeliveriesForWebhooks_Delivery is a "delivery" in the org.tangled.temp.webhook.getDeliveriesForWebhooks schema. type TempWebhookGetDeliveriesForWebhooks_Delivery struct { CreatedAt string `json:"createdAt" cborgen:"createdAt"` // deliveryId: UUID for tracking this delivery attempt. DeliveryId string `json:"deliveryId" cborgen:"deliveryId"` // event: Event type that triggered the delivery. Event string `json:"event" cborgen:"event"` Id int64 `json:"id" cborgen:"id"` RequestBody *string `json:"requestBody,omitempty" cborgen:"requestBody,omitempty"` ResponseBody *string `json:"responseBody,omitempty" cborgen:"responseBody,omitempty"` ResponseCode *int64 `json:"responseCode,omitempty" cborgen:"responseCode,omitempty"` Success bool `json:"success" cborgen:"success"` Url string `json:"url" cborgen:"url"` WebhookId int64 `json:"webhookId" cborgen:"webhookId"` } // TempWebhookGetDeliveriesForWebhooks_Output is the output of a org.tangled.temp.webhook.getDeliveriesForWebhooks call. type TempWebhookGetDeliveriesForWebhooks_Output struct { Deliveries []*TempWebhookGetDeliveriesForWebhooks_Delivery `json:"deliveries" cborgen:"deliveries"` } // TempWebhookGetDeliveriesForWebhooks calls the XRPC method "org.tangled.temp.webhook.getDeliveriesForWebhooks". // // repoDid: DID of the repository as minted by the knot. func TempWebhookGetDeliveriesForWebhooks(ctx context.Context, c util.LexClient, ids []int64, limit int64, repoDid string) (*TempWebhookGetDeliveriesForWebhooks_Output, error) { var out TempWebhookGetDeliveriesForWebhooks_Output params := map[string]interface{}{} params["ids"] = ids if limit != 0 { params["limit"] = limit } params["repoDid"] = repoDid if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.webhook.getDeliveriesForWebhooks", params, nil, &out); err != nil { return nil, err } return &out, nil }