~james/core

core/api/org_tangled/temprepoupdateSiteConfig.go -rw-r--r-- 1.6 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package org_tangled

// schema: org.tangled.temp.repo.updateSiteConfig

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

const (
	TempRepoUpdateSiteConfigNSID = "org.tangled.temp.repo.updateSiteConfig"
)

// TempRepoUpdateSiteConfig_Input is the input argument to a org.tangled.temp.repo.updateSiteConfig call.
type TempRepoUpdateSiteConfig_Input struct {
	// branch: Branch to deploy from.
	Branch string `json:"branch" cborgen:"branch"`
	// dir: Directory within the repository to deploy (e.g. '/' or '/docs').
	Dir string `json:"dir" cborgen:"dir"`
	// isIndex: Whether this repo should serve as the index (root) for the claimed domain.
	IsIndex *bool `json:"isIndex,omitempty" cborgen:"isIndex,omitempty"`
	// knot: Knot host that hosts the repository.
	Knot string `json:"knot" cborgen:"knot"`
	// name: Repository name as its knot reports it (the first path segment its sub-path site is served under).
	Name string `json:"name" cborgen:"name"`
	// repoDid: DID of the repository as minted by the knot.
	RepoDid string `json:"repoDid" cborgen:"repoDid"`
	// rkey: Atproto record key of the repository; identifies the {did}/{rkey}/ prefix in R2.
	Rkey string `json:"rkey" cborgen:"rkey"`
}

// TempRepoUpdateSiteConfig calls the XRPC method "org.tangled.temp.repo.updateSiteConfig".
func TempRepoUpdateSiteConfig(ctx context.Context, c util.LexClient, input *TempRepoUpdateSiteConfig_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.repo.updateSiteConfig", nil, input, nil); err != nil {
		return err
	}

	return nil
}