Skip to content

Releases: getyoti/yoti-node-sdk

v3.10.0

18 May 12:51
73e5ce5
Compare
Choose a tag to compare

Added

  • DocScanClient.getSupportedDocuments() returns list of supported documents for each country
  • SessionSpecificationBuilder.withRequiredDocument()
    • RequiredIdentityDocumentBuilder builds a required identity document
      • DocumentRestrictionsFilterBuilder builds document restrictions for required documents
        • DocumentRestrictionBuilder builds document restriction for DocumentRestrictionsFilter
      • OrthogonalRestrictionsFilterBuilder builds orthogonal restrictions for required documents
  • CheckResponse.getType()
  • TaskResponse.getType()
  • LivenessResourceResponse.getLivenessType()
  • GeneratedCheckResponse.getType()
  • Support for environment variables:
    • YOTI_API_URL
    • YOTI_DOC_SCAN_API_URL

3.9.0

19 Mar 15:06
0215623
Compare
Choose a tag to compare

Added

  • DocScanClient
    • .createSession()
    • .getSession()
    • .deleteSession()
    • .getMediaContent()
    • .deleteMediaContent()
  • constants.API_BASE_URL with value https://api.yoti.com (scheme + host)

Removed

Changed

  • Image now extends Media

Fixed

  • Validation.isNumber() now correctly checks the type of values

Deprecated

  • YotiClient.applicationId replaced by sdkId

v3.8.1

13 Feb 13:47
2820207
Compare
Choose a tag to compare

Fixed

  • Document details parsing: now accommodates more values (including redacted Aadhar numbers)
  • YotiDate.fromDateString() now supports microsecond accuracy
  • YotiDate.constructor() now supports signed microsecond timestamps
  • Rounding when converting microseconds to YotiDate

v3.8.0

10 Dec 15:48
a9390c2
Compare
Choose a tag to compare

Added

  • ActivityDetails.getExtraData()
    • Returns ExtraData
  • ExtraData.getAttributeIssuanceDetails()
    • Returns AttributeIssuanceDetails
    • This can be accessed once a share has been completed using ThirdPartyAttributeExtensionBuilder

Changed

  • AmlAddress countryCode, which cannot be null or empty, is now validated and will throw a TypeError
  • WantedAttribute name, which cannot be null or empty, is now validated and will throw a TypeError

v3.7.3

22 Oct 11:00
510df5d
Compare
Choose a tag to compare

Fixed

  • YotiDate.getMicrosecondTime() now conforms to ISO date format (minutes were not zero padded)

v3.7.2

03 Oct 13:47
bd5316a
Compare
Choose a tag to compare

Fixed

  • YotiResponse.getParsedResponse() returns
    • Buffer for binary responses
    • Parsed JSON for JSON responses
    • null for empty responses

Added

  • YotiRequest.execute(buffer = false)
    • Optional buffer argument (default value: false).
    • Set true to return binary content types as a Buffer.
  • YotiResponse.getBody()
    • Returns string for text responses
    • Returns Buffer for binary responses

v3.7.1

26 Sep 09:38
54324aa
Compare
Choose a tag to compare

Added

Signed Request Builder

  • RequestBuilder
  • YotiRequest
  • YotiResponse (now exported)
  • buildConnectApiRequest() (in ./request/index.js) for use by connect API services.

Age Verifications

  • AgeVerification
    • .getCheckType()
    • .getAge()
    • .getResult()
    • .getAttribute()
  • BaseProfile
    • .findAttributesStartingWith()
  • Profile
    • .getAgeVerifications()
    • .findAgeOverVerification(age)
    • .findAgeUnderVerification(age)
    • .findAgeVerification(type, age)
    • .findAllAgeVerifications()

Document Details

  • DocumentDetails.getIssuingAuthority()

Deprecated

  • makeRequest() (in ./request/index.js)
  • Profile.getAgeVerified()
  • Age found at yoti_common/age

Fixed

  • Updated example project to run in Node 6

v3.6.0

06 Aug 11:05
Compare
Choose a tag to compare

Added

  • ActivityDetails.getApplicationProfile()
  • ActivityDetails.getTimestamp()
  • Attribute.getAnchors()
  • YotiAnchor.getType()
  • Profile.getAttributes()
  • YotiDate extending Date, providing methods:
    • getMicroseconds() - Number between 0 and 999999, representing the microseconds.
    • getMicrosecondTimestamp() - Returns ISO 8601 UTC timestamp with microseconds.
    • getMicrosecondTime() - Time with microseconds.
  • Support for dynamic scenarios, including:
    • YotiClient.createShareUrl()
    • DynamicScenarioBuilder
    • DynamicPolicyBuilder
    • WantedAttributeBuilder
    • ExtensionBuilder
    • LocationConstraintExtensionBuilder
    • TransactionalFlowExtensionBuilder
  • ApplicationProfile providing methods:
    • getName()
    • getUrl()
    • getLogo()
    • getReceiptBgColor()

Changed

  • YotiSignedTimeStamp.getTimestamp() now returns YotiDate which extends Date
  • AnchorProcessor now processes all anchors. Unknown anchors have empty "" value and type UNKNOWN

Deprecated

  • AnchorProcessor.getAnchorByOid()
  • AnchorProcessor.getAnchorValueByOid()
  • AnchorProcessor.getAnchorsByCertificate()
  • AnchorProcessor.mergeAnchorsLists()
  • AnchorProcessor.processSingleAnchor()

v3.5.0

30 Apr 10:54
Compare
Choose a tag to compare

Added

  • ActivityDetails.getReceiptId()

Changed

  • Prefix version header with SDK identifier
  • Return undefined and unknown content types as string

v3.4.0

28 Mar 11:52
Compare
Choose a tag to compare

Added

  • Support for Document Images, accessible using ActivityDetails.getProfile().getDocumentImages()
  • Support for integer values