@microblink/blinkid-react-native 7.7.0 → 8001.0.0

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 (234) hide show
  1. package/BlinkidReactNative.podspec +2 -1
  2. package/README.md +621 -281
  3. package/android/build.gradle +56 -4
  4. package/android/gradle.properties +3 -4
  5. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdClassInfoIdMappings.kt +33 -0
  6. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +370 -258
  7. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +149 -41
  8. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +54 -31
  9. package/ios/BlinkidReactNative.mm +49 -52
  10. package/ios/BlinkidReactNativeModule.swift +114 -57
  11. package/ios/Frameworks/BlinkID.xcframework/Info.plist +5 -9
  12. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
  13. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +893 -13
  14. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
  15. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64.swiftdoc +0 -0
  16. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios.private.swiftinterface → arm64.swiftinterface} +2421 -2076
  17. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.modulemap +1 -7
  18. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivacyInfo.xcprivacy +0 -0
  19. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
  20. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +893 -13
  21. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
  22. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64.swiftdoc +0 -0
  23. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios-simulator.swiftinterface → arm64.swiftinterface} +2421 -2076
  24. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64.swiftdoc +0 -0
  25. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/{x86_64-apple-ios-simulator.private.swiftinterface → x86_64.swiftinterface} +2421 -2076
  26. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.modulemap +1 -7
  27. package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
  28. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
  29. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +276 -276
  30. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
  31. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
  32. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  33. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  34. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  35. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  36. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  37. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  38. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  39. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  40. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  41. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  42. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  43. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  44. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  45. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  46. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  47. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  48. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  49. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  50. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  51. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  52. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  53. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  54. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  55. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  56. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  57. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  58. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  59. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  60. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  61. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  62. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  63. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  64. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  65. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  66. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  67. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  68. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  69. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  70. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  71. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  72. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  73. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  74. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  75. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  76. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  77. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  78. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  79. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  80. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  81. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  82. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  83. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  84. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  85. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  86. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  87. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  88. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  89. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  90. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
  91. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +3860 -1881
  92. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +87 -69
  93. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +87 -69
  94. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  95. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +87 -69
  96. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
  97. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  98. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  99. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
  100. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +114 -114
  101. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  102. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  103. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  104. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  105. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  106. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  107. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  108. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  109. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  110. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  111. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  112. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  113. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  114. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  115. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  116. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  117. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  118. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  119. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  120. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  121. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  122. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  123. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  124. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  125. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  126. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  127. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  128. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  129. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  130. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  131. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  132. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  133. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  134. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  135. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  136. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  137. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  138. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  139. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  140. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  141. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  142. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  143. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  144. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  145. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  146. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  147. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  148. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  149. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  150. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  151. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  152. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  153. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  154. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  155. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  156. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  157. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
  158. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +3860 -1881
  159. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +87 -69
  160. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +87 -69
  161. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  162. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +87 -69
  163. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +3860 -1881
  164. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +87 -69
  165. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +87 -69
  166. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  167. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +87 -69
  168. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
  169. package/ios/Serialization/BlinkIdDeserializationUtils.swift +614 -0
  170. package/ios/{BlinkIdSerializationUtilities.swift → Serialization/BlinkIdSerializationUtils.swift} +294 -255
  171. package/lib/module/NativeBlinkidReactNative.js.map +1 -1
  172. package/lib/module/blinkIdResult.js +1 -822
  173. package/lib/module/blinkIdResult.js.map +1 -1
  174. package/lib/module/blinkIdSettings.js +1 -496
  175. package/lib/module/blinkIdSettings.js.map +1 -1
  176. package/lib/module/index.js +94 -17
  177. package/lib/module/index.js.map +1 -1
  178. package/lib/module/types.js +715 -3373
  179. package/lib/module/types.js.map +1 -1
  180. package/lib/typescript/src/NativeBlinkidReactNative.d.ts +36 -5
  181. package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
  182. package/lib/typescript/src/blinkIdResult.d.ts +17 -20
  183. package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
  184. package/lib/typescript/src/blinkIdSettings.d.ts +195 -317
  185. package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -1
  186. package/lib/typescript/src/index.d.ts +48 -10
  187. package/lib/typescript/src/index.d.ts.map +1 -1
  188. package/lib/typescript/src/types.d.ts +1062 -1210
  189. package/lib/typescript/src/types.d.ts.map +1 -1
  190. package/package.json +5 -4
  191. package/src/NativeBlinkidReactNative.ts +39 -5
  192. package/src/blinkIdResult.ts +19 -466
  193. package/src/blinkIdSettings.ts +218 -389
  194. package/src/index.tsx +221 -35
  195. package/src/types.ts +1253 -1463
  196. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  197. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  198. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  199. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  200. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  201. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  202. package/android/.gradle/8.9/gc.properties +0 -0
  203. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  204. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  205. package/android/.gradle/vcs-1/gc.properties +0 -0
  206. package/android/.project +0 -28
  207. package/ios/BlinkIdDeserializationUtilities.swift +0 -374
  208. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +0 -43937
  209. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  210. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +0 -78651
  211. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  212. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +0 -2304
  213. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.private.modulemap +0 -12
  214. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +0 -19
  215. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +0 -245
  216. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +0 -40
  217. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +0 -87870
  218. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  219. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -78651
  220. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -2304
  221. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  222. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -78651
  223. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  224. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -2304
  225. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.private.modulemap +0 -12
  226. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +0 -19
  227. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +0 -300
  228. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +0 -40
  229. package/lib/module/blinkIdUtilities.js +0 -21
  230. package/lib/module/blinkIdUtilities.js.map +0 -1
  231. package/lib/typescript/src/blinkIdUtilities.d.ts +0 -8
  232. package/lib/typescript/src/blinkIdUtilities.d.ts.map +0 -1
  233. package/src/android/.project +0 -28
  234. package/src/blinkIdUtilities.ts +0 -20
