Skip to content

Release v4.14.0 - #593

Merged
laurent-yoti merged 14 commits into
masterfrom
release/4.14.0
Jul 31, 2026
Merged

Release v4.14.0#593
laurent-yoti merged 14 commits into
masterfrom
release/4.14.0

Conversation

@laurent-yoti

@laurent-yoti laurent-yoti commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

NEW

IDV support for Digital ID

When creating an IDV session, one can specify that Digital ID are accepted as ID Documents, and can also specify which providers are allowed.
Using either the DocumentRestrictionsFilterBuilder or OrthogonalRestrictionsFilterBuilder, configure the required document like:

const documentRestrictionsFilter = new DocumentRestrictionsFilterBuilder()
  .withDocumentRestriction((new DocumentRestrictionBuilder())
    .withDocumentTypes(['DIGITAL_AADHAAR'])
    .build())
  .forWhitelist()
  .withAllowDigitalIds(true)
  .withAllowedProviders([
    new AllowedProviderBuilder().withName('DIGILOCKER').build(),
  ])
  .build();

const orthogonalRestrictionsFilter = new OrthogonalRestrictionsFilterBuilder()
  .withAllowDigitalIds(true)
  .withAllowedProviders([
    new AllowedProviderBuilder().withName('DIGILOCKER').build(),
  ])
  .build();

const requiredDocument = new RequiredIdDocumentBuilder()
  .withFilter(documentRestrictionsFilter)
  // or .withFilter(orthogonalRestrictionsFilter)
  .build()

// On the session specification builder, add the document
const sessionSpec = new SessionSpecificationBuilder()
  .withRequiredDocument(requiredDocument)
  // .with... other requirements/options for the session
  .build()

When retrieving a session, for any ID Document based on a Digital ID, the provider is available via the idDocumentResource.getProvider() method.
Additionally, if a session uses any Digital ID shares, the list of the share is available via the session.getDigitalIdShares() method.

REMOVED

The old aml API is now removed as no longer available from Yoti.

"form-data": "4.0.4" => "4.0.5"
"protobufjs": "8.2.1" => "8.3.0"
* Set default Node version as 22
Added Node version 24 to matrix

* Removed commented in workflows/tests.yaml
* Base to handle Digital ID
* Updated builders for document.restrictions.filter and orthogonal.restrictions.filter
* Implemented tests
* Generated types
"eslint": "9.39.4" => "9.39.5"
"eslint-config-airbnb-extended": "3.1.0" => "3.1.1"
"eslint-plugin-jest": "29.15.2" => "29.16.0"
…" as allowed given these do not affect production
* Deleted AML support

* Updated .github/workflows/tests.yaml to remove references to aml

@nikhilPank nikhilPank left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Not able to test the retrieval side but session creation is fine and code looks good

@laurent-yoti
laurent-yoti merged commit df08f02 into master Jul 31, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants