This repository has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: org.tangled.temp.repo.updateSiteConfig
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempRepoUpdateSiteConfigNSID = "org.tangled.temp.repo.updateSiteConfig"
15)
16
17// TempRepoUpdateSiteConfig_Input is the input argument to a org.tangled.temp.repo.updateSiteConfig call.
18type TempRepoUpdateSiteConfig_Input struct {
19 // branch: Branch to deploy from.
20 Branch string `json:"branch" cborgen:"branch"`
21 // dir: Directory within the repository to deploy (e.g. '/' or '/docs').
22 Dir string `json:"dir" cborgen:"dir"`
23 // isIndex: Whether this repo should serve as the index (root) for the claimed domain.
24 IsIndex *bool `json:"isIndex,omitempty" cborgen:"isIndex,omitempty"`
25 // repoDid: DID of the repository as minted by the knot.
26 RepoDid string `json:"repoDid" cborgen:"repoDid"`
27}
28
29// TempRepoUpdateSiteConfig calls the XRPC method "org.tangled.temp.repo.updateSiteConfig".
30func TempRepoUpdateSiteConfig(ctx context.Context, c util.LexClient, input *TempRepoUpdateSiteConfig_Input) error {
31 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.repo.updateSiteConfig", nil, input, nil); err != nil {
32 return err
33 }
34
35 return nil
36}