Skip to content

RECOGNIZED_UPDATE_KEYS

const RECOGNIZED_UPDATE_KEYS: readonly ["usage", "account_id", "email", "email_type", "plan_handle", "plan", "trial", "payment_failed", "payment_at_risk", "tiers", "entitlements", "instances", "custom", "personalization", "derived_config_version", "context_hash", "derived_computed_at"]

Runtime mirror of RevTurbineUpdateInput’s keys — the fields update() patches. satisfies guards each entry against typos/renames; the aliases test asserts exhaustiveness against the type, so a schema-added context field fails the build until acknowledged here. JS callers’ keys outside this set are dropped with a dev warning rather than merged into the context.