@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.
Files changed (483) hide show
  1. package/Package.swift +28 -0
  2. package/README.md +19 -0
  3. package/android/CVDDocumentReader.kt +76 -0
  4. package/android/build.gradle.kts +37 -0
  5. package/android/cordova.gradle.kts +13 -0
  6. package/android/src/main/kotlin/com/regula/plugin/document/reader/BluetoothUtil.kt +164 -0
  7. package/android/src/main/kotlin/com/regula/plugin/document/reader/Config.kt +1021 -0
  8. package/android/src/main/kotlin/com/regula/plugin/document/reader/JSONConstructor.kt +2192 -0
  9. package/android/src/main/kotlin/com/regula/plugin/document/reader/Main.kt +656 -0
  10. package/android/src/main/kotlin/com/regula/plugin/document/reader/RNDocumentReaderModule.kt +101 -0
  11. package/android/src/main/kotlin/com/regula/plugin/document/reader/Utils.kt +248 -0
  12. package/app.plugin.js +45 -0
  13. package/examples/capacitor/README.md +24 -0
  14. package/examples/capacitor/android/app/build.gradle +41 -0
  15. package/examples/capacitor/android/app/proguard-rules.pro +21 -0
  16. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +36 -0
  17. package/examples/capacitor/android/app/src/main/assets/Regula/.gitkeep +0 -0
  18. package/examples/capacitor/android/app/src/main/java/com/regula/example/dr/capacitor/MainActivity.java +5 -0
  19. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher.png +0 -0
  20. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_foreground.png +0 -0
  21. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
  22. package/examples/capacitor/android/app/src/main/res/drawable/launcher.xml +4 -0
  23. package/examples/capacitor/android/app/src/main/res/drawable/launcher_round.xml +4 -0
  24. package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
  25. package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
  26. package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
  27. package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
  28. package/examples/capacitor/android/build.gradle +39 -0
  29. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  30. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  31. package/examples/capacitor/android/gradle.properties +26 -0
  32. package/examples/capacitor/android/gradlew +248 -0
  33. package/examples/capacitor/android/gradlew.bat +82 -0
  34. package/examples/capacitor/android/settings.gradle +5 -0
  35. package/examples/capacitor/android/variables.gradle +20 -0
  36. package/examples/capacitor/capacitor.config.json +15 -0
  37. package/examples/capacitor/index.html +5 -0
  38. package/examples/capacitor/index.tsx +31 -0
  39. package/examples/capacitor/ios/App/App/App.entitlements +10 -0
  40. package/examples/capacitor/ios/App/App/AppDelegate.swift +14 -0
  41. package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  42. package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
  43. package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
  44. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
  45. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  46. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  47. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  48. package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
  49. package/examples/capacitor/ios/App/App/Info.plist +88 -0
  50. package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
  51. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +374 -0
  52. package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  53. package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
  54. package/examples/capacitor/package-lock.json +1965 -0
  55. package/examples/capacitor/package.json +26 -0
  56. package/examples/capacitor/public/assets/.gitkeep +0 -0
  57. package/examples/capacitor/public/images/document.png +0 -0
  58. package/examples/capacitor/public/images/portrait.png +0 -0
  59. package/examples/capacitor/scripts/android.sh +8 -0
  60. package/examples/capacitor/scripts/ios.sh +8 -0
  61. package/examples/capacitor/scripts/setup.sh +9 -0
  62. package/examples/capacitor/src/extra/bt_device.tsx +33 -0
  63. package/examples/capacitor/src/extra/custom_rfid.tsx +61 -0
  64. package/examples/capacitor/src/main.css +153 -0
  65. package/examples/capacitor/src/main.html +38 -0
  66. package/examples/capacitor/src/main.tsx +172 -0
  67. package/examples/capacitor/tsconfig.json +5 -0
  68. package/examples/capacitor/vite.config.ts +5 -0
  69. package/examples/ionic/README.md +24 -0
  70. package/examples/ionic/angular.json +39 -0
  71. package/examples/ionic/assets/.gitkeep +0 -0
  72. package/examples/ionic/config.xml +61 -0
  73. package/examples/ionic/images/document.png +0 -0
  74. package/examples/ionic/images/icon.png +0 -0
  75. package/examples/ionic/images/portrait.png +0 -0
  76. package/examples/ionic/index.html +19 -0
  77. package/examples/ionic/index.tsx +63 -0
  78. package/examples/ionic/ionic.config.json +7 -0
  79. package/examples/ionic/package-lock.json +17554 -0
  80. package/examples/ionic/package.json +76 -0
  81. package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
  82. package/examples/ionic/scripts/android.sh +9 -0
  83. package/examples/ionic/scripts/ios.sh +11 -0
  84. package/examples/ionic/scripts/setup.sh +8 -0
  85. package/examples/ionic/src/extra/bt_device.tsx +33 -0
  86. package/examples/ionic/src/extra/custom_rfid.tsx +61 -0
  87. package/examples/ionic/src/main.css +148 -0
  88. package/examples/ionic/src/main.html +38 -0
  89. package/examples/ionic/src/main.tsx +172 -0
  90. package/examples/ionic/tsconfig.json +13 -0
  91. package/examples/react_native/README.md +24 -0
  92. package/examples/react_native/app.config.ts +54 -0
  93. package/examples/react_native/assets/.gitkeep +0 -0
  94. package/examples/react_native/images/document.png +0 -0
  95. package/examples/react_native/images/icon.png +0 -0
  96. package/examples/react_native/images/portrait.png +0 -0
  97. package/examples/react_native/index.tsx +111 -0
  98. package/examples/react_native/metro.config.js +5 -0
  99. package/examples/react_native/package-lock.json +6924 -0
  100. package/examples/react_native/package.json +37 -0
  101. package/examples/react_native/scripts/android.sh +8 -0
  102. package/examples/react_native/scripts/ios.sh +6 -0
  103. package/examples/react_native/scripts/setup.sh +10 -0
  104. package/examples/react_native/scripts/withoutMetroServer.js +89 -0
  105. package/examples/react_native/src/extra/bt_device.tsx +33 -0
  106. package/examples/react_native/src/extra/custom_rfid.tsx +61 -0
  107. package/examples/react_native/src/main.css +148 -0
  108. package/examples/react_native/src/main.html +38 -0
  109. package/examples/react_native/src/main.tsx +172 -0
  110. package/ios/CVDDocumentReader.h +7 -0
  111. package/ios/CVDDocumentReader.m +43 -0
  112. package/ios/RGLWConfig.h +44 -0
  113. package/ios/RGLWConfig.m +1577 -0
  114. package/ios/RGLWJSONConstructor.h +216 -0
  115. package/ios/RGLWJSONConstructor.m +2875 -0
  116. package/ios/RGLWMain.h +34 -0
  117. package/ios/RGLWMain.m +722 -0
  118. package/ios/RNDocumentReader.h +8 -0
  119. package/ios/RNDocumentReader.m +52 -0
  120. package/ios/spm/module.modulemap +7 -0
  121. package/package.json +39 -0
  122. package/plugin.xml +51 -0
  123. package/react-native-document-reader.podspec +14 -0
  124. package/test/json.tsx +1159 -0
  125. package/test/package-lock.json +584 -0
  126. package/test/package.json +9 -0
  127. package/test/test.tsx +315 -0
  128. package/test/utils.tsx +38 -0
  129. package/www/capacitor/config/FinalizeConfig.js +35 -0
  130. package/www/capacitor/config/InitConfig.js +55 -0
  131. package/www/capacitor/config/OnlineProcessingConfig.js +52 -0
  132. package/www/capacitor/config/RFIDConfig.js +47 -0
  133. package/www/capacitor/config/RecognizeConfig.js +138 -0
  134. package/www/capacitor/config/ScannerConfig.js +48 -0
  135. package/www/capacitor/index.js +758 -0
  136. package/www/capacitor/info/DocReaderException.js +68 -0
  137. package/www/capacitor/info/DocReaderScenario.js +89 -0
  138. package/www/capacitor/info/DocReaderVersion.js +32 -0
  139. package/www/capacitor/info/DocumentsDatabase.js +39 -0
  140. package/www/capacitor/info/License.js +30 -0
  141. package/www/capacitor/info/PrepareProgress.js +31 -0
  142. package/www/capacitor/info/RFIDException.js +26 -0
  143. package/www/capacitor/internal/bridge.js +131 -0
  144. package/www/capacitor/internal/cordova.js +17 -0
  145. package/www/capacitor/mdl/DataRetrieval.js +55 -0
  146. package/www/capacitor/mdl/DeviceEngagement.js +30 -0
  147. package/www/capacitor/mdl/DeviceRetrievalMethod.js +41 -0
  148. package/www/capacitor/mdl/DocumentRequestMDL.js +212 -0
  149. package/www/capacitor/mdl/NameSpaceMDL.js +33 -0
  150. package/www/capacitor/params/Functionality.js +387 -0
  151. package/www/capacitor/params/customization/Customization.js +664 -0
  152. package/www/capacitor/params/customization/CustomizationColors.js +231 -0
  153. package/www/capacitor/params/customization/CustomizationContentModes.js +55 -0
  154. package/www/capacitor/params/customization/CustomizationFonts.js +156 -0
  155. package/www/capacitor/params/customization/CustomizationImages.js +199 -0
  156. package/www/capacitor/params/customization/CustomizationMatrices.js +39 -0
  157. package/www/capacitor/params/customization/CustomizationTimings.js +71 -0
  158. package/www/capacitor/params/process_params/AuthenticityParams.js +166 -0
  159. package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +39 -0
  160. package/www/capacitor/params/process_params/BackendProcessingConfig.js +38 -0
  161. package/www/capacitor/params/process_params/Bsi.js +23 -0
  162. package/www/capacitor/params/process_params/FaceApiParams.js +55 -0
  163. package/www/capacitor/params/process_params/FaceApiSearchParams.js +29 -0
  164. package/www/capacitor/params/process_params/GlaresCheckParams.js +25 -0
  165. package/www/capacitor/params/process_params/ImageQA.js +122 -0
  166. package/www/capacitor/params/process_params/LivenessParams.js +87 -0
  167. package/www/capacitor/params/process_params/OcclusionCheckParams.js +21 -0
  168. package/www/capacitor/params/process_params/ProcessParams.js +724 -0
  169. package/www/capacitor/params/process_params/RFIDParams.js +21 -0
  170. package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +63 -0
  171. package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +135 -0
  172. package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +191 -0
  173. package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +151 -0
  174. package/www/capacitor/params/rfid_scenario/RFIDScenario.js +584 -0
  175. package/www/capacitor/results/DocumentType.js +302 -0
  176. package/www/capacitor/results/Position.js +88 -0
  177. package/www/capacitor/results/Results.js +354 -0
  178. package/www/capacitor/results/TransactionInfo.js +24 -0
  179. package/www/capacitor/results/authenticity/Authenticity.js +24 -0
  180. package/www/capacitor/results/authenticity/AuthenticityCheck.js +43 -0
  181. package/www/capacitor/results/authenticity/AuthenticityElement.js +37 -0
  182. package/www/capacitor/results/authenticity/AuthenticityResult.js +33 -0
  183. package/www/capacitor/results/authenticity/CheckDiagnose.js +133 -0
  184. package/www/capacitor/results/authenticity/SecurityFeatureType.js +67 -0
  185. package/www/capacitor/results/barcode/BarcodeField.js +34 -0
  186. package/www/capacitor/results/barcode/BarcodeResult.js +30 -0
  187. package/www/capacitor/results/barcode/BarcodeStatus.js +33 -0
  188. package/www/capacitor/results/barcode/BarcodeType.js +21 -0
  189. package/www/capacitor/results/barcode/PDF417Info.js +24 -0
  190. package/www/capacitor/results/image_quality/ImageQuality.js +40 -0
  191. package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
  192. package/www/capacitor/results/image_quality/ImageQualityGroup.js +39 -0
  193. package/www/capacitor/results/rfid/AccessControlProcedureType.js +30 -0
  194. package/www/capacitor/results/rfid/Application.js +63 -0
  195. package/www/capacitor/results/rfid/Attribute.js +23 -0
  196. package/www/capacitor/results/rfid/Authority.js +36 -0
  197. package/www/capacitor/results/rfid/CardProperties.js +57 -0
  198. package/www/capacitor/results/rfid/CertificateChain.js +69 -0
  199. package/www/capacitor/results/rfid/CertificateData.js +21 -0
  200. package/www/capacitor/results/rfid/DataField.js +23 -0
  201. package/www/capacitor/results/rfid/Extension.js +21 -0
  202. package/www/capacitor/results/rfid/File.js +56 -0
  203. package/www/capacitor/results/rfid/FileData.js +27 -0
  204. package/www/capacitor/results/rfid/RFIDAccessControlProcedureType.js +10 -0
  205. package/www/capacitor/results/rfid/RFIDCertificateType.js +14 -0
  206. package/www/capacitor/results/rfid/RFIDDataFileType.js +106 -0
  207. package/www/capacitor/results/rfid/RFIDSessionData.js +92 -0
  208. package/www/capacitor/results/rfid/RFIDValidity.js +23 -0
  209. package/www/capacitor/results/rfid/RFIDValue.js +30 -0
  210. package/www/capacitor/results/rfid/SecurityObject.js +41 -0
  211. package/www/capacitor/results/rfid/SecurityObjectCertificates.js +20 -0
  212. package/www/capacitor/results/rfid/SignerInfo.js +74 -0
  213. package/www/capacitor/results/status/AgeStatus.js +35 -0
  214. package/www/capacitor/results/status/CheckResult.js +5 -0
  215. package/www/capacitor/results/status/OpticalStatus.js +44 -0
  216. package/www/capacitor/results/status/RFIDStatus.js +38 -0
  217. package/www/capacitor/results/status/ResultsStatus.js +53 -0
  218. package/www/capacitor/results/visible_digital_seals/BytesData.js +27 -0
  219. package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
  220. package/www/capacitor/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
  221. package/www/capacitor/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
  222. package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
  223. package/www/capacitor/results/visible_digital_seals/VDSNCData.js +54 -0
  224. package/www/capacitor/results/visual_results/Comparison.js +27 -0
  225. package/www/capacitor/results/visual_results/FieldType.js +671 -0
  226. package/www/capacitor/results/visual_results/GraphicField.js +47 -0
  227. package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
  228. package/www/capacitor/results/visual_results/GraphicResult.js +28 -0
  229. package/www/capacitor/results/visual_results/LCID.js +174 -0
  230. package/www/capacitor/results/visual_results/Lights.js +11 -0
  231. package/www/capacitor/results/visual_results/RFIDOrigin.js +27 -0
  232. package/www/capacitor/results/visual_results/Rect.js +27 -0
  233. package/www/capacitor/results/visual_results/Symbol.js +26 -0
  234. package/www/capacitor/results/visual_results/TextField.js +85 -0
  235. package/www/capacitor/results/visual_results/TextResult.js +52 -0
  236. package/www/capacitor/results/visual_results/TextSource.js +27 -0
  237. package/www/capacitor/results/visual_results/Validity.js +24 -0
  238. package/www/capacitor/results/visual_results/Value.js +52 -0
  239. package/www/capacitor/rfid/CAProtocol.js +27 -0
  240. package/www/capacitor/rfid/PAAttribute.js +24 -0
  241. package/www/capacitor/rfid/PACEProtocol.js +24 -0
  242. package/www/capacitor/rfid/PAResourcesIssuer.js +35 -0
  243. package/www/capacitor/rfid/PKDCertificate.js +65 -0
  244. package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
  245. package/www/capacitor/rfid/RFIDNotification.js +71 -0
  246. package/www/capacitor/rfid/TAChallenge.js +33 -0
  247. package/www/capacitor/rfid/TccParams.js +34 -0
  248. package/www/cordova.js +12948 -0
  249. package/www/react-native/config/FinalizeConfig.js +35 -0
  250. package/www/react-native/config/InitConfig.js +55 -0
  251. package/www/react-native/config/OnlineProcessingConfig.js +52 -0
  252. package/www/react-native/config/RFIDConfig.js +47 -0
  253. package/www/react-native/config/RecognizeConfig.js +138 -0
  254. package/www/react-native/config/ScannerConfig.js +48 -0
  255. package/www/react-native/index.js +758 -0
  256. package/www/react-native/info/DocReaderException.js +68 -0
  257. package/www/react-native/info/DocReaderScenario.js +89 -0
  258. package/www/react-native/info/DocReaderVersion.js +32 -0
  259. package/www/react-native/info/DocumentsDatabase.js +39 -0
  260. package/www/react-native/info/License.js +30 -0
  261. package/www/react-native/info/PrepareProgress.js +31 -0
  262. package/www/react-native/info/RFIDException.js +26 -0
  263. package/www/react-native/internal/bridge.js +131 -0
  264. package/www/react-native/mdl/DataRetrieval.js +55 -0
  265. package/www/react-native/mdl/DeviceEngagement.js +30 -0
  266. package/www/react-native/mdl/DeviceRetrievalMethod.js +41 -0
  267. package/www/react-native/mdl/DocumentRequestMDL.js +212 -0
  268. package/www/react-native/mdl/NameSpaceMDL.js +33 -0
  269. package/www/react-native/params/Functionality.js +387 -0
  270. package/www/react-native/params/customization/Customization.js +664 -0
  271. package/www/react-native/params/customization/CustomizationColors.js +231 -0
  272. package/www/react-native/params/customization/CustomizationContentModes.js +55 -0
  273. package/www/react-native/params/customization/CustomizationFonts.js +156 -0
  274. package/www/react-native/params/customization/CustomizationImages.js +199 -0
  275. package/www/react-native/params/customization/CustomizationMatrices.js +39 -0
  276. package/www/react-native/params/customization/CustomizationTimings.js +71 -0
  277. package/www/react-native/params/process_params/AuthenticityParams.js +166 -0
  278. package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +39 -0
  279. package/www/react-native/params/process_params/BackendProcessingConfig.js +38 -0
  280. package/www/react-native/params/process_params/Bsi.js +23 -0
  281. package/www/react-native/params/process_params/FaceApiParams.js +55 -0
  282. package/www/react-native/params/process_params/FaceApiSearchParams.js +29 -0
  283. package/www/react-native/params/process_params/GlaresCheckParams.js +25 -0
  284. package/www/react-native/params/process_params/ImageQA.js +122 -0
  285. package/www/react-native/params/process_params/LivenessParams.js +87 -0
  286. package/www/react-native/params/process_params/OcclusionCheckParams.js +21 -0
  287. package/www/react-native/params/process_params/ProcessParams.js +724 -0
  288. package/www/react-native/params/process_params/RFIDParams.js +21 -0
  289. package/www/react-native/params/rfid_scenario/DTCDataGroup.js +63 -0
  290. package/www/react-native/params/rfid_scenario/EDLDataGroups.js +135 -0
  291. package/www/react-native/params/rfid_scenario/EIDDataGroups.js +191 -0
  292. package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +151 -0
  293. package/www/react-native/params/rfid_scenario/RFIDScenario.js +584 -0
  294. package/www/react-native/results/DocumentType.js +302 -0
  295. package/www/react-native/results/Position.js +88 -0
  296. package/www/react-native/results/Results.js +354 -0
  297. package/www/react-native/results/TransactionInfo.js +24 -0
  298. package/www/react-native/results/authenticity/Authenticity.js +24 -0
  299. package/www/react-native/results/authenticity/AuthenticityCheck.js +43 -0
  300. package/www/react-native/results/authenticity/AuthenticityElement.js +37 -0
  301. package/www/react-native/results/authenticity/AuthenticityResult.js +33 -0
  302. package/www/react-native/results/authenticity/CheckDiagnose.js +133 -0
  303. package/www/react-native/results/authenticity/SecurityFeatureType.js +67 -0
  304. package/www/react-native/results/barcode/BarcodeField.js +34 -0
  305. package/www/react-native/results/barcode/BarcodeResult.js +30 -0
  306. package/www/react-native/results/barcode/BarcodeStatus.js +33 -0
  307. package/www/react-native/results/barcode/BarcodeType.js +21 -0
  308. package/www/react-native/results/barcode/PDF417Info.js +24 -0
  309. package/www/react-native/results/image_quality/ImageQuality.js +40 -0
  310. package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
  311. package/www/react-native/results/image_quality/ImageQualityGroup.js +39 -0
  312. package/www/react-native/results/rfid/AccessControlProcedureType.js +30 -0
  313. package/www/react-native/results/rfid/Application.js +63 -0
  314. package/www/react-native/results/rfid/Attribute.js +23 -0
  315. package/www/react-native/results/rfid/Authority.js +36 -0
  316. package/www/react-native/results/rfid/CardProperties.js +57 -0
  317. package/www/react-native/results/rfid/CertificateChain.js +69 -0
  318. package/www/react-native/results/rfid/CertificateData.js +21 -0
  319. package/www/react-native/results/rfid/DataField.js +23 -0
  320. package/www/react-native/results/rfid/Extension.js +21 -0
  321. package/www/react-native/results/rfid/File.js +56 -0
  322. package/www/react-native/results/rfid/FileData.js +27 -0
  323. package/www/react-native/results/rfid/RFIDAccessControlProcedureType.js +10 -0
  324. package/www/react-native/results/rfid/RFIDCertificateType.js +14 -0
  325. package/www/react-native/results/rfid/RFIDDataFileType.js +106 -0
  326. package/www/react-native/results/rfid/RFIDSessionData.js +92 -0
  327. package/www/react-native/results/rfid/RFIDValidity.js +23 -0
  328. package/www/react-native/results/rfid/RFIDValue.js +30 -0
  329. package/www/react-native/results/rfid/SecurityObject.js +41 -0
  330. package/www/react-native/results/rfid/SecurityObjectCertificates.js +20 -0
  331. package/www/react-native/results/rfid/SignerInfo.js +74 -0
  332. package/www/react-native/results/status/AgeStatus.js +35 -0
  333. package/www/react-native/results/status/CheckResult.js +5 -0
  334. package/www/react-native/results/status/OpticalStatus.js +44 -0
  335. package/www/react-native/results/status/RFIDStatus.js +38 -0
  336. package/www/react-native/results/status/ResultsStatus.js +53 -0
  337. package/www/react-native/results/visible_digital_seals/BytesData.js +27 -0
  338. package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
  339. package/www/react-native/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
  340. package/www/react-native/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
  341. package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
  342. package/www/react-native/results/visible_digital_seals/VDSNCData.js +54 -0
  343. package/www/react-native/results/visual_results/Comparison.js +27 -0
  344. package/www/react-native/results/visual_results/FieldType.js +671 -0
  345. package/www/react-native/results/visual_results/GraphicField.js +47 -0
  346. package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
  347. package/www/react-native/results/visual_results/GraphicResult.js +28 -0
  348. package/www/react-native/results/visual_results/LCID.js +174 -0
  349. package/www/react-native/results/visual_results/Lights.js +11 -0
  350. package/www/react-native/results/visual_results/RFIDOrigin.js +27 -0
  351. package/www/react-native/results/visual_results/Rect.js +27 -0
  352. package/www/react-native/results/visual_results/Symbol.js +26 -0
  353. package/www/react-native/results/visual_results/TextField.js +85 -0
  354. package/www/react-native/results/visual_results/TextResult.js +52 -0
  355. package/www/react-native/results/visual_results/TextSource.js +27 -0
  356. package/www/react-native/results/visual_results/Validity.js +24 -0
  357. package/www/react-native/results/visual_results/Value.js +52 -0
  358. package/www/react-native/rfid/CAProtocol.js +27 -0
  359. package/www/react-native/rfid/PAAttribute.js +24 -0
  360. package/www/react-native/rfid/PACEProtocol.js +24 -0
  361. package/www/react-native/rfid/PAResourcesIssuer.js +35 -0
  362. package/www/react-native/rfid/PKDCertificate.js +65 -0
  363. package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
  364. package/www/react-native/rfid/RFIDNotification.js +71 -0
  365. package/www/react-native/rfid/TAChallenge.js +33 -0
  366. package/www/react-native/rfid/TccParams.js +34 -0
  367. package/www/types/config/FinalizeConfig.d.ts +6 -0
  368. package/www/types/config/InitConfig.d.ts +68 -0
  369. package/www/types/config/OnlineProcessingConfig.d.ts +22 -0
  370. package/www/types/config/RFIDConfig.d.ts +178 -0
  371. package/www/types/config/RecognizeConfig.d.ts +126 -0
  372. package/www/types/config/ScannerConfig.d.ts +54 -0
  373. package/www/types/index.d.ts +656 -0
  374. package/www/types/info/DocReaderException.d.ts +85 -0
  375. package/www/types/info/DocReaderScenario.d.ts +90 -0
  376. package/www/types/info/DocReaderVersion.d.ts +28 -0
  377. package/www/types/info/DocumentsDatabase.d.ts +42 -0
  378. package/www/types/info/License.d.ts +23 -0
  379. package/www/types/info/PrepareProgress.d.ts +15 -0
  380. package/www/types/info/RFIDException.d.ts +8 -0
  381. package/www/types/mdl/DataRetrieval.d.ts +28 -0
  382. package/www/types/mdl/DeviceEngagement.d.ts +16 -0
  383. package/www/types/mdl/DeviceRetrievalMethod.d.ts +18 -0
  384. package/www/types/mdl/DocumentRequestMDL.d.ts +63 -0
  385. package/www/types/mdl/NameSpaceMDL.d.ts +16 -0
  386. package/www/types/params/Functionality.d.ts +337 -0
  387. package/www/types/params/customization/Customization.d.ts +584 -0
  388. package/www/types/params/customization/CustomizationColors.d.ts +42 -0
  389. package/www/types/params/customization/CustomizationContentModes.d.ts +41 -0
  390. package/www/types/params/customization/CustomizationFonts.d.ts +63 -0
  391. package/www/types/params/customization/CustomizationImages.d.ts +34 -0
  392. package/www/types/params/customization/CustomizationMatrices.d.ts +10 -0
  393. package/www/types/params/customization/CustomizationTimings.d.ts +14 -0
  394. package/www/types/params/process_params/AuthenticityParams.d.ts +31 -0
  395. package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +12 -0
  396. package/www/types/params/process_params/BackendProcessingConfig.d.ts +27 -0
  397. package/www/types/params/process_params/Bsi.d.ts +3 -0
  398. package/www/types/params/process_params/FaceApiParams.d.ts +72 -0
  399. package/www/types/params/process_params/FaceApiSearchParams.d.ts +35 -0
  400. package/www/types/params/process_params/GlaresCheckParams.d.ts +26 -0
  401. package/www/types/params/process_params/ImageQA.d.ts +85 -0
  402. package/www/types/params/process_params/LivenessParams.d.ts +18 -0
  403. package/www/types/params/process_params/OcclusionCheckParams.d.ts +16 -0
  404. package/www/types/params/process_params/ProcessParams.d.ts +496 -0
  405. package/www/types/params/process_params/RFIDParams.d.ts +19 -0
  406. package/www/types/params/rfid_scenario/DTCDataGroup.d.ts +13 -0
  407. package/www/types/params/rfid_scenario/EDLDataGroups.d.ts +22 -0
  408. package/www/types/params/rfid_scenario/EIDDataGroups.d.ts +29 -0
  409. package/www/types/params/rfid_scenario/EPassportDataGroups.d.ts +24 -0
  410. package/www/types/params/rfid_scenario/RFIDScenario.d.ts +178 -0
  411. package/www/types/results/DocumentType.d.ts +525 -0
  412. package/www/types/results/Position.d.ts +50 -0
  413. package/www/types/results/Results.d.ts +295 -0
  414. package/www/types/results/TransactionInfo.d.ts +9 -0
  415. package/www/types/results/authenticity/Authenticity.d.ts +68 -0
  416. package/www/types/results/authenticity/AuthenticityCheck.d.ts +23 -0
  417. package/www/types/results/authenticity/AuthenticityElement.d.ts +26 -0
  418. package/www/types/results/authenticity/AuthenticityResult.d.ts +16 -0
  419. package/www/types/results/authenticity/CheckDiagnose.d.ts +242 -0
  420. package/www/types/results/authenticity/SecurityFeatureType.d.ts +110 -0
  421. package/www/types/results/barcode/BarcodeField.d.ts +37 -0
  422. package/www/types/results/barcode/BarcodeResult.d.ts +14 -0
  423. package/www/types/results/barcode/BarcodeStatus.d.ts +66 -0
  424. package/www/types/results/barcode/BarcodeType.d.ts +45 -0
  425. package/www/types/results/barcode/PDF417Info.d.ts +15 -0
  426. package/www/types/results/image_quality/ImageQuality.d.ts +18 -0
  427. package/www/types/results/image_quality/ImageQualityCheckType.d.ts +30 -0
  428. package/www/types/results/image_quality/ImageQualityGroup.d.ts +17 -0
  429. package/www/types/results/rfid/AccessControlProcedureType.d.ts +21 -0
  430. package/www/types/results/rfid/Application.d.ts +48 -0
  431. package/www/types/results/rfid/Attribute.d.ts +9 -0
  432. package/www/types/results/rfid/Authority.d.ts +11 -0
  433. package/www/types/results/rfid/CardProperties.d.ts +48 -0
  434. package/www/types/results/rfid/CertificateChain.d.ts +28 -0
  435. package/www/types/results/rfid/CertificateData.d.ts +7 -0
  436. package/www/types/results/rfid/DataField.d.ts +9 -0
  437. package/www/types/results/rfid/Extension.d.ts +7 -0
  438. package/www/types/results/rfid/File.d.ts +22 -0
  439. package/www/types/results/rfid/FileData.d.ts +9 -0
  440. package/www/types/results/rfid/RFIDAccessControlProcedureType.d.ts +18 -0
  441. package/www/types/results/rfid/RFIDCertificateType.d.ts +14 -0
  442. package/www/types/results/rfid/RFIDDataFileType.d.ts +108 -0
  443. package/www/types/results/rfid/RFIDSessionData.d.ts +48 -0
  444. package/www/types/results/rfid/RFIDValidity.d.ts +9 -0
  445. package/www/types/results/rfid/RFIDValue.d.ts +10 -0
  446. package/www/types/results/rfid/SecurityObject.d.ts +28 -0
  447. package/www/types/results/rfid/SecurityObjectCertificates.d.ts +8 -0
  448. package/www/types/results/rfid/SignerInfo.d.ts +41 -0
  449. package/www/types/results/status/AgeStatus.d.ts +14 -0
  450. package/www/types/results/status/CheckResult.d.ts +8 -0
  451. package/www/types/results/status/OpticalStatus.d.ts +29 -0
  452. package/www/types/results/status/RFIDStatus.d.ts +22 -0
  453. package/www/types/results/status/ResultsStatus.d.ts +32 -0
  454. package/www/types/results/visible_digital_seals/BytesData.d.ts +9 -0
  455. package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
  456. package/www/types/results/visible_digital_seals/LDSParsingErrorCodes.d.ts +134 -0
  457. package/www/types/results/visible_digital_seals/LDSParsingNotificationCodes.d.ts +237 -0
  458. package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
  459. package/www/types/results/visible_digital_seals/VDSNCData.d.ts +35 -0
  460. package/www/types/results/visual_results/Comparison.d.ts +15 -0
  461. package/www/types/results/visual_results/FieldType.d.ts +1328 -0
  462. package/www/types/results/visual_results/GraphicField.d.ts +29 -0
  463. package/www/types/results/visual_results/GraphicFieldType.d.ts +52 -0
  464. package/www/types/results/visual_results/GraphicResult.d.ts +10 -0
  465. package/www/types/results/visual_results/LCID.d.ts +173 -0
  466. package/www/types/results/visual_results/Lights.d.ts +23 -0
  467. package/www/types/results/visual_results/RFIDOrigin.d.ts +10 -0
  468. package/www/types/results/visual_results/Rect.d.ts +9 -0
  469. package/www/types/results/visual_results/Symbol.d.ts +14 -0
  470. package/www/types/results/visual_results/TextField.d.ts +40 -0
  471. package/www/types/results/visual_results/TextResult.d.ts +23 -0
  472. package/www/types/results/visual_results/TextSource.d.ts +15 -0
  473. package/www/types/results/visual_results/Validity.d.ts +13 -0
  474. package/www/types/results/visual_results/Value.d.ts +27 -0
  475. package/www/types/rfid/CAProtocol.d.ts +6 -0
  476. package/www/types/rfid/PAAttribute.d.ts +4 -0
  477. package/www/types/rfid/PACEProtocol.d.ts +5 -0
  478. package/www/types/rfid/PAResourcesIssuer.d.ts +7 -0
  479. package/www/types/rfid/PKDCertificate.d.ts +40 -0
  480. package/www/types/rfid/RFIDErrorCodes.d.ts +121 -0
  481. package/www/types/rfid/RFIDNotification.d.ts +156 -0
  482. package/www/types/rfid/TAChallenge.d.ts +7 -0
  483. package/www/types/rfid/TccParams.d.ts +25 -0
