Navigation
API (Node.js) SDK changelog
The server-side SDK for Node.js, published as @ruptjs/api. It replaces the earlier @ruptjs/core package.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[3.3.0] - 2026-09-10
Added
evaluate, with an optionalcontentblock.contentandreviewonEvaluation, andreviewin the verdict union.
[3.2.0] - 2026-09-09
Added
suspendUserandunsuspendUser. Suspending sets the flag theis_suspendedpolicy condition reads, the same one thesuspendverdict sets, so pair it with a policy that denies on that condition. Both return the user and throw aRuptApiErrorwith status 404 when the user doesn't exist in your secret's environment.addToListandremoveFromListto manage the lists your policies match on from your backend. Pass the list id from its dashboard URL and one value or up to 500.addToListtakes an optionalcommentandttlin seconds. Both return counts (AddToListResult,RemoveFromListResult).suspendedonUser, so every user embedded in an evaluation or challenge tells you whether the account is suspended.
[3.0.1] - 2026-07-27
Breaking type changes in a patch release, which isn't how we like to do it, and we're sorry for the odd bump. The old fields described a response the API had already stopped sending, so leaving them in place only produced type errors against real data. We checked with every customer on the SDK before shipping and none of them read category or risk_summary.
Changed
EvaluationRisknow hasid,definition, andnamein place ofcategory, matching the API. Branch ondefinition, the id of the risk definition the risk was raised against.nameis a display label and can be renamed in the dashboard.
Removed
Evaluation.risk_summary. The API no longer returns it, and it repeatedrisksone for one.
[3.0.0] - 2026-06-02
Added
- Initial release as
@ruptjs/api, targeting the Rupt V3 API. getEvaluationandconsumeEvaluationto confirm evaluations server-side. Consuming is single-use: a replayed evaluation returns a 409.getChallengeto retrieve a challenge and its status.getUserDevicesto list a user's devices.updateUserfor partial updates to email, phone, metadata, and groups.- Automatic retries with exponential backoff on network errors and 5xx responses, plus typed errors:
RuptApiError,RuptNetworkError, andRuptTimeoutError. - Configurable
domain,timeout,retries, andmaxRetryDelay.
Changed
- Package renamed from
@ruptjs/coreto@ruptjs/api.
Removed
evaluate. In V3, evaluations are created by the client SDKs and confirmed server-side withgetEvaluationorconsumeEvaluation.
The versions below shipped as @ruptjs/core against the V2 API.
[0.1.0] - 2025-08-25
Added
updateUsermethod to update a user.
[0.0.13] - 2024-11-11
Added
evaluatemethod now acceptsemail,phone,ip, andmetadataparameters.
[0.0.12] - 2024-11-05
Changed
- Updated readme.
[0.0.11] - 2024-11-05
Added
evaluatemethod to evaluate an action for a user.
[0.0.10] - 2024-09-16
Changed
- Initial release of the Core SDK.