// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { WorkspaceInvite } from "./WorkspaceInvite";
import type { WorkspaceMember } from "./WorkspaceMember";

/**
 * POST `/v1/team/invites` outcome. Discriminated by `kind`:
 * - `added` — the email matched an existing user; they're now a
 *   workspace member. No accept step needed.
 * - `invited` — no account exists for that email yet; we recorded
 *   a pending membership intent. When the user signs up with this
 *   email (any time, anywhere), they're auto-joined on their next
 *   page load via the `accept_pending_invites_for_email` path.
 */
export type CreateInviteResponse = { "kind": "added", member: WorkspaceMember, } | { "kind": "invited", invite: WorkspaceInvite, };