@@ -0,0 +1,242 @@
1
+ /**
2
+ * Enumeration contains identificators that determine the result of the
3
+ * text field comparison from different sources.
4
+ */
5
+ export declare enum CheckDiagnose {
6
+ /** Check was not performed. */
7
+ UNKNOWN = 0,
8
+ /** Check was ok. */
9
+ PASS = 1,
10
+ /** Invalid input data. */
11
+ INVALID_INPUT_DATA = 2,
12
+ /** Internal error in module. */
13
+ INTERNAL_ERROR = 3,
14
+ /** Exception caught */
15
+ EXCEPTION_IN_MODULE = 4,
16
+ /** Can't make reliable decision. */
17
+ UNCERTAIN_VERIFICATION = 5,
18
+ /** Image in necessary light is not found. */
19
+ NECESSARY_IMAGE_NOT_FOUND = 7,
20
+ /** Necessary side of photo not found. */
21
+ PHOTO_SIDES_NOT_FOUND = 8,
22
+ /** Invalid checksum. */
23
+ INVALID_CHECKSUM = 10,
24
+ /** Syntactical error. */
25
+ SYNTAX_ERROR = 11,
26
+ /** Logical error. */
27
+ LOGIC_ERROR = 12,
28
+ /** Comparison was incorrect. */
29
+ SOURCES_COMPARISON_ERROR = 13,
30
+ /** Logical error, e.g. the current date is less than issue date. */
31
+ FIELDS_COMPARISON_LOGIC_ERROR = 14,
32
+ /** Wrong field format. */
33
+ INVALID_FIELD_FORMAT = 15,
34
+ /** Element of the luminescense in the UV does not meet the standard. */
35
+ TRUE_LUMINISCENCE_ERROR = 20,
36
+ /** The presence of excess luminescence in UV. */
37
+ FALSE_LUMINISCENCE_ERROR = 21,
38
+ /** Pattern does not match the standard. */
39
+ FIXED_PATTERN_ERROR = 22,
40
+ /** Low contrast of object in transmitted IR light. */
41
+ LOW_CONTRAST_IN_IR_LIGHT = 23,
42
+ /** Background of page is too light or has invalid color. */
43
+ INCORRECT_BACKGROUND_LIGHT = 24,
44
+ /** Background lightness of two pages is different. */
45
+ BACKGROUND_COMPARISON_ERROR = 25,
46
+ /** Text has incorrect color of luminescence in UV light. */
47
+ INCORRECT_TEXT_COLOR = 26,
48
+ /** Invalid luminescence in photo area. */
49
+ PHOTO_FALSE_LUMINISCENCE = 27,
50
+ /** Object is too shifted from standard coordinates. */
51
+ TOO_MUCH_SHIFT = 28,
52
+ /** Contact chip type mismatch. */
53
+ CONTACT_CHIP_TYPE_MISMATCH = 29,
54
+ /** No protective fibers were found in UV. */
55
+ FIBERS_NOT_FOUND = 30,
56
+ /** Error finding fibers, too many objects. */
57
+ TOO_MANY_OBJECTS = 31,
58
+ /** Speck or exposure in UV image. */
59
+ SPECKS_IN_UV = 33,
60
+ /** Resolution too low for fibers search. */
61
+ TOO_LOW_RESOLUTION = 34,
62
+ /** Erroneous visibility of the element in IR. */
63
+ INVISIBLE_ELEMENT_PRESENT = 40,
64
+ /** Element is absent in IR. */
65
+ VISIBLE_ELEMENT_ABSENT = 41,
66
+ /** Element should be in color. */
67
+ ELEMENT_SHOULD_BE_COLORED = 42,
68
+ /** Element should be in grayscale. */
69
+ ELEMENT_SHOULD_BE_GRAYSCALE = 43,
70
+ PHOTO_WHITE_IR_DONT_MATCH = 44,
71
+ /** Glow paper in MRZ. */
72
+ UV_DULL_PAPER_MRZ = 50,
73
+ /** Luminescence characters in MRZ. */
74
+ FALSE_LUMINISCENCE_IN_MRZ = 51,
75
+ /** Glow in the field of photo paper. */
76
+ UV_DULL_PAPER_PHOTO = 52,
77
+ /** Glow of the whole paper form. */
78
+ UV_DULL_PAPER_BLANK = 53,
79
+ /** Glow of the document in UV. */
80
+ UV_DULL_PAPER_ERROR = 54,
81
+ /** Element of blank has luminescence. */
82
+ FALSE_LUMINISCENCE_IN_BLANK = 55,
83
+ /** Violation of the retro-reflective protection. */
84
+ BAD_AREA_IN_AXIAL = 60,
85
+ /** Invalid params for IPI check. */
86
+ FALSE_IPI_PARAMETERS = 65,
87
+ /** IR image too bright. */
88
+ FIELD_POS_CORRECTOR_HIGHLIGHT_IR = 80,
89
+ /** Glares in photo area. */
90
+ FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA = 81,
91
+ /** Photo replaced. */
92
+ FIELD_POS_CORRECTOR_PHOTO_REPLACED = 82,
93
+ /** Facial landmarks (eyes) check error. */
94
+ FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR = 83,
95
+ /** No facial image found. */
96
+ FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR = 84,
97
+ /** Facial image is found. */
98
+ FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR = 85,
99
+ CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION = 86,
100
+ /** Age check error. */
101
+ CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR = 87,
102
+ /** Sex check error. */
103
+ CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR = 88,
104
+ /** OVI object is not visible in IR. */
105
+ OVI_IR_INVISIBLE = 90,
106
+ /** Insufficient area of the object OVI. */
107
+ OVI_INSUFFICIENT_AREA = 91,
108
+ /** OVI color of an object does not change. */
109
+ OVI_COLOR_INVARIABLE = 92,
110
+ /** Impossible to determine the color of the AXIAL image. */
111
+ OVI_BAD_COLOR_FRONT = 93,
112
+ /** Impossible to determine the color of the WHITE image. */
113
+ OVI_BAD_COLOR_SIDE = 94,
114
+ /** Wide color spread. */
115
+ OVI_WIDE_COLOR_SPREAD = 95,
116
+ /** Not enough color information. */
117
+ OVI_BAD_COLOR_PERCENT = 96,
118
+ /** Hologram element absent. */
119
+ HOLOGRAM_ELEMENT_ABSENT = 100,
120
+ /** There are no side or top images. Check cancelled. */
121
+ HOLOGRAM_SIDE_TOP_IMAGES_ABSENT = 101,
122
+ /** Hologram element present. */
123
+ HOLOGRAM_ELEMENT_PRESENT = 102,
124
+ HOLOGRAM_FRAMES_IS_ABSENT = 103,
125
+ HOLOGRAM_HOLO_FIELD_IS_ABSENT = 104,
126
+ /** Pattern is interrupted. */
127
+ PHOTO_PATTERN_INTERRUPTED = 110,
128
+ /** Some of the patterns are shifted relative to each other. */
129
+ PHOTO_PATTERN_SHIFTED = 111,
130
+ /** Some parts of the pattern have different color. */
131
+ PHOTO_PATTERN_DIFFERENT_COLORS = 112,
132
+ /** Pattern visible in the infrared. */
133
+ PHOTO_PATTERN_IR_VISIBLE = 113,
134
+ /** Edge of the photo does not intersect with the pattern. Check cancelled. */
135
+ PHOTO_PATTERN_NOT_INTERSECT = 114,
136
+ /** Size of the photo does not correspond to requirements. */
137
+ PHOTO_SIZE_IS_WRONG = 115,
138
+ /** Some parts of the pattern have invalid color. */
139
+ PHOTO_PATTERN_INVALID_COLOR = 116,
140
+ /** Some patterns are relatively shifted. */
141
+ PHOTO_PATTERN_SHIFTED_VERT = 117,
142
+ /** Not found Pattern. Check cancelled. */
143
+ PHOTO_PATTERN_PATTERN_NOT_FOUND = 118,
144
+ /** Different lines thickness. */
145
+ PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS = 119,
146
+ /** Photo shape is not rectangular. */
147
+ PHOTO_IS_NOT_RECTANGLE = 120,
148
+ /** Photo corners don't meet the requirements. */
149
+ PHOTO_CORNERS_IS_WRONG = 121,
150
+ /** For internal use only. */
151
+ DOCUMENT_IS_CANCELLING = 122,
152
+ /**Text color should be blue. */
153
+ TEXT_COLOR_SHOULD_BE_BLUE = 130,
154
+ /** Text color should be green. */
155
+ TEXT_COLOR_SHOULD_BE_GREEN = 131,
156
+ /** Text color should be red. */
157
+ TEXT_COLOR_SHOULD_BE_RED = 132,
158
+ /** Text should be black. */
159
+ TEXT_SHOULD_BE_BLACK = 133,
160
+ /** Security text is absent. */
161
+ SECURITY_TEXT_IS_ABSENT = 134,
162
+ /** Barcode read with errors. */
163
+ BARCODE_WAS_READ_WITH_ERRORS = 140,
164
+ /** Barcode data format error. */
165
+ BARCODE_DATA_FORMAT_ERROR = 141,
166
+ /** Barcode size parameters error. */
167
+ BARCODE_SIZE_PARAMS_ERROR = 142,
168
+ /** Not all barcodes read. */
169
+ NOT_ALL_BARCODES_READ = 143,
170
+ /** Glares in barcode area. */
171
+ GLARES_IN_BARCODE_AREA = 144,
172
+ CHD_NO_CERTIFICATE_FOR_DIGITAL_SIGNATURE_CHECK = 145,
173
+ /** Portraits differ. */
174
+ PORTRAIT_COMPARISON_PORTRAITS_DIFFER = 150,
175
+ /** No reply from portrait comparison service. */
176
+ PORTRAIT_COMPARISON_NO_SERVICE_REPLY = 151,
177
+ /** Portrait comparison service error. */
178
+ PORTRAIT_COMPARISON_SERVICE_ERROR = 152,
179
+ /** Not enough images. */
180
+ PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES = 153,
181
+ /** No image from camera. */
182
+ PORTRAIT_COMPARISON_NO_LIVE_PHOTO = 154,
183
+ /** No license on portrait comparison service. */
184
+ PORTRAIT_COMPARISON_NO_SERVICE_LICENSE = 155,
185
+ /** No portraits detected */
186
+ PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED = 156,
187
+ /** Unsuitable light conditions. */
188
+ MOBILE_IMAGES_UNSUITABLE_LIGHT_CONDITIONS = 160,
189
+ /** No difference in visible and UV mobile images. Possible UV torch malfunction. */
190
+ MOBILE_IMAGES_WHITE_UV_NO_DIFFERENCE = 161,
191
+ /** Fingerprints comparison mismatch. */
192
+ FINGERPRINTS_COMPARISON_MISMATCH = 170,
193
+ /** Face isn't detected. */
194
+ HOLO_PHOTO_FACE_NOT_DETECTED = 180,
195
+ /** Face comparison failed. */
196
+ HOLO_PHOTO_FACE_COMPARISON_FAILED = 181,
197
+ /** Glare in center absent. */
198
+ HOLO_PHOTO_FACE_GLARE_IN_CENTER_ABSENT = 182,
199
+ /** Hologram element shape error. */
200
+ HOLO_ELEMENT_SHAPE_ERROR = 183,
201
+ /** Algorithm steps error. */
202
+ ALGORITHM_STEPS_ERROR = 184,
203
+ /** Hologram areas not loaded. */
204
+ HOLO_AREAS_NOT_LOADED = 185,
205
+ /** Hologram check finished by time out. */
206
+ FINISHED_BY_TIMEOUT = 186,
207
+ HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME = 187,
208
+ LIVENESS_DEPTH_CHECK_FAILED = 190,
209
+ /** Hologram check finished by time out. */
210
+ MRZ_QUALITY_WRONG_SYMBOL_POSITION = 200,
211
+ /** Wrong background. */
212
+ MRZ_QUALITY_WRONG_BACKGROUND = 201,
213
+ MRZ_QUALITY_WRONG_MRZ_WIDTH = 202,
214
+ MRZ_QUALITY_WRONG_MRZ_HEIGHT = 203,
215
+ MRZ_QUALITY_WRONG_LINE_POSITION = 204,
216
+ MRZ_QUALITY_WRONG_FONT_TYPE = 205,
217
+ OCR_QUALITY_TEXT_POSITION = 220,
218
+ OCR_QUALITY_INVALID_FONT = 221,
219
+ OCR_QUALITY_INVALID_BACKGROUND = 222,
220
+ LAS_INK_INVALID_LINES_FREQUENCY = 230,
221
+ DOC_LIVENESS_DOCUMENT_NOT_LIVE = 238,
222
+ CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED = 239,
223
+ /** Traces of an electronic device were found in the image. */
224
+ DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED = 240,
225
+ /** Invalid barcode background. */
226
+ DOC_LIVENESS_INVALID_BARCODE_BACKGROUND = 241,
227
+ /** Virtual camera was detected. */
228
+ DOC_LIVENESS_VIRTUAL_CAMERA_DETECTED = 242,
229
+ ICAO_IDB_BASE_32_ERROR = 243,
230
+ ICAO_IDB_ZIPPED_ERROR = 244,
231
+ ICAO_IDB_MESSAGE_ZONE_EMPTY = 245,
232
+ ICAO_IDB_SIGNATURE_MUST_BE_PRESENT = 246,
233
+ ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT = 247,
234
+ ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT = 248,
235
+ /** Incorrect object color. */
236
+ INCORRECT_OBJECT_COLOR = 250,
237
+ PROPERTY_NO_SIGNATURE = 260,
238
+ PROPERTY_TEXT_AS_SIGNATURE = 261,
239
+ PROPERTY_FINGERPRINT_AS_SIGNATURE = 262,
240
+ PROPERTY_DOCUMENT_DAMAGED = 263,
241
+ PROPERTY_DOCUMENT_CANCELLED = 264,
242
+ }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Enumeration contains identifiers that determine the types of elements
3
+ * for the document authenticity check.
4
+ */
5
+ export declare enum SecurityFeatureType {
6
+ /** Will be returned if getByValue if a non-existent was passed. */
7
+ UNKNOWN = -2,
8
+ NONE = -1,
9
+ /** Blank element. */
10
+ BLANK = 0,
11
+ /** Personalization element. */
12
+ FILL = 1,
13
+ /** Photo. */
14
+ PHOTO = 2,
15
+ /** MRZ. */
16
+ MRZ = 3,
17
+ /** Photo surrounding area. */
18
+ FALSE_LUMINESCENCE = 4,
19
+ /** Reserved for internal use. */
20
+ HOLO_SIMPLE = 5,
21
+ /** Reserved for internal use. */
22
+ HOLO_VERIFY_STATIC = 6,
23
+ /** Reserved for internal use. */
24
+ HOLO_VERIFY_MULTI_STATIC = 7,
25
+ /** Reserved for internal use. */
26
+ HOLO_VERIFY_DINAMIC = 8,
27
+ /** Reserved for internal use. */
28
+ PATTERN_NOT_INTERRUPTED = 9,
29
+ /** Reserved for internal use. */
30
+ PATTERN_NOT_SHIFTED = 10,
31
+ /** Reserved for internal use. */
32
+ PATTERN_SAME_COLORS = 11,
33
+ /** Reserved for internal use. */
34
+ PATTERN_IR_INVISIBLE = 12,
35
+ /** Reserved for internal use. */
36
+ PHOTO_SIZE_CHECK = 13,
37
+ /** Main portrait and ghost portrait comparison. */
38
+ PORTRAIT_COMPARISON_VS_GHOST = 14,
39
+ /** Main portrait and RFID portrait comparison. */
40
+ PORTRAIT_COMPARISON_VS_RFID = 15,
41
+ /** Main portrait and other page portrait comparison. */
42
+ PORTRAIT_COMPARISON_VS_VISUAL = 16,
43
+ /** Barcode format check. */
44
+ BARCODE = 17,
45
+ /** Different lines thickness. */
46
+ PATTERN_DIFFERENT_LINES_THICKNESS = 18,
47
+ /** Portrait comparison with image from camera. */
48
+ PORTRAIT_COMPARISON_VS_CAMERA = 19,
49
+ /** Portrait comparison with image from RFID. */
50
+ PORTRAIT_COMPARISON_RFID_VS_CAMERA = 20,
51
+ /** Ghost photo. */
52
+ GHOST_PHOTO = 21,
53
+ /** Clear ghost photo. */
54
+ CLEAR_GHOST_PHOTO = 22,
55
+ /** Invisible object. */
56
+ INVISIBLE_OBJECT = 23,
57
+ /** Low contrast object. */
58
+ LOW_CONTRAST_OBJECT = 24,
59
+ /** Photo color type. */
60
+ PHOTO_COLOR = 25,
61
+ /** Photo squareness check. */
62
+ PHOTO_SHAPE = 26,
63
+ /** Photo corners shape. */
64
+ PHOTO_CORNERS = 27,
65
+ DOCUMENT_CANCELLING_DETECTOR = 28,
66
+ OCR = 28,
67
+ PORTRAIT_COMPARISON_EXTVS_VISUAL = 29,
68
+ PORTRAIT_COMPARISON_EXTVS_RFID = 30,
69
+ PORTRAIT_COMPARISON_EXTVS_LIVE = 31,
70
+ LIVENESS_DEPTH = 32,
71
+ MICROTEXT = 33,
72
+ FLUORESCENT_OBJECT = 34,
73
+ LANDMARKS_CHECK = 35,
74
+ FACE_PRESENCE = 36,
75
+ FACE_ABSENCE = 38,
76
+ LIVENESS_SCREEN_CAPTURE = 39,
77
+ /** Checking the presence of a device that could be used for document capturing. */
78
+ LIVENESS_ELECTRONIC_DEVICE = 40,
79
+ LIVENESS_OVI = 41,
80
+ BARCODE_SIZE_CHECK = 42,
81
+ LAS_INK = 43,
82
+ LIVENESS_MLI = 44,
83
+ LIVENESS_BARCODE_BACKGROUND = 45,
84
+ /** Visual zone portrait image vs. image from barcode. */
85
+ PORTRAIT_COMPARISON_VS_BARCODE = 46,
86
+ /** Image from barcode vs. image from RFID. */
87
+ PORTRAIT_COMPARISON_RFID_VS_BARCODE = 47,
88
+ /** Image from barcode vs. external source image. */
89
+ PORTRAIT_COMPARISON_EXT_VS_BARCODE = 48,
90
+ /** Image from barcode vs. photo from camera. */
91
+ PORTRAIT_COMPARISON_BARCODE_VS_CAMERA = 49,
92
+ /** Digital signature сheck. */
93
+ CHECK_DIGITAL_SIGNATURE = 50,
94
+ /** Contact сhip check. */
95
+ CONTACT_CHIP_CLASSIFICATION = 51,
96
+ HEAD_POSITION_CHECK = 52,
97
+ LIVENESS_BLACK_AND_WHITE_COPY_CHECK = 53,
98
+ LIVENESS_DYNAPRINT = 54,
99
+ LIVENESS_GEOMETRY_CHECK = 55,
100
+ /** Age check. */
101
+ AGE_CHECK = 56,
102
+ /** Sex check. */
103
+ SEX_CHECK = 57,
104
+ PORTRAIT_COMPARISON_RFIDVSGHOST = 58,
105
+ PORTRAIT_COMPARISON_BARCODEVSGHOST = 59,
106
+ PORTRAIT_COMPARISON_GHOSTVSLIVE = 60,
107
+ PORTRAIT_COMPARISON_EXTVSGHOST = 61,
108
+ SIGNATURE_PRESENCE = 62,
109
+ DAMAGE_CHECK = 63,
110
+ }
@@ -0,0 +1,37 @@
1
+ import { BarcodeStatus } from "./BarcodeStatus";
2
+ import { BarcodeType } from "./BarcodeType";
3
+ import { PDF417Info } from "./PDF417Info";
4
+
5
+ /**
6
+ * Structure describing single value of the field.
7
+ */
8
+ export declare class BarcodeField {
9
+ /**
10
+ * Decoded barcode type.
11
+ */
12
+ readonly barcodeType: BarcodeType;
13
+ /**
14
+ * Indicates barcode reading result.
15
+ */
16
+ readonly status: BarcodeStatus;
17
+ /**
18
+ * Contains the information about the PDF417 barcode.
19
+ */
20
+ readonly pdf417Info?: PDF417Info;
21
+ /**
22
+ * Results of reading data from barcode modules.
23
+ *
24
+ * Base64 string.
25
+ */
26
+ readonly data?: string;
27
+ /**
28
+ * Indicates an index of the document page, whence the result is received.
29
+ */
30
+ readonly pageIndex: number;
31
+
32
+ /**
33
+ * Allows you to deserialize object.
34
+ * @param jsonObject
35
+ */
36
+ static fromJson(jsonObject: any): BarcodeField | null;
37
+ }
@@ -0,0 +1,14 @@
1
+ import { BarcodeField } from "./BarcodeField";
2
+
3
+ /**
4
+ * Structure, describing single barcode extracted.
5
+ */
6
+ export declare class BarcodeResult {
7
+ readonly fields: BarcodeField[];
8
+
9
+ /**
10
+ * Allows you to deserialize object.
11
+ * @param jsonObject
12
+ */
13
+ static fromJson(jsonObject: any): BarcodeResult | null;
14
+ }
@@ -0,0 +1,66 @@
1
+ export declare enum BarcodeStatus {
2
+ /** Will be returned if getByValue if a non-existent was passed. */
3
+ UNKNOWN = -1,
4
+ /** No error. */
5
+ NO_ERR = 0,
6
+ /** Invalid result. */
7
+ INVALID_RESULT = 140,
8
+ /** Null pointer of input arg/param error. */
9
+ NULL_PTR_ERR = -6001,
10
+ /** Function arg/param is bad. */
11
+ BAD_ARG_ERR = -6002,
12
+ /** Wrong value of data size. */
13
+ SIZE_ERR = -6003,
14
+ /** Bad values of any parameter range. */
15
+ RANGE_ERR = -6004,
16
+ /** Internal program error. */
17
+ INTERNAL_ERR = -6005,
18
+ /** try-except process. */
19
+ TRY_EXCEPT_ERR = -6006,
20
+ /** Barcode detection error. */
21
+ BAR_CODE_NOT_FOUND = -6008,
22
+ /** Barcode decoding error. */
23
+ BAR_CODE_DECODE_ERR = -6010,
24
+ /** "ImageProcess.dll" connection error. */
25
+ NO_USER_DLL_FOUND = -6019,
26
+ /** IPP Dll connection error. */
27
+ NO_IPP_DLL_FOUND = -6020,
28
+ /** Run-time error in IPP-function. */
29
+ IPP_EXEC_ERR = -6024,
30
+ /** try-except execution in IPP-function. */
31
+ IPP_TRY_EXCEPT_ERR = -6025,
32
+ /** Input data error. */
33
+ BARCODE_ERROR_INPUT_PARAM = -11001,
34
+ /** Initialization error. */
35
+ BARCODE_ERROR_FINIT = -11006,
36
+ /** "IpDecode.dll" connection error. */
37
+ BARCODE_ERROR_NOT_LOAD_IP_DECODED_LL = -11012,
38
+ /** Internal program error. */
39
+ BARCODE_ERROR_INNER_PROBLEM = -11100,
40
+ /** 1D-barcode decoding error. */
41
+ BARCODE_ERROR_DECODE_1D_BAD_DECODE = -11200,
42
+ /** Row or Column count computational error (PDF417). */
43
+ BARCODE_ERROR_FIND_ROW_OR_COLUMN = -11201,
44
+ /** MinX computational error (PDF417). */
45
+ BARCODE_ERROR_FIND_3X8_2D_X = -11202,
46
+ /** MinY computational error (PDF417). */
47
+ BARCODE_ERROR_FIND_3X8_2D_Y = -11203,
48
+ /** Invalid barcode angle (> 3 degree). */
49
+ BARCODE_ERROR_2D_UGOL_MAX = -11204,
50
+ /** The result may contain decoding errors. */
51
+ BARCODE_ERROR_INDEFINITELY_DECODED = -11210,
52
+ /** Dll initialization error. */
53
+ BARCODE_ERROR_DLL_NOT_INIT = -11300,
54
+ /** try-except in IPDECODE-function. */
55
+ BARCODE_ERROR_IP_DECODE_DLL_Try_Except = -11400,
56
+ /** Too many invalid code words. */
57
+ IPDECODE_ERROR_LARGEERRORS = -4503,
58
+ /** Invalid number of columns. */
59
+ IPDECODE_ERROR_FAULTCOLUMNS = -4504,
60
+ /** Invalid number of rows. */
61
+ IPDECODE_ERROR_FAULTROWS = -4505,
62
+ /** Correction Level error. */
63
+ IPDECODE_ERROR_INCORRECT_ERROR_LEVEL = -4511,
64
+ /** Loading "DevTable.bin" error. */
65
+ IPDECODE_ERROR_LOADING_DEV_TABLE = -4512,
66
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Enumeration contains the types of barcodes that can be processed.
3
+ */
4
+ export declare enum BarcodeType {
5
+ /** Unknown. */
6
+ UNKNOWN = 0,
7
+ /** One-dimensional barcode, ISO 15417 (ANSI/AIM BC4-1999 Code 128). */
8
+ BCT_CODE128 = 1,
9
+ /** One-dimensional barcode, ISO 16388 (ANSI/AIM BC1-1995 Code 39). */
10
+ CODE39 = 2,
11
+ /** One-dimensional barcode, EAN8, ISO 15418. */
12
+ EAN8 = 3,
13
+ /** One-dimensional barcode, Interleaved 2 of 5, ISO 16390 (ANSI/AIM BC2-1995 Interleaved 2 of 5). */
14
+ ITF = 4,
15
+ /** Two-dimensional barcode, ISO 15438 (AIM USS PDF417). */
16
+ PDF417 = 5,
17
+ /** One-dimensional barcode, Standard 2 of 5 (Industrial). */
18
+ STF = 6,
19
+ /** One-dimensional barcode, Matrix 2 of 5. */
20
+ MTF = 7,
21
+ /** One-dimensional barcode, IATA 2 of 5 (Airline). */
22
+ IATA = 8,
23
+ /** One-dimensional barcode, (ANSI/AIM BC3-1995, USS - Codabar). */
24
+ CODABAR = 9,
25
+ /** One-dimensional barcode, UPC-A. */
26
+ UPCA = 10,
27
+ /** One-dimensional barcode, (ANSI/AIM BC5-1995, USS - Code 93). */
28
+ CODE93 = 11,
29
+ /** One-dimensional barcode, UPC-E. */
30
+ UPCE = 12,
31
+ /** One-dimensional barcode, EAN13, ISO 15418. */
32
+ EAN13 = 13,
33
+ /** Two-dimensional QR barcode. */
34
+ QRCODE = 14,
35
+ /** Two-dimensional AZTEC barcode. */
36
+ AZTEC = 15,
37
+ /** Two-dimensional DATAMATRIX barcode. */
38
+ DATAMATRIX = 16,
39
+ /** One-dimensional barcodes. */
40
+ ALL_1D = 17,
41
+ /** One-dimensional barcode, Code 11. */
42
+ CODE11 = 18,
43
+ /** Two-dimensional barcode, JAB Code */
44
+ JABCODE = 19,
45
+ }
@@ -0,0 +1,15 @@
1
+ export declare class PDF417Info {
2
+ /** Barcode error correction level. */
3
+ readonly errorLevel: number;
4
+ /** Number of columns in a barcode. */
5
+ readonly columns: number;
6
+ /** Number of rows in a barcode. */
7
+ readonly rows: number;
8
+
9
+ /**
10
+ * Allows you to deserialize object.
11
+ * @param jsonObject
12
+ */
13
+ static fromJson(jsonObject: any): PDF417Info | null;
14
+
15
+ }
@@ -0,0 +1,18 @@
1
+ import { CheckResult } from "../status/CheckResult";
2
+ import { Rect } from "../visual_results/Rect";
3
+ import { ImageQualityCheckType } from "./ImageQualityCheckType";
4
+
5
+ /** Structure, containing information about single image quality check. */
6
+ export declare class ImageQuality {
7
+ /** Check result. */
8
+ readonly featureType: number;
9
+ /** Check result. */
10
+ readonly result: CheckResult;
11
+ /** Check result type. */
12
+ readonly type: ImageQualityCheckType;
13
+ /** Coordinates of glares. */
14
+ readonly boundRects: Rect[];
15
+
16
+ /** Allows you to deserialize object. */
17
+ static fromJson(jsonObject: any): ImageQuality | null;
18
+ }
@@ -0,0 +1,30 @@
1
+ export declare enum ImageQualityCheckType {
2
+ /** Will be returned if a non-existent value was passed. */
3
+ UNKNOWN = -1,
4
+ /** Glares presence check. */
5
+ IMAGE_GLARES = 0,
6
+ /** Focus quality check. */
7
+ IMAGE_FOCUS = 1,
8
+ /** Image resolution check. */
9
+ IMAGE_RESOLUTION = 2,
10
+ /** Image colorness check. */
11
+ IMAGE_COLORNESS = 3,
12
+ /** Image perspective check, i.e. the deviation of the corners of the document from the value of 90 degrees is checked. */
13
+ PERSPECTIVE = 4,
14
+ /** Image quality check if the whole document page is completely within the image. */
15
+ BOUNDS = 5,
16
+ /** Image moire check. */
17
+ SCREEN_CAPTURE = 6,
18
+ /** Portrait image check. */
19
+ PORTRAIT = 7,
20
+ /** Handwritten image check. */
21
+ HANDWRITTEN = 8,
22
+ /** Signals whether the document image is bright enough. */
23
+ BRIGHTNESS = 9,
24
+ /** Document occlusion check. */
25
+ OCCLUSION = 10
26
+ }
27
+
28
+ export declare namespace ImageQualityCheckType {
29
+ function getTranslation(value: ImageQualityCheckType): Promise<string>;
30
+ }
@@ -0,0 +1,17 @@
1
+ import { CheckResult } from "../status/CheckResult";
2
+ import { ImageQuality } from "./ImageQuality";
3
+
4
+ /** Structure, containing overall data about quality checks performed. */
5
+ export declare class ImageQualityGroup {
6
+ /** Number of results. */
7
+ readonly count: number;
8
+ /** Overall check result for document page. */
9
+ readonly result: CheckResult;
10
+ /** An array of single check result pointers. */
11
+ readonly imageQualityList: ImageQuality[];
12
+ /** Index of the document page, whence the result is received. */
13
+ readonly pageIndex: number;
14
+
15
+ /** Allows you to deserialize object. */
16
+ static fromJson(jsonObject: any): ImageQuality | null;
17
+ }
@@ -0,0 +1,21 @@
1
+ import { RFIDErrorCodes } from "../../rfid/RFIDErrorCodes";
2
+ import { RFIDAccessControlProcedureType } from "./RFIDAccessControlProcedureType";
3
+
4
+ /**
5
+ * Structure is used to describe the results of a single authentication
6
+ * procedure or a procedure of secure data access within the context
7
+ * of the communication session with electronic document.
8
+ */
9
+ export declare class AccessControlProcedureType {
10
+ /** Index of the active variant of the procedure. */
11
+ readonly activeOptionIdx: number;
12
+ /** List of remarks arisen during the procedure. */
13
+ readonly notifications: number[];
14
+ /** Procedure status. */
15
+ readonly status: RFIDErrorCodes;
16
+ /** Procedure type. */
17
+ readonly type: RFIDAccessControlProcedureType;
18
+
19
+ /** Allows you to deserialize object. */
20
+ static fromJson(jsonObject: any): AccessControlProcedureType | null;
21
+ }
@@ -0,0 +1,48 @@
1
+ import { File } from "./File";
2
+ import { RFIDErrorCodes } from '../../rfid/RFIDErrorCodes';
3
+
4
+ /**
5
+ * Structure is used to describe the contents of a single LDS applica-tion
6
+ * and their analysis within the context of the communication session with
7
+ * electronic document.
8
+ */
9
+ export declare class Application {
10
+ /** Application identifier. */
11
+ readonly applicationID?: string;
12
+ /** Algorithm for calculating hash values for files for the proce-dure of PA. */
13
+ readonly dataHashAlgorithm?: string;
14
+ /** List of containers to store information about the read files of the application. */
15
+ readonly files: File[];
16
+ /** Status of the application selection procedure. */
17
+ readonly status: RFIDErrorCodes;
18
+ /** Type of application of electronic document. */
19
+ readonly type: RFIDApplicationType;
20
+ /** Unicode version for application. */
21
+ readonly unicodeVersion?: string;
22
+ /** Application version. */
23
+ readonly version?: string;
24
+
25
+ /** Allows you to deserialize object. */
26
+ static fromJson(jsonObject: any): Application | null;
27
+ }
28
+
29
+ /** Type of application of electronic document. */
30
+ export declare enum RFIDApplicationType {
31
+ UNSPECIFIED = 0,
32
+ ROOT_FILES = 0,
33
+ /** ePassport. */
34
+ E_PASSPORT = 1,
35
+ E_ID = 2,
36
+ E_SIGN = 3,
37
+ E_DL = 4,
38
+ /** Travel Records. */
39
+ LDS2_TRAVEL_RECORDS = 5,
40
+ /** Visa Records. */
41
+ LDS2_VISA_RECORDS = 6,
42
+ /** Add Biometrics. */
43
+ LDS2_ADD_BIOMETRICS = 7,
44
+ /** eDTC PC. */
45
+ E_DTC_PC = 8,
46
+ APPLET_ROOT = 50,
47
+ USER_DEFINED = 100,
48
+ }
@@ -0,0 +1,9 @@
1
+ import { RFIDValue } from './RFIDValue';
2
+
3
+ export declare class Attribute {
4
+ readonly type?: string;
5
+ readonly value?: RFIDValue;
6
+
7
+ /** Allows you to deserialize object. */
8
+ static fromJson(jsonObject: any): Attribute | null;
9
+ }