/** * `hq invite` command — create pending membership + magic link (VLT-7 US-002). * * Thin UX layer over VaultClient.createInvite(). Handles arg parsing, * validation (paths only with guest role), and formats the magic link output. */ import type { VaultServiceConfig } from "../types.js"; import type { MembershipRole, Membership } from "../vault-client.js"; export interface InviteOptions { /** Target — email address or person slug/uid */ target: string; /** Role for the invitee (default: member) */ role?: MembershipRole; /** Comma-separated allowed prefixes (only valid with role=guest) */ paths?: string; /** Company slug or UID (defaults to active company) */ company?: string; /** Vault service config */ vaultConfig: VaultServiceConfig; /** Caller's person UID */ callerUid: string; } export interface InviteResult { inviteToken: string; magicLink: string; membership: Membership; } export interface InviteListOptions { company?: string; vaultConfig: VaultServiceConfig; callerUid: string; } export interface InviteRevokeOptions { tokenOrKey: string; /** Company slug or UID — required so the server can authorize the caller */ company: string; vaultConfig: VaultServiceConfig; } /** * Create a pending membership invite and return a magic link. */ export declare function invite(options: InviteOptions): Promise; /** * List pending invites for a company. */ export declare function listInvites(options: InviteListOptions): Promise; /** * Revoke a pending invite. */ export declare function revokeInvite(options: InviteRevokeOptions): Promise; //# sourceMappingURL=invite.d.ts.map