Live video on the AT Protocol
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3// Lexicon schema: place.stream.server.deleteWebhook
4
5package streamplace
6
7import (
8 "context"
9
10 lexutil "github.com/bluesky-social/indigo/lex/util"
11)
12
13// ServerDeleteWebhook_Input is the input argument to a place.stream.server.deleteWebhook call.
14type ServerDeleteWebhook_Input struct {
15 // id: The ID of the webhook to delete.
16 Id string `json:"id" cborgen:"id"`
17}
18
19// ServerDeleteWebhook_Output is the output of a place.stream.server.deleteWebhook call.
20type ServerDeleteWebhook_Output struct {
21 // success: Whether the webhook was successfully deleted.
22 Success bool `json:"success" cborgen:"success"`
23}
24
25// ServerDeleteWebhook calls the XRPC method "place.stream.server.deleteWebhook".
26func ServerDeleteWebhook(ctx context.Context, c lexutil.LexClient, input *ServerDeleteWebhook_Input) (*ServerDeleteWebhook_Output, error) {
27 var out ServerDeleteWebhook_Output
28 if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "place.stream.server.deleteWebhook", nil, input, &out); err != nil {
29 return nil, err
30 }
31
32 return &out, nil
33}