// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.repo.setContributionPolicy import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( RepoSetContributionPolicyNSID = "sh.tangled.repo.setContributionPolicy" ) // RepoSetContributionPolicy_Input is the input argument to a sh.tangled.repo.setContributionPolicy call. type RepoSetContributionPolicy_Input struct { // contributionPolicy: anyone: any account with a DID can contribute. Members: accounts on this knot's member roll. Collaborators: the owner and the repository's collaborators. ContributionPolicy string `json:"contributionPolicy" cborgen:"contributionPolicy"` // repo: DID of the repository this policy change is for Repo string `json:"repo" cborgen:"repo"` } // RepoSetContributionPolicy calls the XRPC method "sh.tangled.repo.setContributionPolicy". func RepoSetContributionPolicy(ctx context.Context, c util.LexClient, input *RepoSetContributionPolicy_Input) error { if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.setContributionPolicy", nil, input, nil); err != nil { return err } return nil }