Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
1.2 kB · 35 lines
Go
123456789101112131415161718192021222324252627282930313233343536// 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}