@microblink/blinkid-react-native 8000.0.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.
- package/README.md +185 -53
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdClassInfoIdMappings.kt +33 -0
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +90 -41
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +44 -14
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +15 -0
- package/ios/BlinkidReactNative.mm +7 -0
- package/ios/BlinkidReactNativeModule.swift +22 -0
- package/ios/Frameworks/BlinkID.xcframework/Info.plist +5 -9
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +893 -14
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios.swiftdoc → arm64.swiftdoc} +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios.swiftinterface → arm64.swiftinterface} +2343 -2228
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.modulemap +1 -7
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivacyInfo.xcprivacy +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +893 -14
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios-simulator.swiftdoc → arm64.swiftdoc} +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/{arm64-apple-ios-simulator.private.swiftinterface → arm64.swiftinterface} +2343 -2228
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/{x86_64-apple-ios-simulator.swiftdoc → x86_64.swiftdoc} +0 -0
- 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} +2343 -2228
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.modulemap +1 -7
- package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +276 -276
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +1327 -733
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +114 -114
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +1327 -733
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +1327 -733
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -50
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
- package/ios/Serialization/BlinkIdDeserializationUtils.swift +145 -23
- package/ios/Serialization/BlinkIdSerializationUtils.swift +57 -8
- package/lib/module/NativeBlinkidReactNative.js.map +1 -1
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +65 -11
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts +10 -0
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
- package/lib/typescript/src/blinkIdResult.d.ts +5 -0
- package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
- package/lib/typescript/src/blinkIdSettings.d.ts +160 -21
- package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +10 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +120 -46
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeBlinkidReactNative.ts +11 -0
- package/src/blinkIdResult.ts +6 -0
- package/src/blinkIdSettings.ts +170 -21
- package/src/index.tsx +13 -0
- package/src/types.ts +168 -52
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +0 -48714
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +0 -91790
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -2534
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.private.modulemap +0 -12
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +0 -19
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +0 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +0 -40
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +0 -97424
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -91790
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -2534
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -91790
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -2534
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.private.modulemap +0 -12
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +0 -19
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +0 -289
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +0 -40
package/src/blinkIdSettings.ts
CHANGED
|
@@ -8,57 +8,206 @@ import type {
|
|
|
8
8
|
} from "./types";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
|
+
*/
|
|
15
|
+
export type RequestTimeout = {
|
|
16
|
+
connectionTimeoutMilliseconds?: number;
|
|
17
|
+
writeTimeoutMilliseconds?: number;
|
|
18
|
+
readTimeoutMilliseconds?: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for base (non-OTA) SDK resources: download, cache location, and timeouts.
|
|
12
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
|
+
* ```
|
|
13
37
|
*/
|
|
14
|
-
export type
|
|
38
|
+
export type ResourcesConfig = {
|
|
15
39
|
/**
|
|
16
|
-
*
|
|
40
|
+
* Whether resources required for on-device image processing should be downloaded
|
|
41
|
+
* and cached on first initialization of the SDK.
|
|
17
42
|
*
|
|
43
|
+
* If `false`, package the required resources in the app (Android assets /
|
|
44
|
+
* iOS bundle) and set {@link localFolder} / {@link bundleIdentifier} as needed.
|
|
45
|
+
*
|
|
46
|
+
* Default: `true`.
|
|
18
47
|
*/
|
|
19
|
-
|
|
48
|
+
download?: boolean;
|
|
20
49
|
|
|
21
50
|
/**
|
|
22
|
-
*
|
|
51
|
+
* URL where base resources are hosted when {@link download} is enabled.
|
|
52
|
+
*
|
|
53
|
+
* Default: `"https://models.cdn.microblink.com/resources"`.
|
|
54
|
+
*
|
|
55
|
+
* Do not use the OTA host (`https://blinkid-ota.microblink.com`) here.
|
|
23
56
|
*/
|
|
24
|
-
|
|
57
|
+
serviceUrl?: string;
|
|
25
58
|
|
|
26
59
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
60
|
+
* Folder name under the app cache (download enabled) or assets path (download
|
|
61
|
+
* disabled) where base resources are stored.
|
|
62
|
+
*
|
|
63
|
+
* Platform defaults when omitted:
|
|
64
|
+
* - Android: `"microblink/blinkid"`
|
|
65
|
+
* - iOS: `"MLModels"`
|
|
29
66
|
*
|
|
30
|
-
*
|
|
31
|
-
|
|
67
|
+
* Keep this separate from the OTA resources folder.
|
|
68
|
+
*/
|
|
69
|
+
localFolder?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Network timeouts for resource downloads, in milliseconds.
|
|
73
|
+
* Omit to use native SDK defaults.
|
|
74
|
+
*/
|
|
75
|
+
requestTimeout?: RequestTimeout;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* [iOS] Bundle identifier of the app bundle that contains prebundled resources
|
|
79
|
+
* when {@link download} is `false`.
|
|
32
80
|
*
|
|
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.
|
|
33
84
|
*/
|
|
34
|
-
|
|
85
|
+
bundleIdentifier?: string;
|
|
86
|
+
};
|
|
35
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Configuration for over-the-air (OTA) document resources.
|
|
90
|
+
*
|
|
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
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export type OtaResourcesConfig = {
|
|
36
112
|
/**
|
|
37
|
-
*
|
|
113
|
+
* Whether the SDK checks for and downloads updated OTA resources on
|
|
114
|
+
* initialization.
|
|
38
115
|
*
|
|
39
|
-
*
|
|
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.
|
|
120
|
+
*
|
|
121
|
+
* Default: `true`.
|
|
40
122
|
*/
|
|
41
|
-
|
|
123
|
+
checkForUpdates?: boolean;
|
|
42
124
|
|
|
43
125
|
/**
|
|
44
|
-
*
|
|
126
|
+
* How to handle a failed OTA update download during initialization.
|
|
127
|
+
* Only applied when {@link checkForUpdates} is `true`.
|
|
45
128
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
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.
|
|
48
133
|
*/
|
|
49
|
-
|
|
134
|
+
strict?: boolean;
|
|
50
135
|
|
|
51
136
|
/**
|
|
52
|
-
*
|
|
137
|
+
* URL of the OTA versions/download service used when {@link checkForUpdates}
|
|
138
|
+
* is `true`.
|
|
139
|
+
*
|
|
140
|
+
* Default: `"https://blinkid-ota.microblink.com"`.
|
|
53
141
|
*
|
|
142
|
+
* Do not use the base resources host (`https://models.cdn.microblink.com/resources`) here.
|
|
143
|
+
*/
|
|
144
|
+
serviceUrl?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Folder where OTA resources are downloaded and cached (or found when
|
|
148
|
+
* prebundled).
|
|
149
|
+
*
|
|
150
|
+
* Platform defaults when omitted:
|
|
151
|
+
* - Android: `"microblink/blinkid/ota"`
|
|
152
|
+
* - iOS: `"OTAMLModels"`
|
|
153
|
+
*
|
|
154
|
+
* Keep this separate from {@link ResourcesConfig.localFolder}.
|
|
155
|
+
*/
|
|
156
|
+
localFolder?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Network timeouts for OTA resource downloads, in milliseconds.
|
|
160
|
+
* Omit to use native SDK defaults.
|
|
161
|
+
*/
|
|
162
|
+
requestTimeout?: RequestTimeout;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* [iOS] Bundle identifier of the app bundle that contains prebundled OTA
|
|
166
|
+
* resources.
|
|
167
|
+
*
|
|
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.
|
|
54
171
|
*/
|
|
55
172
|
bundleIdentifier?: string;
|
|
173
|
+
};
|
|
56
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Settings for the initialization of the BlinkID SDK.
|
|
177
|
+
*/
|
|
178
|
+
export type BlinkIdSdkSettings = {
|
|
57
179
|
/**
|
|
58
|
-
*
|
|
180
|
+
* License key for the native SDK.
|
|
181
|
+
*/
|
|
182
|
+
licenseKey: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Optional licensee string if the provided license key is not tied to a single
|
|
186
|
+
* application ID.
|
|
187
|
+
*/
|
|
188
|
+
licensee?: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Base resource download and cache configuration.
|
|
192
|
+
*
|
|
193
|
+
* Replaces the former flat fields `downloadResources`, `resourceDownloadUrl`,
|
|
194
|
+
* `resourceLocalFolder`, `resourceRequestTimeout`, and `bundleIdentifier`.
|
|
59
195
|
*
|
|
196
|
+
* When omitted, native `ResourcesConfig()` defaults apply.
|
|
197
|
+
*
|
|
198
|
+
* @see {@link ResourcesConfig}
|
|
60
199
|
*/
|
|
61
|
-
|
|
200
|
+
resourcesConfig?: ResourcesConfig;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Over-the-air (OTA) resource download and cache configuration.
|
|
204
|
+
*
|
|
205
|
+
* When omitted, native OTA defaults apply (update checks enabled, non-strict).
|
|
206
|
+
*
|
|
207
|
+
* @see {@link OtaResourcesConfig}
|
|
208
|
+
*/
|
|
209
|
+
otaResourcesConfig?: OtaResourcesConfig;
|
|
210
|
+
|
|
62
211
|
/**
|
|
63
212
|
* Set a custom HTTPS URL to be used as a proxy for Ping and license checks.
|
|
64
213
|
* The proxy URL will be applied only if the license has the appropriate rights.
|
package/src/index.tsx
CHANGED
|
@@ -313,6 +313,19 @@ export async function performDirectApiScan(
|
|
|
313
313
|
return parseNativeScanResult(jsonResult);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
+
/**
|
|
317
|
+
* The `refreshLicenseLease` method refreshes the BlinkID SDK license lease.
|
|
318
|
+
*
|
|
319
|
+
* This method can be called periodically to maintain an active license status.
|
|
320
|
+
* The frequency of refresh calls depends on your license configuration.
|
|
321
|
+
*
|
|
322
|
+
* The BlinkID SDK must already be initialized (by calling {@link loadBlinkIdSdk}
|
|
323
|
+
* or any of the scanning methods) before calling this method.
|
|
324
|
+
*/
|
|
325
|
+
export async function refreshLicenseLease(): Promise<void> {
|
|
326
|
+
await BlinkidReactNative.refreshLicenseLease();
|
|
327
|
+
}
|
|
328
|
+
|
|
316
329
|
export type PerformDirectApiScanSettings = {
|
|
317
330
|
sdkSettings: BlinkIdSdkSettings;
|
|
318
331
|
sessionSettings: BlinkIdSessionSettings;
|
package/src/types.ts
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies whether the input image is already cropped, likely cropped, or not
|
|
3
|
+
* cropped.
|
|
4
|
+
*
|
|
5
|
+
* - `"not-cropped"`: The image is considered raw and goes through document
|
|
6
|
+
* detection and perspective correction.
|
|
7
|
+
* - `"unknown"`: The image may already be cropped. The recognizer first tries
|
|
8
|
+
* cropped processing and falls back to detection if extraction fails.
|
|
9
|
+
* - `"cropped"`: The input image must contain only the cropped and
|
|
10
|
+
* perspective-corrected document.
|
|
11
|
+
*/
|
|
12
|
+
export type InputImageCropType = "not-cropped" | "unknown" | "cropped";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Controls how the best input image is selected from a pool of stable frames.
|
|
16
|
+
*
|
|
17
|
+
* Before the best-quality image is selected, a sequence of stable input images
|
|
18
|
+
* must be collected. An input image is considered stable when image analysis
|
|
19
|
+
* results are consistent across consecutive frames. A larger pool increases the
|
|
20
|
+
* likelihood of capturing a high-quality image but may introduce a slight delay.
|
|
21
|
+
*
|
|
22
|
+
* - `"single-image"`: Selects the first acceptable stable input image.
|
|
23
|
+
* - `"optimize-for-speed"`: Faster processing; may select a lower-quality image
|
|
24
|
+
* because a smaller pool of stable input images is considered.
|
|
25
|
+
* - `"balanced"`: Trade-off between quality and speed.
|
|
26
|
+
* - `"optimize-for-quality"`: Slower processing to select a high-quality input
|
|
27
|
+
* image because a larger pool of stable input images is considered.
|
|
28
|
+
*
|
|
29
|
+
* Applicable only to `Video` input sources.
|
|
30
|
+
*/
|
|
31
|
+
export type InputImageSelectionStrategy =
|
|
32
|
+
| "single-image"
|
|
33
|
+
| "optimize-for-speed"
|
|
34
|
+
| "balanced"
|
|
35
|
+
| "optimize-for-quality";
|
|
36
|
+
|
|
1
37
|
/**
|
|
2
38
|
* Settings for the barcode extraction module.
|
|
3
39
|
*
|
|
@@ -100,6 +136,13 @@ export type BarcodeModuleSettings = {
|
|
|
100
136
|
* This setting can be enabled only if `documentCaptureEnabled` is disabled.
|
|
101
137
|
*/
|
|
102
138
|
dataMatrixScanningEnabled: boolean;
|
|
139
|
+
|
|
140
|
+
/*
|
|
141
|
+
* Enables the scanning and processing of Aztec barcodes.
|
|
142
|
+
*
|
|
143
|
+
* This setting can be enabled only if `documentCaptureEnabled` is disabled.
|
|
144
|
+
*/
|
|
145
|
+
aztecScanningEnabled: boolean;
|
|
103
146
|
};
|
|
104
147
|
|
|
105
148
|
/*
|
|
@@ -111,12 +154,22 @@ export type BarcodeModuleSettings = {
|
|
|
111
154
|
*/
|
|
112
155
|
export type DocumentCaptureModuleSettings = {
|
|
113
156
|
/*
|
|
114
|
-
*
|
|
157
|
+
* Specifies whether the input image is already cropped, likely cropped, or
|
|
158
|
+
* not cropped.
|
|
159
|
+
*
|
|
160
|
+
* When set to `"cropped"`, the input image must consist solely of the already
|
|
161
|
+
* cropped and corrected document.
|
|
162
|
+
*
|
|
163
|
+
* When set to `"unknown"`, the recognizer first attempts extraction as if the
|
|
164
|
+
* image is cropped, then falls back to the regular localization pipeline if
|
|
165
|
+
* extraction fails.
|
|
115
166
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
167
|
+
* `"cropped"` and `"unknown"` are applicable only to `Photo` sources and will
|
|
168
|
+
* cause a validation error for `Video`.
|
|
169
|
+
*
|
|
170
|
+
* Default value is `"not-cropped"`.
|
|
118
171
|
*/
|
|
119
|
-
|
|
172
|
+
cropType: InputImageCropType;
|
|
120
173
|
|
|
121
174
|
/*
|
|
122
175
|
* Enables the scanning and processing of unsupported document types.
|
|
@@ -188,8 +241,7 @@ export type DocumentCaptureModuleSettings = {
|
|
|
188
241
|
* to be stored with adequate margins in the image.
|
|
189
242
|
*
|
|
190
243
|
* Default value is `0.02`.
|
|
191
|
-
* The setting is applicable only when using images from `
|
|
192
|
-
* The setting is ignored if `inputImageCropped == true`.
|
|
244
|
+
* The setting is applicable only when using images from `video` source.
|
|
193
245
|
*
|
|
194
246
|
* Allowed minimal value is `0.0` and maximum value is `1.0`.
|
|
195
247
|
*/
|
|
@@ -273,9 +325,23 @@ export type DocumentCaptureModuleSettings = {
|
|
|
273
325
|
*
|
|
274
326
|
* If `true`, occluded images will be excluded from further processing.
|
|
275
327
|
*
|
|
276
|
-
*
|
|
328
|
+
* Default behavior depends on `cropType`:
|
|
329
|
+
* - `Cropped`: Defaults to `false`. This setting is not applicable when
|
|
330
|
+
* the detector is skipped. Setting this to `true` while `cropType` is
|
|
331
|
+
* `Cropped` will result in a settings validation failure.
|
|
332
|
+
* - `NotCropped` / `Unknown`: Defaults to `true`. Images with hand
|
|
333
|
+
* occlusion are rejected.
|
|
277
334
|
*/
|
|
278
335
|
imageWithHandOcclusionRejected: boolean;
|
|
336
|
+
|
|
337
|
+
/*
|
|
338
|
+
* The strategy used to select the best input image from a pool of stable
|
|
339
|
+
* input images.
|
|
340
|
+
*
|
|
341
|
+
* Default value is `"balanced"`.
|
|
342
|
+
* Applicable only to `Video` input sources.
|
|
343
|
+
*/
|
|
344
|
+
inputImageSelectionStrategy: InputImageSelectionStrategy;
|
|
279
345
|
};
|
|
280
346
|
|
|
281
347
|
/*
|
|
@@ -359,7 +425,8 @@ export type VizModuleSettings = {
|
|
|
359
425
|
|
|
360
426
|
/**
|
|
361
427
|
* ClassFilter represents the document filter used to determine which documents will be processed.
|
|
362
|
-
* Document information (
|
|
428
|
+
* Document information ({@link CountryID}, {@link RegionID}, {@link DocumentTypeID}) is evaluated
|
|
429
|
+
* with the content set in the filter, and their inclusion or exclusion depends on the defined rules.
|
|
363
430
|
* To set the document information, use {@link DocumentFilter}.
|
|
364
431
|
* The recognition results of the excluded documents will not be returned.
|
|
365
432
|
* If using the standard BlinkID UX, an alert will be displayed that the document will not be scanned.
|
|
@@ -375,16 +442,14 @@ export type ClassFilter = {
|
|
|
375
442
|
*
|
|
376
443
|
* Example usage:
|
|
377
444
|
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
* ```
|
|
387
|
-
*
|
|
445
|
+
* ```ts
|
|
446
|
+
* const classFilter: ClassFilter = {
|
|
447
|
+
* includeDocuments: [
|
|
448
|
+
* { country: CountryID.USA },
|
|
449
|
+
* { country: CountryID.Croatia, documentType: DocumentTypeID.Id },
|
|
450
|
+
* ],
|
|
451
|
+
* };
|
|
452
|
+
* ```
|
|
388
453
|
*
|
|
389
454
|
* NOTE: from the example above, the class filter is set to only accept all documents from USA, and Croatian IDs.
|
|
390
455
|
* All other documents will be rejected.
|
|
@@ -402,20 +467,20 @@ export type ClassFilter = {
|
|
|
402
467
|
*
|
|
403
468
|
* Example usage:
|
|
404
469
|
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
* ```
|
|
470
|
+
* ```ts
|
|
471
|
+
* const classFilter: ClassFilter = {
|
|
472
|
+
* excludeDocuments: [
|
|
473
|
+
* { country: CountryID.USA },
|
|
474
|
+
* { country: CountryID.Croatia, documentType: DocumentTypeID.Id },
|
|
475
|
+
* ],
|
|
476
|
+
* };
|
|
477
|
+
* ```
|
|
414
478
|
*
|
|
415
479
|
* NOTE: from the example above, the class filter is set to only exclude all documents from USA, and Croatian IDs.
|
|
416
480
|
* All other classes will be accepted.
|
|
417
481
|
*
|
|
418
|
-
* Rules can be combined, for example, to set all three properties (
|
|
482
|
+
* Rules can be combined, for example, to set all three properties (country, region, documentType),
|
|
483
|
+
* two (e.g. country and documentType) or just one (e.g. region).
|
|
419
484
|
*
|
|
420
485
|
* See {@link DocumentFilter} for setting the combinations.
|
|
421
486
|
*/
|
|
@@ -455,22 +520,28 @@ export type RedactionSettingsResolver = {
|
|
|
455
520
|
*/
|
|
456
521
|
export type DocumentFilter = {
|
|
457
522
|
/**
|
|
458
|
-
* If set, only specified country will pass the filter criteria.
|
|
459
|
-
* Otherwise, issuing country will not
|
|
523
|
+
* If set, only the specified country will pass the filter criteria.
|
|
524
|
+
* Otherwise, issuing country will not be taken into account.
|
|
525
|
+
*
|
|
526
|
+
* See {@link CountryID}.
|
|
460
527
|
*/
|
|
461
|
-
country?:
|
|
528
|
+
country?: CountryID;
|
|
462
529
|
|
|
463
530
|
/**
|
|
464
531
|
* If set, only specified country will pass the filter criteria.
|
|
465
532
|
* Otherwise, issuing region will not be taken into account.
|
|
533
|
+
*
|
|
534
|
+
* See {@link RegionID}.
|
|
466
535
|
*/
|
|
467
|
-
region?:
|
|
536
|
+
region?: RegionID;
|
|
468
537
|
|
|
469
538
|
/**
|
|
470
|
-
* If set, only specified type will pass the filter criteria.
|
|
471
|
-
* Otherwise,
|
|
539
|
+
* If set, only the specified document type will pass the filter criteria.
|
|
540
|
+
* Otherwise, document type will not be taken into account.
|
|
541
|
+
*
|
|
542
|
+
* See {@link DocumentTypeID}.
|
|
472
543
|
*/
|
|
473
|
-
documentType?:
|
|
544
|
+
documentType?: DocumentTypeID;
|
|
474
545
|
};
|
|
475
546
|
|
|
476
547
|
/**
|
|
@@ -572,6 +643,39 @@ export type DocumentNumberRedactionSettings = {
|
|
|
572
643
|
suffixDigitsVisible?: number;
|
|
573
644
|
};
|
|
574
645
|
|
|
646
|
+
/**
|
|
647
|
+
* Document country classification from {@link DocumentClassInfo}.
|
|
648
|
+
*
|
|
649
|
+
* When the value is known at SDK build time, both {@link id} and {@link rawValue}
|
|
650
|
+
* are populated. For OTA-supported / unknown documents, {@link id} may be omitted
|
|
651
|
+
* while {@link rawValue} is still set. A missing country is represented by omitting
|
|
652
|
+
* {@link DocumentClassInfo.country} entirely (native `"NONE"`).
|
|
653
|
+
*/
|
|
654
|
+
export type Country = {
|
|
655
|
+
id?: CountryID;
|
|
656
|
+
rawValue: string;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Document region classification from {@link DocumentClassInfo}.
|
|
661
|
+
*
|
|
662
|
+
* See {@link Country} for how {@link id} vs {@link rawValue} are filled.
|
|
663
|
+
*/
|
|
664
|
+
export type Region = {
|
|
665
|
+
id?: RegionID;
|
|
666
|
+
rawValue: string;
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Document type classification from {@link DocumentClassInfo}.
|
|
671
|
+
*
|
|
672
|
+
* See {@link Country} for how {@link id} vs {@link rawValue} are filled.
|
|
673
|
+
*/
|
|
674
|
+
export type DocumentType = {
|
|
675
|
+
id?: DocumentTypeID;
|
|
676
|
+
rawValue: string;
|
|
677
|
+
};
|
|
678
|
+
|
|
575
679
|
/**
|
|
576
680
|
* Represents the document class information.
|
|
577
681
|
*
|
|
@@ -583,6 +687,7 @@ export type DocumentClassInfo = {
|
|
|
583
687
|
* See {@link Country} for more information.
|
|
584
688
|
*/
|
|
585
689
|
country?: Country;
|
|
690
|
+
|
|
586
691
|
/**
|
|
587
692
|
* The document region.
|
|
588
693
|
*
|
|
@@ -591,7 +696,7 @@ export type DocumentClassInfo = {
|
|
|
591
696
|
region?: Region;
|
|
592
697
|
|
|
593
698
|
/**
|
|
594
|
-
* The type
|
|
699
|
+
* The document type classification.
|
|
595
700
|
*
|
|
596
701
|
* See {@link DocumentType} for more information.
|
|
597
702
|
*/
|
|
@@ -605,25 +710,21 @@ export type DocumentClassInfo = {
|
|
|
605
710
|
|
|
606
711
|
/**
|
|
607
712
|
* The name of the country that issued the scanned document.
|
|
608
|
-
*
|
|
609
713
|
*/
|
|
610
714
|
countryName?: string;
|
|
611
715
|
|
|
612
716
|
/**
|
|
613
717
|
* The ISO numeric code of the country that issued the scanned document.
|
|
614
|
-
*
|
|
615
718
|
*/
|
|
616
719
|
isoNumericCountryCode?: string;
|
|
617
720
|
|
|
618
721
|
/**
|
|
619
722
|
* The 2 letter ISO code of the country that issued the scanned document.
|
|
620
|
-
*
|
|
621
723
|
*/
|
|
622
724
|
isoAlpha2CountryCode?: string;
|
|
623
725
|
|
|
624
726
|
/**
|
|
625
727
|
* The 3 letter ISO code of the country that issued the scanned document.
|
|
626
|
-
*
|
|
627
728
|
*/
|
|
628
729
|
isoAlpha3CountryCode?: string;
|
|
629
730
|
};
|
|
@@ -1138,6 +1239,12 @@ export type VizResult = {
|
|
|
1138
1239
|
*/
|
|
1139
1240
|
race?: StringResult;
|
|
1140
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
* The ethnicity of the document owner.
|
|
1244
|
+
*
|
|
1245
|
+
*/
|
|
1246
|
+
ethnicity?: StringResult;
|
|
1247
|
+
|
|
1141
1248
|
/**
|
|
1142
1249
|
* The religion of the document owner.
|
|
1143
1250
|
*
|
|
@@ -2695,6 +2802,11 @@ export type ParentInfo = {
|
|
|
2695
2802
|
* The last name of one of the document owner's parents.
|
|
2696
2803
|
*/
|
|
2697
2804
|
lastName?: StringResult;
|
|
2805
|
+
|
|
2806
|
+
/**
|
|
2807
|
+
* The full name of one of the document owner's parents.
|
|
2808
|
+
*/
|
|
2809
|
+
fullName?: StringResult;
|
|
2698
2810
|
};
|
|
2699
2811
|
|
|
2700
2812
|
/**
|
|
@@ -3030,7 +3142,7 @@ export type DataMatchState =
|
|
|
3030
3142
|
* Document country.
|
|
3031
3143
|
*
|
|
3032
3144
|
*/
|
|
3033
|
-
export const
|
|
3145
|
+
export const CountryID = {
|
|
3034
3146
|
None: "none",
|
|
3035
3147
|
|
|
3036
3148
|
Albania: "albania",
|
|
@@ -3548,12 +3660,12 @@ export const Country = {
|
|
|
3548
3660
|
SaintThomasAndPrince: "saintThomasAndPrince",
|
|
3549
3661
|
} as const;
|
|
3550
3662
|
|
|
3551
|
-
export type
|
|
3663
|
+
export type CountryID = (typeof CountryID)[keyof typeof CountryID];
|
|
3552
3664
|
|
|
3553
3665
|
/**
|
|
3554
3666
|
* Document region.
|
|
3555
3667
|
*/
|
|
3556
|
-
export const
|
|
3668
|
+
export const RegionID = {
|
|
3557
3669
|
None: "none",
|
|
3558
3670
|
|
|
3559
3671
|
Alabama: "alabama",
|
|
@@ -3790,13 +3902,13 @@ export const Region = {
|
|
|
3790
3902
|
|
|
3791
3903
|
QuintanaRooCozumel: "quintanaRooCozumel",
|
|
3792
3904
|
|
|
3793
|
-
|
|
3905
|
+
SaoPaolo: "saoPaolo",
|
|
3794
3906
|
|
|
3795
|
-
|
|
3907
|
+
RioDeJaneiro: "rioDeJaneiro",
|
|
3796
3908
|
|
|
3797
3909
|
RioGrandeDoSul: "rioGrandeDoSul",
|
|
3798
3910
|
|
|
3799
|
-
|
|
3911
|
+
NorthwestTerritories: "northwestTerritories",
|
|
3800
3912
|
|
|
3801
3913
|
Nunavut: "nunavut",
|
|
3802
3914
|
|
|
@@ -3830,7 +3942,7 @@ export const Region = {
|
|
|
3830
3942
|
|
|
3831
3943
|
Sergipe: "sergipe",
|
|
3832
3944
|
|
|
3833
|
-
|
|
3945
|
+
Alagoas: "alagoas",
|
|
3834
3946
|
|
|
3835
3947
|
Bangsamoro: "bangsamoro",
|
|
3836
3948
|
|
|
@@ -3855,13 +3967,13 @@ export const Region = {
|
|
|
3855
3967
|
Uttarakhand: "uttarakhand",
|
|
3856
3968
|
} as const;
|
|
3857
3969
|
|
|
3858
|
-
export type
|
|
3970
|
+
export type RegionID = (typeof RegionID)[keyof typeof RegionID];
|
|
3859
3971
|
|
|
3860
3972
|
/**
|
|
3861
3973
|
* Document type.
|
|
3862
3974
|
*
|
|
3863
3975
|
*/
|
|
3864
|
-
export const
|
|
3976
|
+
export const DocumentTypeID = {
|
|
3865
3977
|
None: "none",
|
|
3866
3978
|
|
|
3867
3979
|
ConsularId: "consularId",
|
|
@@ -3966,7 +4078,7 @@ export const DocumentType = {
|
|
|
3966
4078
|
|
|
3967
4079
|
MinorsPublicServicesCard: "minorsPublicServicesCard",
|
|
3968
4080
|
|
|
3969
|
-
|
|
4081
|
+
DrivingPrivilegeCard: "drivingPrivilegeCard",
|
|
3970
4082
|
|
|
3971
4083
|
AsylumRequest: "asylumRequest",
|
|
3972
4084
|
|
|
@@ -3998,7 +4110,7 @@ export const DocumentType = {
|
|
|
3998
4110
|
|
|
3999
4111
|
AfghanCitizenCard: "afghanCitizenCard",
|
|
4000
4112
|
|
|
4001
|
-
|
|
4113
|
+
Eid: "eid",
|
|
4002
4114
|
|
|
4003
4115
|
Pass: "pass",
|
|
4004
4116
|
|
|
@@ -4046,7 +4158,7 @@ export const DocumentType = {
|
|
|
4046
4158
|
|
|
4047
4159
|
OriginCard: "originCard",
|
|
4048
4160
|
} as const;
|
|
4049
|
-
export type
|
|
4161
|
+
export type DocumentTypeID = (typeof DocumentTypeID)[keyof typeof DocumentTypeID];
|
|
4050
4162
|
/**
|
|
4051
4163
|
* Represents all possible field types that can be extracted from the document.
|
|
4052
4164
|
*
|
|
@@ -4195,6 +4307,10 @@ export const FieldType = {
|
|
|
4195
4307
|
HusbandName: "husbandName",
|
|
4196
4308
|
|
|
4197
4309
|
CardAccessNumber: "cardAccessNumber",
|
|
4310
|
+
|
|
4311
|
+
ParentFullName: "parentFullName",
|
|
4312
|
+
|
|
4313
|
+
Ethnicity: "ethnicity",
|
|
4198
4314
|
} as const;
|
|
4199
4315
|
|
|
4200
4316
|
export type FieldType = (typeof FieldType)[keyof typeof FieldType];
|