This repository has no description
0

Configure Feed

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

core / api / tangled / repoupdateWebhook.go
1.2 kB 36 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: org.tangled.temp.repo.updateWebhook 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 TempRepoUpdateWebhookNSID = "org.tangled.temp.repo.updateWebhook" 15) 16 17// TempRepoUpdateWebhook_Input is the input argument to a org.tangled.temp.repo.updateWebhook call. 18type TempRepoUpdateWebhook_Input struct { 19 Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` 20 Events []string `json:"events,omitempty" cborgen:"events,omitempty"` 21 // id: Webhook ID to update. 22 Id int64 `json:"id" cborgen:"id"` 23 // repoDid: DID of the repository as minted by the knot. 24 RepoDid string `json:"repoDid" cborgen:"repoDid"` 25 Secret *string `json:"secret,omitempty" cborgen:"secret,omitempty"` 26 Url *string `json:"url,omitempty" cborgen:"url,omitempty"` 27} 28 29// TempRepoUpdateWebhook calls the XRPC method "org.tangled.temp.repo.updateWebhook". 30func TempRepoUpdateWebhook(ctx context.Context, c util.LexClient, input *TempRepoUpdateWebhook_Input) error { 31 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.repo.updateWebhook", nil, input, nil); err != nil { 32 return err 33 } 34 35 return nil 36}