Release 4.15.0 - #600
Open
laurent-yoti wants to merge 8 commits into
Open
Conversation
Add support for new capture_type property on Static Liveness resources
Added on the SdkConfigBuilder the method "withEnforceHandoff()", and added to the SdkConfig constructor a new params "enforceHandoff"
* Added method "filterForCheck()" in ResourceContainer and method "getResourcesForCheck()" * Added generated types * Applied PR comments
Expose in GetSessionResult the raw response
Ran `npm audit fix` in all examples
laurent-yoti
requested review from
abdalmajeed-yoti,
nikhilPank and
saurabh-yoti
August 19, 2026 13:06
Contributor
There was a problem hiding this comment.
Pull request overview
Release bump to 4.15.0 that extends the IDV SDK with additional session-retrieval helpers (raw response access + resource filtering by check), adds new SDK config options (dark mode + enforced mobile handoff), and updates related typings, tests, and lockfiles.
Changes:
- Add
capture_typesupport for static liveness resources and expose it viagetCaptureType(). - Add
ResourceContainer#filterForCheck()andGetSessionResult#getResourcesForCheck()/getRawResponse()to simplify retrieving resources per check and debugging. - Add SDK config support for dark mode + enforced handoff (builder + constants), plus version and dependency/lockfile updates.
Reviewed changes
Copilot reviewed 13 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| types/src/idv_service/session/retrieve/static.liveness.resource.response.d.ts | Typings for new static liveness captureType + getter. |
| types/src/idv_service/session/retrieve/resource.container.d.ts | Typings for filterForCheck() (resource filtering API). |
| types/src/idv_service/session/retrieve/get.session.result.d.ts | Typings for rawResponse + resources-per-check helper. |
| types/src/idv_service/session/create/sdk.config.d.ts | Typings updated for new dark mode / enforce handoff options. |
| types/src/idv_service/session/create/sdk.config.builder.d.ts | Builder typings for dark mode and enforced handoff. |
| types/src/idv_service/idv.error.d.ts | Typings for exposing the wrapped/original error. |
| types/src/idv_service/idv.constants.d.ts | Add ON/OFF/AUTO constants for dark mode. |
| tests/idv_service/session/retrieve/static.liveness.resource.response.spec.js | Test coverage for getCaptureType(). |
| tests/idv_service/session/retrieve/resource.container.spec.js | Test coverage for filterForCheck() and minor assertion cleanups. |
| tests/idv_service/session/retrieve/get.session.result.spec.js | Test coverage for getResourcesForCheck(). |
| tests/idv_service/session/create/sdk.config.builder.spec.js | Test coverage for new config options and dark-mode helpers. |
| src/idv_service/session/retrieve/static.liveness.resource.response.js | Parse/store capture_type and expose getter. |
| src/idv_service/session/retrieve/resource.container.js | Implement filterForCheck() resource filtering. |
| src/idv_service/session/retrieve/get.session.result.js | Store raw response and add resource-per-check retrieval. |
| src/idv_service/session/create/sdk.config.js | Support dark mode + dark-mode primary colour + enforced handoff serialization. |
| src/idv_service/session/create/sdk.config.builder.js | Builder support for dark mode helpers and enforced handoff flag. |
| src/idv_service/idv.error.js | Preserve and expose original wrapped error. |
| src/idv_service/idv.constants.js | Add ON/OFF/AUTO constants. |
| package.json | Bump package version to 4.15.0. |
| package-lock.json | Bump version to 4.15.0 and refresh some transitive deps. |
| examples/profile/package-lock.json | Example lockfile refresh/version bump. |
| examples/profile-identity-checks/package-lock.json | Example lockfile refresh/version bump. |
| examples/idv/package-lock.json | Example lockfile refresh/version bump. |
| examples/idv-identity-checks/package-lock.json | Example lockfile refresh/version bump. |
| examples/digital-identity/package-lock.json | Example lockfile refresh/version bump. |
| audit-ci.jsonc | Reset audit-ci allowlist to empty. |
Files not reviewed (5)
- examples/digital-identity/package-lock.json: Generated file
- examples/idv-identity-checks/package-lock.json: Generated file
- examples/idv/package-lock.json: Generated file
- examples/profile-identity-checks/package-lock.json: Generated file
- examples/profile/package-lock.json: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+297
to
+301
| getResourcesForCheck(checkId) { | ||
| const checkResponse = this.checks.find((check) => check.getId() === checkId); | ||
| if (!checkResponse) { | ||
| throw new Error(`Check not found (${checkId})`); | ||
| } |
Comment on lines
+168
to
+172
| filterForCheck(checkResponse) { | ||
| const newResourceContainer = new ResourceContainer({}); | ||
| const resourcesUsed = checkResponse.getResourcesUsed(); | ||
| Object.keys(newResourceContainer).forEach((key) => { | ||
| newResourceContainer[key] = filterResources(this[key], resourcesUsed); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO