@regulaforensics/document-reader 8.2.186-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/RNDocumentReader.podspec +21 -0
- package/android/CVDDocumentReader.kt +74 -0
- package/android/build.gradle +36 -0
- package/android/cordova.gradle +12 -0
- package/android/src/main/java/com/regula/plugin/documentreader/BluetoothUtil.kt +160 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +826 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +1795 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +573 -0
- package/android/src/main/java/com/regula/plugin/documentreader/RNDocumentReaderModule.kt +100 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +181 -0
- package/examples/capacitor/README.md +12 -0
- package/examples/capacitor/android/app/build.gradle +50 -0
- package/examples/capacitor/android/app/capacitor.build.gradle +22 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/capacitor/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/dr/fullauthrfid/MainActivity.java +5 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/examples/capacitor/android/app/src/main/res/values/strings.xml +7 -0
- package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor/android/build.gradle +30 -0
- package/examples/capacitor/android/capacitor.settings.gradle +15 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/capacitor/android/gradle.properties +22 -0
- package/examples/capacitor/android/gradlew +252 -0
- package/examples/capacitor/android/gradlew.bat +94 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +16 -0
- package/examples/capacitor/index.html +10 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +5 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +49 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/examples/capacitor/ios/App/App/Info.plist +53 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +414 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/capacitor/ios/App/Podfile +26 -0
- package/examples/capacitor/ios/App/Podfile.lock +56 -0
- package/examples/capacitor/package-lock.json +3467 -0
- package/examples/capacitor/package.json +29 -0
- package/examples/capacitor/public/assets/.gitkeep +0 -0
- package/examples/capacitor/public/images/document.png +0 -0
- package/examples/capacitor/public/images/portrait.png +0 -0
- package/examples/capacitor/scripts/android.sh +9 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +6 -0
- package/examples/capacitor/src/extra/bt_device.tsx +32 -0
- package/examples/capacitor/src/extra/custom_rfid.tsx +74 -0
- package/examples/capacitor/src/main.css +131 -0
- package/examples/capacitor/src/main.html +41 -0
- package/examples/capacitor/src/main.tsx +175 -0
- package/examples/capacitor/tsconfig.json +5 -0
- package/examples/capacitor/vite.config.ts +17 -0
- package/examples/cordova/.vscode/launch.json +28 -0
- package/examples/cordova/.vscode/typings/cordova/cordova.d.ts +80 -0
- package/examples/cordova/README.md +12 -0
- package/examples/cordova/config.xml +29 -0
- package/examples/cordova/package-lock.json +1314 -0
- package/examples/cordova/package.json +32 -0
- package/examples/cordova/scripts/android.sh +8 -0
- package/examples/cordova/scripts/ios.sh +8 -0
- package/examples/cordova/scripts/setup.sh +8 -0
- package/examples/cordova/www/images/document.png +0 -0
- package/examples/cordova/www/images/logo.png +0 -0
- package/examples/cordova/www/images/portrait.png +0 -0
- package/examples/cordova/www/index.html +21 -0
- package/examples/cordova/www/src/main.css +130 -0
- package/examples/cordova/www/src/main.html +63 -0
- package/examples/cordova/www/src/main.js +50 -0
- package/examples/ionic/README.md +12 -0
- package/examples/ionic/angular.json +39 -0
- package/examples/ionic/config.xml +28 -0
- package/examples/ionic/index.html +19 -0
- package/examples/ionic/index.ts +17 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/package-lock.json +16559 -0
- package/examples/ionic/package.json +47 -0
- package/examples/ionic/scripts/android.sh +8 -0
- package/examples/ionic/scripts/ios.sh +8 -0
- package/examples/ionic/scripts/setup.sh +8 -0
- package/examples/ionic/src/assets/.gitkeep +0 -0
- package/examples/ionic/src/images/document.png +0 -0
- package/examples/ionic/src/images/icon.png +0 -0
- package/examples/ionic/src/images/portrait.png +0 -0
- package/examples/ionic/src/main.css +130 -0
- package/examples/ionic/src/main.html +63 -0
- package/examples/ionic/src/main.ts +66 -0
- package/examples/ionic/tsconfig.json +12 -0
- package/examples/react_native/README.md +12 -0
- package/examples/react_native/app.config.ts +53 -0
- package/examples/react_native/assets/.gitkeep +0 -0
- package/examples/react_native/images/document.png +0 -0
- package/examples/react_native/images/icon/adaptive-icon.png +0 -0
- package/examples/react_native/images/icon/icon.png +0 -0
- package/examples/react_native/images/portrait.png +0 -0
- package/examples/react_native/index.html +11 -0
- package/examples/react_native/index.tsx +52 -0
- package/examples/react_native/metro.config.js +7 -0
- package/examples/react_native/package-lock.json +9254 -0
- package/examples/react_native/package.json +27 -0
- package/examples/react_native/scripts/android.sh +12 -0
- package/examples/react_native/scripts/ios.sh +11 -0
- package/examples/react_native/scripts/setup.sh +8 -0
- package/examples/react_native/src/main.css +130 -0
- package/examples/react_native/src/main.html +63 -0
- package/examples/react_native/src/main.tsx +50 -0
- package/ios/CVDDocumentReader.h +7 -0
- package/ios/CVDDocumentReader.m +39 -0
- package/ios/RGLWConfig.h +42 -0
- package/ios/RGLWConfig.m +1398 -0
- package/ios/RGLWJSONConstructor.h +185 -0
- package/ios/RGLWJSONConstructor.m +2379 -0
- package/ios/RGLWMain.h +36 -0
- package/ios/RGLWMain.m +610 -0
- package/ios/RNDocumentReader.h +8 -0
- package/ios/RNDocumentReader.m +49 -0
- package/package.json +36 -0
- package/plugin.xml +51 -0
- package/www/capacitor/config/InitConfig.js +25 -0
- package/www/capacitor/config/OnlineProcessingConfig.js +41 -0
- package/www/capacitor/config/RFIDConfig.js +31 -0
- package/www/capacitor/config/RecognizeConfig.js +103 -0
- package/www/capacitor/config/ScannerConfig.js +38 -0
- package/www/capacitor/index.js +486 -0
- package/www/capacitor/info/DocReaderException.js +57 -0
- package/www/capacitor/info/DocReaderScenario.js +71 -0
- package/www/capacitor/info/DocReaderVersion.js +23 -0
- package/www/capacitor/info/DocumentsDatabase.js +27 -0
- package/www/capacitor/info/License.js +22 -0
- package/www/capacitor/info/PrepareProgress.js +23 -0
- package/www/capacitor/info/RFIDException.js +19 -0
- package/www/capacitor/internal/bridge.js +98 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/params/Functionality.js +303 -0
- package/www/capacitor/params/customization/Customization.js +550 -0
- package/www/capacitor/params/customization/CustomizationColors.js +74 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +40 -0
- package/www/capacitor/params/customization/CustomizationImages.js +25 -0
- package/www/capacitor/params/customization/Font.js +28 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +129 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +25 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +38 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +21 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +18 -0
- package/www/capacitor/params/process_params/ImageQA.js +97 -0
- package/www/capacitor/params/process_params/LivenessParams.js +67 -0
- package/www/capacitor/params/process_params/ProcessParams.js +570 -0
- package/www/capacitor/params/process_params/RfidParams.js +15 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroups.js +53 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +116 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +165 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +130 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +493 -0
- package/www/capacitor/results/DocumentType.js +285 -0
- package/www/capacitor/results/Position.js +60 -0
- package/www/capacitor/results/Results.js +318 -0
- package/www/capacitor/results/TransactionInfo.js +16 -0
- package/www/capacitor/results/authenticity/Authenticity.js +23 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +33 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +27 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +26 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +124 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/capacitor/results/barcode/BarcodeField.js +24 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +24 -0
- package/www/capacitor/results/barcode/BarcodeStatus.js +33 -0
- package/www/capacitor/results/barcode/BarcodeType.js +21 -0
- package/www/capacitor/results/barcode/PDF417Info.js +16 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +31 -0
- package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +30 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +21 -0
- package/www/capacitor/results/rfid/Application.js +47 -0
- package/www/capacitor/results/rfid/Attribute.js +16 -0
- package/www/capacitor/results/rfid/Authority.js +28 -0
- package/www/capacitor/results/rfid/CardProperties.js +38 -0
- package/www/capacitor/results/rfid/CertificateChain.js +51 -0
- package/www/capacitor/results/rfid/CertificateData.js +14 -0
- package/www/capacitor/results/rfid/DataField.js +16 -0
- package/www/capacitor/results/rfid/Extension.js +14 -0
- package/www/capacitor/results/rfid/File.js +39 -0
- package/www/capacitor/results/rfid/FileData.js +18 -0
- package/www/capacitor/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/capacitor/results/rfid/RFIDCertificateType.js +13 -0
- package/www/capacitor/results/rfid/RFIDDataFileType.js +98 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +76 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +16 -0
- package/www/capacitor/results/rfid/RFIDValue.js +20 -0
- package/www/capacitor/results/rfid/SecurityObject.js +31 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +14 -0
- package/www/capacitor/results/rfid/SignerInfo.js +57 -0
- package/www/capacitor/results/status/CheckResult.js +5 -0
- package/www/capacitor/results/status/OpticalStatus.js +30 -0
- package/www/capacitor/results/status/RFIDStatus.js +26 -0
- package/www/capacitor/results/status/ResultsStatus.js +28 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +18 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingErrorCodes.js +134 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingNotificationCodes.js +232 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +40 -0
- package/www/capacitor/results/visual_results/Comparison.js +19 -0
- package/www/capacitor/results/visual_results/FieldType.js +658 -0
- package/www/capacitor/results/visual_results/GraphicField.js +33 -0
- package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +22 -0
- package/www/capacitor/results/visual_results/LCID.js +174 -0
- package/www/capacitor/results/visual_results/Lights.js +11 -0
- package/www/capacitor/results/visual_results/RFIDOrigin.js +18 -0
- package/www/capacitor/results/visual_results/Rect.js +18 -0
- package/www/capacitor/results/visual_results/Symbol.js +18 -0
- package/www/capacitor/results/visual_results/TextField.js +68 -0
- package/www/capacitor/results/visual_results/TextResult.js +42 -0
- package/www/capacitor/results/visual_results/TextSource.js +19 -0
- package/www/capacitor/results/visual_results/Validity.js +17 -0
- package/www/capacitor/results/visual_results/Value.js +39 -0
- package/www/capacitor/rfid/PAAttribute.js +17 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +27 -0
- package/www/capacitor/rfid/PKDCertificate.js +54 -0
- package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
- package/www/capacitor/rfid/RFIDNotification.js +60 -0
- package/www/capacitor/rfid/TAChallenge.js +23 -0
- package/www/capacitor/rfid/TccParams.js +24 -0
- package/www/cordova.js +9816 -0
- package/www/react-native/config/InitConfig.js +25 -0
- package/www/react-native/config/OnlineProcessingConfig.js +41 -0
- package/www/react-native/config/RFIDConfig.js +31 -0
- package/www/react-native/config/RecognizeConfig.js +103 -0
- package/www/react-native/config/ScannerConfig.js +38 -0
- package/www/react-native/index.js +486 -0
- package/www/react-native/info/DocReaderException.js +57 -0
- package/www/react-native/info/DocReaderScenario.js +71 -0
- package/www/react-native/info/DocReaderVersion.js +23 -0
- package/www/react-native/info/DocumentsDatabase.js +27 -0
- package/www/react-native/info/License.js +22 -0
- package/www/react-native/info/PrepareProgress.js +23 -0
- package/www/react-native/info/RFIDException.js +19 -0
- package/www/react-native/internal/bridge.js +98 -0
- package/www/react-native/params/Functionality.js +303 -0
- package/www/react-native/params/customization/Customization.js +550 -0
- package/www/react-native/params/customization/CustomizationColors.js +74 -0
- package/www/react-native/params/customization/CustomizationFonts.js +40 -0
- package/www/react-native/params/customization/CustomizationImages.js +25 -0
- package/www/react-native/params/customization/Font.js +28 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +129 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +25 -0
- package/www/react-native/params/process_params/FaceApiParams.js +38 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +21 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +18 -0
- package/www/react-native/params/process_params/ImageQA.js +97 -0
- package/www/react-native/params/process_params/LivenessParams.js +67 -0
- package/www/react-native/params/process_params/ProcessParams.js +570 -0
- package/www/react-native/params/process_params/RfidParams.js +15 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroups.js +53 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +116 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +165 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +130 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +493 -0
- package/www/react-native/results/DocumentType.js +285 -0
- package/www/react-native/results/Position.js +60 -0
- package/www/react-native/results/Results.js +318 -0
- package/www/react-native/results/TransactionInfo.js +16 -0
- package/www/react-native/results/authenticity/Authenticity.js +23 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +33 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +27 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +26 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +124 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +59 -0
- package/www/react-native/results/barcode/BarcodeField.js +24 -0
- package/www/react-native/results/barcode/BarcodeResult.js +24 -0
- package/www/react-native/results/barcode/BarcodeStatus.js +33 -0
- package/www/react-native/results/barcode/BarcodeType.js +21 -0
- package/www/react-native/results/barcode/PDF417Info.js +16 -0
- package/www/react-native/results/image_quality/ImageQuality.js +31 -0
- package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +30 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +21 -0
- package/www/react-native/results/rfid/Application.js +47 -0
- package/www/react-native/results/rfid/Attribute.js +16 -0
- package/www/react-native/results/rfid/Authority.js +28 -0
- package/www/react-native/results/rfid/CardProperties.js +38 -0
- package/www/react-native/results/rfid/CertificateChain.js +51 -0
- package/www/react-native/results/rfid/CertificateData.js +14 -0
- package/www/react-native/results/rfid/DataField.js +16 -0
- package/www/react-native/results/rfid/Extension.js +14 -0
- package/www/react-native/results/rfid/File.js +39 -0
- package/www/react-native/results/rfid/FileData.js +18 -0
- package/www/react-native/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/react-native/results/rfid/RFIDCertificateType.js +13 -0
- package/www/react-native/results/rfid/RFIDDataFileType.js +98 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +76 -0
- package/www/react-native/results/rfid/RFIDValidity.js +16 -0
- package/www/react-native/results/rfid/RFIDValue.js +20 -0
- package/www/react-native/results/rfid/SecurityObject.js +31 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +14 -0
- package/www/react-native/results/rfid/SignerInfo.js +57 -0
- package/www/react-native/results/status/CheckResult.js +5 -0
- package/www/react-native/results/status/OpticalStatus.js +30 -0
- package/www/react-native/results/status/RFIDStatus.js +26 -0
- package/www/react-native/results/status/ResultsStatus.js +28 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +18 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingErrorCodes.js +134 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingNotificationCodes.js +232 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +40 -0
- package/www/react-native/results/visual_results/Comparison.js +19 -0
- package/www/react-native/results/visual_results/FieldType.js +658 -0
- package/www/react-native/results/visual_results/GraphicField.js +33 -0
- package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
- package/www/react-native/results/visual_results/GraphicResult.js +22 -0
- package/www/react-native/results/visual_results/LCID.js +174 -0
- package/www/react-native/results/visual_results/Lights.js +11 -0
- package/www/react-native/results/visual_results/RFIDOrigin.js +18 -0
- package/www/react-native/results/visual_results/Rect.js +18 -0
- package/www/react-native/results/visual_results/Symbol.js +18 -0
- package/www/react-native/results/visual_results/TextField.js +68 -0
- package/www/react-native/results/visual_results/TextResult.js +42 -0
- package/www/react-native/results/visual_results/TextSource.js +19 -0
- package/www/react-native/results/visual_results/Validity.js +17 -0
- package/www/react-native/results/visual_results/Value.js +39 -0
- package/www/react-native/rfid/PAAttribute.js +17 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +27 -0
- package/www/react-native/rfid/PKDCertificate.js +54 -0
- package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
- package/www/react-native/rfid/RFIDNotification.js +60 -0
- package/www/react-native/rfid/TAChallenge.js +23 -0
- package/www/react-native/rfid/TccParams.js +24 -0
- package/www/types/config/InitConfig.d.ts +63 -0
- package/www/types/config/OnlineProcessingConfig.d.ts +22 -0
- package/www/types/config/RFIDConfig.d.ts +131 -0
- package/www/types/config/RecognizeConfig.d.ts +119 -0
- package/www/types/config/ScannerConfig.d.ts +54 -0
- package/www/types/index.d.ts +421 -0
- package/www/types/info/DocReaderException.d.ts +79 -0
- package/www/types/info/DocReaderScenario.d.ts +90 -0
- package/www/types/info/DocReaderVersion.d.ts +28 -0
- package/www/types/info/DocumentsDatabase.d.ts +42 -0
- package/www/types/info/License.d.ts +23 -0
- package/www/types/info/PrepareProgress.d.ts +15 -0
- package/www/types/info/RFIDException.d.ts +8 -0
- package/www/types/params/Functionality.d.ts +316 -0
- package/www/types/params/customization/Customization.d.ts +558 -0
- package/www/types/params/customization/CustomizationColors.d.ts +16 -0
- package/www/types/params/customization/CustomizationFonts.d.ts +13 -0
- package/www/types/params/customization/CustomizationImages.d.ts +12 -0
- package/www/types/params/customization/Font.d.ts +36 -0
- package/www/types/params/process_params/AuthenticityParams.d.ts +30 -0
- package/www/types/params/process_params/BackendProcessingConfig.d.ts +25 -0
- package/www/types/params/process_params/FaceApiParams.d.ts +68 -0
- package/www/types/params/process_params/FaceApiSearchParams.d.ts +35 -0
- package/www/types/params/process_params/GlaresCheckParams.d.ts +26 -0
- package/www/types/params/process_params/ImageQA.d.ts +79 -0
- package/www/types/params/process_params/LivenessParams.d.ts +20 -0
- package/www/types/params/process_params/ProcessParams.d.ts +465 -0
- package/www/types/params/process_params/RfidParams.d.ts +19 -0
- package/www/types/params/rfid_scenario/DTCDataGroups.d.ts +13 -0
- package/www/types/params/rfid_scenario/EDLDataGroups.d.ts +22 -0
- package/www/types/params/rfid_scenario/EIDDataGroups.d.ts +29 -0
- package/www/types/params/rfid_scenario/EPassportDataGroups.d.ts +24 -0
- package/www/types/params/rfid_scenario/RFIDScenario.d.ts +167 -0
- package/www/types/results/DocumentType.d.ts +525 -0
- package/www/types/results/Position.d.ts +50 -0
- package/www/types/results/Results.d.ts +283 -0
- package/www/types/results/TransactionInfo.d.ts +9 -0
- package/www/types/results/authenticity/Authenticity.d.ts +67 -0
- package/www/types/results/authenticity/AuthenticityCheck.d.ts +23 -0
- package/www/types/results/authenticity/AuthenticityElement.d.ts +26 -0
- package/www/types/results/authenticity/AuthenticityResult.d.ts +16 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +229 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +100 -0
- package/www/types/results/barcode/BarcodeField.d.ts +37 -0
- package/www/types/results/barcode/BarcodeResult.d.ts +14 -0
- package/www/types/results/barcode/BarcodeStatus.d.ts +66 -0
- package/www/types/results/barcode/BarcodeType.d.ts +45 -0
- package/www/types/results/barcode/PDF417Info.d.ts +15 -0
- package/www/types/results/image_quality/ImageQuality.d.ts +18 -0
- package/www/types/results/image_quality/ImageQualityCheckType.d.ts +30 -0
- package/www/types/results/image_quality/ImageQualityGroup.d.ts +17 -0
- package/www/types/results/rfid/AccessControlProcedureType.d.ts +21 -0
- package/www/types/results/rfid/Application.d.ts +44 -0
- package/www/types/results/rfid/Attribute.d.ts +9 -0
- package/www/types/results/rfid/Authority.d.ts +11 -0
- package/www/types/results/rfid/CardProperties.d.ts +48 -0
- package/www/types/results/rfid/CertificateChain.d.ts +28 -0
- package/www/types/results/rfid/CertificateData.d.ts +7 -0
- package/www/types/results/rfid/DataField.d.ts +9 -0
- package/www/types/results/rfid/Extension.d.ts +7 -0
- package/www/types/results/rfid/File.d.ts +22 -0
- package/www/types/results/rfid/FileData.d.ts +9 -0
- package/www/types/results/rfid/RFIDAccessControlProcedureType.d.ts +18 -0
- package/www/types/results/rfid/RFIDCertificateType.d.ts +13 -0
- package/www/types/results/rfid/RFIDDataFileType.d.ts +101 -0
- package/www/types/results/rfid/RFIDSessionData.d.ts +48 -0
- package/www/types/results/rfid/RFIDValidity.d.ts +9 -0
- package/www/types/results/rfid/RFIDValue.d.ts +10 -0
- package/www/types/results/rfid/SecurityObject.d.ts +28 -0
- package/www/types/results/rfid/SecurityObjectCertificates.d.ts +8 -0
- package/www/types/results/rfid/SignerInfo.d.ts +41 -0
- package/www/types/results/status/CheckResult.d.ts +8 -0
- package/www/types/results/status/OpticalStatus.d.ts +29 -0
- package/www/types/results/status/RFIDStatus.d.ts +22 -0
- package/www/types/results/status/ResultsStatus.d.ts +24 -0
- package/www/types/results/visible_digital_seals/BytesData.d.ts +9 -0
- package/www/types/results/visible_digital_seals/LDSParsingErrorCodes.d.ts +132 -0
- package/www/types/results/visible_digital_seals/LDSParsingNotificationCodes.d.ts +230 -0
- package/www/types/results/visible_digital_seals/VDSNCData.d.ts +35 -0
- package/www/types/results/visual_results/Comparison.d.ts +15 -0
- package/www/types/results/visual_results/FieldType.d.ts +1310 -0
- package/www/types/results/visual_results/GraphicField.d.ts +29 -0
- package/www/types/results/visual_results/GraphicFieldType.d.ts +52 -0
- package/www/types/results/visual_results/GraphicResult.d.ts +10 -0
- package/www/types/results/visual_results/LCID.d.ts +173 -0
- package/www/types/results/visual_results/Lights.d.ts +23 -0
- package/www/types/results/visual_results/RFIDOrigin.d.ts +10 -0
- package/www/types/results/visual_results/Rect.d.ts +9 -0
- package/www/types/results/visual_results/Symbol.d.ts +14 -0
- package/www/types/results/visual_results/TextField.d.ts +40 -0
- package/www/types/results/visual_results/TextResult.d.ts +23 -0
- package/www/types/results/visual_results/TextSource.d.ts +15 -0
- package/www/types/results/visual_results/Validity.d.ts +13 -0
- package/www/types/results/visual_results/Value.d.ts +27 -0
- package/www/types/rfid/PAAttribute.d.ts +4 -0
- package/www/types/rfid/PAResourcesIssuer.d.ts +7 -0
- package/www/types/rfid/PKDCertificate.d.ts +34 -0
- package/www/types/rfid/RFIDErrorCodes.d.ts +121 -0
- package/www/types/rfid/RFIDNotification.d.ts +153 -0
- package/www/types/rfid/TAChallenge.d.ts +7 -0
- package/www/types/rfid/TccParams.d.ts +25 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FaceApiSearchParams } from "./FaceApiSearchParams";
|
|
2
|
+
|
|
3
|
+
export declare class FaceApiParams {
|
|
4
|
+
/**
|
|
5
|
+
* The URL of the Regula Face SDK service instance to be used.
|
|
6
|
+
* @default "https://faceapi.regulaforensics.com"
|
|
7
|
+
*/
|
|
8
|
+
readonly url: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The processing mode: "match" or "match+search".
|
|
12
|
+
* @default "match"
|
|
13
|
+
*/
|
|
14
|
+
readonly mode: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The similarity threshold, 0-100. Above 75 means that the faces' similarity
|
|
18
|
+
* is verified, below 75 is not.
|
|
19
|
+
* @default 75
|
|
20
|
+
*/
|
|
21
|
+
readonly threshold: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A search filter that can be applied if the "match+search" mode is enabled.
|
|
25
|
+
*/
|
|
26
|
+
readonly searchParams?: FaceApiSearchParams;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The service request timeout, ms.
|
|
30
|
+
* @default 3000
|
|
31
|
+
*/
|
|
32
|
+
readonly serviceTimeout: number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Proxy to use, should be set according to the cURL standart.
|
|
36
|
+
*/
|
|
37
|
+
readonly proxy?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Username and password to use for proxy authentication,
|
|
41
|
+
* should be set according to the cURL standart.
|
|
42
|
+
*/
|
|
43
|
+
readonly proxyPassword?: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Proxy protocol type, should be set according to the cURL standart.
|
|
47
|
+
*/
|
|
48
|
+
readonly proxyType?: number;
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
options?: {
|
|
52
|
+
url?: string,
|
|
53
|
+
mode?: string,
|
|
54
|
+
threshold?: number,
|
|
55
|
+
searchParams?: FaceApiSearchParams,
|
|
56
|
+
serviceTimeout?: number,
|
|
57
|
+
proxy?: string,
|
|
58
|
+
proxyPassword?: string,
|
|
59
|
+
proxyType?: number,
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Allows you to deserialize object.
|
|
65
|
+
* @param jsonObject
|
|
66
|
+
*/
|
|
67
|
+
static fromJson(jsonObject: any): FaceApiParams;
|
|
68
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare class FaceApiSearchParams {
|
|
2
|
+
/**
|
|
3
|
+
* The number of returned Persons limit.
|
|
4
|
+
* @default 100
|
|
5
|
+
*/
|
|
6
|
+
readonly limit: number;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The similarity distance threshold, should be between 0.0 and 2.0,
|
|
10
|
+
* where 0.0 is for returning results for only the most similar persons
|
|
11
|
+
* and 2.0 is for all the persons, even the dissimilar ones.
|
|
12
|
+
* If not set, the default 1.0 value is used.
|
|
13
|
+
* @default 1
|
|
14
|
+
*/
|
|
15
|
+
readonly threshold: number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The IDs of the groups in which the search is performed.
|
|
19
|
+
*/
|
|
20
|
+
readonly groupIds?: number[];
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
options?: {
|
|
24
|
+
limit?: number,
|
|
25
|
+
threshold?: number,
|
|
26
|
+
groupIds?: number[],
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Allows you to deserialize object.
|
|
32
|
+
* @param jsonObject
|
|
33
|
+
*/
|
|
34
|
+
static fromJson(jsonObject: any): FaceApiSearchParams;
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class GlaresCheckParams {
|
|
2
|
+
/**
|
|
3
|
+
* Part of margin from the edges of the image that is ignored by glares check.
|
|
4
|
+
* Example: value 0.07 is 7% of image area is ignored.
|
|
5
|
+
*/
|
|
6
|
+
readonly imgMarginPart?: number;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The maximum allowable part of glared area.
|
|
10
|
+
* Example: value 0.1 is 10% allowed.
|
|
11
|
+
*/
|
|
12
|
+
readonly maxGlaringPart?: number;
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
options?: {
|
|
16
|
+
imgMarginPart?: number,
|
|
17
|
+
maxGlaringPart?: number,
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Allows you to deserialize object.
|
|
23
|
+
* @param jsonObject
|
|
24
|
+
*/
|
|
25
|
+
static fromJson(jsonObject: any): GlaresCheckParams;
|
|
26
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { GlaresCheckParams } from "./GlaresCheckParams";
|
|
2
|
+
import { ImageQualityCheckType } from "../../results/image_quality/ImageQualityCheckType";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Class contains properties to configure image quality.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ImageQA {
|
|
8
|
+
/**
|
|
9
|
+
* This parameter sets threshold for Image QA check of the presented
|
|
10
|
+
* document physical dpi. If actual document dpi is below this threshold,
|
|
11
|
+
* check will fail.
|
|
12
|
+
*/
|
|
13
|
+
dpiThreshold?: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* This parameter sets threshold for Image QA check of the presented
|
|
17
|
+
* document perspective angle in degrees. If actual document perspective
|
|
18
|
+
* angle is above this threshold, check will fail.
|
|
19
|
+
*/
|
|
20
|
+
angleThreshold?: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This option disabled focus check during performing image quality validation.
|
|
24
|
+
*/
|
|
25
|
+
focusCheck?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* This option disabled glares check during performing image quality validation.
|
|
29
|
+
*/
|
|
30
|
+
glaresCheck?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Parameters for glares image quality validation.
|
|
34
|
+
*/
|
|
35
|
+
glaresCheckParams?: GlaresCheckParams;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* This option disabled colorness check during performing image quality validation.
|
|
39
|
+
*/
|
|
40
|
+
colornessCheck?: boolean;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* This option disabled moire patterns check during performing image quality validation.
|
|
44
|
+
*/
|
|
45
|
+
screenCapture?: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* This option controls the quality checks that the image should pass
|
|
49
|
+
* in order to be considered a valid input during the scanning process.
|
|
50
|
+
*
|
|
51
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
52
|
+
*/
|
|
53
|
+
expectedPass?: ImageQualityCheckType[];
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Specify the minimum indent from the corners of the document to the borders
|
|
57
|
+
* of the image. The value reflects the allowed percentage for the indent
|
|
58
|
+
* relative to the width of the document. If it is detected that the corners
|
|
59
|
+
* of the document are closer than the specified value, the status will contain
|
|
60
|
+
* an error in the `DocumentReaderResults.imageQuality.imageQualityList.result` field.
|
|
61
|
+
*/
|
|
62
|
+
documentPositionIndent?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Set the threshold for an actual document brightness below which the check fails.
|
|
66
|
+
*/
|
|
67
|
+
brightnessThreshold?: number;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* This option checks document image occlusion.
|
|
71
|
+
*/
|
|
72
|
+
occlusionCheck?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Allows you to deserialize object.
|
|
76
|
+
* @param jsonObject
|
|
77
|
+
*/
|
|
78
|
+
static fromJson(jsonObject: any): ImageQA;
|
|
79
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class LivenessParams {
|
|
2
|
+
checkOVI?: boolean;
|
|
3
|
+
checkMLI?: boolean;
|
|
4
|
+
checkHolo?: boolean;
|
|
5
|
+
checkED?: boolean;
|
|
6
|
+
checkBlackAndWhiteCopy?: boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This parameter is used to enable Dynaprint detection.
|
|
10
|
+
*/
|
|
11
|
+
checkDynaprint?: boolean;
|
|
12
|
+
|
|
13
|
+
checkGeometry?: boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Allows you to deserialize object.
|
|
17
|
+
* @param jsonObject
|
|
18
|
+
*/
|
|
19
|
+
static fromJson(jsonObject: any): LivenessParams;
|
|
20
|
+
}
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { AuthenticityParams } from "./AuthenticityParams";
|
|
2
|
+
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
3
|
+
import { FaceApiParams } from "./FaceApiParams";
|
|
4
|
+
import { ImageQA } from "./ImageQA";
|
|
5
|
+
import { RFIDParams } from "./RfidParams";
|
|
6
|
+
import { Scenario } from "../../info/DocReaderScenario";
|
|
7
|
+
import { BarcodeType } from "../../results/barcode/BarcodeType";
|
|
8
|
+
import { DocType, DocFormat } from "../../results/DocumentType";
|
|
9
|
+
import { FieldType } from "../../results/visual_results/FieldType";
|
|
10
|
+
import { LCID } from "../../results/visual_results/LCID";
|
|
11
|
+
import { ResultType } from "../../results/Results";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Params that influence the scanning process.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ProcessParams {
|
|
17
|
+
/**
|
|
18
|
+
* If set to `true`, processing of more than one page of the document
|
|
19
|
+
* (if they exist) will be triggered, otherwise, only one page will be processed.
|
|
20
|
+
*/
|
|
21
|
+
multipageProcessing?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If set to `true`, the DocumentReader logs will be shown in the console.
|
|
24
|
+
*/
|
|
25
|
+
logs?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If set to `true`, images will be saved to the application's directory.
|
|
28
|
+
*/
|
|
29
|
+
debugSaveImages?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If set to `true`, text logs will be saved to the application's directory.
|
|
32
|
+
*/
|
|
33
|
+
debugSaveLogs?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If set to `true`, an original (uncropped) image will be received,
|
|
36
|
+
* which is sent for recognition.
|
|
37
|
+
*/
|
|
38
|
+
returnUncroppedImage?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set to `true` when torch is connected and enabled by user.
|
|
41
|
+
*
|
|
42
|
+
* Android only.
|
|
43
|
+
*/
|
|
44
|
+
uvTorchEnabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If set to `true`, cropped images will be saved to the application's directory.
|
|
47
|
+
*/
|
|
48
|
+
debugSaveCroppedImages?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If set to `true`, document focus check will be omitted.
|
|
51
|
+
*/
|
|
52
|
+
disableFocusingCheck?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If set to `true`, RFID sessions will be saved to the application's directory.
|
|
55
|
+
*/
|
|
56
|
+
debugSaveRFIDSession?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* If set to `true`, allows to process up to two pages of the document
|
|
59
|
+
* (so-called "a double-page spread") for one-shot if they are presented
|
|
60
|
+
* on the frame (image).
|
|
61
|
+
*/
|
|
62
|
+
doublePageSpread?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* If set to `true`, allows you to manually set the document's bounds
|
|
65
|
+
* after it is detected.
|
|
66
|
+
*/
|
|
67
|
+
manualCrop?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Allows to build an integral image, taking into account the quality of
|
|
70
|
+
* fixation of each of the individual images.
|
|
71
|
+
*/
|
|
72
|
+
integralImage?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* If set to `true`, an image with cropped barcode will be returned.
|
|
75
|
+
*/
|
|
76
|
+
returnCroppedBarcode?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* If set to `true`, in case required fields are not read, their values
|
|
79
|
+
* will be empty.
|
|
80
|
+
*/
|
|
81
|
+
checkRequiredTextFields?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* If set to `true`, personal information will be removed from logs.
|
|
84
|
+
*/
|
|
85
|
+
depersonalizeLog?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* When enabled together with {@link doublePageSpread} and there is a passport
|
|
88
|
+
* with two pages spread in the image, pages will be cropped, straightened
|
|
89
|
+
* and aligned together, as if the document was captured on a flatbed scanner.
|
|
90
|
+
*/
|
|
91
|
+
generateDoublePageSpreadImage?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* This option can be set to `true` if you know for sure that the image you
|
|
94
|
+
* provide contains already cropped document by its edges. This was designed
|
|
95
|
+
* to process on the server side images captured and cropped on mobile.
|
|
96
|
+
*/
|
|
97
|
+
alreadyCropped?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* When disabled, text field OCR will be done as is and then the recognized
|
|
100
|
+
* value will be matched to the field mask for validity. If enabled, we
|
|
101
|
+
* are trying to read a field value with maximum efforts to match the mask
|
|
102
|
+
* and provide a correctly formatted value, making assumptions based on the
|
|
103
|
+
* provided field mask in the template.
|
|
104
|
+
*/
|
|
105
|
+
matchTextFieldMask?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* When enabled, fail OCR field validity, if there is a glare over the text
|
|
108
|
+
* ƒfield on the image.
|
|
109
|
+
*/
|
|
110
|
+
updateOCRValidityByGlare?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* When enabled no graphic fields will be cropped from document image.
|
|
113
|
+
*/
|
|
114
|
+
noGraphics?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* This option allows locating and cropping multiple documents
|
|
117
|
+
* from one image if enabled.
|
|
118
|
+
*/
|
|
119
|
+
multiDocOnImage?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* This option can be set to `true` to make sure that in series processing
|
|
122
|
+
* MRZ is located fully inside the result document image, if present
|
|
123
|
+
* on the document. Enabling this option may add extra processing time,
|
|
124
|
+
* by disabling optimizations, but allows more stability in output image quality.
|
|
125
|
+
*/
|
|
126
|
+
forceReadMrzBeforeLocate?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* When set to `false`, the Barcode code parsing will be skipped
|
|
129
|
+
* and the raw information from the code will be returned instead.
|
|
130
|
+
*/
|
|
131
|
+
parseBarcodes?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* When set to `true`, the `rawResults` property of the {@link Results}
|
|
134
|
+
* will contain the encrypted containers of scanning results
|
|
135
|
+
* that may be used for later reprocessing.
|
|
136
|
+
*/
|
|
137
|
+
shouldReturnPackageForReprocess?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* When enabled, OCR of perforated fields in the document template
|
|
140
|
+
* will not be performed.
|
|
141
|
+
*/
|
|
142
|
+
disablePerforationOCR?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated Use `strictImageQuality` instead.
|
|
145
|
+
* When enabled, image quality checks status affects document optical
|
|
146
|
+
* and overall status.
|
|
147
|
+
*/
|
|
148
|
+
respectImageQuality?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* When enabled, the image quality check status affects the document optical and overall status.
|
|
151
|
+
*/
|
|
152
|
+
strictImageQuality?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* When enabled, the Surname and GivenNames field ({@link TextField})
|
|
155
|
+
* will be divided into fields with fieldTypes {@link FieldType.FIRST_NAME},
|
|
156
|
+
* {@link FieldType.SECOND_NAME}, {@link FieldType.THIRD_NAME}, {@link FieldType.LAST_NAME}.
|
|
157
|
+
*/
|
|
158
|
+
splitNames?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Use this property to set up the Face API integration.
|
|
161
|
+
*/
|
|
162
|
+
useFaceApi?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* This parameter is used to enable document authenticity check.
|
|
165
|
+
*/
|
|
166
|
+
useAuthenticityCheck?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Use `authenticityParams.checkLiveness` instead.
|
|
169
|
+
*/
|
|
170
|
+
checkHologram?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* This parameter is used to generate numeric representation for issuing state and nationality codes.
|
|
173
|
+
*/
|
|
174
|
+
generateNumericCodes?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* If the certificates required for performing the Digital signature check are missing,
|
|
177
|
+
* this parameter if enabled will make the Barcode format check failed.
|
|
178
|
+
*/
|
|
179
|
+
strictBarcodeDigitalSignatureCheck?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Select the longest value from the different value sources and write it to the value field
|
|
182
|
+
* if comparison is done successfully. The parameter applies this logic to the personal names,
|
|
183
|
+
* such as given name, surname, surname and given name, middle name and etc.
|
|
184
|
+
*/
|
|
185
|
+
selectLongestNames?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* This parameter is used to generate DTCVC data.
|
|
188
|
+
*/
|
|
189
|
+
generateDTCVC?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Set to force DL categories expiry date status to either valid or not. By default,
|
|
192
|
+
* if the DL category expiry date is correct, its status will be wasNotDone, otherwise error.
|
|
193
|
+
*/
|
|
194
|
+
strictDLCategoryExpiry?: boolean;
|
|
195
|
+
generateAlpha2Codes?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* There are documents that contain barcodes which data can be parsed only
|
|
198
|
+
* if document type verification is performed. The following property allows
|
|
199
|
+
* setting the barcode parser type which should be used during recognition.
|
|
200
|
+
* It allows parsing barcode data without performing document type verification.
|
|
201
|
+
*/
|
|
202
|
+
barcodeParserType?: number;
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated since 7.6
|
|
205
|
+
* Allows you to set the maximum value of the deviation of the corners
|
|
206
|
+
* of the document from the value of `90` degrees.
|
|
207
|
+
*/
|
|
208
|
+
perspectiveAngle?: number;
|
|
209
|
+
/**
|
|
210
|
+
* Allows you to set the minimum acceptable DPI value of the camera frame
|
|
211
|
+
* that is passed for recognition. Camera frames the DPI of which are less
|
|
212
|
+
* than you set won't be passed for recognition.
|
|
213
|
+
*/
|
|
214
|
+
minDPI?: number;
|
|
215
|
+
/**
|
|
216
|
+
* This option controls maximum resolution in dpi of output images.
|
|
217
|
+
* Resolution will remain original in case `0` is set.
|
|
218
|
+
*/
|
|
219
|
+
imageDpiOutMax?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Force use of specified document format when locating and recognizing
|
|
222
|
+
* document to reduce the number of candidates.
|
|
223
|
+
*/
|
|
224
|
+
forceDocFormat?: DocFormat;
|
|
225
|
+
/**
|
|
226
|
+
* This option allows shifting the date of expiry into the future or past
|
|
227
|
+
* for number of months specified. This is useful, for example, in some cases
|
|
228
|
+
* when document might be still valid for some period after original
|
|
229
|
+
* expiration date to prevent negative validity status for such documents.
|
|
230
|
+
* Or by shifting the date to the past will set negative validity
|
|
231
|
+
* for the documents that is about to expire in a specified number of months.
|
|
232
|
+
*/
|
|
233
|
+
shiftExpiryDate?: number;
|
|
234
|
+
/**
|
|
235
|
+
* This options allows specifying the minimal age in years of the document
|
|
236
|
+
* holder for the document to be considered valid.
|
|
237
|
+
*/
|
|
238
|
+
minimalHolderAge?: number;
|
|
239
|
+
/**
|
|
240
|
+
* Maximum height of output images. In pixels.
|
|
241
|
+
*/
|
|
242
|
+
imageOutputMaxHeight?: number;
|
|
243
|
+
/**
|
|
244
|
+
* Maximum width of output images. In pixels.
|
|
245
|
+
*/
|
|
246
|
+
imageOutputMaxWidth?: number;
|
|
247
|
+
/**
|
|
248
|
+
* Accepts sum of {@link Authenticity} values.
|
|
249
|
+
*/
|
|
250
|
+
processAuth?: number;
|
|
251
|
+
/**
|
|
252
|
+
* This option allows output text case transformation.
|
|
253
|
+
* No changes applied by default to original values.
|
|
254
|
+
*/
|
|
255
|
+
convertCase?: number;
|
|
256
|
+
/**
|
|
257
|
+
* Sets the level of logs detalization when used together with {@link logs} parameter.
|
|
258
|
+
*/
|
|
259
|
+
logLevel?: LogLevel;
|
|
260
|
+
/**
|
|
261
|
+
* Make better MRZ detection on complex noisy backgrounds, like BW photocopy of some documents.
|
|
262
|
+
* Works only in the single-frame processing.
|
|
263
|
+
*/
|
|
264
|
+
mrzDetectMode?: MrzDetectionModes;
|
|
265
|
+
/**
|
|
266
|
+
* Measure system of fields' values that are presented in results.
|
|
267
|
+
* Default: If the country code is `US` or `LR` or `MM`, the
|
|
268
|
+
* {@link MeasureSystem.IMPERIAL} system of measurement, otherwise, the {@link MeasureSystem.METRIC}.
|
|
269
|
+
*/
|
|
270
|
+
measureSystem?: MeasureSystem;
|
|
271
|
+
/**
|
|
272
|
+
* Force use of specific template ID and skip document type identification step.
|
|
273
|
+
*/
|
|
274
|
+
forceDocID?: number;
|
|
275
|
+
/**
|
|
276
|
+
* Maximum number of pages to be processed in a PDF document.
|
|
277
|
+
* If set, only the specified number of pages will be analyzed.
|
|
278
|
+
*/
|
|
279
|
+
pdfPagesLimit?: number;
|
|
280
|
+
/**
|
|
281
|
+
* Change the format string of displayed dates in the results.
|
|
282
|
+
*
|
|
283
|
+
* Mask examples: `dd/mm/yyyy`, `mm/dd/yyyy`, `dd-mm-yyyy`, `mm-dd-yyyy`, `dd/mm/yy`.
|
|
284
|
+
* Set to `null` to revert default value.
|
|
285
|
+
*
|
|
286
|
+
* @default depends on the device's locale.
|
|
287
|
+
*/
|
|
288
|
+
dateFormat?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Documents processing scenario.
|
|
291
|
+
*/
|
|
292
|
+
scenario?: Scenario;
|
|
293
|
+
/**
|
|
294
|
+
* Documents processing scenario for the Capture button.
|
|
295
|
+
*/
|
|
296
|
+
captureButtonScenario?: Scenario;
|
|
297
|
+
/**
|
|
298
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
299
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
300
|
+
* The countdown starts from the moment the scenario starts.
|
|
301
|
+
* Setting value to `0` means infinity.
|
|
302
|
+
*/
|
|
303
|
+
timeout?: number;
|
|
304
|
+
/**
|
|
305
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
306
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
307
|
+
* The countdown starts from the moment the document is detected.
|
|
308
|
+
* Setting value to `0` means infinity.
|
|
309
|
+
*/
|
|
310
|
+
timeoutFromFirstDetect?: number;
|
|
311
|
+
/**
|
|
312
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
313
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
314
|
+
* The countdown starts from the moment the document type is recognized.
|
|
315
|
+
* Setting value to `0` means infinity.
|
|
316
|
+
*/
|
|
317
|
+
timeoutFromFirstDocType?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Specifies minimal area of the image that document should cover to be treated
|
|
320
|
+
* as candidate when locating. Value should be in range from `0` to `1`,
|
|
321
|
+
* where `1` is when document should fully cover the image.
|
|
322
|
+
*/
|
|
323
|
+
documentAreaMin?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Start the countdown from the moment the document liveness authenticity check is started (in seconds).
|
|
326
|
+
* Setting value to `0` means infinity.
|
|
327
|
+
*/
|
|
328
|
+
timeoutLiveness?: number;
|
|
329
|
+
/**
|
|
330
|
+
* Takes the list of the document IDs to process.
|
|
331
|
+
* All documents will be processed if it's empty.
|
|
332
|
+
*
|
|
333
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
334
|
+
*/
|
|
335
|
+
documentIDList?: number[];
|
|
336
|
+
/**
|
|
337
|
+
* Set types of barcodes that you wish to recognize.
|
|
338
|
+
* All barcodes will be recognized if it's empty.
|
|
339
|
+
*
|
|
340
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
341
|
+
*/
|
|
342
|
+
barcodeTypes?: BarcodeType[];
|
|
343
|
+
/**
|
|
344
|
+
* If you recognize the MRZ of documents, all fields will be extracted.
|
|
345
|
+
* If you recognize the Visual zone of documents, you can set the list
|
|
346
|
+
* of field types that you wish to extract, other fields will be skipped
|
|
347
|
+
* during processing. All fields will be extracted if it is empty.
|
|
348
|
+
*
|
|
349
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
350
|
+
*/
|
|
351
|
+
fieldTypesFilter?: FieldType[];
|
|
352
|
+
/**
|
|
353
|
+
* Types of results to return in response.
|
|
354
|
+
*
|
|
355
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
356
|
+
*/
|
|
357
|
+
resultTypeOutput?: ResultType[];
|
|
358
|
+
/**
|
|
359
|
+
* This option allows limiting MRZ formats to be recognized by specifying
|
|
360
|
+
* them in array.
|
|
361
|
+
*
|
|
362
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
363
|
+
*/
|
|
364
|
+
mrzFormatsFilter?: MRZFormat[];
|
|
365
|
+
/**
|
|
366
|
+
* Array of specific eligible document types to recognize from. You may,
|
|
367
|
+
* for example, specify only passports to be recognized by setting this property.
|
|
368
|
+
*
|
|
369
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
370
|
+
*/
|
|
371
|
+
documentGroupFilter?: DocType[];
|
|
372
|
+
/**
|
|
373
|
+
* The list of LCID types to ignore during the recognition.
|
|
374
|
+
* If empty, values with all LCID types will be extracted.
|
|
375
|
+
* Narrowing down the list can reduce processing time.
|
|
376
|
+
*
|
|
377
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
378
|
+
*/
|
|
379
|
+
lcidIgnoreFilter?: LCID[];
|
|
380
|
+
/**
|
|
381
|
+
* The whitelist of LCID types to use during the recognition.
|
|
382
|
+
*
|
|
383
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
384
|
+
*/
|
|
385
|
+
lcidFilter?: LCID[];
|
|
386
|
+
/**
|
|
387
|
+
* Controls properties of {@link ImageQA} checks.
|
|
388
|
+
*/
|
|
389
|
+
imageQA: ImageQA;
|
|
390
|
+
/**
|
|
391
|
+
* Custom RFID params.
|
|
392
|
+
*/
|
|
393
|
+
rfidParams?: RFIDParams;
|
|
394
|
+
/**
|
|
395
|
+
* Custom Face API integration params.
|
|
396
|
+
*/
|
|
397
|
+
faceApiParams?: FaceApiParams;
|
|
398
|
+
/**
|
|
399
|
+
* Set up the backend processing service parameters.
|
|
400
|
+
*/
|
|
401
|
+
backendProcessingConfig?: BackendProcessingConfig;
|
|
402
|
+
authenticityParams: AuthenticityParams;
|
|
403
|
+
/**
|
|
404
|
+
* Takes JSON with parameters that are not presented in the DocumentReader.
|
|
405
|
+
*
|
|
406
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
407
|
+
*/
|
|
408
|
+
customParams?: Record<string, any>;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Allows you to deserialize object.
|
|
412
|
+
* @param jsonObject
|
|
413
|
+
*/
|
|
414
|
+
static fromJson(jsonObject: any): ProcessParams;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The constants of the enumeration identify the system
|
|
419
|
+
* for measuring distances and weight.
|
|
420
|
+
*/
|
|
421
|
+
export declare enum MeasureSystem {
|
|
422
|
+
/**
|
|
423
|
+
* The Metric System of Measurement, which uses the measuring units
|
|
424
|
+
* such as meters and grams and adds prefixes like kilo, milli
|
|
425
|
+
* and centi to count orders of magnitude.
|
|
426
|
+
*/
|
|
427
|
+
METRIC = 0,
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The Imperial System of Measurement, where things are measured in feet,
|
|
431
|
+
* inches and pounds.
|
|
432
|
+
*/
|
|
433
|
+
IMPERIAL = 1,
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export declare enum MRZFormat {
|
|
437
|
+
FORMAT_1X30 = "1x30",
|
|
438
|
+
FORMAT_3X30 = "3x30",
|
|
439
|
+
FORMAT_2X36 = "2x36",
|
|
440
|
+
FORMAT_2X44 = "2x44",
|
|
441
|
+
FORMAT_1X6 = "1x6",
|
|
442
|
+
FORMAT_2X30 = "2x30",
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export declare enum LogLevel {
|
|
446
|
+
/** Fatal error. */
|
|
447
|
+
FatalError = "FatalError",
|
|
448
|
+
/** Error. */
|
|
449
|
+
Error = "Error",
|
|
450
|
+
/** Warning. */
|
|
451
|
+
Warning = "Warning",
|
|
452
|
+
/** Info. */
|
|
453
|
+
Info = "Info",
|
|
454
|
+
/** Debug. */
|
|
455
|
+
Debug = "Debug",
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Enumeration contains the types of barcodes that can be processed.
|
|
460
|
+
*/
|
|
461
|
+
export declare enum MrzDetectionModes {
|
|
462
|
+
DEFAULT = 0,
|
|
463
|
+
RESIZE_BINARIZE_WINDOW = 1,
|
|
464
|
+
BLUR_BEFORE_BINARIZATION = 2,
|
|
465
|
+
}
|