From 6c470b8fa39459c8d5fd88b899e4748d2e01ae2c Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Thu, 20 Feb 2025 14:21:26 +0300 Subject: [PATCH 1/2] SP-21312 - add livenessChecks --- src/ext/authenticity/authenticity.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ext/authenticity/authenticity.ts b/src/ext/authenticity/authenticity.ts index 81d60ee4..9086b70b 100644 --- a/src/ext/authenticity/authenticity.ts +++ b/src/ext/authenticity/authenticity.ts @@ -82,6 +82,10 @@ export class Authenticity implements AuthenticityCheckList { return this.securityFeatureOrUndefined(AuthenticityResultType.EXTENDED_MRZ_CHECK); } + public livenessChecks(): IdentChecks | undefined { + return this.identOrUndefined(AuthenticityResultType.LIVENESS); + } + public resultByType(authenticityType: number): AuthenticityCheckResult | undefined { for (const result of this.List) { if (result.Type == authenticityType) { From 579cfe6d8b3b355e1bf5bd07f458d16b19f472c9 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Thu, 20 Feb 2025 14:27:20 +0300 Subject: [PATCH 2/2] SP-21312 - update models --- src/.openapi-generator/FILES | 1 + src/models/face-api.ts | 12 ++++ src/models/index.ts | 1 + src/models/input-barcode-type.ts | 106 +++++++++++++++++++++++++++++++ src/models/process-params.ts | 7 ++ 5 files changed, 127 insertions(+) create mode 100644 src/models/input-barcode-type.ts diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 8d221ac0..4fd7e453 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -84,6 +84,7 @@ models/in-data.ts models/index.ts models/inline-response200.ts models/inline-response2001.ts +models/input-barcode-type.ts models/input-image-quality-checks.ts models/lcid.ts models/lexical-analysis-result-all-of.ts diff --git a/src/models/face-api.ts b/src/models/face-api.ts index ab16c526..fb3f8a5b 100644 --- a/src/models/face-api.ts +++ b/src/models/face-api.ts @@ -69,6 +69,18 @@ export interface FaceApi { * @memberof FaceApi */ proxy_type?: number; + /** + * Minimum age of a child, at which portrait comparison result will be effective. Default: 13. + * @type {number} + * @memberof FaceApi + */ + childAgeThreshold?: number; + /** + * Estimated duration of validity for a child\'s passport, years. Default: 5. + * @type {number} + * @memberof FaceApi + */ + childDocValidityYears?: number; } diff --git a/src/models/index.ts b/src/models/index.ts index 87d456a3..061be8b4 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -78,6 +78,7 @@ export * from './in-data-transaction-images-field-value'; export * from './in-data-video'; export * from './inline-response200'; export * from './inline-response2001'; +export * from './input-barcode-type'; export * from './input-image-quality-checks'; export * from './lcid'; export * from './lexical-analysis-result'; diff --git a/src/models/input-barcode-type.ts b/src/models/input-barcode-type.ts new file mode 100644 index 00000000..2d6ccb0e --- /dev/null +++ b/src/models/input-barcode-type.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Enumeration contains the types of barcodes that can be processed + * @export + * @enum {string} + */ +export enum InputBarcodeType { + /** + * Unknown + */ + UNKNOWN = 'bct_unknown', + /** + * Code 128 + */ + CODE128 = 'bct_Code128', + /** + * Code 39 + */ + CODE39 = 'bct_Code39', + /** + * EAN-8 + */ + EAN8 = 'bct_EAN8', + /** + * ITF + */ + ITF = 'bct_ITF', + /** + * PDF417 + */ + PDF417 = 'bct_PDF417', + /** + * STF + */ + STF = 'bct_STF', + /** + * MTF + */ + MTF = 'bct_MTF', + /** + * IATA + */ + IATA = 'bct_IATA', + /** + * Codabar + */ + CODABAR = 'bct_CODABAR', + /** + * UPC-A + */ + UPCA = 'bct_UPCA', + /** + * Code 93 + */ + CODE93 = 'bct_CODE93', + /** + * UPC-E + */ + UPCE = 'bct_UPCE', + /** + * EAN-13 + */ + EAN13 = 'bct_EAN13', + /** + * QR code + */ + QRCODE = 'bct_QRCODE', + /** + * Aztec code + */ + AZTEC = 'bct_AZTEC', + /** + * Datamatrix + */ + DATAMATRIX = 'bct_DATAMATRIX', + /** + * All 1D barcodes + */ + ALL_1D = 'bct_ALL_1D', + /** + * Code 11 + */ + CODE11 = 'bct_Code11', + /** + * JAB code + */ + JABCODE = 'bct_JABCODE' +} + + + diff --git a/src/models/process-params.ts b/src/models/process-params.ts index 467ec96f..dcb52ad4 100644 --- a/src/models/process-params.ts +++ b/src/models/process-params.ts @@ -18,6 +18,7 @@ import { DocumentFormat } from './document-format'; import { DocumentType } from './document-type'; import { FaceApi } from './face-api'; import { ImageQA } from './image-qa'; +import { InputBarcodeType } from './input-barcode-type'; import { LogLevel } from './log-level'; import { MRZFormat } from './mrzformat'; import { MeasureSystem } from './measure-system'; @@ -386,6 +387,12 @@ export interface ProcessParams { * @memberof ProcessParams */ selectLongestNames?: boolean; + /** + * Set the types of barcodes to process. + * @type {Array} + * @memberof ProcessParams + */ + doBarcodes?: Array; }