1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.delete
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoDeleteNSID = "sh.tangled.repo.delete"
15)
16
17// RepoDelete_Input is the input argument to a sh.tangled.repo.delete call.
18type RepoDelete_Input struct {
19 // did: DID of the repository owner
20 Did string `json:"did" cborgen:"did"`
21 // name: Name of the repository to delete
22 Name string `json:"name" cborgen:"name"`
23}
24
25// RepoDelete calls the XRPC method "sh.tangled.repo.delete".
26func RepoDelete(ctx context.Context, c util.LexClient, input *RepoDelete_Input) error {
27 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.delete", nil, input, nil); err != nil {
28 return err
29 }
30
31 return nil
32}