@@ -1,459 +1,348 @@
1
- import {
2
- DetectionLevel,
3
- AnonymizationMode,
1
+ import type {
4
2
  ScanningMode,
5
- DocumentRules,
6
- DocumentAnonymizationSettings,
7
- RecognitionModeFilter,
8
3
  PreferredCamera,
4
+ DocumentCaptureModuleSettings,
5
+ MrzModuleSettings,
6
+ BarcodeModuleSettings,
7
+ VizModuleSettings,
9
8
  } from "./types";
10
9
 
11
10
  /**
12
- * Settings for the initialization of the BlinkID SDK.
13
- *
11
+ * Network timeouts for SDK resource downloads. Values are in milliseconds.
12
+ * Omit unset fields to keep the native SDK default for that timeout (30 seconds
13
+ * on current BlinkID native SDKs).
14
14
  */
15
- export class BlinkIdSdkSettings {
16
- /**
17
- * License key for the native SDK.
18
- *
19
- */
20
- licenseKey: string;
21
-
22
- /**
23
- * Optional licensee string if the provided license key is not tied to the single application ID.
24
- */
25
- licensee?: string;
15
+ export type RequestTimeout = {
16
+ connectionTimeoutMilliseconds?: number;
17
+ writeTimeoutMilliseconds?: number;
18
+ readTimeoutMilliseconds?: number;
19
+ };
26
20
 
21
+ /**
22
+ * Configuration for base (non-OTA) SDK resources: download, cache location, and timeouts.
23
+ *
24
+ * Maps to native `ResourcesConfig` on Android and `ResourcesConfig` /
25
+ * `resourcesConfiguration` on iOS.
26
+ *
27
+ * When omitted on {@link BlinkIdSdkSettings}, the native SDK defaults are used
28
+ * (`download: true`, platform default `serviceUrl` / `localFolder`, default timeouts).
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const sdkSettings: BlinkIdSdkSettings = {
33
+ * licenseKey,
34
+ * resourcesConfig: { download: true },
35
+ * };
36
+ * ```
37
+ */
38
+ export type ResourcesConfig = {
27
39
  /**
28
- * Whether resources required for on-device image processing should be downloaded and cached
29
- * on first initialization of the SDK.
40
+ * Whether resources required for on-device image processing should be downloaded
41
+ * and cached on first initialization of the SDK.
30
42
  *
31
- * If set to false, you need to package all the required
32
- * resources in your application's assets.
43
+ * If `false`, package the required resources in the app (Android assets /
44
+ * iOS bundle) and set {@link localFolder} / {@link bundleIdentifier} as needed.
33
45
  *
46
+ * Default: `true`.
34
47
  */
35
- downloadResources?: boolean;
48
+ download?: boolean;
36
49
 
37
50
  /**
38
- * If resources are to be downloaded, the following is the URL where the resources are hosted.
51
+ * URL where base resources are hosted when {@link download} is enabled.
39
52
  *
40
- * URL: `"https://models.cdn.microblink.com/resources"`
41
- */
42
- resourceDownloadUrl?: string;
43
-
44
- /**
45
- * Local folder name where resources will be downloaded and cached.
53
+ * Default: `"https://models.cdn.microblink.com/resources"`.
46
54
  *
47
- * If resources are being downloaded, this defines the name of the folder within your
48
- * application's cache folder where resources will be cached.
55
+ * Do not use the OTA host (`https://blinkid-ota.microblink.com`) here.
49
56
  */
50
- resourceLocalFolder?: string;
57
+ serviceUrl?: string;
51
58
 
52
59
  /**
53
- * [iOS-specific] If resources downloading is disabled, this defines the bundle of your app where the resources reside.
60
+ * Folder name under the app cache (download enabled) or assets path (download
61
+ * disabled) where base resources are stored.
54
62
  *
55
- */
56
- bundleIdentifier?: string;
57
-
58
- /**
59
- * Timeout settings for resource downloads.
63
+ * Platform defaults when omitted:
64
+ * - Android: `"microblink/blinkid"`
65
+ * - iOS: `"MLModels"`
60
66
  *
67
+ * Keep this separate from the OTA resources folder.
61
68
  */
62
- resourceRequestTimeout?: number;
69
+ localFolder?: string;
70
+
63
71
  /**
64
- * Set a custom HTTPS URL to be used as a proxy for Ping and license checks.
65
- * The proxy URL will be applied only if the license has the appropriate rights.
66
- *
67
- * The URL must use the HTTPS protocol. Example: https://your-proxy.com/
68
- *
69
- * If this value is defined, SDK initialization will not be successful in the following cases:
70
- * - if the URL does not use HTTPS or if the URL is invalid
71
- * - if the license does not allow proxy usage
72
- *
72
+ * Network timeouts for resource downloads, in milliseconds.
73
+ * Omit to use native SDK defaults.
73
74
  */
74
- microblinkProxyURL?: string;
75
+ requestTimeout?: RequestTimeout;
75
76
 
76
77
  /**
78
+ * [iOS] Bundle identifier of the app bundle that contains prebundled resources
79
+ * when {@link download} is `false`.
77
80
  *
78
- * Settings for the initialization of the BlinkID SDK.
81
+ * Maps to native `ResourcesConfig.bundleUrl` (the bridge resolves the
82
+ * identifier to a bundle URL). Ignored on Android — use {@link localFolder}
83
+ * under assets instead.
79
84
  */
80
- constructor(
81
- licenseKey: string,
82
- licensee?: string,
83
- downloadResources?: boolean,
84
- resourceDownloadUrl?: string,
85
- resourceLocalFolder?: string,
86
- bundleIdentifier?: string,
87
- resourceRequestTimeout?: number,
88
- microblinkProxyURL?: string,
89
- ) {
90
- this.licenseKey = licenseKey;
91
- this.licensee = licensee;
92
- this.downloadResources = downloadResources;
93
- this.resourceDownloadUrl = resourceDownloadUrl;
94
- this.resourceLocalFolder = resourceLocalFolder;
95
- this.bundleIdentifier = bundleIdentifier;
96
- this.resourceRequestTimeout = resourceRequestTimeout;
97
- this.microblinkProxyURL = microblinkProxyURL;
98
- }
99
- }
85
+ bundleIdentifier?: string;
86
+ };
100
87
 
101
88
  /**
102
- * Represents the configuration settings for a scanning session.
89
+ * Configuration for over-the-air (OTA) document resources.
103
90
  *
104
- * This class holds the settings related to the resources initialization,
105
- * scanning mode, and specific scanning configurations that define how the scanning
106
- * session should behave.
91
+ * Behaves similarly to {@link ResourcesConfig}, with update checks and a
92
+ * `strict` failure mode. Maps to native `OtaResourcesConfig` on Android and
93
+ * `OTAResourcesConfig` / `otaResourcesConfiguration` on iOS.
94
+ *
95
+ * When omitted on {@link BlinkIdSdkSettings}, native `OtaResourcesConfig()` /
96
+ * `OTAResourcesConfig()` defaults apply (`checkForUpdates: true`,
97
+ * `strict: false`, platform default URL/folder).
98
+ *
99
+ * Do not cross-wire hosts or folders with {@link ResourcesConfig}:
100
+ * - OTA default URL: `"https://blinkid-ota.microblink.com"`
101
+ * - Base resources URL: `"https://models.cdn.microblink.com/resources"`
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const sdkSettings: BlinkIdSdkSettings = {
106
+ * licenseKey,
107
+ * otaResourcesConfig: { checkForUpdates: true, strict: false },
108
+ * };
109
+ * ```
107
110
  */
108
- export class BlinkIdSessionSettings {
111
+ export type OtaResourcesConfig = {
109
112
  /**
110
- * The scanning mode to be used during the scanning session.
111
- *
112
- * Specifies whether the scanning is for a single side of a document or multiple
113
- * sides, as defined in {@link ScanningMode}. The default is set to `automatic`, which
114
- * automatically determines the number of sides to scan.
113
+ * Whether the SDK checks for and downloads updated OTA resources on
114
+ * initialization.
115
115
  *
116
- */
117
- scanningMode: ScanningMode;
118
-
119
- /**
120
- * The specific scanning settings for the scanning session.
116
+ * When `false`, no update check is performed and cached/bundled OTA resources
117
+ * are used as-is. First-run downloads are still required when OTA resources
118
+ * are missing locally — this flag only suppresses update checks, not the
119
+ * initial fetch.
121
120
  *
122
- * Defines various parameters that control the scanning process.
121
+ * Default: `true`.
123
122
  */
124
- scanningSettings: BlinkIdScanningSettings;
123
+ checkForUpdates?: boolean;
125
124
 
126
125
  /**
127
- * Duration in seconds before scanning step times out and is cancelled.
126
+ * How to handle a failed OTA update download during initialization.
127
+ * Only applied when {@link checkForUpdates} is `true`.
128
128
  *
129
- * If less than zero, scanning will not time out.
130
- * Defaults to 15000 (miliseconds)
129
+ * - `false` (default): initialization continues and the SDK falls back to
130
+ * cached/bundled OTA resources.
131
+ * - `true`: SDK initialization fails if the OTA download fails. Callers must
132
+ * handle that error path.
131
133
  */
132
- stepTimeoutDuration: number;
134
+ strict?: boolean;
133
135
 
134
136
  /**
137
+ * URL of the OTA versions/download service used when {@link checkForUpdates}
138
+ * is `true`.
135
139
  *
136
- * Represents the configuration settings for a scanning session.
140
+ * Default: `"https://blinkid-ota.microblink.com"`.
137
141
  *
138
- * This class holds the settings related to the resources initialization,
139
- * scanning mode, and specific scanning configurations that define how the scanning
140
- * session should behave.
142
+ * Do not use the base resources host (`https://models.cdn.microblink.com/resources`) here.
141
143
  */
142
- constructor() {
143
- this.scanningMode = ScanningMode.Automatic;
144
- this.scanningSettings = new BlinkIdScanningSettings();
145
- this.stepTimeoutDuration = 15000;
146
- }
147
- }
144
+ serviceUrl?: string;
148
145
 
149
- /**
150
- * Represents the configurable settings for scanning a document.
151
- *
152
- * This class defines various parameters and policies related to the scanning
153
- * process, including image quality handling, data extraction and anonymization,
154
- * along with options for frame processing and image extraction.
155
- *
156
- * */
157
- export class BlinkIdScanningSettings {
158
146
  /**
159
- * The level of blur detection in the document image.
160
- *
161
- * Defines the severity of blur detected in the document image, as defined
162
- * in [DetectionLevel]. Values range from `off` (detection NotAvailable) to higher
163
- * levels of blur detection.
147
+ * Folder where OTA resources are downloaded and cached (or found when
148
+ * prebundled).
164
149
  *
165
- * `low` less sensitive to blur; if something is detected as blur, it is almost certainly actual blur,
166
- * but some amount of blur may not be detected at all.
167
- * `high` – highly sensitive to blur; it may detect as blur even something that only resembles blur.
150
+ * Platform defaults when omitted:
151
+ * - Android: `"microblink/blinkid/ota"`
152
+ * - iOS: `"OTAMLModels"`
168
153
  *
169
- * Default: {@link DetectionLevel.Mid}
170
- * */
171
- blurDetectionLevel: DetectionLevel;
154
+ * Keep this separate from {@link ResourcesConfig.localFolder}.
155
+ */
156
+ localFolder?: string;
172
157
 
173
158
  /**
174
- * Indicates whether images with blur in the document image should be skipped.
175
- *
176
- * A value of `true` means images with detected blur will be excluded from further processing to prevent blurred images from being used
177
- * - If blurDetectionLevel = `off` - blurred images will be processed
178
- * - If blur is detected `ProcessingStatus` will be `ImagePreprocessingFailed` and blur will be reported in the `ProcessResult`
179
- * A value of `false` means images with detected blur will not be excluded from further processing
180
- * - If blurDetectionLevel != `off` - even if blur is detected, the image will be processed and blur will be reported in the `ProcessResult`.
181
- *
182
- * Default: `true`
159
+ * Network timeouts for OTA resource downloads, in milliseconds.
160
+ * Omit to use native SDK defaults.
183
161
  */
184
- skipImagesWithBlur: boolean;
162
+ requestTimeout?: RequestTimeout;
185
163
 
186
164
  /**
187
- * The level of glare detection in the document image.
188
- *
189
- * Defines the severity of glare detected in the document image, as defined in [DetectionLevel].
190
- * Values range from `off` (detection NotAvailable) to higher levels of glare detection.
191
- * `low` – less sensitive to glare; if something is detected as glare, it is almost certainly actual glare,
192
- * but some amount of glare may not be detected at all.
193
- * `high` – highly sensitive to glare; it may detect as glare even something that only resembles glare.
165
+ * [iOS] Bundle identifier of the app bundle that contains prebundled OTA
166
+ * resources.
194
167
  *
195
- * Default: {@link DetectionLevel.Mid}
168
+ * Maps to native `OTAResourcesConfig.bundleUrl` (the bridge resolves the
169
+ * identifier to a bundle URL). Ignored on Android — place OTA assets under
170
+ * {@link localFolder} (e.g. `assets/microblink/blinkid/ota`) instead.
196
171
  */
197
- glareDetectionLevel: DetectionLevel;
172
+ bundleIdentifier?: string;
173
+ };
198
174
 
175
+ /**
176
+ * Settings for the initialization of the BlinkID SDK.
177
+ */
178
+ export type BlinkIdSdkSettings = {
199
179
  /**
200
- * Indicates whether images with glare in the document image should be skipped.
201
- *
202
- * A value of `true` means images with detected glare will be excluded from further processing to prevent glared images from being used
203
- * - If glareDetectionLevel = `off` - glared images will be processed
204
- * - If glare is detected `ProcessingStatus` will be `ImagePreprocessingFailed` and glare will be reported in the `ProcessResult`
205
- * A value of `false` means images with detected glare will not be excluded from further processing
206
- * - If glareDetectionLevel != `off` - even if glare is detected, the image will be processed and glare will be reported in the `ProcessResult`
207
- *
208
- * Default: `true`
180
+ * License key for the native SDK.
209
181
  */
210
- skipImagesWithGlare: boolean;
182
+ licenseKey: string;
211
183
 
212
184
  /**
213
- * The level of allowed detected tilt of the document in the image.
214
- *
215
- * Defines the severity of allowed detected tilt of the document in the image, as defined in [DetectionLevel].
216
- * Values range from `off` (detection NotAvailable) to higher levels of allowed tilt.
217
- * `low` – less sensitive to tilt.
218
- * `high` – highly sensitive to tilt.
219
- *
220
- * Default: {@link DetectionLevel.Mid}
185
+ * Optional licensee string if the provided license key is not tied to a single
186
+ * application ID.
221
187
  */
222
- tiltDetectionLevel: DetectionLevel;
188
+ licensee?: string;
223
189
 
224
190
  /**
225
- * Indicates whether images with inadequate lighting conditions should be rejected.
191
+ * Base resource download and cache configuration.
226
192
  *
227
- * Inadequate lighting conditions are represented as either `TooBright` or `TooDark` document images,
228
- * as defined in the `ImageAnalysisLightingStatus` enum.
229
- * A value of `true` means images with inadequate lighting conditions will be excluded from further processing to prevent images with
230
- * inadequate lighting from being used
231
- * - If inadequate light conditions are detected `ProcessingStatus` will be `ImagePreprocessingFailed` and lighting status will be
232
- * reported in the `ProcessResult`.
193
+ * Replaces the former flat fields `downloadResources`, `resourceDownloadUrl`,
194
+ * `resourceLocalFolder`, `resourceRequestTimeout`, and `bundleIdentifier`.
233
195
  *
234
- * Default: `true`
196
+ * When omitted, native `ResourcesConfig()` defaults apply.
197
+ *
198
+ * @see {@link ResourcesConfig}
235
199
  */
236
- skipImagesWithInadequateLightingConditions: boolean;
200
+ resourcesConfig?: ResourcesConfig;
237
201
 
238
202
  /**
239
- * Indicates whether images occluded by hand should be rejected.
203
+ * Over-the-air (OTA) resource download and cache configuration.
240
204
  *
241
- * A value of `true` means images occluded by hand will be excluded from further processing to prevent occluded images from being used
242
- * - If hand occlusion is detected `ProcessingStatus` will be `ImagePreprocessingFailed` and hand occlusion status will be reported
243
- * in the `ProcessResult`
244
- * This setting is applicable only if `scanCroppedDocumentImage` = false.
205
+ * When omitted, native OTA defaults apply (update checks enabled, non-strict).
245
206
  *
246
- * Default: `true`
207
+ * @see {@link OtaResourcesConfig}
247
208
  */
248
- skipImagesOccludedByHand: boolean;
209
+ otaResourcesConfig?: OtaResourcesConfig;
249
210
 
250
211
  /**
251
- * Indicates whether the aggregation of data from multiple images is enabled.
212
+ * Set a custom HTTPS URL to be used as a proxy for Ping and license checks.
213
+ * The proxy URL will be applied only if the license has the appropriate rights.
252
214
  *
253
- * Disabling this setting will yield higher-quality captured images, but it may slow down the scanning process due to the additional
254
- * effort required to find the optimal image.
255
- * Enabling this setting will simplify the extraction process, but the extracted data will be aggregated from multiple images instead
256
- * of being sourced from a single image.
257
- * This only applies to images from Video input image source - for images from Photo source, setting will be ignored.
215
+ * The URL must use the HTTPS protocol. Example: https://your-proxy.com/
216
+ *
217
+ * If this value is defined, SDK initialization will not be successful in the following cases:
218
+ * - if the URL does not use HTTPS or if the URL is invalid
219
+ * - if the license does not allow proxy usage
258
220
  *
259
- * Default: `true`
260
221
  */
261
- combineResultsFromMultipleInputImages: boolean;
222
+ microblinkProxyURL?: string;
223
+ };
262
224
 
225
+ /**
226
+ * Represents the configuration settings for a scanning session.
227
+ *
228
+ * This class holds the settings related to the resources initialization,
229
+ * scanning mode, and specific scanning configurations that define how the scanning
230
+ * session should behave.
231
+ */
232
+ export type BlinkIdSessionSettings = Partial<{
263
233
  /**
264
- * Enables barcode recognition to proceed even if the initial VIZ extraction fails.
234
+ * The scanning mode to be used during the scanning session.
265
235
  *
266
- * If the barcode recognition is successful, recognition will still end in a valid state.
267
- * This setting is applicable only to images from Photo source.
268
- * For multi-side scanning, it is permitted only for the back side.
236
+ * Specifies whether the scanning is for a single side of a document or multiple
237
+ * sides, as defined in {@link ScanningMode}. The default is set to `automatic`, which
238
+ * automatically determines the number of sides to scan.
269
239
  *
270
- * Default: `false`
271
240
  */
272
- enableBarcodeScanOnly: boolean;
241
+ scanningMode: ScanningMode;
273
242
 
274
243
  /**
275
- * Defines custom rules for specific document class.
276
- *
277
- * When defining [DocumentRules], [DocumentFilter] is optionally set to specify the document to which the rule applies, and a `fields` with
278
- * the appropriate `alphabetType` should be specified as mandatory for that document.
279
- * If a `fields` is set to a field that is optional for that document or does not exist on it, all fields on the document become optional.
280
- * If a `fields` is set to a field with an incorrect alphabetType, all fields on the document become optional.
281
- * If a `fields` is set to a field that doesn’t exist in the internal rules, that rule is ignored.
282
- * When adding multiple `fields`, any field that does not match our rules is ignored. Only fields that comply with our rules are set as mandatory.
283
- * If the documentFilter fields `country`, `region`, or `type` are set to `null`, all supported values for those fields will be considered.
284
- * For example, if `country = null`, the rule will apply to all supported countries in BlinkID.
285
- *
286
- * By default, document fields are validated using internal rules that define mandatory fields for the scanned document class. This setting allows
287
- * users to narrow down our internal rules on mandatory fields. All undefined fields will become optional. It is not possible to mark fields as
288
- * mandatory if they cannot theoretically appear on the document.
289
- * The more detailed document filter will have priority over the other.
290
- *
291
- * See {@link DocumentRules} for more detailed information.
244
+ * The specific scanning settings for the scanning session.
245
+ *
246
+ * Defines various parameters that control the scanning process.
292
247
  */
293
- customDocumentRules?: DocumentRules[];
248
+ scanningSettings: Partial<BlinkIdScanningSettings>;
294
249
 
295
250
  /**
296
- * The mode of anonymization applied to the document.
297
- *
298
- * Redact specific fields based on requirements or laws regarding a specific document.
299
- * Data can be redacted from the image, the result or both.
251
+ * Duration in milliseconds before a scanning step times out and is cancelled.
300
252
  *
301
- * Default: {@link AnonymizationMode.fullResult}
253
+ * Resets on side changes and pauses while onboarding or help dialogs are shown.
254
+ * Set to `0` to disable the step timeout. Defaults to `60000` (60 seconds).
302
255
  */
303
- anonymizationMode: AnonymizationMode;
256
+ stepTimeoutDuration: number;
304
257
 
305
258
  /**
306
- * Redact fields for specific document class.
307
- *
308
- * Fields specified by requirements or laws for a specific document will be redacted regardless of this setting.
309
- * Based on anonymizationMode setting, data will be redacted from the image, the result or both.
259
+ * Duration in milliseconds of UI inactivity (no state change) before timeout.
310
260
  *
311
- * See {@link DocumentAnonymizationSettings} for more information.
261
+ * Resets whenever the UI state changes (reticle type or message).
262
+ * Set to `0` to disable the inactivity timeout. Defaults to `10000` (10 seconds).
312
263
  */
313
- customDocumentAnonymizationSettings?: DocumentAnonymizationSettings[];
314
- /**
315
- * Indicates whether input images should be returned.
264
+ inactivityTimeoutDuration: number;
265
+ }>;
266
+
267
+ /**
268
+ * Represents the configurable settings for scanning a document.
269
+ *
270
+ * This class defines various parameters and policies related to the scanning
271
+ * process, including image quality handling, data extraction and anonymization,
272
+ * along with options for frame processing and image extraction.
273
+ *
274
+ * */
275
+ export type BlinkIdScanningSettings = Partial<{
276
+ /*
277
+ * Settings for the document capture module.
316
278
  *
317
- * Save the input images at the moment of the data extraction or timeout.
318
- * This significantly increases memory consumption. The scanning performance is not affected.
279
+ * This module is responsible for the initial document detection, image extraction
280
+ * (such as face and document images), and image quality validation (blur, glare,
281
+ * and lighting checks).
319
282
  *
320
- * Default: `false`
321
- */
322
- returnInputImages: boolean;
323
-
324
- /**
325
- * Process only cropped document images.
326
- * Requires the input image to consist solely of the cropped document image with perspective correction applied.
327
- * This only applies to images from Photo input image source - for images from Video input image source, setting will be ignored.
283
+ * Set to `null` to disable this module.
328
284
  *
329
- * Default: `false`
285
+ * See {@link DocumentCaptureModuleSettings} for more information.
330
286
  */
331
- scanCroppedDocumentImage: boolean;
287
+ documentCaptureModule: Partial<DocumentCaptureModuleSettings> | null;
332
288
 
333
- /**
334
- * The filter for recognition modes.
289
+ /*
290
+ * Settings for the MRZ (Machine Readable Zone) extraction module.
335
291
  *
336
- * Specifies which recognition modes are enabled during the scanning process, with a default value of true to enable all modes.
337
- * [RecognitionModeFilter] is used to enable/disable recognition of specific document groups.
292
+ * This module is dedicated to the detection and parsing of machine-readable
293
+ * zone typically found on passports, visas, and identity cards.
338
294
  *
339
- * This setting is experimental and it will be removed in upcoming releases.
295
+ * Set to `null` to disable this module.
340
296
  *
341
- * By default all modes are enabled (set to `true`).
297
+ * See {@link MrzModuleSettings} for more information.
342
298
  */
343
- recognitionModeFilter: RecognitionModeFilter;
299
+ mrzModule: Partial<MrzModuleSettings> | null;
344
300
 
345
301
  /**
346
- * Indicates whether character validation is enabled.
302
+ * Settings for the barcode extraction module.
347
303
  *
348
- * Allow only results containing expected characters for a given field.
349
- * Each field is validated against a set of rules.
350
- * All fields have to be successfully validated in order to successfully scan a document.
351
- * Setting is used to improve scanning accuracy.
352
- * If set to `true`, when an invalid character is detected `ProcessingStatus.InvalidCharactersFound` is returned.
304
+ * This module manages the detection and data extraction from various 1D and 2D
305
+ * barcode formats (such as PDF417, QR codes, and various retail codes).
353
306
  *
354
- * Default: `true`
355
- */
356
- enableCharacterValidation: boolean;
357
-
358
- /**
359
- * Defines the minimum required margin (in percentage) between the edge of the input image and the document.
307
+ * It can operate as a standalone module or in combination with document capture.
360
308
  *
361
- * The setting is applicable only when using images from Video source.
362
- * The setting is not applicable if `scanCroppedDocumentImage = true` (it will be ignored).
363
- * This setting is implemented to comply with regulations in certain countries that mandate documents
364
- * to be stored with adequate margins in the image.
309
+ * Set to `null` to disable this module.
365
310
  *
366
- * Default: `0.02` (also recommended value)
311
+ * See {@link BarcodeModuleSettings} for more information.
367
312
  */
368
- inputImageMargin: number;
313
+ barcodeModule: Partial<BarcodeModuleSettings> | null;
369
314
 
370
315
  /**
371
- * Indicates whether backside of unsupported document should be scanned also.
316
+ * Settings for the VIZ (Visual Inspection Zone) extraction module.
372
317
  *
373
- * By default, back side of the document will not be scanned if only the front side is supported for a specific
374
- * document.
318
+ * This module is responsible for extracting data from the document's
319
+ * visual fields.
375
320
  *
376
- * Default: `false`
377
- */
378
- scanUnsupportedBack: boolean;
379
-
380
- /**
381
- * Indicates whether scanning can continue to the next side despite an uncertain front-side scan.
321
+ * It supports features such as character validation for increased accuracy,
322
+ * signature image extraction, and data aggregation across multiple video frames.
382
323
  *
383
- * This only applies to images from Photo input image source - for images from Video source, setting will be
384
- * ignored.
324
+ * Set to `null` to disable this module.
385
325
  *
386
- * Default: `false`
326
+ * See {@link VizModuleSettings} for more information.
387
327
  */
388
- allowUncertainFrontSideScan: boolean;
328
+ vizModule: Partial<VizModuleSettings> | null;
389
329
 
390
330
  /**
391
331
  * The maximum allowed mismatches per field during data matching.
392
332
  *
393
333
  * Configures the maximum number of characters per field that can be inconsistent during data matching.
394
- * By defualt, no mismatches are allowed.
395
334
  *
396
- * Default: `0`
335
+ * By default, no mismatches are allowed.
397
336
  */
398
337
  maxAllowedMismatchesPerField: number;
399
-
400
- /**
401
- * Indicates whether only the passport data page should be scanned.
402
- *
403
- * Scan only the data page ( page containing MRZ ) of the passport.
404
- * If set to `false`, it will be required to scan the second page of certain passports.
405
- *
406
- * Default: `true`
407
- */
408
- scanPassportDataPageOnly: boolean;
409
-
410
- /**
411
- * Configures the image processing settings during the scanning process.
412
- *
413
- * Allows customization of cropped image handling, such as dotsPerInch, extensions, and
414
- * whether images should be returned for the document, face or signature regions.
415
- *
416
- * See {@link CroppedImageSettings} for more information.
417
- */
418
- croppedImageSettings: CroppedImageSettings;
419
-
420
- /**
421
- * Represents the configurable settings for scanning a document.
422
- *
423
- * This class defines various parameters and policies related to the scanning
424
- * process, including image quality handling, data extraction and anonymization,
425
- * along with options for frame processing and image extraction.
426
- */
427
- constructor() {
428
- this.blurDetectionLevel = DetectionLevel.Mid;
429
- this.skipImagesWithBlur = true;
430
- this.glareDetectionLevel = DetectionLevel.Mid;
431
- this.skipImagesWithGlare = true;
432
- this.tiltDetectionLevel = DetectionLevel.Mid;
433
- this.skipImagesWithInadequateLightingConditions = true;
434
- this.skipImagesOccludedByHand = true;
435
- this.combineResultsFromMultipleInputImages = true;
436
- this.enableBarcodeScanOnly = false;
437
- this.anonymizationMode = AnonymizationMode.FullResult;
438
- this.returnInputImages = false;
439
- this.scanCroppedDocumentImage = false;
440
- this.recognitionModeFilter = new RecognitionModeFilter();
441
- this.enableCharacterValidation = true;
442
- this.inputImageMargin = 0.02;
443
- this.scanUnsupportedBack = false;
444
- this.allowUncertainFrontSideScan = false;
445
- this.maxAllowedMismatchesPerField = 0;
446
- this.scanPassportDataPageOnly = true;
447
- this.croppedImageSettings = new CroppedImageSettings();
448
- }
449
- }
338
+ }>;
450
339
 
451
340
  /**
452
341
  * Allows customization of various aspects of the UI
453
342
  * used during the scanning process.
454
343
  *
455
344
  */
456
- export class BlinkIdScanningUxSettings {
345
+ export type BlinkIdScanningUxSettings = Partial<{
457
346
  /**
458
347
  * A boolean indicating whether to show a help button
459
348
  * and enable help screens during the scanning session.
@@ -486,67 +375,7 @@ export class BlinkIdScanningUxSettings {
486
375
  * This value represents the user’s choice of front or back camera.
487
376
  * The system determines the actual physical camera device.
488
377
  *
489
- * Default: {@link PrefferedCamera.back}
378
+ * Default: {@link PreferredCamera.back}
490
379
  */
491
380
  preferredCamera: PreferredCamera;
492
-
493
- constructor() {
494
- this.showHelpButton = true;
495
- this.showOnboardingDialog = true;
496
- this.allowHapticFeedback = true;
497
- this.preferredCamera = PreferredCamera.Back;
498
- }
499
- }
500
-
501
- /**
502
- * Represents the image cropping settings.
503
- *
504
- */
505
- export class CroppedImageSettings {
506
- /**
507
- * The DPI value for the cropped image.
508
- *
509
- * Default: `250`
510
- */
511
- dotsPerInch: number;
512
-
513
- /**
514
- * The extension factor for the cropped image.
515
- *
516
- * Default: `0`
517
- */
518
- extensionFactor: number;
519
-
520
- /**
521
- * Indicates whether the document image should be returned.
522
- *
523
- * Default: `false`
524
- */
525
- returnDocumentImage: boolean;
526
-
527
- /**
528
- * Indicates whether the face image should be returned.
529
- *
530
- * Default: `false`
531
- */
532
- returnFaceImage: boolean;
533
-
534
- /**
535
- * Indicates whether the signature image should be returned.
536
- *
537
- * Default: `false`
538
- */
539
- returnSignatureImage: boolean;
540
-
541
- /**
542
- * Represents the image cropping settings.
543
- *
544
- */
545
- constructor() {
546
- this.dotsPerInch = 250;
547
- this.extensionFactor = 0;
548
- this.returnDocumentImage = false;
549
- this.returnFaceImage = false;
550
- this.returnSignatureImage = false;
551
- }
552
- }
381
+ }>;