This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / repolistWebhookDeliveries.go
2.1 kB 55 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: org.tangled.temp.repo.listWebhookDeliveries 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 TempRepoListWebhookDeliveriesNSID = "org.tangled.temp.repo.listWebhookDeliveries" 15) 16 17// TempRepoListWebhookDeliveries_Delivery is a "delivery" in the org.tangled.temp.repo.listWebhookDeliveries schema. 18type TempRepoListWebhookDeliveries_Delivery struct { 19 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 20 // deliveryId: UUID for tracking this delivery attempt. 21 DeliveryId string `json:"deliveryId" cborgen:"deliveryId"` 22 // event: Event type that triggered the delivery. 23 Event string `json:"event" cborgen:"event"` 24 Id int64 `json:"id" cborgen:"id"` 25 RequestBody *string `json:"requestBody,omitempty" cborgen:"requestBody,omitempty"` 26 ResponseBody *string `json:"responseBody,omitempty" cborgen:"responseBody,omitempty"` 27 ResponseCode *int64 `json:"responseCode,omitempty" cborgen:"responseCode,omitempty"` 28 Success bool `json:"success" cborgen:"success"` 29 Url string `json:"url" cborgen:"url"` 30} 31 32// TempRepoListWebhookDeliveries_Output is the output of a org.tangled.temp.repo.listWebhookDeliveries call. 33type TempRepoListWebhookDeliveries_Output struct { 34 Deliveries []*TempRepoListWebhookDeliveries_Delivery `json:"deliveries" cborgen:"deliveries"` 35} 36 37// TempRepoListWebhookDeliveries calls the XRPC method "org.tangled.temp.repo.listWebhookDeliveries". 38// 39// id: Webhook ID. 40// repoDid: DID of the repository as minted by the knot. 41func TempRepoListWebhookDeliveries(ctx context.Context, c util.LexClient, id int64, limit int64, repoDid string) (*TempRepoListWebhookDeliveries_Output, error) { 42 var out TempRepoListWebhookDeliveries_Output 43 44 params := map[string]interface{}{} 45 params["id"] = id 46 if limit != 0 { 47 params["limit"] = limit 48 } 49 params["repoDid"] = repoDid 50 if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.repo.listWebhookDeliveries", params, nil, &out); err != nil { 51 return nil, err 52 } 53 54 return &out, nil 55}