Cotal TypeScript packages
    Preparing search index...

    Type Alias RedeemLink

    RedeemLink:
        | { mode: "bare"; tls: boolean }
        | { creds: string; mode: "session-caller"; tls: boolean }
        | {
            bearer: string;
            mode: "session-bearer";
            sentinelCreds: string;
            tls: boolean;
        }

    HOW this mesh's session grant is redeemed, as a closed union with no optional credential.

    bare and session-caller are structurally distinct rather than "session-caller, but the creds may be missing". That distinction is the whole fix for #1205. An optional creds?: string on the redeem path invites exactly one question at every call site — "is the seed there?" — and answering it with !creds is the defect: an OPEN mesh has no seed BY DESIGN, so absence means "bare", while on a SEALED mesh the same absence means "refuse". One field cannot carry both meanings, so the mode is named and the compiler makes every consumer read the name.