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