Skip to content

RevTurbineUpdateInput

RevTurbineUpdateInput = Omit<RevTurbineUserContext, "id" | "usage"> & object

Input to RevTurbineCustomerSdk.update — the advertised update(patch) verb.

Accepts every session-scoped user-context field — everything on RevTurbineUserContext except the identity handle id (and the persistence envelope tenant_id / user_id / timestamps, which the input type never carried). Those are bound at RevTurbineCustomerSdk.identify time and are not patchable here; use identify() to (re)establish identity.

Every field is optional and merged with upsert semantics — an omitted field leaves the currently-held value untouched, so a partial patch (e.g. just { plan }) never clobbers other context. Patchable fields include plan, email, account_id, entitlements, custom, personalization, trial, the billing-recovery signals (payment_failed / payment_at_risk), tiers, app-known experiment assignments (experiments, plan 183), and usage. Server-assigned fields (seat_type_handle, activity_score, activity_score_computed_at, builtin_dimensions) are not patchable (D-36, D-46; BL-0352, BL-0381): built-in dimension values reach the browser only from the authenticated client-context delivery.

usage keeps its friendly Record<string, number> shape (absolute balances), distinct from the richer per-entry usage on RevTurbineUserContext.

optional usage?: UsageBalances

Usage balances to merge into the current snapshot (absolute values).