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