// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.repo.reserveKey import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( RepoReserveKeyNSID = "sh.tangled.repo.reserveKey" ) // RepoReserveKey_Input is the input argument to a sh.tangled.repo.reserveKey call. type RepoReserveKey_Input struct { // repoDid: The did:web identity the repository will use. RepoDid string `json:"repoDid" cborgen:"repoDid"` } // RepoReserveKey_Output is the output of a sh.tangled.repo.reserveKey call. type RepoReserveKey_Output struct { // key: Multibase-encoded public key to publish in the did:web document. Key string `json:"key" cborgen:"key"` RepoDid string `json:"repoDid" cborgen:"repoDid"` } // RepoReserveKey calls the XRPC method "sh.tangled.repo.reserveKey". func RepoReserveKey(ctx context.Context, c util.LexClient, input *RepoReserveKey_Input) (*RepoReserveKey_Output, error) { var out RepoReserveKey_Output if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.reserveKey", nil, input, &out); err != nil { return nil, err } return &out, nil }