Releases: getyoti/yoti-node-sdk
Releases · getyoti/yoti-node-sdk
v3.10.0
Added
DocScanClient.getSupportedDocuments()
returns list of supported documents for each countrySessionSpecificationBuilder.withRequiredDocument()
RequiredIdentityDocumentBuilder
builds a required identity documentDocumentRestrictionsFilterBuilder
builds document restrictions for required documentsDocumentRestrictionBuilder
builds document restriction forDocumentRestrictionsFilter
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
Added
DocScanClient
.createSession()
.getSession()
.deleteSession()
.getMediaContent()
.deleteMediaContent()
constants.API_BASE_URL
with valuehttps://api.yoti.com
(scheme + host)
Removed
./sandbox
has been moved to https://github.com/getyoti/yoti-node-sdk-sandbox
Changed
Image
now extendsMedia
Fixed
Validation.isNumber()
now correctly checks the type of values
Deprecated
YotiClient.applicationId
replaced bysdkId
v3.8.1
Fixed
- Document details parsing: now accommodates more values (including redacted Aadhar numbers)
YotiDate.fromDateString()
now supports microsecond accuracyYotiDate.constructor()
now supports signed microsecond timestamps- Rounding when converting microseconds to
YotiDate
v3.8.0
Added
ActivityDetails.getExtraData()
- Returns
ExtraData
- Returns
ExtraData.getAttributeIssuanceDetails()
- Returns
AttributeIssuanceDetails
- This can be accessed once a share has been completed using
ThirdPartyAttributeExtensionBuilder
- Returns
Changed
AmlAddress
countryCode, which cannot be null or empty, is now validated and will throw aTypeError
WantedAttribute
name, which cannot be null or empty, is now validated and will throw aTypeError
v3.7.3
v3.7.2
Fixed
YotiResponse.getParsedResponse()
returnsBuffer
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 aBuffer
.
- Optional
YotiResponse.getBody()
- Returns string for text responses
- Returns Buffer for binary responses
v3.7.1
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
Added
ActivityDetails.getApplicationProfile()
ActivityDetails.getTimestamp()
Attribute.getAnchors()
YotiAnchor.getType()
Profile.getAttributes()
YotiDate
extendingDate
, 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 returnsYotiDate
which extendsDate
AnchorProcessor
now processes all anchors. Unknown anchors have empty "" value and typeUNKNOWN
Deprecated
AnchorProcessor.getAnchorByOid()
AnchorProcessor.getAnchorValueByOid()
AnchorProcessor.getAnchorsByCertificate()
AnchorProcessor.mergeAnchorsLists()
AnchorProcessor.processSingleAnchor()
v3.5.0
Added
ActivityDetails.getReceiptId()
Changed
- Prefix version header with SDK identifier
- Return undefined and unknown content types as string
v3.4.0
Added
- Support for Document Images, accessible using
ActivityDetails.getProfile().getDocumentImages()
- Support for integer values