// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package org_tangled // schema: org.tangled.knot.admin.createInviteLink import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( KnotAdminCreateInviteLinkNSID = "org.tangled.knot.admin.createInviteLink" ) // KnotAdminCreateInviteLink_Output is the output of a org.tangled.knot.admin.createInviteLink call. type KnotAdminCreateInviteLink_Output struct { // code: The opaque code on its own, for an operator assembling a link some other way Code string `json:"code" cborgen:"code"` // expiresAt: When the code stops being redeemable ExpiresAt string `json:"expiresAt" cborgen:"expiresAt"` // url: The link to hand out. Opening it redirects to the knot's configured frontend to sign in Url string `json:"url" cborgen:"url"` } // KnotAdminCreateInviteLink calls the XRPC method "org.tangled.knot.admin.createInviteLink". func KnotAdminCreateInviteLink(ctx context.Context, c util.LexClient) (*KnotAdminCreateInviteLink_Output, error) { var out KnotAdminCreateInviteLink_Output if err := c.LexDo(ctx, util.Procedure, "", "org.tangled.knot.admin.createInviteLink", nil, nil, &out); err != nil { return nil, err } return &out, nil }