@regulaforensics/document-reader 1.1.1318-rc
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/Package.swift +28 -0
- package/README.md +19 -0
- package/android/CVDDocumentReader.kt +76 -0
- package/android/build.gradle.kts +37 -0
- package/android/cordova.gradle.kts +13 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/BluetoothUtil.kt +164 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/Config.kt +1021 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/JSONConstructor.kt +2192 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/Main.kt +656 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/RNDocumentReaderModule.kt +101 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/Utils.kt +248 -0
- package/app.plugin.js +45 -0
- package/examples/capacitor/README.md +24 -0
- package/examples/capacitor/android/app/build.gradle +41 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +36 -0
- package/examples/capacitor/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/example/dr/capacitor/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/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable/launcher.xml +4 -0
- package/examples/capacitor/android/app/src/main/res/drawable/launcher_round.xml +4 -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/styles.xml +22 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/build.gradle +39 -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 +26 -0
- package/examples/capacitor/android/gradlew +248 -0
- package/examples/capacitor/android/gradlew.bat +82 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +20 -0
- package/examples/capacitor/capacitor.config.json +15 -0
- package/examples/capacitor/index.html +5 -0
- package/examples/capacitor/index.tsx +31 -0
- package/examples/capacitor/ios/App/App/App.entitlements +10 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +14 -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/Info.plist +88 -0
- package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +374 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
- package/examples/capacitor/package-lock.json +1965 -0
- package/examples/capacitor/package.json +26 -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 +8 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +9 -0
- package/examples/capacitor/src/extra/bt_device.tsx +33 -0
- package/examples/capacitor/src/extra/custom_rfid.tsx +61 -0
- package/examples/capacitor/src/main.css +153 -0
- package/examples/capacitor/src/main.html +38 -0
- package/examples/capacitor/src/main.tsx +172 -0
- package/examples/capacitor/tsconfig.json +5 -0
- package/examples/capacitor/vite.config.ts +5 -0
- package/examples/ionic/README.md +24 -0
- package/examples/ionic/angular.json +39 -0
- package/examples/ionic/assets/.gitkeep +0 -0
- package/examples/ionic/config.xml +61 -0
- package/examples/ionic/images/document.png +0 -0
- package/examples/ionic/images/icon.png +0 -0
- package/examples/ionic/images/portrait.png +0 -0
- package/examples/ionic/index.html +19 -0
- package/examples/ionic/index.tsx +63 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/package-lock.json +17554 -0
- package/examples/ionic/package.json +76 -0
- package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
- package/examples/ionic/scripts/android.sh +9 -0
- package/examples/ionic/scripts/ios.sh +11 -0
- package/examples/ionic/scripts/setup.sh +8 -0
- package/examples/ionic/src/extra/bt_device.tsx +33 -0
- package/examples/ionic/src/extra/custom_rfid.tsx +61 -0
- package/examples/ionic/src/main.css +148 -0
- package/examples/ionic/src/main.html +38 -0
- package/examples/ionic/src/main.tsx +172 -0
- package/examples/ionic/tsconfig.json +13 -0
- package/examples/react_native/README.md +24 -0
- package/examples/react_native/app.config.ts +54 -0
- package/examples/react_native/assets/.gitkeep +0 -0
- package/examples/react_native/images/document.png +0 -0
- package/examples/react_native/images/icon.png +0 -0
- package/examples/react_native/images/portrait.png +0 -0
- package/examples/react_native/index.tsx +111 -0
- package/examples/react_native/metro.config.js +5 -0
- package/examples/react_native/package-lock.json +6924 -0
- package/examples/react_native/package.json +37 -0
- package/examples/react_native/scripts/android.sh +8 -0
- package/examples/react_native/scripts/ios.sh +6 -0
- package/examples/react_native/scripts/setup.sh +10 -0
- package/examples/react_native/scripts/withoutMetroServer.js +89 -0
- package/examples/react_native/src/extra/bt_device.tsx +33 -0
- package/examples/react_native/src/extra/custom_rfid.tsx +61 -0
- package/examples/react_native/src/main.css +148 -0
- package/examples/react_native/src/main.html +38 -0
- package/examples/react_native/src/main.tsx +172 -0
- package/ios/CVDDocumentReader.h +7 -0
- package/ios/CVDDocumentReader.m +43 -0
- package/ios/RGLWConfig.h +44 -0
- package/ios/RGLWConfig.m +1577 -0
- package/ios/RGLWJSONConstructor.h +216 -0
- package/ios/RGLWJSONConstructor.m +2875 -0
- package/ios/RGLWMain.h +34 -0
- package/ios/RGLWMain.m +722 -0
- package/ios/RNDocumentReader.h +8 -0
- package/ios/RNDocumentReader.m +52 -0
- package/ios/spm/module.modulemap +7 -0
- package/package.json +39 -0
- package/plugin.xml +51 -0
- package/react-native-document-reader.podspec +14 -0
- package/test/json.tsx +1159 -0
- package/test/package-lock.json +584 -0
- package/test/package.json +9 -0
- package/test/test.tsx +315 -0
- package/test/utils.tsx +38 -0
- package/www/capacitor/config/FinalizeConfig.js +35 -0
- package/www/capacitor/config/InitConfig.js +55 -0
- package/www/capacitor/config/OnlineProcessingConfig.js +52 -0
- package/www/capacitor/config/RFIDConfig.js +47 -0
- package/www/capacitor/config/RecognizeConfig.js +138 -0
- package/www/capacitor/config/ScannerConfig.js +48 -0
- package/www/capacitor/index.js +758 -0
- package/www/capacitor/info/DocReaderException.js +68 -0
- package/www/capacitor/info/DocReaderScenario.js +89 -0
- package/www/capacitor/info/DocReaderVersion.js +32 -0
- package/www/capacitor/info/DocumentsDatabase.js +39 -0
- package/www/capacitor/info/License.js +30 -0
- package/www/capacitor/info/PrepareProgress.js +31 -0
- package/www/capacitor/info/RFIDException.js +26 -0
- package/www/capacitor/internal/bridge.js +131 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/mdl/DataRetrieval.js +55 -0
- package/www/capacitor/mdl/DeviceEngagement.js +30 -0
- package/www/capacitor/mdl/DeviceRetrievalMethod.js +41 -0
- package/www/capacitor/mdl/DocumentRequestMDL.js +212 -0
- package/www/capacitor/mdl/NameSpaceMDL.js +33 -0
- package/www/capacitor/params/Functionality.js +387 -0
- package/www/capacitor/params/customization/Customization.js +664 -0
- package/www/capacitor/params/customization/CustomizationColors.js +231 -0
- package/www/capacitor/params/customization/CustomizationContentModes.js +55 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +156 -0
- package/www/capacitor/params/customization/CustomizationImages.js +199 -0
- package/www/capacitor/params/customization/CustomizationMatrices.js +39 -0
- package/www/capacitor/params/customization/CustomizationTimings.js +71 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +166 -0
- package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +39 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +38 -0
- package/www/capacitor/params/process_params/Bsi.js +23 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +55 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +29 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +25 -0
- package/www/capacitor/params/process_params/ImageQA.js +122 -0
- package/www/capacitor/params/process_params/LivenessParams.js +87 -0
- package/www/capacitor/params/process_params/OcclusionCheckParams.js +21 -0
- package/www/capacitor/params/process_params/ProcessParams.js +724 -0
- package/www/capacitor/params/process_params/RFIDParams.js +21 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +63 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +135 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +191 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +151 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +584 -0
- package/www/capacitor/results/DocumentType.js +302 -0
- package/www/capacitor/results/Position.js +88 -0
- package/www/capacitor/results/Results.js +354 -0
- package/www/capacitor/results/TransactionInfo.js +24 -0
- package/www/capacitor/results/authenticity/Authenticity.js +24 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +43 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +37 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +33 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +133 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +67 -0
- package/www/capacitor/results/barcode/BarcodeField.js +34 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +30 -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 +24 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +40 -0
- package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +39 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +30 -0
- package/www/capacitor/results/rfid/Application.js +63 -0
- package/www/capacitor/results/rfid/Attribute.js +23 -0
- package/www/capacitor/results/rfid/Authority.js +36 -0
- package/www/capacitor/results/rfid/CardProperties.js +57 -0
- package/www/capacitor/results/rfid/CertificateChain.js +69 -0
- package/www/capacitor/results/rfid/CertificateData.js +21 -0
- package/www/capacitor/results/rfid/DataField.js +23 -0
- package/www/capacitor/results/rfid/Extension.js +21 -0
- package/www/capacitor/results/rfid/File.js +56 -0
- package/www/capacitor/results/rfid/FileData.js +27 -0
- package/www/capacitor/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/capacitor/results/rfid/RFIDCertificateType.js +14 -0
- package/www/capacitor/results/rfid/RFIDDataFileType.js +106 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +92 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +23 -0
- package/www/capacitor/results/rfid/RFIDValue.js +30 -0
- package/www/capacitor/results/rfid/SecurityObject.js +41 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +20 -0
- package/www/capacitor/results/rfid/SignerInfo.js +74 -0
- package/www/capacitor/results/status/AgeStatus.js +35 -0
- package/www/capacitor/results/status/CheckResult.js +5 -0
- package/www/capacitor/results/status/OpticalStatus.js +44 -0
- package/www/capacitor/results/status/RFIDStatus.js +38 -0
- package/www/capacitor/results/status/ResultsStatus.js +53 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +27 -0
- package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
- package/www/capacitor/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
- package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +54 -0
- package/www/capacitor/results/visual_results/Comparison.js +27 -0
- package/www/capacitor/results/visual_results/FieldType.js +671 -0
- package/www/capacitor/results/visual_results/GraphicField.js +47 -0
- package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +28 -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 +27 -0
- package/www/capacitor/results/visual_results/Rect.js +27 -0
- package/www/capacitor/results/visual_results/Symbol.js +26 -0
- package/www/capacitor/results/visual_results/TextField.js +85 -0
- package/www/capacitor/results/visual_results/TextResult.js +52 -0
- package/www/capacitor/results/visual_results/TextSource.js +27 -0
- package/www/capacitor/results/visual_results/Validity.js +24 -0
- package/www/capacitor/results/visual_results/Value.js +52 -0
- package/www/capacitor/rfid/CAProtocol.js +27 -0
- package/www/capacitor/rfid/PAAttribute.js +24 -0
- package/www/capacitor/rfid/PACEProtocol.js +24 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +35 -0
- package/www/capacitor/rfid/PKDCertificate.js +65 -0
- package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
- package/www/capacitor/rfid/RFIDNotification.js +71 -0
- package/www/capacitor/rfid/TAChallenge.js +33 -0
- package/www/capacitor/rfid/TccParams.js +34 -0
- package/www/cordova.js +12948 -0
- package/www/react-native/config/FinalizeConfig.js +35 -0
- package/www/react-native/config/InitConfig.js +55 -0
- package/www/react-native/config/OnlineProcessingConfig.js +52 -0
- package/www/react-native/config/RFIDConfig.js +47 -0
- package/www/react-native/config/RecognizeConfig.js +138 -0
- package/www/react-native/config/ScannerConfig.js +48 -0
- package/www/react-native/index.js +758 -0
- package/www/react-native/info/DocReaderException.js +68 -0
- package/www/react-native/info/DocReaderScenario.js +89 -0
- package/www/react-native/info/DocReaderVersion.js +32 -0
- package/www/react-native/info/DocumentsDatabase.js +39 -0
- package/www/react-native/info/License.js +30 -0
- package/www/react-native/info/PrepareProgress.js +31 -0
- package/www/react-native/info/RFIDException.js +26 -0
- package/www/react-native/internal/bridge.js +131 -0
- package/www/react-native/mdl/DataRetrieval.js +55 -0
- package/www/react-native/mdl/DeviceEngagement.js +30 -0
- package/www/react-native/mdl/DeviceRetrievalMethod.js +41 -0
- package/www/react-native/mdl/DocumentRequestMDL.js +212 -0
- package/www/react-native/mdl/NameSpaceMDL.js +33 -0
- package/www/react-native/params/Functionality.js +387 -0
- package/www/react-native/params/customization/Customization.js +664 -0
- package/www/react-native/params/customization/CustomizationColors.js +231 -0
- package/www/react-native/params/customization/CustomizationContentModes.js +55 -0
- package/www/react-native/params/customization/CustomizationFonts.js +156 -0
- package/www/react-native/params/customization/CustomizationImages.js +199 -0
- package/www/react-native/params/customization/CustomizationMatrices.js +39 -0
- package/www/react-native/params/customization/CustomizationTimings.js +71 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +166 -0
- package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +39 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +38 -0
- package/www/react-native/params/process_params/Bsi.js +23 -0
- package/www/react-native/params/process_params/FaceApiParams.js +55 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +29 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +25 -0
- package/www/react-native/params/process_params/ImageQA.js +122 -0
- package/www/react-native/params/process_params/LivenessParams.js +87 -0
- package/www/react-native/params/process_params/OcclusionCheckParams.js +21 -0
- package/www/react-native/params/process_params/ProcessParams.js +724 -0
- package/www/react-native/params/process_params/RFIDParams.js +21 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroup.js +63 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +135 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +191 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +151 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +584 -0
- package/www/react-native/results/DocumentType.js +302 -0
- package/www/react-native/results/Position.js +88 -0
- package/www/react-native/results/Results.js +354 -0
- package/www/react-native/results/TransactionInfo.js +24 -0
- package/www/react-native/results/authenticity/Authenticity.js +24 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +43 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +37 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +33 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +133 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +67 -0
- package/www/react-native/results/barcode/BarcodeField.js +34 -0
- package/www/react-native/results/barcode/BarcodeResult.js +30 -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 +24 -0
- package/www/react-native/results/image_quality/ImageQuality.js +40 -0
- package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +39 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +30 -0
- package/www/react-native/results/rfid/Application.js +63 -0
- package/www/react-native/results/rfid/Attribute.js +23 -0
- package/www/react-native/results/rfid/Authority.js +36 -0
- package/www/react-native/results/rfid/CardProperties.js +57 -0
- package/www/react-native/results/rfid/CertificateChain.js +69 -0
- package/www/react-native/results/rfid/CertificateData.js +21 -0
- package/www/react-native/results/rfid/DataField.js +23 -0
- package/www/react-native/results/rfid/Extension.js +21 -0
- package/www/react-native/results/rfid/File.js +56 -0
- package/www/react-native/results/rfid/FileData.js +27 -0
- package/www/react-native/results/rfid/RFIDAccessControlProcedureType.js +10 -0
- package/www/react-native/results/rfid/RFIDCertificateType.js +14 -0
- package/www/react-native/results/rfid/RFIDDataFileType.js +106 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +92 -0
- package/www/react-native/results/rfid/RFIDValidity.js +23 -0
- package/www/react-native/results/rfid/RFIDValue.js +30 -0
- package/www/react-native/results/rfid/SecurityObject.js +41 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +20 -0
- package/www/react-native/results/rfid/SignerInfo.js +74 -0
- package/www/react-native/results/status/AgeStatus.js +35 -0
- package/www/react-native/results/status/CheckResult.js +5 -0
- package/www/react-native/results/status/OpticalStatus.js +44 -0
- package/www/react-native/results/status/RFIDStatus.js +38 -0
- package/www/react-native/results/status/ResultsStatus.js +53 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +27 -0
- package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
- package/www/react-native/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
- package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +54 -0
- package/www/react-native/results/visual_results/Comparison.js +27 -0
- package/www/react-native/results/visual_results/FieldType.js +671 -0
- package/www/react-native/results/visual_results/GraphicField.js +47 -0
- package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
- package/www/react-native/results/visual_results/GraphicResult.js +28 -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 +27 -0
- package/www/react-native/results/visual_results/Rect.js +27 -0
- package/www/react-native/results/visual_results/Symbol.js +26 -0
- package/www/react-native/results/visual_results/TextField.js +85 -0
- package/www/react-native/results/visual_results/TextResult.js +52 -0
- package/www/react-native/results/visual_results/TextSource.js +27 -0
- package/www/react-native/results/visual_results/Validity.js +24 -0
- package/www/react-native/results/visual_results/Value.js +52 -0
- package/www/react-native/rfid/CAProtocol.js +27 -0
- package/www/react-native/rfid/PAAttribute.js +24 -0
- package/www/react-native/rfid/PACEProtocol.js +24 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +35 -0
- package/www/react-native/rfid/PKDCertificate.js +65 -0
- package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
- package/www/react-native/rfid/RFIDNotification.js +71 -0
- package/www/react-native/rfid/TAChallenge.js +33 -0
- package/www/react-native/rfid/TccParams.js +34 -0
- package/www/types/config/FinalizeConfig.d.ts +6 -0
- package/www/types/config/InitConfig.d.ts +68 -0
- package/www/types/config/OnlineProcessingConfig.d.ts +22 -0
- package/www/types/config/RFIDConfig.d.ts +178 -0
- package/www/types/config/RecognizeConfig.d.ts +126 -0
- package/www/types/config/ScannerConfig.d.ts +54 -0
- package/www/types/index.d.ts +656 -0
- package/www/types/info/DocReaderException.d.ts +85 -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/mdl/DataRetrieval.d.ts +28 -0
- package/www/types/mdl/DeviceEngagement.d.ts +16 -0
- package/www/types/mdl/DeviceRetrievalMethod.d.ts +18 -0
- package/www/types/mdl/DocumentRequestMDL.d.ts +63 -0
- package/www/types/mdl/NameSpaceMDL.d.ts +16 -0
- package/www/types/params/Functionality.d.ts +337 -0
- package/www/types/params/customization/Customization.d.ts +584 -0
- package/www/types/params/customization/CustomizationColors.d.ts +42 -0
- package/www/types/params/customization/CustomizationContentModes.d.ts +41 -0
- package/www/types/params/customization/CustomizationFonts.d.ts +63 -0
- package/www/types/params/customization/CustomizationImages.d.ts +34 -0
- package/www/types/params/customization/CustomizationMatrices.d.ts +10 -0
- package/www/types/params/customization/CustomizationTimings.d.ts +14 -0
- package/www/types/params/process_params/AuthenticityParams.d.ts +31 -0
- package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +12 -0
- package/www/types/params/process_params/BackendProcessingConfig.d.ts +27 -0
- package/www/types/params/process_params/Bsi.d.ts +3 -0
- package/www/types/params/process_params/FaceApiParams.d.ts +72 -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 +85 -0
- package/www/types/params/process_params/LivenessParams.d.ts +18 -0
- package/www/types/params/process_params/OcclusionCheckParams.d.ts +16 -0
- package/www/types/params/process_params/ProcessParams.d.ts +496 -0
- package/www/types/params/process_params/RFIDParams.d.ts +19 -0
- package/www/types/params/rfid_scenario/DTCDataGroup.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 +178 -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 +295 -0
- package/www/types/results/TransactionInfo.d.ts +9 -0
- package/www/types/results/authenticity/Authenticity.d.ts +68 -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 +242 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +110 -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 +48 -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 +14 -0
- package/www/types/results/rfid/RFIDDataFileType.d.ts +108 -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/AgeStatus.d.ts +14 -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 +32 -0
- package/www/types/results/visible_digital_seals/BytesData.d.ts +9 -0
- package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
- package/www/types/results/visible_digital_seals/LDSParsingErrorCodes.d.ts +134 -0
- package/www/types/results/visible_digital_seals/LDSParsingNotificationCodes.d.ts +237 -0
- package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -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 +1328 -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/CAProtocol.d.ts +6 -0
- package/www/types/rfid/PAAttribute.d.ts +4 -0
- package/www/types/rfid/PACEProtocol.d.ts +5 -0
- package/www/types/rfid/PAResourcesIssuer.d.ts +7 -0
- package/www/types/rfid/PKDCertificate.d.ts +40 -0
- package/www/types/rfid/RFIDErrorCodes.d.ts +121 -0
- package/www/types/rfid/RFIDNotification.d.ts +156 -0
- package/www/types/rfid/TAChallenge.d.ts +7 -0
- package/www/types/rfid/TccParams.d.ts +25 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { AuthenticityParams } from "./AuthenticityParams";
|
|
2
|
+
import { BackendProcessingConfig } from "./BackendProcessingConfig";
|
|
3
|
+
import { Bsi } from "./Bsi";
|
|
4
|
+
import { FaceApiParams } from "./FaceApiParams";
|
|
5
|
+
import { ImageQA } from "./ImageQA";
|
|
6
|
+
import { RFIDParams } from "./RFIDParams";
|
|
7
|
+
import { Scenario } from "../../info/DocReaderScenario";
|
|
8
|
+
import { BarcodeType } from "../../results/barcode/BarcodeType";
|
|
9
|
+
import { DocType, DocFormat } from "../../results/DocumentType";
|
|
10
|
+
import { FieldType } from "../../results/visual_results/FieldType";
|
|
11
|
+
import { LCID } from "../../results/visual_results/LCID";
|
|
12
|
+
import { ResultType } from "../../results/Results";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Params that influence the scanning process.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ProcessParams {
|
|
18
|
+
/**
|
|
19
|
+
* If set to `true`, processing of more than one page of the document
|
|
20
|
+
* (if they exist) will be triggered, otherwise, only one page will be processed.
|
|
21
|
+
*/
|
|
22
|
+
multipageProcessing?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If set to `true`, the DocumentReader logs will be shown in the console.
|
|
25
|
+
*/
|
|
26
|
+
logs?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If set to `true`, images will be saved to the application's directory.
|
|
29
|
+
*/
|
|
30
|
+
debugSaveImages?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* If set to `true`, text logs will be saved to the application's directory.
|
|
33
|
+
*/
|
|
34
|
+
debugSaveLogs?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If set to `true`, an original (uncropped) image will be received,
|
|
37
|
+
* which is sent for recognition.
|
|
38
|
+
*/
|
|
39
|
+
returnUncroppedImage?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Set to `true` when torch is connected and enabled by user.
|
|
42
|
+
*
|
|
43
|
+
* Android only.
|
|
44
|
+
*/
|
|
45
|
+
uvTorchEnabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* If set to `true`, cropped images will be saved to the application's directory.
|
|
48
|
+
*/
|
|
49
|
+
debugSaveCroppedImages?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* If set to `true`, document focus check will be omitted.
|
|
52
|
+
*/
|
|
53
|
+
disableFocusingCheck?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* If set to `true`, RFID sessions will be saved to the application's directory.
|
|
56
|
+
*/
|
|
57
|
+
debugSaveRFIDSession?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* If set to `true`, allows to process up to two pages of the document
|
|
60
|
+
* (so-called "a double-page spread") for one-shot if they are presented
|
|
61
|
+
* on the frame (image).
|
|
62
|
+
*/
|
|
63
|
+
doublePageSpread?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* If set to `true`, allows you to manually set the document's bounds
|
|
66
|
+
* after it is detected.
|
|
67
|
+
*/
|
|
68
|
+
manualCrop?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Allows to build an integral image, taking into account the quality of
|
|
71
|
+
* fixation of each of the individual images.
|
|
72
|
+
*/
|
|
73
|
+
integralImage?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If set to `true`, an image with cropped barcode will be returned.
|
|
76
|
+
*/
|
|
77
|
+
returnCroppedBarcode?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* If set to `true`, in case required fields are not read, their values
|
|
80
|
+
* will be empty.
|
|
81
|
+
*/
|
|
82
|
+
checkRequiredTextFields?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* If set to `true`, personal information will be removed from logs.
|
|
85
|
+
*/
|
|
86
|
+
depersonalizeLog?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* When enabled together with {@link doublePageSpread} and there is a passport
|
|
89
|
+
* with two pages spread in the image, pages will be cropped, straightened
|
|
90
|
+
* and aligned together, as if the document was captured on a flatbed scanner.
|
|
91
|
+
*/
|
|
92
|
+
generateDoublePageSpreadImage?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* This option can be set to `true` if you know for sure that the image you
|
|
95
|
+
* provide contains already cropped document by its edges. This was designed
|
|
96
|
+
* to process on the server side images captured and cropped on mobile.
|
|
97
|
+
*/
|
|
98
|
+
alreadyCropped?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* When disabled, text field OCR will be done as is and then the recognized
|
|
101
|
+
* value will be matched to the field mask for validity. If enabled, we
|
|
102
|
+
* are trying to read a field value with maximum efforts to match the mask
|
|
103
|
+
* and provide a correctly formatted value, making assumptions based on the
|
|
104
|
+
* provided field mask in the template.
|
|
105
|
+
*/
|
|
106
|
+
matchTextFieldMask?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* When enabled, fail OCR field validity, if there is a glare over the text
|
|
109
|
+
* ƒfield on the image.
|
|
110
|
+
*/
|
|
111
|
+
updateOCRValidityByGlare?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* When enabled no graphic fields will be cropped from document image.
|
|
114
|
+
*/
|
|
115
|
+
noGraphics?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* This option allows locating and cropping multiple documents
|
|
118
|
+
* from one image if enabled.
|
|
119
|
+
*/
|
|
120
|
+
multiDocOnImage?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* When set to `false`, the Barcode code parsing will be skipped
|
|
123
|
+
* and the raw information from the code will be returned instead.
|
|
124
|
+
*/
|
|
125
|
+
parseBarcodes?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* When set to `true`, the `rawResults` property of the {@link Results}
|
|
128
|
+
* will contain the encrypted containers of scanning results
|
|
129
|
+
* that may be used for later reprocessing.
|
|
130
|
+
*/
|
|
131
|
+
shouldReturnPackageForReprocess?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* When enabled, OCR of perforated fields in the document template
|
|
134
|
+
* will not be performed.
|
|
135
|
+
*/
|
|
136
|
+
disablePerforationOCR?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated Use `strictImageQuality` instead.
|
|
139
|
+
* When enabled, image quality checks status affects document optical
|
|
140
|
+
* and overall status.
|
|
141
|
+
*/
|
|
142
|
+
respectImageQuality?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* When enabled, the image quality check status affects the document optical and overall status.
|
|
145
|
+
*/
|
|
146
|
+
strictImageQuality?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* When enabled, the Surname and GivenNames field ({@link TextField})
|
|
149
|
+
* will be divided into fields with fieldTypes {@link FieldType.FIRST_NAME},
|
|
150
|
+
* {@link FieldType.SECOND_NAME}, {@link FieldType.THIRD_NAME}, {@link FieldType.LAST_NAME}.
|
|
151
|
+
*/
|
|
152
|
+
splitNames?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Use this property to set up the Face API integration.
|
|
155
|
+
*/
|
|
156
|
+
useFaceApi?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* This parameter is used to enable document authenticity check.
|
|
159
|
+
*/
|
|
160
|
+
useAuthenticityCheck?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Use `authenticityParams.checkLiveness` instead.
|
|
163
|
+
*/
|
|
164
|
+
checkHologram?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* This parameter is used to generate numeric representation for issuing state and nationality codes.
|
|
167
|
+
*/
|
|
168
|
+
generateNumericCodes?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* If the certificates required for performing the Digital signature check are missing,
|
|
171
|
+
* this parameter if enabled will make the Barcode format check failed.
|
|
172
|
+
*/
|
|
173
|
+
strictBarcodeDigitalSignatureCheck?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Select the longest value from the different value sources and write it to the value field
|
|
176
|
+
* if comparison is done successfully. The parameter applies this logic to the personal names,
|
|
177
|
+
* such as given name, surname, surname and given name, middle name and etc.
|
|
178
|
+
*/
|
|
179
|
+
selectLongestNames?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* This parameter is used to generate DTCVC data.
|
|
182
|
+
*/
|
|
183
|
+
generateDTCVC?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Set to force DL categories expiry date status to either valid or not. By default,
|
|
186
|
+
* if the DL category expiry date is correct, its status will be wasNotDone, otherwise error.
|
|
187
|
+
*/
|
|
188
|
+
strictDLCategoryExpiry?: boolean;
|
|
189
|
+
generateAlpha2Codes?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* This parameter if enabled will ignore the minimum barcode resolution needed to start processing.
|
|
192
|
+
*/
|
|
193
|
+
disableAuthResolutionFilter?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'.
|
|
196
|
+
*/
|
|
197
|
+
strictSecurityChecks?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Allows transliteration to be turned on or off.
|
|
200
|
+
* Default: `true`.
|
|
201
|
+
*/
|
|
202
|
+
returnTransliteratedFields?: boolean;
|
|
203
|
+
checkCaptureProcessIntegrity?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* When disabled, date of expiry doesn't affect the mrz and text statuses.
|
|
206
|
+
*/
|
|
207
|
+
strictExpiryDate?: boolean;
|
|
208
|
+
debugSaveBinarySession?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* This parameter is used to enable Visible Digital Seal check.
|
|
211
|
+
*/
|
|
212
|
+
checkVDS?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* When enabled, the age check status affects the overall status.
|
|
215
|
+
*/
|
|
216
|
+
strictAgeCheck?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* There are documents that contain barcodes which data can be parsed only
|
|
219
|
+
* if document type verification is performed. The following property allows
|
|
220
|
+
* setting the barcode parser type which should be used during recognition.
|
|
221
|
+
* It allows parsing barcode data without performing document type verification.
|
|
222
|
+
*/
|
|
223
|
+
barcodeParserType?: number;
|
|
224
|
+
/**
|
|
225
|
+
* @deprecated since 7.6
|
|
226
|
+
* Allows you to set the maximum value of the deviation of the corners
|
|
227
|
+
* of the document from the value of `90` degrees.
|
|
228
|
+
*/
|
|
229
|
+
perspectiveAngle?: number;
|
|
230
|
+
/**
|
|
231
|
+
* Allows you to set the minimum acceptable DPI value of the camera frame
|
|
232
|
+
* that is passed for recognition. Camera frames the DPI of which are less
|
|
233
|
+
* than you set won't be passed for recognition.
|
|
234
|
+
*/
|
|
235
|
+
minDPI?: number;
|
|
236
|
+
/**
|
|
237
|
+
* This option controls maximum resolution in dpi of output images.
|
|
238
|
+
* Resolution will remain original in case `0` is set.
|
|
239
|
+
*/
|
|
240
|
+
imageDpiOutMax?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Force use of specified document format when locating and recognizing
|
|
243
|
+
* document to reduce the number of candidates.
|
|
244
|
+
*/
|
|
245
|
+
forceDocFormat?: DocFormat;
|
|
246
|
+
/**
|
|
247
|
+
* This option allows shifting the date of expiry into the future or past
|
|
248
|
+
* for number of months specified. This is useful, for example, in some cases
|
|
249
|
+
* when document might be still valid for some period after original
|
|
250
|
+
* expiration date to prevent negative validity status for such documents.
|
|
251
|
+
* Or by shifting the date to the past will set negative validity
|
|
252
|
+
* for the documents that is about to expire in a specified number of months.
|
|
253
|
+
*/
|
|
254
|
+
shiftExpiryDate?: number;
|
|
255
|
+
/**
|
|
256
|
+
* This options allows specifying the minimal age in years of the document
|
|
257
|
+
* holder for the document to be considered valid.
|
|
258
|
+
*/
|
|
259
|
+
minimalHolderAge?: number;
|
|
260
|
+
/**
|
|
261
|
+
* Maximum height of output images. In pixels.
|
|
262
|
+
*/
|
|
263
|
+
imageOutputMaxHeight?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Maximum width of output images. In pixels.
|
|
266
|
+
*/
|
|
267
|
+
imageOutputMaxWidth?: number;
|
|
268
|
+
/**
|
|
269
|
+
* Accepts sum of {@link Authenticity} values.
|
|
270
|
+
*/
|
|
271
|
+
processAuth?: number;
|
|
272
|
+
/**
|
|
273
|
+
* This option allows output text case transformation.
|
|
274
|
+
* No changes applied by default to original values.
|
|
275
|
+
*/
|
|
276
|
+
convertCase?: number;
|
|
277
|
+
/**
|
|
278
|
+
* Sets the level of logs detalization when used together with {@link logs} parameter.
|
|
279
|
+
*/
|
|
280
|
+
logLevel?: LogLevel;
|
|
281
|
+
/**
|
|
282
|
+
* Make better MRZ detection on complex noisy backgrounds, like BW photocopy of some documents.
|
|
283
|
+
* Works only in the single-frame processing.
|
|
284
|
+
*/
|
|
285
|
+
mrzDetectMode?: MrzDetectionModes;
|
|
286
|
+
/**
|
|
287
|
+
* Measure system of fields' values that are presented in results.
|
|
288
|
+
* Default: If the country code is `US` or `LR` or `MM`, the
|
|
289
|
+
* {@link MeasureSystem.IMPERIAL} system of measurement, otherwise, the {@link MeasureSystem.METRIC}.
|
|
290
|
+
*/
|
|
291
|
+
measureSystem?: MeasureSystem;
|
|
292
|
+
/**
|
|
293
|
+
* Force use of specific template ID and skip document type identification step.
|
|
294
|
+
*/
|
|
295
|
+
forceDocID?: number;
|
|
296
|
+
/**
|
|
297
|
+
* Maximum number of pages to be processed in a PDF document.
|
|
298
|
+
* If set, only the specified number of pages will be analyzed.
|
|
299
|
+
*/
|
|
300
|
+
pdfPagesLimit?: number;
|
|
301
|
+
/**
|
|
302
|
+
* Change the format string of displayed dates in the results.
|
|
303
|
+
*
|
|
304
|
+
* Mask examples: `dd/mm/yyyy`, `mm/dd/yyyy`, `dd-mm-yyyy`, `mm-dd-yyyy`, `dd/mm/yy`.
|
|
305
|
+
* Set to `null` to revert default value.
|
|
306
|
+
*
|
|
307
|
+
* @default depends on the device's locale.
|
|
308
|
+
*/
|
|
309
|
+
dateFormat?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Documents processing scenario.
|
|
312
|
+
*/
|
|
313
|
+
scenario?: Scenario;
|
|
314
|
+
/**
|
|
315
|
+
* Documents processing scenario for the Capture button.
|
|
316
|
+
*/
|
|
317
|
+
captureButtonScenario?: Scenario;
|
|
318
|
+
/**
|
|
319
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
320
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
321
|
+
* The countdown starts from the moment the scenario starts.
|
|
322
|
+
* Setting value to `0` means infinity.
|
|
323
|
+
*/
|
|
324
|
+
timeout?: number;
|
|
325
|
+
/**
|
|
326
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
327
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
328
|
+
* The countdown starts from the moment the document is detected.
|
|
329
|
+
* Setting value to `0` means infinity.
|
|
330
|
+
*/
|
|
331
|
+
timeoutFromFirstDetect?: number;
|
|
332
|
+
/**
|
|
333
|
+
* Allows you to set the time limit for document recognition (in seconds),
|
|
334
|
+
* beyond which the recognition does not continue regardless of its result.
|
|
335
|
+
* The countdown starts from the moment the document type is recognized.
|
|
336
|
+
* Setting value to `0` means infinity.
|
|
337
|
+
*/
|
|
338
|
+
timeoutFromFirstDocType?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Specifies minimal area of the image that document should cover to be treated
|
|
341
|
+
* as candidate when locating. Value should be in range from `0` to `1`,
|
|
342
|
+
* where `1` is when document should fully cover the image.
|
|
343
|
+
*/
|
|
344
|
+
documentAreaMin?: number;
|
|
345
|
+
/**
|
|
346
|
+
* Start the countdown from the moment the document liveness authenticity check is started (in seconds).
|
|
347
|
+
* Setting value to `0` means infinity.
|
|
348
|
+
*/
|
|
349
|
+
timeoutLiveness?: number;
|
|
350
|
+
/**
|
|
351
|
+
* Takes the list of the document IDs to process.
|
|
352
|
+
* All documents will be processed if it's empty.
|
|
353
|
+
*
|
|
354
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
355
|
+
*/
|
|
356
|
+
documentIDList?: number[];
|
|
357
|
+
/**
|
|
358
|
+
* Set types of barcodes that you wish to recognize.
|
|
359
|
+
* All barcodes will be recognized if it's empty.
|
|
360
|
+
*
|
|
361
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
362
|
+
*/
|
|
363
|
+
barcodeTypes?: BarcodeType[];
|
|
364
|
+
/**
|
|
365
|
+
* If you recognize the MRZ of documents, all fields will be extracted.
|
|
366
|
+
* If you recognize the Visual zone of documents, you can set the list
|
|
367
|
+
* of field types that you wish to extract, other fields will be skipped
|
|
368
|
+
* during processing. All fields will be extracted if it is empty.
|
|
369
|
+
*
|
|
370
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
371
|
+
*/
|
|
372
|
+
fieldTypesFilter?: FieldType[];
|
|
373
|
+
/**
|
|
374
|
+
* Types of results to return in response.
|
|
375
|
+
*
|
|
376
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
377
|
+
*/
|
|
378
|
+
resultTypeOutput?: ResultType[];
|
|
379
|
+
/**
|
|
380
|
+
* This option allows limiting MRZ formats to be recognized by specifying them in array.
|
|
381
|
+
*
|
|
382
|
+
* If left empty, all MRZ formats will be recognized, except for 2x30, which is disabled by default.
|
|
383
|
+
*
|
|
384
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
385
|
+
*/
|
|
386
|
+
mrzFormatsFilter?: MRZFormat[];
|
|
387
|
+
/**
|
|
388
|
+
* Array of specific eligible document types to recognize from. You may,
|
|
389
|
+
* for example, specify only passports to be recognized by setting this property.
|
|
390
|
+
*
|
|
391
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
392
|
+
*/
|
|
393
|
+
documentGroupFilter?: DocType[];
|
|
394
|
+
/**
|
|
395
|
+
* The list of LCID types to ignore during the recognition.
|
|
396
|
+
* If empty, values with all LCID types will be extracted.
|
|
397
|
+
* Narrowing down the list can reduce processing time.
|
|
398
|
+
*
|
|
399
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
400
|
+
*/
|
|
401
|
+
lcidIgnoreFilter?: LCID[];
|
|
402
|
+
/**
|
|
403
|
+
* The whitelist of LCID types to use during the recognition.
|
|
404
|
+
*
|
|
405
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
406
|
+
*/
|
|
407
|
+
lcidFilter?: LCID[];
|
|
408
|
+
/**
|
|
409
|
+
* If a document contains a Visual zone, you can specify a list of field types that should be excluded from extraction.
|
|
410
|
+
* All field types listed in this array are skipped during processing, while the remaining fields are recognized.
|
|
411
|
+
* This filter is not applicable to the MRZ, barcode or RFID. If the fieldTypesIgnoreFilter is empty, all fields are extracted.
|
|
412
|
+
*
|
|
413
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
414
|
+
*/
|
|
415
|
+
fieldTypesIgnoreFilter?: FieldType[];
|
|
416
|
+
/**
|
|
417
|
+
* Controls properties of {@link ImageQA} checks.
|
|
418
|
+
*/
|
|
419
|
+
imageQA: ImageQA;
|
|
420
|
+
/**
|
|
421
|
+
* Custom RFID params.
|
|
422
|
+
*/
|
|
423
|
+
rfidParams?: RFIDParams;
|
|
424
|
+
/**
|
|
425
|
+
* Custom Face API integration params.
|
|
426
|
+
*/
|
|
427
|
+
faceApiParams?: FaceApiParams;
|
|
428
|
+
/**
|
|
429
|
+
* Set up the backend processing service parameters.
|
|
430
|
+
*/
|
|
431
|
+
backendProcessingConfig?: BackendProcessingConfig;
|
|
432
|
+
bsiTr03135?: Bsi;
|
|
433
|
+
authenticityParams: AuthenticityParams;
|
|
434
|
+
/**
|
|
435
|
+
* Takes JSON with parameters that are not presented in the DocumentReader.
|
|
436
|
+
*
|
|
437
|
+
* Unmodifiable property. Use setter instead of editing.
|
|
438
|
+
*/
|
|
439
|
+
customParams?: Record<string, any>;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Allows you to deserialize object.
|
|
443
|
+
* @param jsonObject
|
|
444
|
+
*/
|
|
445
|
+
static fromJson(jsonObject: any): ProcessParams;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The constants of the enumeration identify the system
|
|
450
|
+
* for measuring distances and weight.
|
|
451
|
+
*/
|
|
452
|
+
export declare enum MeasureSystem {
|
|
453
|
+
/**
|
|
454
|
+
* The Metric System of Measurement, which uses the measuring units
|
|
455
|
+
* such as meters and grams and adds prefixes like kilo, milli
|
|
456
|
+
* and centi to count orders of magnitude.
|
|
457
|
+
*/
|
|
458
|
+
METRIC = 0,
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The Imperial System of Measurement, where things are measured in feet,
|
|
462
|
+
* inches and pounds.
|
|
463
|
+
*/
|
|
464
|
+
IMPERIAL = 1,
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export declare enum MRZFormat {
|
|
468
|
+
FORMAT_1X30 = "1x30",
|
|
469
|
+
FORMAT_3X30 = "3x30",
|
|
470
|
+
FORMAT_2X36 = "2x36",
|
|
471
|
+
FORMAT_2X44 = "2x44",
|
|
472
|
+
FORMAT_1X6 = "1x6",
|
|
473
|
+
FORMAT_2X30 = "2x30",
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export declare enum LogLevel {
|
|
477
|
+
/** Fatal error. */
|
|
478
|
+
FatalError = "FatalError",
|
|
479
|
+
/** Error. */
|
|
480
|
+
Error = "Error",
|
|
481
|
+
/** Warning. */
|
|
482
|
+
Warning = "Warning",
|
|
483
|
+
/** Info. */
|
|
484
|
+
Info = "Info",
|
|
485
|
+
/** Debug. */
|
|
486
|
+
Debug = "Debug",
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Enumeration contains the types of barcodes that can be processed.
|
|
491
|
+
*/
|
|
492
|
+
export declare enum MrzDetectionModes {
|
|
493
|
+
DEFAULT = 0,
|
|
494
|
+
RESIZE_BINARIZE_WINDOW = 1,
|
|
495
|
+
BLUR_BEFORE_BINARIZATION = 2,
|
|
496
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class RFIDParams {
|
|
2
|
+
/**
|
|
3
|
+
* A list of notification codes that should be ignored during
|
|
4
|
+
* passive authentication (PA).
|
|
5
|
+
*/
|
|
6
|
+
readonly paIgnoreNotificationCodes?: number[];
|
|
7
|
+
|
|
8
|
+
constructor(
|
|
9
|
+
options?: {
|
|
10
|
+
paIgnoreNotificationCodes?: number[],
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Allows you to deserialize object.
|
|
16
|
+
* @param jsonObject
|
|
17
|
+
*/
|
|
18
|
+
static fromJson(jsonObject: any): RFIDParams;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class EDLDataGroups {
|
|
2
|
+
dg1: boolean;
|
|
3
|
+
dg2: boolean;
|
|
4
|
+
dg3: boolean;
|
|
5
|
+
dg4: boolean;
|
|
6
|
+
dg5: boolean;
|
|
7
|
+
dg6: boolean;
|
|
8
|
+
dg7: boolean;
|
|
9
|
+
dg8: boolean;
|
|
10
|
+
dg9: boolean;
|
|
11
|
+
dg10: boolean;
|
|
12
|
+
dg11: boolean;
|
|
13
|
+
dg12: boolean;
|
|
14
|
+
dg13: boolean;
|
|
15
|
+
dg14: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Allows you to deserialize object.
|
|
19
|
+
* @param jsonObject
|
|
20
|
+
*/
|
|
21
|
+
static fromJson(jsonObject: any): EDLDataGroups;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare class EIDDataGroups {
|
|
2
|
+
dg1: boolean;
|
|
3
|
+
dg2: boolean;
|
|
4
|
+
dg3: boolean;
|
|
5
|
+
dg4: boolean;
|
|
6
|
+
dg5: boolean;
|
|
7
|
+
dg6: boolean;
|
|
8
|
+
dg7: boolean;
|
|
9
|
+
dg8: boolean;
|
|
10
|
+
dg9: boolean;
|
|
11
|
+
dg10: boolean;
|
|
12
|
+
dg11: boolean;
|
|
13
|
+
dg12: boolean;
|
|
14
|
+
dg13: boolean;
|
|
15
|
+
dg14: boolean;
|
|
16
|
+
dg15: boolean;
|
|
17
|
+
dg16: boolean;
|
|
18
|
+
dg17: boolean;
|
|
19
|
+
dg18: boolean;
|
|
20
|
+
dg19: boolean;
|
|
21
|
+
dg20: boolean;
|
|
22
|
+
dg21: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Allows you to deserialize object.
|
|
26
|
+
* @param jsonObject
|
|
27
|
+
*/
|
|
28
|
+
static fromJson(jsonObject: any): EIDDataGroups;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class EPassportDataGroups {
|
|
2
|
+
dg1: boolean;
|
|
3
|
+
dg2: boolean;
|
|
4
|
+
dg3: boolean;
|
|
5
|
+
dg4: boolean;
|
|
6
|
+
dg5: boolean;
|
|
7
|
+
dg6: boolean;
|
|
8
|
+
dg7: boolean;
|
|
9
|
+
dg8: boolean;
|
|
10
|
+
dg9: boolean;
|
|
11
|
+
dg10: boolean;
|
|
12
|
+
dg11: boolean;
|
|
13
|
+
dg12: boolean;
|
|
14
|
+
dg13: boolean;
|
|
15
|
+
dg14: boolean;
|
|
16
|
+
dg15: boolean;
|
|
17
|
+
dg16: boolean;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Allows you to deserialize object.
|
|
21
|
+
* @param jsonObject
|
|
22
|
+
*/
|
|
23
|
+
static fromJson(jsonObject: any): EPassportDataGroups;
|
|
24
|
+
}
|