@microblink/blinkid-react-native 7.6.2 → 8000.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 (223) hide show
  1. package/BlinkidReactNative.podspec +2 -1
  2. package/README.md +490 -282
  3. package/android/build.gradle +56 -4
  4. package/android/gradle.properties +3 -4
  5. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +312 -251
  6. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +859 -710
  7. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +42 -34
  8. package/ios/BlinkidReactNative.mm +42 -52
  9. package/ios/BlinkidReactNativeModule.swift +92 -57
  10. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
  11. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +23857 -17935
  12. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +2 -1
  13. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
  14. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +24452 -8480
  15. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +536 -234
  16. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +536 -234
  18. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
  19. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +19 -30
  20. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +3 -3
  21. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
  22. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +51708 -39864
  23. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +2 -1
  24. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
  25. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +24452 -8480
  26. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +536 -234
  27. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +536 -234
  29. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +24452 -8480
  30. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +536 -234
  31. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +536 -234
  33. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
  34. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +29 -40
  35. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +3 -3
  36. package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
  37. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
  38. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +276 -859
  39. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
  40. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
  41. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  42. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  43. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  44. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  45. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  46. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  47. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  48. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  49. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  50. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  51. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  52. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  53. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  54. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  55. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  56. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  57. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  58. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  59. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  60. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  61. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  62. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  63. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  64. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  65. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  66. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  67. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  68. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  69. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  70. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  71. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  72. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  73. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  74. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  75. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  76. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  77. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  78. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  79. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  80. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  81. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  82. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  83. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  84. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  85. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  86. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  87. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  88. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  89. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  90. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  91. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  92. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  93. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  94. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  95. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  96. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  97. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  98. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  99. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
  100. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +8983 -4775
  101. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +234 -100
  102. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +234 -100
  103. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  104. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +234 -100
  105. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
  106. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  107. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  108. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
  109. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +114 -346
  110. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  111. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  112. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  113. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  114. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  115. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  116. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  117. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  118. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  119. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  120. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  121. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  122. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  123. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  124. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  125. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  126. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  127. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  128. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  129. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  130. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  131. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  132. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  133. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  134. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  135. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  136. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  137. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  138. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  139. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  140. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  141. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  142. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  143. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  144. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  145. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  146. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  147. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  148. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  149. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  150. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  151. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  152. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  153. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  154. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  155. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  156. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  157. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  158. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  159. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  160. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  161. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  162. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  163. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  164. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  165. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  166. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
  167. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +8983 -4775
  168. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +234 -100
  169. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +234 -100
  170. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  171. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +234 -100
  172. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +8983 -4775
  173. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +234 -100
  174. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +234 -100
  175. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  176. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +234 -100
  177. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
  178. package/ios/Serialization/BlinkIdDeserializationUtils.swift +492 -0
  179. package/ios/Serialization/BlinkIdSerializationUtils.swift +866 -0
  180. package/lib/module/NativeBlinkidReactNative.js.map +1 -1
  181. package/lib/module/blinkIdResult.js +1 -764
  182. package/lib/module/blinkIdResult.js.map +1 -1
  183. package/lib/module/blinkIdSettings.js +1 -496
  184. package/lib/module/blinkIdSettings.js.map +1 -1
  185. package/lib/module/index.js +81 -17
  186. package/lib/module/index.js.map +1 -1
  187. package/lib/module/types.js +697 -3334
  188. package/lib/module/types.js.map +1 -1
  189. package/lib/typescript/src/NativeBlinkidReactNative.d.ts +26 -5
  190. package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
  191. package/lib/typescript/src/blinkIdResult.d.ts +35 -17
  192. package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
  193. package/lib/typescript/src/blinkIdSettings.d.ts +36 -297
  194. package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -1
  195. package/lib/typescript/src/index.d.ts +38 -10
  196. package/lib/typescript/src/index.d.ts.map +1 -1
  197. package/lib/typescript/src/types.d.ts +992 -1149
  198. package/lib/typescript/src/types.d.ts.map +1 -1
  199. package/package.json +5 -4
  200. package/src/NativeBlinkidReactNative.ts +28 -5
  201. package/src/blinkIdResult.ts +44 -432
  202. package/src/blinkIdSettings.ts +53 -373
  203. package/src/index.tsx +208 -35
  204. package/src/types.ts +1180 -1398
  205. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  206. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  207. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  208. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  209. package/android/.gradle/8.9/gc.properties +0 -0
  210. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  211. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  212. package/android/.gradle/vcs-1/gc.properties +0 -0
  213. package/ios/BlinkIdDeserializationUtilities.swift +0 -374
  214. package/ios/BlinkIdSerializationUtilities.swift +0 -839
  215. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  216. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  217. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  218. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements-1 +0 -0
  219. package/lib/module/blinkIdUtilities.js +0 -21
  220. package/lib/module/blinkIdUtilities.js.map +0 -1
  221. package/lib/typescript/src/blinkIdUtilities.d.ts +0 -8
  222. package/lib/typescript/src/blinkIdUtilities.d.ts.map +0 -1
  223. package/src/blinkIdUtilities.ts +0 -20
package/src/types.ts CHANGED
@@ -1,4 +1,361 @@
1
- import { BlinkIdUtilities } from "./blinkIdUtilities";
1
+ /**
2
+ * Settings for the barcode extraction module.
3
+ *
4
+ * This module manages the detection and data extraction from various 1D and 2D
5
+ * barcode formats (such as PDF417, QR codes, and various retail codes).
6
+ *
7
+ * It can operate as a standalone module or in combination with document capture.
8
+ */
9
+ export type BarcodeModuleSettings = {
10
+ /*
11
+ * If set to true, barcode presence becomes mandatory for the scanned document.
12
+ * For [ScanningMode.single], the barcode must be present on the scanned side.
13
+ * For [ScanningMode.automatic], the barcode must be present on one of the scanned sides.
14
+ *
15
+ * In case of a timeout and advancement to the next step in the scanning flow,
16
+ * if a barcode is detected on the scanned side but cannot be extracted,
17
+ * the presence requirement is considered fulfilled. As a result, barcode extraction
18
+ * will no longer be a requirement to complete the scan on next side.
19
+ */
20
+ presenceMandatory: boolean;
21
+
22
+ /*
23
+ * Indicates whether the barcode image should be returned in the result.
24
+ *
25
+ * The DPI setting and the extension factor do not affect returned barcode image.
26
+ */
27
+ barcodeImageReturnEnabled: boolean;
28
+ /*
29
+ * Enables the scanning and processing of Pdf417 barcodes.
30
+ *
31
+ * The current analyzer model flags a barcode as "present" if either a `PDF417` or a `QR` code is detected.
32
+ * Because the model does not distinguish between the two types at this stage, a conflict can occur:
33
+ * if `PDF417` is enabled but `QR` is disabled, the analyzer may trigger for a `QR` code, causing the process to hang.
34
+ * To prevent this, `pdf417ScanningEnabled` and `qrScanningEnabled` must be enabled together.
35
+ */
36
+ pdf417ScanningEnabled: boolean;
37
+ /*
38
+ * Enables the scanning and processing of QR barcodes.
39
+ *
40
+ * The current analyzer model flags a barcode as "present" if either a `PDF417` or a `QR` code is detected.
41
+ * Because the model does not distinguish between the two types at this stage, a conflict can occur:
42
+ * if `PDF417` is enabled but `QR` is disabled, the analyzer may trigger for a `QR` code, causing the process to hang.
43
+ *
44
+ * To prevent this, `qrScanningEnabled` and `pdf417ScanningEnabled` must be enabled together.
45
+ */
46
+ qrScanningEnabled: boolean;
47
+
48
+ /*
49
+ * Enables the scanning and processing of UPC-E barcodes.
50
+ *
51
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
52
+ */
53
+ upceScanningEnabled: boolean;
54
+
55
+ /*
56
+ * Enables the scanning and processing of UPC-A barcodes.
57
+ *
58
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
59
+ */
60
+ upcaScanningEnabled: boolean;
61
+
62
+ /*
63
+ * Enables the scanning and processing of Code-128 barcodes.
64
+ *
65
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
66
+ */
67
+ code128ScanningEnabled: boolean;
68
+
69
+ /*
70
+ * Enables the scanning and processing of Code-39 barcodes.
71
+ *
72
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
73
+ */
74
+ code39ScanningEnabled: boolean;
75
+
76
+ /*
77
+ * Enables the scanning and processing of EAN-8 barcodes.
78
+ *
79
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
80
+ */
81
+ ean8ScanningEnabled: boolean;
82
+
83
+ /*
84
+ * Enables the scanning and processing of EAN-13 barcodes.
85
+ *
86
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
87
+ */
88
+ ean13ScanningEnabled: boolean;
89
+
90
+ /*
91
+ * Enables the scanning and processing of ITF barcodes.
92
+ *
93
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
94
+ */
95
+ itfScanningEnabled: boolean;
96
+
97
+ /*
98
+ * Enables the scanning and processing of DataMatrix barcodes.
99
+ *
100
+ * This setting can be enabled only if `documentCaptureEnabled` is disabled.
101
+ */
102
+ dataMatrixScanningEnabled: boolean;
103
+ };
104
+
105
+ /*
106
+ * Settings for the document capture module.
107
+ *
108
+ * This module is responsible for the initial document detection, image extraction
109
+ * (such as face and document images), and image quality validation (blur, glare,
110
+ * and lighting checks).
111
+ */
112
+ export type DocumentCaptureModuleSettings = {
113
+ /*
114
+ * Indicates whether the input image is already cropped and perspective-corrected.
115
+ *
116
+ * Requires the input image to consist solely of the cropped document image with perspective correction applied.
117
+ * This only applies to images from the DirectAPI method of scanning — with images from the default scanning, the setting will be ignored.
118
+ */
119
+ inputImageCropped: boolean;
120
+
121
+ /*
122
+ * Enables the scanning and processing of unsupported document types.
123
+ *
124
+ * A document is considered unsupported if its classification result is `OTHER`.
125
+ */
126
+ unsupportedDocumentsAllowed: boolean;
127
+
128
+ /*
129
+ * Indicates whether the back side scan should be skipped if the document supports only image capture on that side.
130
+ *
131
+ * Some documents have a back side that is supported but contains no extractable data (no MRZ, Barcode, etc.).
132
+ * These sides will be "captured only".
133
+ *
134
+ * If set to `true` (default), the scanning process will stop after the front side for such documents.
135
+ * If set to `false`, the back side will be captured, even though no data extraction is performed.
136
+ */
137
+ secondSideWithNoExtractableDataSkipped: boolean;
138
+
139
+ /*
140
+ * Indicates whether only the passport data page should be scanned.
141
+ *
142
+ * Scan only the data page (page containing `MRZ`) of the passport.
143
+ *
144
+ * If set to `false`, it will be required to scan the second page of certain passports.
145
+ */
146
+ passportDataPageScanOnly: boolean;
147
+
148
+ /*
149
+ * Enables the extraction of the document's face image.
150
+ *
151
+ * If a face image is present on the document, extraction becomes mandatory if supported.
152
+ *
153
+ * For supported documents, the requirement for its presence is determined by document rules.
154
+ * For unsupported documents, presence is optional.
155
+ */
156
+ faceImageExtractionEnabled: boolean;
157
+
158
+ /*
159
+ * If set to `true`, face image presence will be mandatory for the scanned document.
160
+ *
161
+ * For [ScanningMode.automatic], document side with the face image must be scanned first.
162
+ *
163
+ * In case of a timeout and advancement to the next step in the scanning flow,
164
+ * if a face image is detected on the scanned side but cannot be extracted,
165
+ * the presence requirement is considered fulfilled. As a result, face image extraction
166
+ * will no longer be required to complete the scan on the next side.
167
+ */
168
+ faceImagePresenceMandatory: boolean;
169
+
170
+ /*
171
+ * Indicates whether input images should be returned in the result.
172
+ *
173
+ * Saves the input images at the moment of data extraction or timeout.
174
+ * This significantly increases memory consumption. Scanning performance is not affected.
175
+ */
176
+ inputImageReturnEnabled: boolean;
177
+
178
+ /*
179
+ * Indicates whether the cropped document image should be returned in the result.
180
+ *
181
+ */
182
+ documentImageReturnEnabled: boolean;
183
+
184
+ /*
185
+ * Defines the minimum required margin (in percentage) between the edge of the input image and the document.
186
+ *
187
+ * This setting is implemented to comply with regulations in certain countries that mandate documents
188
+ * to be stored with adequate margins in the image.
189
+ *
190
+ * Default value is `0.02`.
191
+ * The setting is applicable only when using images from `Video` source.
192
+ * The setting is ignored if `inputImageCropped == true`.
193
+ *
194
+ * Allowed minimal value is `0.0` and maximum value is `1.0`.
195
+ */
196
+ inputImageMargin?: number;
197
+
198
+ /*
199
+ * The DPI value for the cropped document, face and signature image.
200
+ *
201
+ * Allowed minimal value is `100` and maximum value is `400`.
202
+ */
203
+ dotsPerInch: number;
204
+
205
+ /*
206
+ * The extension factor for the cropped document image. Applicable only to document images.
207
+ * Allowed minimal value is `0.0` and maximum value is `1.0`.
208
+ *
209
+ */
210
+ extensionFactor: number;
211
+
212
+ /*
213
+ * The sensitivity of blur detection in the document image.
214
+ *
215
+ * Defines the severity of blur detected in the document image.
216
+ *
217
+ * Low – less sensitive to blur; if something is detected as blur, it is almost certainly actual blur,
218
+ * but some amount of blur may not be detected.
219
+ *
220
+ * High – highly sensitive to blur; it may detect blur even if it only resembles blur.
221
+ *
222
+ * See {@link SensitivityLevel} for more information
223
+ */
224
+ blurSensitivityLevel: SensitivityLevel;
225
+
226
+ /*
227
+ * Indicates whether images with detected blur should be rejected.
228
+ *
229
+ * If `true`, images with detected blur will be excluded from further processing.
230
+ *
231
+ * If `false`, images will still be processed and blur status will be reported in the result.
232
+ */
233
+ imageWithBlurRejected: boolean;
234
+
235
+ /*
236
+ * The sensitivity of glare detection in the document image.
237
+ *
238
+ * Low – less sensitive to glare.
239
+ * High – highly sensitive to glare.
240
+ * See {@link SensitivityLevel} for more information
241
+ */
242
+ glareSensitivityLevel: SensitivityLevel;
243
+
244
+ /*
245
+ * Indicates whether images with detected glare should be rejected.
246
+ *
247
+ * If `true`, images with detected glare will be excluded from further processing.
248
+ *
249
+ * If `false`, images will still be processed and glare status will be reported in the result.
250
+ */
251
+ imageWithGlareRejected: boolean;
252
+
253
+ /*
254
+ * The sensitivity of allowed detected tilt of the document in the image.
255
+ *
256
+ * Low – less sensitive to tilt.
257
+ * High – highly sensitive to tilt.
258
+ * See {@link SensitivityLevel} for more information
259
+ */
260
+ tiltSensitivityLevel: SensitivityLevel;
261
+
262
+ /*
263
+ * Indicates whether images with poor lighting conditions should be rejected.
264
+ *
265
+ * Poor lighting conditions are represented as either `tooBright` or `tooDark`.
266
+ *
267
+ * If `true`, such images will be excluded from further processing.
268
+ */
269
+ imageWithPoorLightingRejected: boolean;
270
+
271
+ /*
272
+ * Indicates whether images occluded by a hand should be rejected.
273
+ *
274
+ * If `true`, occluded images will be excluded from further processing.
275
+ *
276
+ * This setting is applicable only if `inputImageCropped == false`.
277
+ */
278
+ imageWithHandOcclusionRejected: boolean;
279
+ };
280
+
281
+ /*
282
+ * Settings for the MRZ (Machine Readable Zone) extraction module.
283
+ *
284
+ * This module is dedicated to the detection and parsing of machine-readable
285
+ * zone typically found on passports, visas, and identity cards.
286
+ */
287
+ export type MrzModuleSettings = {
288
+ /*
289
+ * If set to `true`, MRZ presence becomes mandatory for the scanned document
290
+ * regardless of the document rules.
291
+ *
292
+ * For [ScanningMode.single], the MRZ must be present on the scanned side.
293
+ * For [ScanningMode.automatic], the MRZ must be present on one of the scanned sides.
294
+ *
295
+ * In case of a timeout and advancement to the next step in the scanning flow,
296
+ * if an MRZ is detected on the scanned side but cannot be extracted,
297
+ * the presence requirement is considered fulfilled. As a result, MRZ extraction
298
+ * will no longer be required to complete the scan on the next side.
299
+ */
300
+ presenceMandatory: boolean;
301
+ };
302
+
303
+ /*
304
+ * Settings for the VIZ (Visual Inspection Zone) extraction module.
305
+ *
306
+ * This module is responsible for extracting data from the document's
307
+ * visual fields.
308
+ *
309
+ * It supports features such as character validation for increased accuracy,
310
+ * signature image extraction, and data aggregation across multiple video frames.
311
+ */
312
+ export type VizModuleSettings = {
313
+ /*
314
+ * If set to true, Viz presence becomes mandatory for the scanned document.
315
+ *
316
+ * For {@link ScanningMode.single}, the Viz must be present on the scanned side.
317
+ * Only the front side of supported documents can be scanned.
318
+ *
319
+ * For {@link ScanningMode.automatic}, this setting won't affect the default behaviour;
320
+ * front side must be scanned first followed by the back side.
321
+ *
322
+ * In case of a timeout and advancement to the next step in the scanning flow,
323
+ * if a Viz was not extracted fully from a front side, we'll proceed to extract Viz
324
+ * from the back side, if present.
325
+ */
326
+ presenceMandatory: boolean;
327
+
328
+ /*
329
+ * Enables the extraction of the document's signature image if supported.
330
+ *
331
+ * For supported documents, signature image extraction is determined by document rules.
332
+ * For unsupported documents, extraction won't be performed.
333
+ */
334
+ signatureImageExtractionEnabled: boolean;
335
+
336
+ /*
337
+ * Indicates whether character validation is enabled.
338
+ *
339
+ * Allow only results containing expected characters for a given field.
340
+ * Each field is validated against a set of rules.
341
+ * All fields have to be successfully validated in order to successfully scan a document.
342
+ * Setting is used to improve scanning accuracy.
343
+ */
344
+ characterValidationEnabled: boolean;
345
+
346
+ /*
347
+ * Indicates whether the aggregation of data from multiple input images is enabled.
348
+ *
349
+ * Disabling this setting will yield higher-quality captured images, but it may slow down the scanning process due to the additional
350
+ * effort required to find the optimal image.
351
+ *
352
+ * Enabling this setting will simplify the extraction process, but the extracted data will be aggregated from multiple images instead
353
+ * of being sourced from a single image.
354
+ *
355
+ * This only applies to images from `Video` input image source - for images from `Photo` source, setting will be ignored.
356
+ */
357
+ resultAggregationEnabled: boolean;
358
+ };
2
359
 
3
360
  /**
4
361
  * ClassFilter represents the document filter used to determine which documents will be processed.
@@ -9,7 +366,7 @@ import { BlinkIdUtilities } from "./blinkIdUtilities";
9
366
  *
10
367
  * By default, the ClassFilter is turned off, and all documents will be included.
11
368
  */
12
- export class ClassFilter {
369
+ export type ClassFilter = {
13
370
  /**
14
371
  * Document classes that will be explicitly accepted by this filter.
15
372
  * Only documents belonging to the specified classes will be processed. All other documents will be rejected.
@@ -63,27 +420,40 @@ export class ClassFilter {
63
420
  * See {@link DocumentFilter} for setting the combinations.
64
421
  */
65
422
  excludeDocuments?: DocumentFilter[];
423
+ };
66
424
 
67
- /**
425
+ /*
426
+ * A resolver that provides custom [RedactionSettings] for a scanned document
427
+ * based on its detected class information.
428
+ *
429
+ * Add the resolver when you need per-document redaction behavior — for example,
430
+ * anonymizing different fields depending on the document's country or type. The resolver
431
+ * is invoked by the SDK immediately before the scanning result is finalized.
432
+ *
433
+ * If not added, the SDK will use the default [RedactionSettings] for a given document class.
434
+ */
435
+ export type RedactionSettingsResolver = {
436
+ /*
437
+ * A list of redaction configurations evaluated by the SDK.
438
+ *
439
+ * Each [RedactionSettings] entry can target specific document classes
440
+ * using [RedactionSettings.documentFilter].
68
441
  *
69
- * @param includeDocuments - specifies which document classes that will be explicitly accepted by this filter.
70
- * @param excludeDocuments - specifies which document classes that will be explicitly rejected by this filter.
442
+ * During scanning, the SDK selects the first matching configuration
443
+ * for the detected document class and applies its redaction rules.
444
+ *
445
+ * If no matching configuration is found, the default SDK redaction
446
+ * behavior is used.
71
447
  */
72
- constructor(
73
- includeDocuments?: DocumentFilter[],
74
- excludeDocuments?: DocumentFilter[]
75
- ) {
76
- this.includeDocuments = includeDocuments;
77
- this.excludeDocuments = excludeDocuments;
78
- }
79
- }
448
+ documentRedactionList: RedactionSettings[];
449
+ };
80
450
 
81
451
  /**
82
452
  * Represents the document filter.
83
453
  *
84
- * Used with other classes like the {@link ClassFilter}, {@link DocumentRules} and the {@link DocumentAnonymizationSettings}.
454
+ * Used with other classes like the {@link ClassFilter}, {@link DocumentRules} and the {@link RedactionSettings}.
85
455
  */
86
- export class DocumentFilter {
456
+ export type DocumentFilter = {
87
457
  /**
88
458
  * If set, only specified country will pass the filter criteria.
89
459
  * Otherwise, issuing country will not betaken into account.
@@ -101,86 +471,7 @@ export class DocumentFilter {
101
471
  * Otherwise, issuing type will not be taken into account.
102
472
  */
103
473
  documentType?: DocumentType;
104
-
105
- /**
106
- *
107
- * @param country - specifies the {@link Country} that will pass the filter criteria.
108
- *
109
- * @param region - specifies the {@link Region} that will pass the filter criteria.
110
- *
111
- * @param documentType - specifies the {@link DocumentType} that will pass the filter criteria.
112
- *
113
- *
114
- * All parameters are optional, and do not need to be added.
115
- * The filter can be set to be more generic (for example, to only accept document from USA):
116
- * ```
117
- * DocumentFilter(Country.Usa);
118
- * ```
119
- * or, it can be set to be more specific (for example, to specifically accept USA drivers licenses from California):
120
- * ```
121
- * DocumentFilter(Country.Usa, Region.California, DocumentType.Dl);
122
- * ```
123
- */
124
- constructor(country?: Country, region?: Region, documentType?: DocumentType) {
125
- this.country = country;
126
- this.region = region;
127
- this.documentType = documentType;
128
- }
129
- }
130
-
131
- /**
132
- * Represents the custom document rules.
133
- *
134
- * This setting allows users to narrow down our internal rules on mandatory fields. All undefined fields will become optional.
135
- * It is not possible to mark fields as mandatory if they cannot theoretically appear on the document.
136
- * The more detailed document filter will have priority over the other.
137
- *
138
- * Document fields are validated using internal rules that define mandatory fields for the scanned document class.
139
- */
140
- export class DocumentRules {
141
- /**
142
- * Specified fields will overrule our document class field rules if filter conditions are met.
143
- *
144
- * See {@link DocumentFilter} for more information.
145
- */
146
- documentFilter?: DocumentFilter;
147
-
148
- /**
149
- * Fields to overrule our class field rules.
150
- *
151
- * See {@link DetailedFieldType} for more information.
152
- */
153
- fields: DetailedFieldType[];
154
-
155
- /**
156
- * Represents the custom document rules.
157
- *
158
- * This setting allows users to narrow down our internal rules on mandatory fields. All undefined fields will become optional.
159
- * It is not possible to mark fields as mandatory if they cannot theoretically appear on the document.
160
- * The more detailed document filter will have priority over the other.
161
- *
162
- * Document fields are validated using internal rules that define mandatory fields for the scanned document class.
163
- * Defines custom rules for specific document class.
164
- *
165
- * When defining {@link DocumentRules}, the {@link DocumentFilter} paramter is optionally set to specify the document to which the rule applies, and a `fields` with
166
- * the appropriate `alphabetType` should be specified as mandatory for that document.
167
- * 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.
168
- * If a `fields` is set to a field with an incorrect alphabetType, all fields on the document become optional.
169
- * If a `fields` is set to a field that doesn’t exist in the internal rules, that rule is ignored.
170
- * 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.
171
- * If the documentFilter fields `country`, `region`, or `type` are set to `null`, all supported values for those fields will be considered.
172
- * For example, if `country = null`, the rule will apply to all supported countries in BlinkID.
173
- *
174
- * @param fields - specifies the list of {@link DetailedFieldType} for overruling our class field rules.
175
- * This parameter is mandatory.
176
- * @param documentFilter - specifies the {@link DocumentFilter} to specify the document to which the rule applies.
177
- * This parameter is optional.
178
- */
179
- constructor(fields: DetailedFieldType[], documentFilter?: DocumentFilter) {
180
- this.fields = fields;
181
- this.documentFilter = documentFilter;
182
- }
183
- }
474
+ };
184
475
 
185
476
  /**
186
477
  * Represents the detailed field type.
@@ -215,54 +506,47 @@ export class DetailedFieldType {
215
506
  }
216
507
 
217
508
  /**
218
- * Represents the document anonymization settings.
509
+ * Represents the document redaction settings.
219
510
  *
220
511
  */
221
- export class DocumentAnonymizationSettings {
512
+ export type RedactionSettings = {
222
513
  /**
223
- * Document fields that will be anonymized.
224
- *
514
+ * The mode of redaction applied to the document.
225
515
  */
226
- fields: FieldType[];
516
+ mode: RedactionMode;
227
517
 
228
518
  /**
229
- * Specified fields will be anonymized if filter conditions are met.
519
+ * Document fields that will be anonymized.
230
520
  *
231
521
  */
232
- documentFilter?: DocumentFilter;
522
+ fields: FieldType[];
233
523
 
234
524
  /**
235
525
  * Document number anonymization settings.
236
526
  *
237
527
  */
238
- documentNumberAnonymizationSettings?: DocumentNumberAnonymizationSettings;
528
+ documentNumberRedactionSettings?: DocumentNumberRedactionSettings;
239
529
 
240
- /**
241
- *
242
- * @param fields - specifies the document fields that will be anonymized. This parameter is mandatory.
243
- *
244
- * @param documentFilter - specifies the document filter.
530
+ /*
531
+ * If true, whole Mrz result will be redacted.
245
532
  *
246
- * If the conditions of the filter are met, fields of those documents will be anonymized.
247
- * This parameter is mandatory.
248
- * @param documentNumberAnonymizationSettings - specifies the document number anonymization settings.
533
+ * Default: `false`
534
+ */
535
+ redactMrzResult: boolean;
536
+
537
+ /*
538
+ * If true, whole Barcode result will be redacted.
249
539
  *
250
- * If this parameter is set, it will anonymize the document number, even if the document number is not set in the `fields` parameter.
251
- * If the default constructor for {@link DocumentNumberAnonymizationSettings} is used, all of the digits within the document number will be anonymized.
540
+ * Default: `false`
541
+ */
542
+ redactBarcodeResult: boolean;
543
+
544
+ /**
545
+ * Specified fields will be anonymized if filter conditions are met.
252
546
  *
253
- * This parameter is optional.
254
547
  */
255
- constructor(
256
- fields: FieldType[],
257
- documentFilter?: DocumentFilter,
258
- documentNumberAnonymizationSettings?: DocumentNumberAnonymizationSettings
259
- ) {
260
- this.fields = fields;
261
- this.documentFilter = documentFilter;
262
- this.documentNumberAnonymizationSettings =
263
- documentNumberAnonymizationSettings;
264
- }
265
- }
548
+ documentFilter?: DocumentFilter;
549
+ };
266
550
 
267
551
  /**
268
552
  * Represents the document number anonymization settings.
@@ -274,7 +558,7 @@ export class DocumentAnonymizationSettings {
274
558
  *
275
559
  * If any parameter is `undefined`, the value of the parameter will be set to `0`.
276
560
  */
277
- export class DocumentNumberAnonymizationSettings {
561
+ export type DocumentNumberRedactionSettings = {
278
562
  /**
279
563
  * Defines how many digits at the beginning of the document number remain visible after anonymization.
280
564
  *
@@ -286,73 +570,13 @@ export class DocumentNumberAnonymizationSettings {
286
570
  *
287
571
  */
288
572
  suffixDigitsVisible?: number;
289
-
290
- constructor(
291
- prefixDigitsVisible: number = 0,
292
- suffixDigitsVisible: number = 0
293
- ) {
294
- this.prefixDigitsVisible = prefixDigitsVisible;
295
- this.suffixDigitsVisible = suffixDigitsVisible;
296
- }
297
- }
298
- /**
299
- * Represents the configuration used to enable/disable recognition of specific
300
- * document groups.
301
- *
302
- * By default all modes are enabled.
303
- */
304
- export class RecognitionModeFilter {
305
- /**
306
- * Enable scanning of MRZ IDs.
307
- *
308
- */
309
- enableMrzId: boolean;
310
-
311
- /**
312
- * Enable scanning of visa MRZ.
313
- *
314
- */
315
- enableMrzVisa: boolean;
316
-
317
- /**
318
- * Enable scanning of Passport MRZ.
319
- *
320
- */
321
- enableMrzPassport: boolean;
322
-
323
- /**
324
- * Enable scanning of Photo ID.
325
- *
326
- */
327
- enablePhotoId: boolean;
328
-
329
- /**
330
- * Enable scanning of barcode IDs.
331
- *
332
- */
333
- enableBarcodeId: boolean;
334
-
335
- /**
336
- * Enable full document recognition.
337
- *
338
- */
339
- enableFullDocumentRecognition: boolean;
340
-
341
- constructor() {
342
- this.enableMrzId = true;
343
- this.enableMrzVisa = true;
344
- this.enableMrzPassport = true;
345
- this.enablePhotoId = true;
346
- this.enableBarcodeId = true;
347
- this.enableFullDocumentRecognition = true;
348
- }
349
- }
573
+ };
350
574
 
351
575
  /**
352
576
  * Represents the document class information.
353
577
  *
354
578
  */
355
- export class DocumentClassInfo {
579
+ export type DocumentClassInfo = {
356
580
  /**
357
581
  * The document country.
358
582
  *
@@ -402,29 +626,13 @@ export class DocumentClassInfo {
402
626
  *
403
627
  */
404
628
  isoAlpha3CountryCode?: string;
405
-
406
- /**
407
- *
408
- * @param nativeDocumentClassInfo
409
- *
410
- */
411
- constructor(nativeDocumentClassInfo: any) {
412
- this.country = nativeDocumentClassInfo.country;
413
- this.region = nativeDocumentClassInfo.region;
414
- this.documentType = nativeDocumentClassInfo.documentType;
415
- this.empty = nativeDocumentClassInfo.empty;
416
- this.countryName = nativeDocumentClassInfo.countryName;
417
- this.isoNumericCountryCode = nativeDocumentClassInfo.isoNumericCountryCode;
418
- this.isoAlpha2CountryCode = nativeDocumentClassInfo.isoAlpha2CountryCode;
419
- this.isoAlpha3CountryCode = nativeDocumentClassInfo.isoAlpha3CountryCode;
420
- }
421
- }
629
+ };
422
630
 
423
631
  /**
424
632
  * Represents the result of the data match.
425
633
  *
426
634
  */
427
- export class DataMatchResult {
635
+ export type DataMatchResult = {
428
636
  /**
429
637
  * The state of the data match on the whole document.
430
638
  *
@@ -438,25 +646,13 @@ export class DataMatchResult {
438
646
  * See {@link DataMatchResultField} for more information.
439
647
  */
440
648
  states?: DataMatchResultField[];
441
-
442
- /**
443
- *
444
- * @param nativeDataMatchResult
445
- */
446
- constructor(nativeDataMatchResult: any) {
447
- this.overallState =
448
- nativeDataMatchResult.overallState != undefined
449
- ? (nativeDataMatchResult.overallState as DataMatchState)
450
- : undefined;
451
- this.states = nativeDataMatchResult.states;
452
- }
453
- }
649
+ };
454
650
 
455
651
  /**
456
652
  * Represents the state of the field in the data match.
457
653
  *
458
654
  */
459
- export class DataMatchResultField {
655
+ export type DataMatchResultField = {
460
656
  /**
461
657
  * The type of the field.
462
658
  *
@@ -469,17 +665,7 @@ export class DataMatchResultField {
469
665
  * See {@link DataMatchState} for more information.
470
666
  */
471
667
  state?: DataMatchState;
472
-
473
- /**
474
- *
475
- * @param nativeDataMatchResultField
476
- *
477
- */
478
- constructor(nativeDataMatchResultField: any) {
479
- this.field = nativeDataMatchResultField.field;
480
- this.state = nativeDataMatchResultField.state;
481
- }
482
- }
668
+ };
483
669
 
484
670
  /**
485
671
  * Represents the multi-alphabet string result extracted from the OCR.
@@ -487,7 +673,7 @@ export class DataMatchResultField {
487
673
  * The result contains the extracted strings, their locations, and the sides of the extracted strings.
488
674
  *
489
675
  */
490
- export class StringResult {
676
+ export type StringResult = {
491
677
  /**
492
678
  * All strings separated by new line
493
679
  *
@@ -531,34 +717,13 @@ export class StringResult {
531
717
  * See {@link Side} for more information.
532
718
  */
533
719
  side?: Side;
534
-
535
- /**
536
- *
537
- * @param nativeStringResult
538
- *
539
- */
540
- constructor(nativeStringResult: any) {
541
- this.value = nativeStringResult.value;
542
- this.latin = nativeStringResult.latin;
543
- this.cyrillic = nativeStringResult.cyrillic;
544
- this.arabic = nativeStringResult.arabic;
545
- this.greek = nativeStringResult.greek;
546
- this.location =
547
- nativeStringResult.location != undefined
548
- ? new Location(nativeStringResult.location)
549
- : undefined;
550
- this.side =
551
- nativeStringResult.side != undefined
552
- ? new Side(nativeStringResult.side)
553
- : undefined;
554
- }
555
- }
720
+ };
556
721
 
557
722
  /**
558
723
  * Represents the rectangle location of each document field
559
724
  *
560
725
  */
561
- export class Rectangle {
726
+ export type Rectangle = {
562
727
  /**
563
728
  * X location
564
729
  *
@@ -582,25 +747,13 @@ export class Rectangle {
582
747
  *
583
748
  */
584
749
  height?: number;
585
-
586
- /**
587
- *
588
- * @param nativeRectangle
589
- *
590
- */
591
- constructor(nativeRectangle: any) {
592
- this.x = nativeRectangle.x;
593
- this.y = nativeRectangle.y;
594
- this.width = nativeRectangle.width;
595
- this.height = nativeRectangle.height;
596
- }
597
- }
750
+ };
598
751
 
599
752
  /**
600
753
  * Represents the information about the location of an element within a document or image.
601
754
  *
602
755
  */
603
- export class Location {
756
+ export type Location = {
604
757
  /**
605
758
  * Rectangle location of the result extracted from the OCR in the latin alphabet.
606
759
  *
@@ -624,80 +777,44 @@ export class Location {
624
777
  *
625
778
  */
626
779
  greek?: Rectangle;
627
-
628
- /**
629
- *
630
- * @param nativeLocation
631
- *
632
- */
633
- constructor(nativeLocation: any) {
634
- this.latin =
635
- nativeLocation.latin != undefined
636
- ? new Rectangle(nativeLocation.latin)
637
- : undefined;
638
- this.arabic =
639
- nativeLocation.arabic != undefined
640
- ? new Rectangle(nativeLocation.arabic)
641
- : undefined;
642
- this.cyrillic =
643
- nativeLocation.cyrillic != undefined
644
- ? new Rectangle(nativeLocation.cyrillic)
645
- : undefined;
646
- this.greek =
647
- nativeLocation.greek != undefined
648
- ? new Rectangle(nativeLocation.greek)
649
- : undefined;
650
- }
651
- }
780
+ };
652
781
 
653
782
  /**
654
- * Side of the document on which the specific result is located.
783
+ * Scanning side on which the specific result is located.
655
784
  *
656
785
  */
657
- export class Side {
786
+ export type Side = {
658
787
  /**
659
- * Document side of the result extracted from the OCR in the latin alphabet.
788
+ * Scanning side of the result extracted from the OCR in the latin alphabet.
660
789
  *
661
790
  */
662
- latin?: DocumentSide;
791
+ latin?: ScanningSide;
663
792
 
664
793
  /**
665
- * Document side of the result extracted from the OCR in the arabic alphabet.
794
+ * Scanning side of the result extracted from the OCR in the arabic alphabet.
666
795
  *
667
796
  */
668
- arabic?: DocumentSide;
797
+ arabic?: ScanningSide;
669
798
 
670
799
  /**
671
- * Document side of the result extracted from the OCR in the cyrillic alphabet.
800
+ * Scanning side of the result extracted from the OCR in the cyrillic alphabet.
672
801
  *
673
802
  */
674
- cyrillic?: DocumentSide;
803
+ cyrillic?: ScanningSide;
675
804
 
676
805
  /**
677
- * Document side of the result extracted from the OCR in the cyrillic alphabet.
806
+ * Scanning side of the result extracted from the OCR in the greek alphabet.
678
807
  *
679
808
  */
680
- greek?: DocumentSide;
681
-
682
- /**
683
- *
684
- * @param nativeSide
685
- *
686
- */
687
- constructor(nativeSide: any) {
688
- this.latin = nativeSide.latin;
689
- this.arabic = nativeSide.arabic;
690
- this.cyrillic = nativeSide.cyrillic;
691
- this.greek = nativeSide.greek;
692
- }
693
- }
809
+ greek?: ScanningSide;
810
+ };
694
811
 
695
812
  /**
696
813
  * Represents the result of the date extraction.
697
814
  *
698
815
  * Contains the extracted date, along with additional date information.
699
816
  */
700
- export class DateResult<T> {
817
+ export type DateResult<T> = {
701
818
  /**
702
819
  * The extracted date information.
703
820
  *
@@ -723,22 +840,13 @@ export class DateResult<T> {
723
840
  *
724
841
  */
725
842
  successfullyParsed?: boolean;
726
-
727
- constructor(nativeDateResult: any) {
728
- this.date = nativeDateResult.date;
729
- this.originalString = BlinkIdUtilities.handleStringType<T>(
730
- nativeDateResult.originalString
731
- );
732
- this.isFilledByDomainKnowledge = nativeDateResult.isFilledByDomainKnowledge;
733
- this.successfullyParsed = nativeDateResult.successfullyParsed;
734
- }
735
- }
843
+ };
736
844
 
737
845
  /**
738
846
  * Represents the extracted date.
739
847
  *
740
848
  */
741
- export class Date {
849
+ export type Date = {
742
850
  /**
743
851
  * Day of the month.
744
852
  *
@@ -757,23 +865,13 @@ export class Date {
757
865
  *
758
866
  */
759
867
  year?: number;
760
-
761
- /**
762
- *
763
- * @param nativeDate
764
- */
765
- constructor(nativeDate: any) {
766
- this.day = nativeDate.day;
767
- this.month = nativeDate.month;
768
- this.year = nativeDate.year;
769
- }
770
- }
868
+ };
771
869
 
772
870
  /**
773
871
  * Represents detailed extracted information about the driver license.
774
872
  *
775
873
  */
776
- export class DriverLicenseDetailedInfo<T> {
874
+ export type DriverLicenseDetailedInfo<T> = {
777
875
  /**
778
876
  * The restrictions to driving privileges for the United States driver license owner.
779
877
  *
@@ -806,27 +904,13 @@ export class DriverLicenseDetailedInfo<T> {
806
904
  * See {@link VehicleClassInfo} for more information.
807
905
  */
808
906
  vehicleClassesInfo?: VehicleClassInfo<T>[];
809
-
810
- constructor(nativeDriverLicenseDetailedInfo: any) {
811
- this.restrictions = BlinkIdUtilities.handleStringType(
812
- nativeDriverLicenseDetailedInfo.restrictions
813
- );
814
- this.endorsements = BlinkIdUtilities.handleStringType(
815
- nativeDriverLicenseDetailedInfo.endorsements
816
- );
817
- this.vehicleClass = BlinkIdUtilities.handleStringType(
818
- nativeDriverLicenseDetailedInfo.vehicleClass
819
- );
820
- this.vehicleClassesInfo =
821
- nativeDriverLicenseDetailedInfo.vehicleClassesInfo;
822
- }
823
- }
907
+ };
824
908
 
825
909
  /**
826
910
  * Represents the information about the vehicle class extraction.
827
911
  *
828
912
  */
829
- export class VehicleClassInfo<T> {
913
+ export type VehicleClassInfo<T> = {
830
914
  /**
831
915
  * The type of driver licence.
832
916
  *
@@ -852,24 +936,13 @@ export class VehicleClassInfo<T> {
852
936
  * See {@link DateResult} for more information.
853
937
  */
854
938
  expiryDate?: DateResult<T>;
855
-
856
- constructor(nativeVehicleClassInfo: any) {
857
- this.licenceType = BlinkIdUtilities.handleStringType<T>(
858
- nativeVehicleClassInfo.licenceType
859
- );
860
- this.vehicleClass = BlinkIdUtilities.handleStringType<T>(
861
- nativeVehicleClassInfo.vehicleClass
862
- );
863
- this.effectiveDate = nativeVehicleClassInfo.effectiveDate;
864
- this.expiryDate = nativeVehicleClassInfo.expiryDate;
865
- }
866
- }
939
+ };
867
940
 
868
941
  /**
869
942
  * Information about the dependent.
870
943
  *
871
944
  */
872
- export class DependentInfo {
945
+ export type DependentInfo = {
873
946
  /**
874
947
  * The date of birth of the dependent.
875
948
  *
@@ -899,21 +972,13 @@ export class DependentInfo {
899
972
  *
900
973
  */
901
974
  empty?: boolean;
902
-
903
- constructor(nativeDependentInfo: any) {
904
- this.dateOfBirth = nativeDependentInfo.dateOfBirth;
905
- this.sex = nativeDependentInfo.sex;
906
- this.documentNumber = nativeDependentInfo.documentNumber;
907
- this.fullName = nativeDependentInfo.fullName;
908
- this.empty = nativeDependentInfo.empty;
909
- }
910
- }
975
+ };
911
976
 
912
977
  /**
913
978
  * Represents the result of the image crop transformation with additional details.
914
979
  *
915
980
  */
916
- export class DetailedCroppedImageResult {
981
+ export type DetailedCroppedImageResult = {
917
982
  /**
918
983
  * The cropped image in the Base64 format
919
984
  *
@@ -931,24 +996,7 @@ export class DetailedCroppedImageResult {
931
996
  *
932
997
  */
933
998
  location?: Rectangle;
934
-
935
- /**
936
- *
937
- * @param nativeDetailedCroppedImageResult
938
- *
939
- */
940
- constructor(nativeDetailedCroppedImageResult: any) {
941
- this.image = nativeDetailedCroppedImageResult.image;
942
- this.side =
943
- nativeDetailedCroppedImageResult.side != undefined
944
- ? (nativeDetailedCroppedImageResult.side as ScanningSide)
945
- : undefined;
946
- this.location =
947
- nativeDetailedCroppedImageResult.location != undefined
948
- ? new Rectangle(nativeDetailedCroppedImageResult.location)
949
- : undefined;
950
- }
951
- }
999
+ };
952
1000
 
953
1001
  /**
954
1002
  * Represents the result of scanning a single side of the document.
@@ -956,7 +1004,7 @@ export class DetailedCroppedImageResult {
956
1004
  * Contains the data extracted from the Visual Inspection Zone, Machine Readable Zone,
957
1005
  * barcode, the input image, and the cropped document, face, and signature images.
958
1006
  */
959
- export class SingleSideScanningResult {
1007
+ export type SingleSideScanningResult = {
960
1008
  /**
961
1009
  * The data extracted from the Visual Inspection Zone.
962
1010
  *
@@ -982,10 +1030,11 @@ export class SingleSideScanningResult {
982
1030
  inputImage?: string;
983
1031
 
984
1032
  /**
985
- * The input image containing parsable barcode in the Base64 format.
1033
+ * The cropped barcode image in the Base64 format when
1034
+ * {@link BarcodeModuleSettings.barcodeImageReturnEnabled} is enabled.
986
1035
  *
987
1036
  */
988
- barcodeInputImage?: string;
1037
+ barcodeImage?: string;
989
1038
 
990
1039
  /**
991
1040
  * The cropped document image in the Base64 format.
@@ -1004,29 +1053,13 @@ export class SingleSideScanningResult {
1004
1053
  *
1005
1054
  */
1006
1055
  signatureImage?: DetailedCroppedImageResult;
1007
-
1008
- /**
1009
- *
1010
- * @param nativeSingleSideScanningResult - specifies the single side scanning result obtained from the native SDK.
1011
- *
1012
- */
1013
- constructor(nativeSingleSideScanningResult: any) {
1014
- this.viz = nativeSingleSideScanningResult.viz;
1015
- this.mrz = nativeSingleSideScanningResult.mrz;
1016
- this.barcode = nativeSingleSideScanningResult.barcode;
1017
- this.inputImage = nativeSingleSideScanningResult.inputImage;
1018
- this.barcodeInputImage = nativeSingleSideScanningResult.barcodeInputImage;
1019
- this.documentImage = nativeSingleSideScanningResult.documentImage;
1020
- this.faceImage = nativeSingleSideScanningResult.faceImage;
1021
- this.signatureImage = nativeSingleSideScanningResult.signatureImage;
1022
- }
1023
- }
1056
+ };
1024
1057
 
1025
1058
  /**
1026
1059
  * Represents the result of the Visual Inspection Zone of a document.
1027
1060
  *
1028
1061
  */
1029
- export class VizResult {
1062
+ export type VizResult = {
1030
1063
  /**
1031
1064
  * The first name of the document owner.
1032
1065
  *
@@ -1243,6 +1276,11 @@ export class VizResult {
1243
1276
  */
1244
1277
  documentNumber?: StringResult;
1245
1278
 
1279
+ /**
1280
+ * The card access number
1281
+ */
1282
+ cardAccessNumber?: StringResult;
1283
+
1246
1284
  /**
1247
1285
  * The personal identification number.
1248
1286
  *
@@ -1357,79 +1395,43 @@ export class VizResult {
1357
1395
  nationalInsuranceNumber?: StringResult;
1358
1396
 
1359
1397
  /**
1398
+ * The effective date of the document.
1399
+ */
1400
+ effectiveDate?: DateResult<StringResult>;
1401
+
1402
+ /**
1403
+ * The parents info.
1360
1404
  *
1361
- * @param nativeVizResult
1362
- *
1363
- */
1364
- constructor(nativeVizResult: any) {
1365
- this.firstName = nativeVizResult.firstName;
1366
- this.lastName = nativeVizResult.lastName;
1367
- this.fullName = nativeVizResult.fullName;
1368
- this.additionalNameInformation = nativeVizResult.additionalNameInformation;
1369
- this.localizedName = nativeVizResult.localizedName;
1370
- this.fathersName = nativeVizResult.fathersName;
1371
- this.mothersName = nativeVizResult.mothersName;
1372
- this.address = nativeVizResult.address;
1373
- this.additionalAddressInformation =
1374
- nativeVizResult.additionalAddressInformation;
1375
- this.additionalOptionalAddressInformation =
1376
- nativeVizResult.additionalOptionalAddressInformation;
1377
- this.placeOfBirth = nativeVizResult.placeOfBirth;
1378
- this.nationality = nativeVizResult.nationality;
1379
- this.race = nativeVizResult.race;
1380
- this.religion = nativeVizResult.religion;
1381
- this.profession = nativeVizResult.profession;
1382
- this.maritalStatus = nativeVizResult.maritalStatus;
1383
- this.residentialStatus = nativeVizResult.residentialStatus;
1384
- this.employer = nativeVizResult.employer;
1385
- this.sex = nativeVizResult.sex;
1386
- this.sponsor = nativeVizResult.sponsor;
1387
- this.bloodType = nativeVizResult.bloodType;
1388
- this.dateOfBirth = nativeVizResult.dateOfBirth;
1389
- this.dateOfIssue = nativeVizResult.dateOfIssue;
1390
- this.dateOfExpiry = nativeVizResult.dateOfExpiry;
1391
- this.dateOfEntry = nativeVizResult.dateOfEntry;
1392
- this.localityCode = nativeVizResult.localityCode;
1393
- this.maidenName = nativeVizResult.maidenName;
1394
- this.municipalityCode = nativeVizResult.municipalityCode;
1395
- this.municipalityOfRegistration =
1396
- nativeVizResult.municipalityOfRegistration;
1397
- this.pollingStationCode = nativeVizResult.pollingStationCode;
1398
- this.registrationCenterCode = nativeVizResult.registrationCenterCode;
1399
- this.sectionCode = nativeVizResult.sectionCode;
1400
- this.stateCode = nativeVizResult.stateCode;
1401
- this.stateName = nativeVizResult.stateName;
1402
- this.dateOfExpiryPermanent = nativeVizResult.dateOfExpiryPermanent;
1403
- this.documentNumber = nativeVizResult.documentNumber;
1404
- this.personalIdNumber = nativeVizResult.personalIdNumber;
1405
- this.documentAdditionalNumber = nativeVizResult.documentAdditionalNumber;
1406
- this.documentOptionalAdditionalNumber =
1407
- nativeVizResult.documentOptionalAdditionalNumber;
1408
- this.additionalPersonalIdNumber =
1409
- nativeVizResult.additionalPersonalIdNumber;
1410
- this.issuingAuthority = nativeVizResult.issuingAuthority;
1411
- this.visaType = nativeVizResult.visaType;
1412
- this.driverLicenseDetailedInfo = nativeVizResult.driverLicenseDetailedInfo;
1413
- this.documentSubtype = nativeVizResult.documentSubtype;
1414
- this.remarks = nativeVizResult.remarks;
1415
- this.residencePermitType = nativeVizResult.residencePermitType;
1416
- this.manufacturingYear = nativeVizResult.manufacturingYear;
1417
- this.vehicleType = nativeVizResult.vehicleType;
1418
- this.eligibilityCategory = nativeVizResult.eligibilityCategory;
1419
- this.specificDocumentValidity = nativeVizResult.specificDocumentValidity;
1420
- this.dependentsInfo = nativeVizResult.dependentsInfo;
1421
- this.vehicleOwner = nativeVizResult.vehicleOwner;
1422
- this.countryCode = nativeVizResult.countryCode;
1423
- this.certificateNumber = nativeVizResult.certificateNumber;
1424
- this.nationalInsuranceNumber = nativeVizResult.nationalInsuranceNumber;
1425
- }
1426
- }
1405
+ * See {@link ParentInfo} for more information.
1406
+ */
1407
+ parentsInfo?: ParentInfo[];
1408
+
1409
+ /**
1410
+ * The husband name of the document owner.
1411
+ */
1412
+ husbandName?: StringResult;
1413
+
1414
+ /**
1415
+ * The legal status of the document owner.
1416
+ */
1417
+ legalStatus?: StringResult;
1418
+
1419
+ /**
1420
+ * The social security status of the document owner.
1421
+ */
1422
+ socialSecurityStatus?: StringResult;
1423
+
1424
+ /**
1425
+ * The work restriction of the document owner.
1426
+ */
1427
+ workRestriction?: StringResult;
1428
+ };
1427
1429
 
1428
1430
  /**
1429
1431
  * Represents the result of the MRZ recognition.
1430
1432
  *
1431
1433
  */
1432
- export class MrzResult {
1434
+ export type MrzResult = {
1433
1435
  /**
1434
1436
  * The entire Machine Readable Zone text from ID.
1435
1437
  *
@@ -1582,43 +1584,13 @@ export class MrzResult {
1582
1584
  * Result without additional '<' characters if they exist.
1583
1585
  */
1584
1586
  sanitizedDocumentNumber?: string;
1585
-
1586
- /**
1587
- *
1588
- * @param nativeMrzResult
1589
- *
1590
- */
1591
- constructor(nativeMrzResult: any) {
1592
- this.rawMRZString = nativeMrzResult.rawMRZString;
1593
- this.documentCode = nativeMrzResult.documentCode;
1594
- this.issuer = nativeMrzResult.issuer;
1595
- this.documentNumber = nativeMrzResult.documentNumber;
1596
- this.opt1 = nativeMrzResult.opt1;
1597
- this.opt2 = nativeMrzResult.opt2;
1598
- this.gender = nativeMrzResult.gender;
1599
- this.nationality = nativeMrzResult.nationality;
1600
- this.primaryID = nativeMrzResult.primaryID;
1601
- this.secondaryID = nativeMrzResult.secondaryID;
1602
- this.issuerName = nativeMrzResult.issuerName;
1603
- this.nationalityName = nativeMrzResult.nationalityName;
1604
- this.verified = nativeMrzResult.verified;
1605
- this.dateOfBirth = nativeMrzResult.dateOfBirth;
1606
- this.dateOfExpiry = nativeMrzResult.dateOfExpiry;
1607
- this.documentType = nativeMrzResult.documentType;
1608
- this.sanitizedOpt1 = nativeMrzResult.sanitizedOpt1;
1609
- this.sanitizedOpt2 = nativeMrzResult.sanitizedOpt2;
1610
- this.sanitizedNationality = nativeMrzResult.sanitizedNationality;
1611
- this.sanitizedIssuer = nativeMrzResult.sanitizedIssuer;
1612
- this.sanitizedDocumentCode = nativeMrzResult.sanitizedDocumentCode;
1613
- this.sanitizedDocumentNumber = nativeMrzResult.sanitizedDocumentNumber;
1614
- }
1615
- }
1587
+ };
1616
1588
 
1617
1589
  /**
1618
1590
  * Represents the data extracted from the barcode.
1619
1591
  *
1620
1592
  */
1621
- export class BarcodeResult {
1593
+ export type BarcodeResult = {
1622
1594
  /**
1623
1595
  * The raw, unparsed barcode data.
1624
1596
  *
@@ -1779,50 +1751,13 @@ export class BarcodeResult {
1779
1751
  * Indicates whether the barcode was successfully parsed.
1780
1752
  */
1781
1753
  parsed?: boolean;
1782
-
1783
- /**
1784
- *
1785
- * @param nativeBarcodeResult
1786
- */
1787
- constructor(nativeBarcodeResult: any) {
1788
- this.barcodeData = nativeBarcodeResult.barcodeData;
1789
- this.firstName = nativeBarcodeResult.firstName;
1790
- this.middleName = nativeBarcodeResult.middleName;
1791
- this.lastName = nativeBarcodeResult.lastName;
1792
- this.fullName = nativeBarcodeResult.fullName;
1793
- this.additionalNameInformation =
1794
- nativeBarcodeResult.additionalNameInformation;
1795
- this.address = nativeBarcodeResult.address;
1796
- this.placeOfBirth = nativeBarcodeResult.placeOfBirth;
1797
- this.nationality = nativeBarcodeResult.nationality;
1798
- this.race = nativeBarcodeResult.race;
1799
- this.religion = nativeBarcodeResult.religion;
1800
- this.profession = nativeBarcodeResult.profession;
1801
- this.maritalStatus = nativeBarcodeResult.maritalStatus;
1802
- this.residentialStatus = nativeBarcodeResult.residentialStatus;
1803
- this.employer = nativeBarcodeResult.employer;
1804
- this.sex = nativeBarcodeResult.sex;
1805
- this.dateOfBirth = nativeBarcodeResult.dateOfBirth;
1806
- this.dateOfIssue = nativeBarcodeResult.dateOfIssue;
1807
- this.dateOfExpiry = nativeBarcodeResult.dateOfExpiry;
1808
- this.documentNumber = nativeBarcodeResult.documentNumber;
1809
- this.personalIdNumber = nativeBarcodeResult.personalIdNumber;
1810
- this.documentAdditionalNumber =
1811
- nativeBarcodeResult.documentAdditionalNumber;
1812
- this.issuingAuthority = nativeBarcodeResult.issuingAuthority;
1813
- this.addressDetailedInfo = nativeBarcodeResult.addressDetailedInfo;
1814
- this.driverLicenseDetailedInfo =
1815
- nativeBarcodeResult.driverLicenseDetailedInfo;
1816
- this.extendedElements = nativeBarcodeResult.extendedElements;
1817
- this.parsed = nativeBarcodeResult.parsed;
1818
- }
1819
- }
1754
+ };
1820
1755
 
1821
1756
  /**
1822
1757
  * Represents the raw, unparsed data extracted from a scanned barcode.
1823
1758
  *
1824
1759
  */
1825
- export class BarcodeData {
1760
+ export type BarcodeData = {
1826
1761
  /**
1827
1762
  * Type of the scanned barcode.
1828
1763
  *
@@ -1846,24 +1781,13 @@ export class BarcodeData {
1846
1781
  *
1847
1782
  */
1848
1783
  uncertain?: boolean;
1849
-
1850
- /**
1851
- *
1852
- * @param nativeBarcodeData - specifies the barcode data obtained from the native SDK.
1853
- */
1854
- constructor(nativeBarcodeData: any) {
1855
- this.barcodeType = nativeBarcodeData.barcodeType;
1856
- this.rawData = nativeBarcodeData.rawData;
1857
- this.stringData = nativeBarcodeData.stringData;
1858
- this.uncertain = nativeBarcodeData.uncertain;
1859
- }
1860
- }
1784
+ };
1861
1785
 
1862
1786
  /**
1863
1787
  * Detailed information about the address.
1864
1788
  *
1865
1789
  */
1866
- export class AddressDetailedInfo {
1790
+ export type AddressDetailedInfo = {
1867
1791
  /**
1868
1792
  * he address street portion of the document owner.
1869
1793
  *
@@ -1887,24 +1811,12 @@ export class AddressDetailedInfo {
1887
1811
  *
1888
1812
  */
1889
1813
  jurisdiction?: string;
1890
-
1891
- /**
1892
- *
1893
- * @param nativeAddressDetailedInfo - specificies the address detailed info obtained from the native SDK.
1894
- *
1895
- */
1896
- constructor(nativeAddressDetailedInfo: any) {
1897
- this.street = nativeAddressDetailedInfo.street;
1898
- this.postalCode = nativeAddressDetailedInfo.postalCode;
1899
- this.city = nativeAddressDetailedInfo.city;
1900
- this.jurisdiction = nativeAddressDetailedInfo.jurisdiction;
1901
- }
1902
- }
1814
+ };
1903
1815
  /**
1904
1816
  * Represents the fields present in the barcode.
1905
1817
  * Currently this is only used for AAMVACompliant documents.
1906
1818
  */
1907
- export class BarcodeExtendedElements {
1819
+ export type BarcodeExtendedElements = {
1908
1820
  /**
1909
1821
  * Mandatory on all AAMVA and Magnetic barcodes.
1910
1822
  * On compact barcodes, use kFullAddress.
@@ -2768,131 +2680,22 @@ export class BarcodeExtendedElements {
2768
2680
  * For example: ANSI 636010090002DL00410267ZF03080067DLDAQS1234567812300000000000000 ^^ | | | +-- SubField Designator (DL, ID, EN, etc.) +----- IIN (636010)
2769
2681
  */
2770
2682
  subFieldDesignator?: string;
2683
+ };
2771
2684
 
2685
+ /**
2686
+ * The results of parents info.
2687
+ */
2688
+ export type ParentInfo = {
2772
2689
  /**
2773
- *
2774
- * @param nativeBarcodeExtendedElements - specifies the extended barcode elements obtained from the native SDK.
2775
- */
2776
- constructor(nativeBarcodeExtendedElements: any) {
2777
- this.addressCity = nativeBarcodeExtendedElements.addressCity;
2778
- this.addressJurisdictionCode =
2779
- nativeBarcodeExtendedElements.addressJurisdictionCode;
2780
- this.addressPostalCode = nativeBarcodeExtendedElements.addressPostalCode;
2781
- this.addressStreet = nativeBarcodeExtendedElements.addressStreet;
2782
- this.addressStreet2 = nativeBarcodeExtendedElements.addressStreet2;
2783
- this.akaDateOfBirth = nativeBarcodeExtendedElements.akaDateOfBirth;
2784
- this.akaFamilyName = nativeBarcodeExtendedElements.akaFamilyName;
2785
- this.akaFullName = nativeBarcodeExtendedElements.akaFullName;
2786
- this.akaGivenName = nativeBarcodeExtendedElements.akaGivenName;
2787
- this.akaMiddleName = nativeBarcodeExtendedElements.akaMiddleName;
2788
- this.akaPrefixName = nativeBarcodeExtendedElements.akaPrefixName;
2789
- this.akaSocialSecurityNumber =
2790
- nativeBarcodeExtendedElements.akaSocialSecurityNumber;
2791
- this.akaSuffixName = nativeBarcodeExtendedElements.akaSuffixName;
2792
- this.auditInformation = nativeBarcodeExtendedElements.auditInformation;
2793
- this.cardRevisionDate = nativeBarcodeExtendedElements.cardRevisionDate;
2794
- this.complianceType = nativeBarcodeExtendedElements.complianceType;
2795
- this.countryIdentification =
2796
- nativeBarcodeExtendedElements.countryIdentification;
2797
- this.customerFamilyName = nativeBarcodeExtendedElements.customerFamilyName;
2798
- this.customerIdNumber = nativeBarcodeExtendedElements.customerIdNumber;
2799
- this.customerFirstName = nativeBarcodeExtendedElements.customerFirstName;
2800
- this.customerFullName = nativeBarcodeExtendedElements.customerFullName;
2801
- this.customerMiddleName = nativeBarcodeExtendedElements.customerMiddleName;
2802
- this.dataDiscriminator = nativeBarcodeExtendedElements.dataDiscriminator;
2803
- this.dateOfBirth = nativeBarcodeExtendedElements.dateOfBirth;
2804
- this.documentDiscriminator =
2805
- nativeBarcodeExtendedElements.documentDiscriminator;
2806
- this.documentExpirationDate =
2807
- nativeBarcodeExtendedElements.documentExpirationDate;
2808
- this.documentExpirationMonth =
2809
- nativeBarcodeExtendedElements.documentExpirationMonth;
2810
- this.documentIssueDate = nativeBarcodeExtendedElements.documentIssueDate;
2811
- this.documentNonexpiring =
2812
- nativeBarcodeExtendedElements.documentNonexpiring;
2813
- this.documentType = nativeBarcodeExtendedElements.documentType;
2814
- this.eyeColor = nativeBarcodeExtendedElements.eyeColor;
2815
- this.familyNameTruncation =
2816
- nativeBarcodeExtendedElements.familyNameTruncation;
2817
- this.federalCommercialVehicleCodes =
2818
- nativeBarcodeExtendedElements.federalCommercialVehicleCodes;
2819
- this.firstNameTruncation =
2820
- nativeBarcodeExtendedElements.firstNameTruncation;
2821
- this.fullAddress = nativeBarcodeExtendedElements.fullAddress;
2822
- this.hairColor = nativeBarcodeExtendedElements.hairColor;
2823
- this.height = nativeBarcodeExtendedElements.height;
2824
- this.heightIn = nativeBarcodeExtendedElements.heightIn;
2825
- this.heightCm = nativeBarcodeExtendedElements.heightCm;
2826
- this.issuerIdentificationNumber =
2827
- nativeBarcodeExtendedElements.issuerIdentificationNumber;
2828
- this.issuingJurisdiction =
2829
- nativeBarcodeExtendedElements.issuingJurisdiction;
2830
- this.issuingJurisdictionName =
2831
- nativeBarcodeExtendedElements.issuingJurisdictionName;
2832
- this.jurisdictionEndorsementCodes =
2833
- nativeBarcodeExtendedElements.jurisdictionEndorsementCodes;
2834
- this.jurisdictionEndorsmentCodeDescription =
2835
- nativeBarcodeExtendedElements.jurisdictionEndorsmentCodeDescription;
2836
- this.jurisdictionRestrictionCodeDescription =
2837
- nativeBarcodeExtendedElements.jurisdictionRestrictionCodeDescription;
2838
- this.jurisdictionRestrictionCodes =
2839
- nativeBarcodeExtendedElements.jurisdictionRestrictionCodes;
2840
- this.jurisdictionVehicleClass =
2841
- nativeBarcodeExtendedElements.jurisdictionVehicleClass;
2842
- this.jurisdictionVehicleClassificationDescription =
2843
- nativeBarcodeExtendedElements.jurisdictionVehicleClassificationDescription;
2844
- this.jurisdictionVersionNumber =
2845
- nativeBarcodeExtendedElements.jurisdictionVersionNumber;
2846
- this.limitedDurationDocument =
2847
- nativeBarcodeExtendedElements.limitedDurationDocument;
2848
- this.medicalIndicator = nativeBarcodeExtendedElements.medicalIndicator;
2849
- this.middleNameTruncation =
2850
- nativeBarcodeExtendedElements.middleNameTruncation;
2851
- this.namePrefix = nativeBarcodeExtendedElements.namePrefix;
2852
- this.nameSuffix = nativeBarcodeExtendedElements.nameSuffix;
2853
- this.nonResident = nativeBarcodeExtendedElements.nonResident;
2854
- this.numberOfDuplicates = nativeBarcodeExtendedElements.numberOfDuplicates;
2855
- this.organDonor = nativeBarcodeExtendedElements.organDonor;
2856
- this.permitExpirationDate =
2857
- nativeBarcodeExtendedElements.permitExpirationDate;
2858
- this.permitIdentifier = nativeBarcodeExtendedElements.permitIdentifier;
2859
- this.permitIssueDate = nativeBarcodeExtendedElements.permitIssueDate;
2860
- this.placeOfBirth = nativeBarcodeExtendedElements.placeOfBirth;
2861
- this.raceEthnicity = nativeBarcodeExtendedElements.raceEthnicity;
2862
- this.residenceCity = nativeBarcodeExtendedElements.residenceCity;
2863
- this.residenceFullAddress =
2864
- nativeBarcodeExtendedElements.residenceFullAddress;
2865
- this.residenceJurisdictionCode =
2866
- nativeBarcodeExtendedElements.residenceJurisdictionCode;
2867
- this.residencePostalCode =
2868
- nativeBarcodeExtendedElements.residencePostalCode;
2869
- this.residenceStreetAddress =
2870
- nativeBarcodeExtendedElements.residenceStreetAddress;
2871
- this.residenceStreetAddress2 =
2872
- nativeBarcodeExtendedElements.residenceStreetAddress2;
2873
- this.securityVersion = nativeBarcodeExtendedElements.securityVersion;
2874
- this.sex = nativeBarcodeExtendedElements.sex;
2875
- this.socialSecurityNumber =
2876
- nativeBarcodeExtendedElements.socialSecurityNumber;
2877
- this.standardEndorsementCode =
2878
- nativeBarcodeExtendedElements.standardEndorsementCode;
2879
- this.standardRestrictionCode =
2880
- nativeBarcodeExtendedElements.standardRestrictionCode;
2881
- this.standardVehicleClassification =
2882
- nativeBarcodeExtendedElements.standardVehicleClassification;
2883
- this.standardVersionNumber =
2884
- nativeBarcodeExtendedElements.standardVersionNumber;
2885
- this.under18 = nativeBarcodeExtendedElements.under18;
2886
- this.under19 = nativeBarcodeExtendedElements.under19;
2887
- this.under21 = nativeBarcodeExtendedElements.under21;
2888
- this.uniqueCustomerId = nativeBarcodeExtendedElements.uniqueCustomerId;
2889
- this.veteran = nativeBarcodeExtendedElements.veteran;
2890
- this.weightKilograms = nativeBarcodeExtendedElements.weightKilograms;
2891
- this.weightPounds = nativeBarcodeExtendedElements.weightPounds;
2892
- this.weightRange = nativeBarcodeExtendedElements.weightRange;
2893
- this.subFieldDesignator = nativeBarcodeExtendedElements.subFieldDesignator;
2894
- }
2895
- }
2690
+ * The first name of one of the document owner's parents.
2691
+ */
2692
+ firstName?: StringResult;
2693
+
2694
+ /**
2695
+ * The last name of one of the document owner's parents.
2696
+ */
2697
+ lastName?: StringResult;
2698
+ };
2896
2699
 
2897
2700
  /**
2898
2701
  * Represents the mode of document scanning.
@@ -2900,50 +2703,48 @@ export class BarcodeExtendedElements {
2900
2703
  * This enum class defines whether the scanning process is limited to a single
2901
2704
  * side of the document or includes multiple sides, automatically identifying how many sides need to be scanned.
2902
2705
  */
2903
- export enum ScanningMode {
2706
+ export type ScanningMode =
2904
2707
  /**
2905
2708
  * Specifies the scanning process to be for single side only.
2906
2709
  *
2907
2710
  */
2908
- Single = 0,
2711
+ | "single"
2909
2712
 
2910
2713
  /**
2911
2714
  * The default `ScanningMode`.
2912
2715
  *
2913
2716
  * Automatically determines the number of sides to scan.
2914
2717
  */
2915
- Automatic = 1,
2916
- }
2718
+ | "automatic";
2917
2719
 
2918
2720
  /**
2919
2721
  * Represents the type of the alphabet used in the document.
2920
2722
  *
2921
2723
  */
2922
- export enum AlphabetType {
2724
+ export type AlphabetType =
2923
2725
  /**
2924
2726
  * The Latin alphabet type
2925
2727
  *
2926
2728
  */
2927
- Latin = "latin",
2729
+ | "latin"
2928
2730
 
2929
2731
  /**
2930
2732
  * The Arabic alphabet type
2931
2733
  *
2932
2734
  */
2933
- Arabic = "arabic",
2735
+ | "arabic"
2934
2736
 
2935
2737
  /**
2936
2738
  * The Cyrillic alphabet type
2937
2739
  *
2938
2740
  */
2939
- Cyrillic = "cyrillic",
2741
+ | "cyrillic"
2940
2742
 
2941
2743
  /**
2942
2744
  * The Greek alphabet type
2943
2745
  *
2944
2746
  */
2945
- Greek = "greek",
2946
- }
2747
+ | "greek";
2947
2748
 
2948
2749
  /**
2949
2750
  * Represents the different levels of detection sensitivity.
@@ -2954,1480 +2755,1461 @@ export enum AlphabetType {
2954
2755
  * The levels range from turning detection
2955
2756
  * off completely to setting various levels of sensitivity (`Low`, `Mid`, `High`).
2956
2757
  */
2957
- export enum DetectionLevel {
2758
+ export type SensitivityLevel =
2958
2759
  /**
2959
2760
  * Disables the `DetectionLevel`
2960
2761
  *
2961
2762
  */
2962
- Off = 0,
2763
+ | "off"
2963
2764
 
2964
2765
  /**
2965
2766
  * Sets the `DetectionLevel` to be less sensitive.
2966
2767
  *
2967
2768
  */
2968
- Low = 1,
2769
+ | "low"
2969
2770
 
2970
2771
  /**
2971
2772
  * The default `DetectionLevel` sensitivity.
2972
2773
  *
2973
2774
  */
2974
- Mid = 2,
2775
+ | "mid"
2975
2776
 
2976
2777
  /**
2977
2778
  * Sets the `DetectionLevel` to be highly sensitive.
2978
2779
  *
2979
2780
  */
2980
- High = 3,
2981
- }
2781
+ | "high";
2982
2782
 
2983
2783
  /**
2984
2784
  * Represents level of anonymization performed on the scanning result.
2985
2785
  *
2986
2786
  */
2987
- export enum AnonymizationMode {
2787
+ export type RedactionMode =
2988
2788
  /**
2989
2789
  * Anonymization will not be performed.
2990
2790
  *
2991
2791
  */
2992
- None = "none",
2792
+ | "none"
2993
2793
 
2994
2794
  /**
2995
2795
  * Full document image is anonymized with black boxes covering sensitive data.
2996
2796
  *
2997
2797
  */
2998
- ImageOnly = "imageOnly",
2798
+ | "imageOnly"
2999
2799
 
3000
2800
  /**
3001
2801
  * Result fields containing sensitive data are removed from result.
3002
2802
  *
3003
2803
  */
3004
- ResultFieldsOnly = "resultFieldsOnly",
2804
+ | "resultFieldsOnly"
3005
2805
 
3006
2806
  /**
3007
2807
  * This mode is combination of `imageOnly` and `resultFieldsOnly` modes.
3008
2808
  *
3009
2809
  */
3010
- FullResult = "fullResult",
3011
- }
3012
-
3013
- /**
3014
- * Represents possible recognition modes.
3015
- *
3016
- */
3017
- export const enum RecognitionMode {
3018
- /**
3019
- * No recognition performed.
3020
- *
3021
- */
3022
- None = "none",
3023
-
3024
- /**
3025
- * Recognition of mrz document (does not include visa and passport).
3026
- *
3027
- */
3028
- MrzId = "mrzId",
3029
-
3030
- /**
3031
- * Recognition of visa mrz.
3032
- *
3033
- */
3034
- MrzVisa = "mrzVisa",
3035
-
3036
- /**
3037
- * Recognition of passport mrz.
3038
- *
3039
- */
3040
-
3041
- MrzPassport = "mrzPassport",
3042
-
3043
- /*
3044
- * Recognition of documents that have face photo on the front.
3045
- *
3046
- */
3047
- PhotoId = "photoId",
3048
-
3049
- /**
3050
- * Detailed document recognition.
3051
- *
3052
- */
3053
- FullRecognition = "fullRecognition",
3054
-
3055
- /**
3056
- * Recognition of barcode document.
3057
- *
3058
- */
3059
- BarcodeId = "barcodeId",
3060
- }
3061
-
3062
- /**
3063
- * Define document side where the document field is located.
3064
- *
3065
- */
3066
- export enum DocumentSide {
3067
- /**
3068
- * The field is located on the front side of the document
3069
- *
3070
- */
3071
- Front = 0,
3072
-
3073
- /**
3074
- * The field is located on the back side of the document
3075
- *
3076
- */
3077
- Back = 1,
3078
- }
2810
+ | "fullResult";
3079
2811
 
3080
2812
  /**
3081
2813
  * Represents the type of scanned barcode
3082
2814
  *
3083
2815
  */
3084
- export enum BarcodeType {
2816
+ export type BarcodeType =
3085
2817
  /**
3086
2818
  * No barcode was scanned
3087
2819
  *
3088
2820
  */
3089
- None = 0,
2821
+ | "none"
3090
2822
 
3091
2823
  /**
3092
2824
  * QR code was scanned
3093
2825
  *
3094
2826
  */
3095
- QrCode = 1,
2827
+ | "qrCode"
3096
2828
 
3097
2829
  /**
3098
2830
  * Data Matrix 2D barcode was scanned
3099
2831
  *
3100
2832
  */
3101
- DataMatrix = 2,
2833
+ | "dataMatrix"
3102
2834
 
3103
2835
  /**
3104
2836
  * UPC E barcode was scanned
3105
2837
  *
3106
2838
  */
3107
- Upce = 3,
2839
+ | "upce"
3108
2840
 
3109
2841
  /**
3110
2842
  * UPC A barcode was scanned
3111
2843
  *
3112
2844
  */
3113
- Upca = 4,
2845
+ | "upca"
3114
2846
 
3115
2847
  /**
3116
2848
  * EAN 8 barcode was scanned
3117
2849
  *
3118
2850
  */
3119
- Ean8 = 5,
2851
+ | "ean8"
3120
2852
 
3121
2853
  /**
3122
2854
  * EAN 13 barcode was scanned
3123
2855
  *
3124
2856
  */
3125
- Ean13 = 6,
2857
+ | "ean13"
3126
2858
 
3127
2859
  /**
3128
2860
  * Code 128 barcode was scanned
3129
2861
  *
3130
2862
  */
3131
- Code128 = 7,
2863
+ | "code128"
3132
2864
 
3133
2865
  /**
3134
2866
  * Code 39 barcode was scanned
3135
2867
  *
3136
2868
  */
3137
- Code39 = 8,
2869
+ | "code39"
3138
2870
 
3139
2871
  /**
3140
2872
  * ITF barcode was scanned
3141
2873
  *
3142
2874
  */
3143
- Itf = 9,
2875
+ | "itf"
3144
2876
 
3145
2877
  /**
3146
2878
  * Aztec 2D barcode was scanned
3147
2879
  *
3148
2880
  */
3149
- Aztec = 10,
2881
+ | "aztec"
3150
2882
 
3151
2883
  /**
3152
2884
  * PDF417 2D barcode was scanned
3153
2885
  *
3154
2886
  */
3155
- Pdf417 = 11,
3156
- }
2887
+ | "pdf417";
3157
2888
 
3158
2889
  /**
3159
2890
  * Represents the document type found on the Machine Readable Zone
3160
2891
  *
3161
2892
  */
3162
- export enum MRZDocumentType {
2893
+ export type MRZDocumentType =
3163
2894
  /**
3164
2895
  * Document type was not identified.
3165
2896
  *
3166
2897
  */
3167
- Unknown = 0,
2898
+ | "unknown"
3168
2899
 
3169
2900
  /**
3170
2901
  * Identity card
3171
2902
  *
3172
2903
  */
3173
- IdentityCard = 1,
2904
+ | "identityCard"
3174
2905
 
3175
2906
  /**
3176
2907
  * Passport
3177
2908
  *
3178
2909
  */
3179
- Passport = 2,
2910
+ | "passport"
3180
2911
 
3181
2912
  /**
3182
2913
  * VISA
3183
2914
  *
3184
2915
  */
3185
- Visa = 3,
2916
+ | "visa"
3186
2917
 
3187
2918
  /**
3188
2919
  * Green card
3189
2920
  *
3190
2921
  */
3191
- GreenCard = 4,
2922
+ | "greenCard"
3192
2923
 
3193
2924
  /**
3194
2925
  * IIM13P Pass
3195
2926
  *
3196
2927
  */
3197
- MysPassIMM13P = 5,
2928
+ | "mysPassIMM13P"
3198
2929
 
3199
2930
  /**
3200
2931
  * Driver license
3201
2932
  *
3202
2933
  */
3203
- DriverLicense = 6,
2934
+ | "driverLicense"
3204
2935
 
3205
2936
  /**
3206
2937
  * Internal travel document
3207
2938
  *
3208
2939
  */
3209
- InternalTravelDocument = 7,
2940
+ | "internalTravelDocument"
3210
2941
 
3211
2942
  /**
3212
2943
  * Border crossing card
3213
2944
  *
3214
2945
  */
3215
- BorderCrossingCard = 8,
3216
- }
2946
+ | "borderCrossingCard";
3217
2947
 
3218
2948
  /**
3219
2949
  * Represents the side of the document being scanned.
3220
2950
  *
3221
2951
  */
3222
- enum ScanningSide {
2952
+ export type ScanningSide =
3223
2953
  /**
3224
2954
  * The first side of the scanned document
3225
2955
  *
3226
2956
  */
3227
- First = 0,
2957
+ | "first"
3228
2958
 
3229
2959
  /**
3230
2960
  * The second side of the scanned document
3231
2961
  *
3232
2962
  */
3233
- Second = 1,
3234
- }
2963
+ | "second";
3235
2964
 
3236
2965
  /**
3237
2966
  * Represents the type of the field used in data match.
3238
2967
  *
3239
2968
  */
3240
- export enum DataMatchField {
2969
+ export type DataMatchField =
3241
2970
  /**
3242
2971
  * The date of birth field.
3243
2972
  *
3244
2973
  */
3245
- DateOfBirth = 0,
2974
+ | "dateOfBirth"
3246
2975
 
3247
2976
  /**
3248
2977
  * The date of expiry field.
3249
2978
  *
3250
2979
  */
3251
- DateOfExpiry = 1,
2980
+ | "dateOfExpiry"
3252
2981
 
3253
2982
  /**
3254
2983
  * The document number field.
3255
2984
  *
3256
2985
  */
3257
- DocumentNumber = 2,
2986
+ | "documentNumber"
3258
2987
 
3259
2988
  /**
3260
2989
  * The document additional number field.
3261
2990
  *
3262
2991
  */
3263
- DocumentAdditionalNumber = 3,
2992
+ | "documentAdditionalNumber"
3264
2993
 
3265
2994
  /**
3266
2995
  * The document optional additional number field.
3267
2996
  *
3268
2997
  */
3269
- DocumentOptionalAdditionalNumber = 4,
2998
+ | "documentOptionalAdditionalNumber"
3270
2999
 
3271
3000
  /**
3272
3001
  * The personal ID number field.
3273
3002
  *
3274
3003
  */
3275
-
3276
- PersonalIdNumber = 5,
3277
- }
3004
+ | "personalIdNumber";
3278
3005
 
3279
3006
  /**
3280
3007
  * Represents the state of the data match.
3281
3008
  *
3282
3009
  */
3283
- export enum DataMatchState {
3010
+ export type DataMatchState =
3284
3011
  /**
3285
3012
  * Data matching has not been performed.
3286
3013
  *
3287
3014
  */
3288
- NotPerformed = 0,
3015
+ | "notPerformed"
3289
3016
 
3290
3017
  /**
3291
3018
  * Data does not match.
3292
3019
  *
3293
3020
  */
3294
- Failed = 1,
3021
+ | "failed"
3295
3022
 
3296
3023
  /**
3297
3024
  * Data does match.
3298
3025
  *
3299
3026
  */
3300
- Success = 2,
3301
- }
3027
+ | "success";
3302
3028
 
3303
3029
  /**
3304
3030
  * Document country.
3305
3031
  *
3306
3032
  */
3307
- export enum Country {
3308
- None = "none",
3033
+ export const Country = {
3034
+ None: "none",
3309
3035
 
3310
- Albania = "albania",
3036
+ Albania: "albania",
3311
3037
 
3312
- Algeria = "algeria",
3038
+ Algeria: "algeria",
3313
3039
 
3314
- Argentina = "argentina",
3040
+ Argentina: "argentina",
3315
3041
 
3316
- Australia = "australia",
3042
+ Australia: "australia",
3317
3043
 
3318
- Austria = "austria",
3044
+ Austria: "austria",
3319
3045
 
3320
- Azerbaijan = "azerbaijan",
3046
+ Azerbaijan: "azerbaijan",
3321
3047
 
3322
- Bahrain = "bahrain",
3048
+ Bahrain: "bahrain",
3323
3049
 
3324
- Bangladesh = "bangladesh",
3050
+ Bangladesh: "bangladesh",
3325
3051
 
3326
- Belgium = "belgium",
3052
+ Belgium: "belgium",
3327
3053
 
3328
- BosniaAndHerzegovina = "bosniaAndHerzegovina",
3054
+ BosniaAndHerzegovina: "bosniaAndHerzegovina",
3329
3055
 
3330
- Brunei = "brunei",
3056
+ Brunei: "brunei",
3331
3057
 
3332
- Bulgaria = "bulgaria",
3058
+ Bulgaria: "bulgaria",
3333
3059
 
3334
- Bambodia = "bambodia",
3060
+ Bambodia: "bambodia",
3335
3061
 
3336
- Canada = "canada",
3062
+ Canada: "canada",
3337
3063
 
3338
- Chile = "chile",
3064
+ Chile: "chile",
3339
3065
 
3340
- Colombia = "colombia",
3066
+ Colombia: "colombia",
3341
3067
 
3342
- CostaRica = "costaRica",
3068
+ CostaRica: "costaRica",
3343
3069
 
3344
- Croatia = "croatia",
3070
+ Croatia: "croatia",
3345
3071
 
3346
- Cyprus = "cyprus",
3072
+ Cyprus: "cyprus",
3347
3073
 
3348
- Czechia = "czechia",
3074
+ Czechia: "czechia",
3349
3075
 
3350
- Denmark = "denmark",
3076
+ Denmark: "denmark",
3351
3077
 
3352
- DominicanRepublic = "dominicanRepublic",
3078
+ DominicanRepublic: "dominicanRepublic",
3353
3079
 
3354
- Egypt = "egypt",
3080
+ Egypt: "egypt",
3355
3081
 
3356
- Estonia = "estonia",
3082
+ Estonia: "estonia",
3357
3083
 
3358
- Finland = "finland",
3084
+ Finland: "finland",
3359
3085
 
3360
- France = "france",
3086
+ France: "france",
3361
3087
 
3362
- Georgia = "georgia",
3088
+ Georgia: "georgia",
3363
3089
 
3364
- Germany = "germany",
3090
+ Germany: "germany",
3365
3091
 
3366
- Ghana = "ghana",
3092
+ Ghana: "ghana",
3367
3093
 
3368
- Greece = "greece",
3094
+ Greece: "greece",
3369
3095
 
3370
- Guatemala = "guatemala",
3096
+ Guatemala: "guatemala",
3371
3097
 
3372
- HongKong = "hongKong",
3098
+ HongKong: "hongKong",
3373
3099
 
3374
- Hungary = "hungary",
3100
+ Hungary: "hungary",
3375
3101
 
3376
- India = "india",
3102
+ India: "india",
3377
3103
 
3378
- Indonesia = "indonesia",
3104
+ Indonesia: "indonesia",
3379
3105
 
3380
- Ireland = "ireland",
3106
+ Ireland: "ireland",
3381
3107
 
3382
- Israel = "israel",
3108
+ Israel: "israel",
3383
3109
 
3384
- Italy = "italy",
3110
+ Italy: "italy",
3385
3111
 
3386
- Jordan = "jordan",
3112
+ Jordan: "jordan",
3387
3113
 
3388
- Kazakhstan = "kazakhstan",
3114
+ Kazakhstan: "kazakhstan",
3389
3115
 
3390
- Kenya = "kenya",
3116
+ Kenya: "kenya",
3391
3117
 
3392
- Kosovo = "kosovo",
3118
+ Kosovo: "kosovo",
3393
3119
 
3394
- Kuwait = "kuwait",
3120
+ Kuwait: "kuwait",
3395
3121
 
3396
- Latvia = "latvia",
3122
+ Latvia: "latvia",
3397
3123
 
3398
- Lithuania = "lithuania",
3124
+ Lithuania: "lithuania",
3399
3125
 
3400
- Malaysia = "malaysia",
3126
+ Malaysia: "malaysia",
3401
3127
 
3402
- Maldives = "maldives",
3128
+ Maldives: "maldives",
3403
3129
 
3404
- Malta = "malta",
3130
+ Malta: "malta",
3405
3131
 
3406
- Mauritius = "mauritius",
3132
+ Mauritius: "mauritius",
3407
3133
 
3408
- Mexico = "mexico",
3134
+ Mexico: "mexico",
3409
3135
 
3410
- Morocco = "morocco",
3136
+ Morocco: "morocco",
3411
3137
 
3412
- Netherlands = "netherlands",
3138
+ Netherlands: "netherlands",
3413
3139
 
3414
- NewZealand = "newZealand",
3140
+ NewZealand: "newZealand",
3415
3141
 
3416
- Nigeria = "nigeria",
3142
+ Nigeria: "nigeria",
3417
3143
 
3418
- Pakistan = "pakistan",
3144
+ Pakistan: "pakistan",
3419
3145
 
3420
- Panama = "panama",
3146
+ Panama: "panama",
3421
3147
 
3422
- Paraguay = "paraguay",
3148
+ Paraguay: "paraguay",
3423
3149
 
3424
- Philippines = "philippines",
3150
+ Philippines: "philippines",
3425
3151
 
3426
- Poland = "poland",
3152
+ Poland: "poland",
3427
3153
 
3428
- Portugal = "portugal",
3154
+ Portugal: "portugal",
3429
3155
 
3430
- PuertoRico = "puertoRico",
3156
+ PuertoRico: "puertoRico",
3431
3157
 
3432
- Qatar = "qatar",
3158
+ Qatar: "qatar",
3433
3159
 
3434
- Romania = "romania",
3160
+ Romania: "romania",
3435
3161
 
3436
- Russia = "russia",
3162
+ Russia: "russia",
3437
3163
 
3438
- SaudiArabia = "saudiArabia",
3164
+ SaudiArabia: "saudiArabia",
3439
3165
 
3440
- Serbia = "serbia",
3166
+ Serbia: "serbia",
3441
3167
 
3442
- Singapore = "singapore",
3168
+ Singapore: "singapore",
3443
3169
 
3444
- Slovakia = "slovakia",
3170
+ Slovakia: "slovakia",
3445
3171
 
3446
- Slovenia = "slovenia",
3172
+ Slovenia: "slovenia",
3447
3173
 
3448
- SouthAfrica = "southAfrica",
3174
+ SouthAfrica: "southAfrica",
3449
3175
 
3450
- Spain = "spain",
3176
+ Spain: "spain",
3451
3177
 
3452
- Sweden = "sweden",
3178
+ Sweden: "sweden",
3453
3179
 
3454
- Switzerland = "switzerland",
3180
+ Switzerland: "switzerland",
3455
3181
 
3456
- Taiwan = "taiwan",
3182
+ Taiwan: "taiwan",
3457
3183
 
3458
- Thailand = "thailand",
3184
+ Thailand: "thailand",
3459
3185
 
3460
- Tunisia = "tunisia",
3186
+ Tunisia: "tunisia",
3461
3187
 
3462
- Turkey = "turkey",
3188
+ Turkey: "turkey",
3463
3189
 
3464
- UAE = "uae",
3190
+ UAE: "uae",
3465
3191
 
3466
- Ganda = "gganda",
3192
+ Ganda: "gganda",
3467
3193
 
3468
- UK = "uk",
3194
+ UK: "uk",
3469
3195
 
3470
- Ukraine = "ukraine",
3196
+ Ukraine: "ukraine",
3471
3197
 
3472
- USA = "usa",
3198
+ USA: "usa",
3473
3199
 
3474
- Vietnam = "vietnam",
3200
+ Vietnam: "vietnam",
3475
3201
 
3476
- Brazil = "brazil",
3202
+ Brazil: "brazil",
3477
3203
 
3478
- Norway = "norway",
3204
+ Norway: "norway",
3479
3205
 
3480
- Oman = "oman",
3206
+ Oman: "oman",
3481
3207
 
3482
- Ecuador = "ecuador",
3208
+ Ecuador: "ecuador",
3483
3209
 
3484
- ElSalvador = "elSalvador",
3210
+ ElSalvador: "elSalvador",
3485
3211
 
3486
- SriLanka = "sriLanka",
3212
+ SriLanka: "sriLanka",
3487
3213
 
3488
- Peru = "peru",
3214
+ Peru: "peru",
3489
3215
 
3490
- Uruguay = "uruguay",
3216
+ Uruguay: "uruguay",
3491
3217
 
3492
- Bahamas = "bahamas",
3218
+ Bahamas: "bahamas",
3493
3219
 
3494
- Bermuda = "bermuda",
3220
+ Bermuda: "bermuda",
3495
3221
 
3496
- Bolivia = "bolivia",
3222
+ Bolivia: "bolivia",
3497
3223
 
3498
- China = "china",
3224
+ China: "china",
3499
3225
 
3500
- EuropeanUnion = "europeanUnion",
3226
+ EuropeanUnion: "europeanUnion",
3501
3227
 
3502
- Haiti = "haiti",
3228
+ Haiti: "haiti",
3503
3229
 
3504
- Honduras = "honduras",
3230
+ Honduras: "honduras",
3505
3231
 
3506
- Iceland = "iceland",
3232
+ Iceland: "iceland",
3507
3233
 
3508
- Japan = "japan",
3234
+ Japan: "japan",
3509
3235
 
3510
- Luxembourg = "luxembourg",
3236
+ Luxembourg: "luxembourg",
3511
3237
 
3512
- Montenegro = "montenegro",
3238
+ Montenegro: "montenegro",
3513
3239
 
3514
- Nicaragua = "nicaragua",
3240
+ Nicaragua: "nicaragua",
3515
3241
 
3516
- SouthKorea = "southKorea",
3242
+ SouthKorea: "southKorea",
3517
3243
 
3518
- Venezuela = "venezuela",
3244
+ Venezuela: "venezuela",
3519
3245
 
3520
- Afghanistan = "afghanistan",
3246
+ Afghanistan: "afghanistan",
3521
3247
 
3522
- AlandIslands = "alandIslands",
3248
+ AlandIslands: "alandIslands",
3523
3249
 
3524
- AmericanSamoa = "americanSamoa",
3250
+ AmericanSamoa: "americanSamoa",
3525
3251
 
3526
- Andorra = "andorra",
3252
+ Andorra: "andorra",
3527
3253
 
3528
- Angola = "angola",
3254
+ Angola: "angola",
3529
3255
 
3530
- Anguilla = "anguilla",
3256
+ Anguilla: "anguilla",
3531
3257
 
3532
- Antartica = "antarctica",
3258
+ Antartica: "antarctica",
3533
3259
 
3534
- AntiguaAndBarbuda = "antiguaAndBarbuda",
3260
+ AntiguaAndBarbuda: "antiguaAndBarbuda",
3535
3261
 
3536
- Armenia = "armenia",
3262
+ Armenia: "armenia",
3537
3263
 
3538
- Aruba = "aruba",
3264
+ Aruba: "aruba",
3539
3265
 
3540
- BailiwickOfGuernsey = "bailiwickOfGuernsey",
3266
+ BailiwickOfGuernsey: "bailiwickOfGuernsey",
3541
3267
 
3542
- BailiwickOfJersey = "bailiwickOfJersey",
3268
+ BailiwickOfJersey: "bailiwickOfJersey",
3543
3269
 
3544
- Barbados = "barbados",
3270
+ Barbados: "barbados",
3545
3271
 
3546
- Belarus = "belarus",
3272
+ Belarus: "belarus",
3547
3273
 
3548
- Belize = "belize",
3274
+ Belize: "belize",
3549
3275
 
3550
- Benin = "benin",
3276
+ Benin: "benin",
3551
3277
 
3552
- Bhutan = "bhutan",
3278
+ Bhutan: "bhutan",
3553
3279
 
3554
- BonaireSaintEustatiusAndSaba = "bonaireSaintEustatiusAndSaba",
3280
+ BonaireSaintEustatiusAndSaba: "bonaireSaintEustatiusAndSaba",
3555
3281
 
3556
- Botswana = "botswana",
3282
+ Botswana: "botswana",
3557
3283
 
3558
- BouvetIsland = "bouvetIsland",
3284
+ BouvetIsland: "bouvetIsland",
3559
3285
 
3560
- BritishIndianOceanTerritory = "britishIndianOceanTerritory",
3286
+ BritishIndianOceanTerritory: "britishIndianOceanTerritory",
3561
3287
 
3562
- BurkinaFaso = "burkinaFaso",
3288
+ BurkinaFaso: "burkinaFaso",
3563
3289
 
3564
- Burundi = "burundi",
3290
+ Burundi: "burundi",
3565
3291
 
3566
- Cameroon = "cameroon",
3292
+ Cameroon: "cameroon",
3567
3293
 
3568
- CapeVerde = "capeVerde",
3294
+ CapeVerde: "capeVerde",
3569
3295
 
3570
- CaribbeanNetherlands = "caribbeanNetherlands",
3296
+ CaribbeanNetherlands: "caribbeanNetherlands",
3571
3297
 
3572
- CaymanIslands = "caymanIslands",
3298
+ CaymanIslands: "caymanIslands",
3573
3299
 
3574
- CentralAfricanRepublic = "centralAfricanRepublic",
3300
+ CentralAfricanRepublic: "centralAfricanRepublic",
3575
3301
 
3576
- Chad = "chad",
3302
+ Chad: "chad",
3577
3303
 
3578
- ChristmasIsland = "christmasIsland",
3304
+ ChristmasIsland: "christmasIsland",
3579
3305
 
3580
- CocosIslands = "cocosIslands",
3306
+ CocosIslands: "cocosIslands",
3581
3307
 
3582
- Comoros = "comoros",
3308
+ Comoros: "comoros",
3583
3309
 
3584
- Congo = "congo",
3310
+ Congo: "congo",
3585
3311
 
3586
- CookIslands = "cookIslands",
3312
+ CookIslands: "cookIslands",
3587
3313
 
3588
- Cuba = "cuba",
3314
+ Cuba: "cuba",
3589
3315
 
3590
- Curacao = "curacao",
3316
+ Curacao: "curacao",
3591
3317
 
3592
- DemocraticRepublicOfTheCongo = "democraticRepublicOfTheCongo",
3318
+ DemocraticRepublicOfTheCongo: "democraticRepublicOfTheCongo",
3593
3319
 
3594
- Djibouti = "djibouti",
3320
+ Djibouti: "djibouti",
3595
3321
 
3596
- Dominica = "dominica",
3322
+ Dominica: "dominica",
3597
3323
 
3598
- EastTimor = "eastTimor",
3324
+ EastTimor: "eastTimor",
3599
3325
 
3600
- EquatorialGuinea = "equatorialGuinea",
3326
+ EquatorialGuinea: "equatorialGuinea",
3601
3327
 
3602
- Eritrea = "eritrea",
3328
+ Eritrea: "eritrea",
3603
3329
 
3604
- Ethiopia = "ethiopia",
3330
+ Ethiopia: "ethiopia",
3605
3331
 
3606
- FalklandIslands = "falklandIslands",
3332
+ FalklandIslands: "falklandIslands",
3607
3333
 
3608
- FaroeIslands = "faroeIslands",
3334
+ FaroeIslands: "faroeIslands",
3609
3335
 
3610
- FederatedStatesOfMicronesia = "federatedStatesOfMicronesia",
3336
+ FederatedStatesOfMicronesia: "federatedStatesOfMicronesia",
3611
3337
 
3612
- Fiji = "fiji",
3338
+ Fiji: "fiji",
3613
3339
 
3614
- FrenchGuiana = "frenchGuiana",
3340
+ FrenchGuiana: "frenchGuiana",
3615
3341
 
3616
- FrenchPolynesia = "frenchPolynesia",
3342
+ FrenchPolynesia: "frenchPolynesia",
3617
3343
 
3618
- FrenchSouthernTerritories = "frenchSouthernTerritories",
3344
+ FrenchSouthernTerritories: "frenchSouthernTerritories",
3619
3345
 
3620
- Gabon = "gabon",
3346
+ Gabon: "gabon",
3621
3347
 
3622
- Gambia = "gambia",
3348
+ Gambia: "gambia",
3623
3349
 
3624
- Gibraltar = "gibraltar",
3350
+ Gibraltar: "gibraltar",
3625
3351
 
3626
- Greenland = "greenland",
3352
+ Greenland: "greenland",
3627
3353
 
3628
- Grenada = "grenada",
3354
+ Grenada: "grenada",
3629
3355
 
3630
- Guadeloupe = "guadeloupe",
3356
+ Guadeloupe: "guadeloupe",
3631
3357
 
3632
- Guam = "guam",
3358
+ Guam: "guam",
3633
3359
 
3634
- Guinea = "guinea",
3360
+ Guinea: "guinea",
3635
3361
 
3636
- GuineaBissau = "guineaBissau",
3362
+ GuineaBissau: "guineaBissau",
3637
3363
 
3638
- Guyana = "guyana",
3364
+ Guyana: "guyana",
3639
3365
 
3640
- HeardIslandAndMcdonaldIslands = "heardIslandAndMcdonaldIslands",
3366
+ HeardIslandAndMcdonaldIslands: "heardIslandAndMcdonaldIslands",
3641
3367
 
3642
- Iran = "iran",
3368
+ Iran: "iran",
3643
3369
 
3644
- Iraq = "iraq",
3370
+ Iraq: "iraq",
3645
3371
 
3646
- IsleOfMan = "isleOfMan",
3372
+ IsleOfMan: "isleOfMan",
3647
3373
 
3648
- IvoryCoast = "ivoryCoast",
3374
+ IvoryCoast: "ivoryCoast",
3649
3375
 
3650
- Jamaica = "jamaica",
3376
+ Jamaica: "jamaica",
3651
3377
 
3652
- Kiribati = "kiribati",
3378
+ Kiribati: "kiribati",
3653
3379
 
3654
- Kyrgyzstan = "kyrgyzstan",
3380
+ Kyrgyzstan: "kyrgyzstan",
3655
3381
 
3656
- Laos = "laos",
3382
+ Laos: "laos",
3657
3383
 
3658
- Lebanon = "lebanon",
3384
+ Lebanon: "lebanon",
3659
3385
 
3660
- Lesotho = "lesotho",
3386
+ Lesotho: "lesotho",
3661
3387
 
3662
- Liberia = "liberia",
3388
+ Liberia: "liberia",
3663
3389
 
3664
- Libya = "libya",
3390
+ Libya: "libya",
3665
3391
 
3666
- Liechtenstein = "liechtenstein",
3392
+ Liechtenstein: "liechtenstein",
3667
3393
 
3668
- Macau = "macau",
3394
+ Macau: "macau",
3669
3395
 
3670
- Madagascar = "madagascar",
3396
+ Madagascar: "madagascar",
3671
3397
 
3672
- Malawi = "malawi",
3398
+ Malawi: "malawi",
3673
3399
 
3674
- Mali = "mali",
3400
+ Mali: "mali",
3675
3401
 
3676
- MarshallIslands = "marshallIslands",
3402
+ MarshallIslands: "marshallIslands",
3677
3403
 
3678
- Martinique = "martinique",
3404
+ Martinique: "martinique",
3679
3405
 
3680
- Mauritania = "mauritania",
3406
+ Mauritania: "mauritania",
3681
3407
 
3682
- Mayotte = "mayotte",
3408
+ Mayotte: "mayotte",
3683
3409
 
3684
- Moldova = "moldova",
3410
+ Moldova: "moldova",
3685
3411
 
3686
- Monaco = "monaco",
3412
+ Monaco: "monaco",
3687
3413
 
3688
- Mongolia = "mongolia",
3414
+ Mongolia: "mongolia",
3689
3415
 
3690
- Montserrat = "montserrat",
3416
+ Montserrat: "montserrat",
3691
3417
 
3692
- Mozambique = "mozambique",
3418
+ Mozambique: "mozambique",
3693
3419
 
3694
- Myanmar = "myanmar",
3420
+ Myanmar: "myanmar",
3695
3421
 
3696
- Namibia = "namibia",
3422
+ Namibia: "namibia",
3697
3423
 
3698
- Nauru = "nauru",
3424
+ Nauru: "nauru",
3699
3425
 
3700
- Nepal = "nepal",
3426
+ Nepal: "nepal",
3701
3427
 
3702
- NewCaledonia = "newCaledonia",
3428
+ NewCaledonia: "newCaledonia",
3703
3429
 
3704
- Niger = "niger",
3430
+ Niger: "niger",
3705
3431
 
3706
- Niue = "niue",
3432
+ Niue: "niue",
3707
3433
 
3708
- NorfolkIsland = "norfolkIsland",
3434
+ NorfolkIsland: "norfolkIsland",
3709
3435
 
3710
- NorthernCyprus = "northernCyprus",
3436
+ NorthernCyprus: "northernCyprus",
3711
3437
 
3712
- NorthernMarianaIslands = "northernMarianaIslands",
3438
+ NorthernMarianaIslands: "northernMarianaIslands",
3713
3439
 
3714
- NorthKorea = "northKorea",
3440
+ NorthKorea: "northKorea",
3715
3441
 
3716
- NorthMacedonia = "northMacedonia",
3442
+ NorthMacedonia: "northMacedonia",
3717
3443
 
3718
- Palau = "palau",
3444
+ Palau: "palau",
3719
3445
 
3720
- Palestine = "palestine",
3446
+ Palestine: "palestine",
3721
3447
 
3722
- PapuaNewGuinea = "papuaNewGuinea",
3448
+ PapuaNewGuinea: "papuaNewGuinea",
3723
3449
 
3724
- Pitcairn = "pitcairn",
3450
+ Pitcairn: "pitcairn",
3725
3451
 
3726
- Reunion = "reunion",
3452
+ Reunion: "reunion",
3727
3453
 
3728
- Rwanda = "rwanda",
3454
+ Rwanda: "rwanda",
3729
3455
 
3730
- SaintBarthelemy = "saintBarthelemy",
3456
+ SaintBarthelemy: "saintBarthelemy",
3731
3457
 
3732
- SaintHelenaAscensionAndTristianDaCunha = "saintHelenaAscensionAndTristianDaCunha",
3458
+ SaintHelenaAscensionAndTristianDaCunha:
3459
+ "saintHelenaAscensionAndTristianDaCunha",
3733
3460
 
3734
- SaintKittsAndNevis = "saintKittsAndNevis",
3461
+ SaintKittsAndNevis: "saintKittsAndNevis",
3735
3462
 
3736
- SaintLucia = "saintLucia",
3463
+ SaintLucia: "saintLucia",
3737
3464
 
3738
- SaintMartin = "saintMartin",
3465
+ SaintMartin: "saintMartin",
3739
3466
 
3740
- SaintPierreAndMiquelon = "saintPierreAndMiquelon",
3467
+ SaintPierreAndMiquelon: "saintPierreAndMiquelon",
3741
3468
 
3742
- SaintVincentAndTheGrenadines = "saintVincentAndTheGrenadines",
3469
+ SaintVincentAndTheGrenadines: "saintVincentAndTheGrenadines",
3743
3470
 
3744
- Samoa = "samoa",
3471
+ Samoa: "samoa",
3745
3472
 
3746
- SanMarino = "sanMarino",
3473
+ SanMarino: "sanMarino",
3747
3474
 
3748
- SaoTomeAndPrincipe = "saoTomeAndPrincipe",
3475
+ SaoTomeAndPrincipe: "saoTomeAndPrincipe",
3749
3476
 
3750
- Senegal = "senegal",
3477
+ Senegal: "senegal",
3751
3478
 
3752
- Seychelles = "seychelles",
3479
+ Seychelles: "seychelles",
3753
3480
 
3754
- SierraLeone = "sierraLeone",
3481
+ SierraLeone: "sierraLeone",
3755
3482
 
3756
- SintMaarten = "sintMaarten",
3483
+ SintMaarten: "sintMaarten",
3757
3484
 
3758
- SolomonIslands = "solomonIslands",
3485
+ SolomonIslands: "solomonIslands",
3759
3486
 
3760
- Somalia = "somalia",
3487
+ Somalia: "somalia",
3761
3488
 
3762
- SouthGeorgiaAndTheSouthSandwichIslands = "southGeorgiaAndTheSouthSandwichIslands",
3489
+ SouthGeorgiaAndTheSouthSandwichIslands:
3490
+ "southGeorgiaAndTheSouthSandwichIslands",
3763
3491
 
3764
- SouthSudan = "southSudan",
3492
+ SouthSudan: "southSudan",
3765
3493
 
3766
- Sudan = "sudan",
3494
+ Sudan: "sudan",
3767
3495
 
3768
- Suriname = "suriname",
3496
+ Suriname: "suriname",
3769
3497
 
3770
- SvalbardAndJanMayen = "svalbardAndJanMayen",
3498
+ SvalbardAndJanMayen: "svalbardAndJanMayen",
3771
3499
 
3772
- Eswatini = "eswatini",
3500
+ Eswatini: "eswatini",
3773
3501
 
3774
- Syria = "syria",
3502
+ Syria: "syria",
3775
3503
 
3776
- Tajikistan = "tajikistan",
3504
+ Tajikistan: "tajikistan",
3777
3505
 
3778
- Tanzania = "tanzania",
3506
+ Tanzania: "tanzania",
3779
3507
 
3780
- Togo = "togo",
3508
+ Togo: "togo",
3781
3509
 
3782
- Tokelau = "tokelau",
3510
+ Tokelau: "tokelau",
3783
3511
 
3784
- Tonga = "tonga",
3512
+ Tonga: "tonga",
3785
3513
 
3786
- TrinidadAndTobago = "trinidadAndTobago",
3514
+ TrinidadAndTobago: "trinidadAndTobago",
3787
3515
 
3788
- Turkmenistan = "turkmenistan",
3516
+ Turkmenistan: "turkmenistan",
3789
3517
 
3790
- TurksAndCaicosIslands = "turksAndCaicosIslands",
3518
+ TurksAndCaicosIslands: "turksAndCaicosIslands",
3791
3519
 
3792
- Tuvalu = "tuvalu",
3520
+ Tuvalu: "tuvalu",
3793
3521
 
3794
- UnitedStatesMinorOutlyingIslands = "unitedStatesMinorOutlyingIslands",
3522
+ UnitedStatesMinorOutlyingIslands: "unitedStatesMinorOutlyingIslands",
3795
3523
 
3796
- Uzbekistan = "uzbekistan",
3524
+ Uzbekistan: "uzbekistan",
3797
3525
 
3798
- Vanuatu = "vanuatu",
3526
+ Vanuatu: "vanuatu",
3799
3527
 
3800
- VaticanCity = "vaticanCity",
3528
+ VaticanCity: "vaticanCity",
3801
3529
 
3802
- VirginIslandsBritish = "virginIslandsBritish",
3530
+ VirginIslandsBritish: "virginIslandsBritish",
3803
3531
 
3804
- VirginIslandsUs = "virginIslandsUs",
3532
+ VirginIslandsOfTheUnitedStates: "virginIslandsOfTheUnitedStates",
3805
3533
 
3806
- WallisAndFutuna = "wallisAndFutuna",
3534
+ WallisAndFutuna: "wallisAndFutuna",
3807
3535
 
3808
- WesternSahara = "westernSahara",
3536
+ WesternSahara: "westernSahara",
3809
3537
 
3810
- Yemen = "yemen",
3538
+ Yemen: "yemen",
3811
3539
 
3812
- Yugoslavia = "yugoslavia",
3540
+ Yugoslavia: "yugoslavia",
3813
3541
 
3814
- Zambia = "zambia",
3542
+ Zambia: "zambia",
3815
3543
 
3816
- Zimbabwe = "zimbabwe",
3544
+ Zimbabwe: "zimbabwe",
3545
+
3546
+ SchengenArea: "schengenArea",
3547
+
3548
+ SaintThomasAndPrince: "saintThomasAndPrince",
3549
+ } as const;
3550
+
3551
+ export type Country = (typeof Country)[keyof typeof Country];
3817
3552
 
3818
- SchengenArea = "schengenArea",
3819
- }
3820
3553
  /**
3821
3554
  * Document region.
3822
3555
  */
3823
- export enum Region {
3824
- None = "none",
3556
+ export const Region = {
3557
+ None: "none",
3825
3558
 
3826
- Alabama = "alabama",
3559
+ Alabama: "alabama",
3827
3560
 
3828
- Alaska = "alaska",
3561
+ Alaska: "alaska",
3829
3562
 
3830
- Alberta = "alberta",
3563
+ Alberta: "alberta",
3831
3564
 
3832
- Arizona = "arizona",
3565
+ Arizona: "arizona",
3833
3566
 
3834
- Arkansas = "arkansas",
3567
+ Arkansas: "arkansas",
3835
3568
 
3836
- AustralianCapitalTerritory = "australianCapitalTerritory",
3569
+ AustralianCapitalTerritory: "australianCapitalTerritory",
3837
3570
 
3838
- BritishColumbia = "britishColumbia",
3571
+ BritishColumbia: "britishColumbia",
3839
3572
 
3840
- California = "california",
3573
+ California: "california",
3841
3574
 
3842
- Colorado = "colorado",
3575
+ Colorado: "colorado",
3843
3576
 
3844
- Connecticut = "connecticut",
3577
+ Connecticut: "connecticut",
3845
3578
 
3846
- Delaware = "delaware",
3579
+ Delaware: "delaware",
3847
3580
 
3848
- DistrictOfColumbia = "districtOfColumbia",
3581
+ DistrictOfColumbia: "districtOfColumbia",
3849
3582
 
3850
- Florida = "florida",
3583
+ Florida: "florida",
3851
3584
 
3852
- Georgia = "georgia",
3585
+ Georgia: "georgia",
3853
3586
 
3854
- Hawaii = "hawaii",
3587
+ Hawaii: "hawaii",
3855
3588
 
3856
- Idaho = "idaho",
3589
+ Idaho: "idaho",
3857
3590
 
3858
- Illinois = "illinois",
3591
+ Illinois: "illinois",
3859
3592
 
3860
- Indiana = "indiana",
3593
+ Indiana: "indiana",
3861
3594
 
3862
- Iowa = "iowa",
3595
+ Iowa: "iowa",
3863
3596
 
3864
- Kansas = "kansas",
3597
+ Kansas: "kansas",
3865
3598
 
3866
- Kentucky = "kentucky",
3599
+ Kentucky: "kentucky",
3867
3600
 
3868
- Louisiana = "louisiana",
3601
+ Louisiana: "louisiana",
3869
3602
 
3870
- Maine = "maine",
3603
+ Maine: "maine",
3871
3604
 
3872
- Manitoba = "manitoba",
3605
+ Manitoba: "manitoba",
3873
3606
 
3874
- Maryland = "maryland",
3607
+ Maryland: "maryland",
3875
3608
 
3876
- Massachusetts = "massachusetts",
3609
+ Massachusetts: "massachusetts",
3877
3610
 
3878
- Michigan = "michigan",
3611
+ Michigan: "michigan",
3879
3612
 
3880
- Minnesota = "minnesota",
3613
+ Minnesota: "minnesota",
3881
3614
 
3882
- Mississippi = "mississippi",
3615
+ Mississippi: "mississippi",
3883
3616
 
3884
- Missouri = "missouri",
3617
+ Missouri: "missouri",
3885
3618
 
3886
- Montana = "montana",
3619
+ Montana: "montana",
3887
3620
 
3888
- Nebraska = "nebraska",
3621
+ Nebraska: "nebraska",
3889
3622
 
3890
- Nevada = "nevada",
3623
+ Nevada: "nevada",
3891
3624
 
3892
- NewBrunswick = "newBrunswick",
3625
+ NewBrunswick: "newBrunswick",
3893
3626
 
3894
- NewHampshire = "newHampshire",
3627
+ NewHampshire: "newHampshire",
3895
3628
 
3896
- NewJersey = "newJersey",
3629
+ NewJersey: "newJersey",
3897
3630
 
3898
- NewMexico = "newMexico",
3631
+ NewMexico: "newMexico",
3899
3632
 
3900
- NewSouthWales = "newSouthWales",
3633
+ NewSouthWales: "newSouthWales",
3901
3634
 
3902
- NewYork = "newYork",
3635
+ NewYork: "newYork",
3903
3636
 
3904
- NorthernTerritory = "northernTerritory",
3637
+ NorthernTerritory: "northernTerritory",
3905
3638
 
3906
- NorthCarolina = "northCarolina",
3639
+ NorthCarolina: "northCarolina",
3907
3640
 
3908
- NorthDakota = "northDakota",
3641
+ NorthDakota: "northDakota",
3909
3642
 
3910
- NovaScotia = "novaScotia",
3643
+ NovaScotia: "novaScotia",
3911
3644
 
3912
- Ohio = "ohio",
3645
+ Ohio: "ohio",
3913
3646
 
3914
- Oklahoma = "oklahoma",
3647
+ Oklahoma: "oklahoma",
3915
3648
 
3916
- Ontario = "ontario",
3649
+ Ontario: "ontario",
3917
3650
 
3918
- Oregon = "oregon",
3651
+ Oregon: "oregon",
3919
3652
 
3920
- Pennsylvania = "pennsylvania",
3653
+ Pennsylvania: "pennsylvania",
3921
3654
 
3922
- Quebec = "quebec",
3655
+ Quebec: "quebec",
3923
3656
 
3924
- Queensland = "queensland",
3657
+ Queensland: "queensland",
3925
3658
 
3926
- RhodeIsland = "rhodeIsland",
3659
+ RhodeIsland: "rhodeIsland",
3927
3660
 
3928
- Saskatchewan = "saskatchewan",
3661
+ Saskatchewan: "saskatchewan",
3929
3662
 
3930
- SouthAustralia = "southAustralia",
3663
+ SouthAustralia: "southAustralia",
3931
3664
 
3932
- SouthCarolina = "southCarolina",
3665
+ SouthCarolina: "southCarolina",
3933
3666
 
3934
- SouthDakota = "southDakota",
3667
+ SouthDakota: "southDakota",
3935
3668
 
3936
- Tasmania = "tasmania",
3669
+ Tasmania: "tasmania",
3937
3670
 
3938
- Tennessee = "tennessee",
3671
+ Tennessee: "tennessee",
3939
3672
 
3940
- Texas = "texas",
3673
+ Texas: "texas",
3941
3674
 
3942
- Utah = "utah",
3675
+ Utah: "utah",
3943
3676
 
3944
- Vermont = "vermont",
3677
+ Vermont: "vermont",
3945
3678
 
3946
- Victoria = "victoria",
3679
+ Victoria: "victoria",
3947
3680
 
3948
- Virginia = "virginia",
3681
+ Virginia: "virginia",
3949
3682
 
3950
- Washington = "washington",
3683
+ Washington: "washington",
3951
3684
 
3952
- WesternAustralia = "westernAustralia",
3685
+ WesternAustralia: "westernAustralia",
3953
3686
 
3954
- WestVirginia = "westVirginia",
3687
+ WestVirginia: "westVirginia",
3955
3688
 
3956
- Wisconsin = "wisconsin",
3689
+ Wisconsin: "wisconsin",
3957
3690
 
3958
- Wyoming = "wyoming",
3691
+ Wyoming: "wyoming",
3959
3692
 
3960
- Yukon = "yukon",
3693
+ Yukon: "yukon",
3961
3694
 
3962
- CiudadDeMexico = "ciudadDeMexico",
3695
+ CiudadDeMexico: "ciudadDeMexico",
3963
3696
 
3964
- Jalisco = "jalisco",
3697
+ Jalisco: "jalisco",
3965
3698
 
3966
- NewfoundlandAndLabrador = "newfoundlandAndLabrador",
3699
+ NewfoundlandAndLabrador: "newfoundlandAndLabrador",
3967
3700
 
3968
- NuevoLeon = "nuevoLeon",
3701
+ NuevoLeon: "nuevoLeon",
3969
3702
 
3970
- BajaCalifornia = "bajaCalifornia",
3703
+ BajaCalifornia: "bajaCalifornia",
3971
3704
 
3972
- Chihuahua = "chihuahua",
3705
+ Chihuahua: "chihuahua",
3973
3706
 
3974
- Guanajuato = "guanajuato",
3707
+ Guanajuato: "guanajuato",
3975
3708
 
3976
- Guerrero = "guerrero",
3709
+ Guerrero: "guerrero",
3977
3710
 
3978
- Mexico = "mexico",
3711
+ Mexico: "mexico",
3979
3712
 
3980
- Michoacan = "michoacan",
3713
+ Michoacan: "michoacan",
3981
3714
 
3982
- NewYorkCity = "newYorkCity",
3715
+ NewYorkCity: "newYorkCity",
3983
3716
 
3984
- Tamaulipas = "tamaulipas",
3717
+ Tamaulipas: "tamaulipas",
3985
3718
 
3986
- Veracruz = "veracruz",
3719
+ Veracruz: "veracruz",
3987
3720
 
3988
- Chiapas = "chiapas",
3721
+ Chiapas: "chiapas",
3989
3722
 
3990
- Coahuila = "coahuila",
3723
+ Coahuila: "coahuila",
3991
3724
 
3992
- Durago = "durango",
3725
+ Durago: "durango",
3993
3726
 
3994
- GuerreroCocula = "guerreroCocula",
3727
+ GuerreroCocula: "guerreroCocula",
3995
3728
 
3996
- GuerreroJuchitan = "guerreroJuchitan",
3729
+ GuerreroJuchitan: "guerreroJuchitan",
3997
3730
 
3998
- GuerreroTepecoacuilco = "guerreroTepecoacuilco",
3731
+ GuerreroTepecoacuilco: "guerreroTepecoacuilco",
3999
3732
 
4000
- GuerreroTlacoapa = "guerreroTlacoapa",
3733
+ GuerreroTlacoapa: "guerreroTlacoapa",
4001
3734
 
4002
- Gujarat = "gujarat",
3735
+ Gujarat: "gujarat",
4003
3736
 
4004
- Hidalgo = "hidalgo",
3737
+ Hidalgo: "hidalgo",
4005
3738
 
4006
- Karnataka = "karnataka",
3739
+ Karnataka: "karnataka",
4007
3740
 
4008
- Kerala = "kerala",
3741
+ Kerala: "kerala",
4009
3742
 
4010
- KhyberPakhtunkhwa = "khyberPakhtunkhwa",
3743
+ KhyberPakhtunkhwa: "khyberPakhtunkhwa",
4011
3744
 
4012
- MadhyaPradesh = "madhyaPradesh",
3745
+ MadhyaPradesh: "madhyaPradesh",
4013
3746
 
4014
- Maharashtra = "maharashtra",
3747
+ Maharashtra: "maharashtra",
4015
3748
 
4016
- Morelos = "morelos",
3749
+ Morelos: "morelos",
4017
3750
 
4018
- Nayarit = "nayarit",
3751
+ Nayarit: "nayarit",
4019
3752
 
4020
- Oaxaca = "oaxaca",
3753
+ Oaxaca: "oaxaca",
4021
3754
 
4022
- Puebla = "puebla",
3755
+ Puebla: "puebla",
4023
3756
 
4024
- Punjab = "punjab",
3757
+ Punjab: "punjab",
4025
3758
 
4026
- Queretaro = "queretaro",
3759
+ Queretaro: "queretaro",
4027
3760
 
4028
- SanLuisPotosi = "sanLuisPotosi",
3761
+ SanLuisPotosi: "sanLuisPotosi",
4029
3762
 
4030
- Sinaloa = "sinaloa",
3763
+ Sinaloa: "sinaloa",
4031
3764
 
4032
- Sonora = "sonora",
3765
+ Sonora: "sonora",
4033
3766
 
4034
- Tabasco = "tabasco",
3767
+ Tabasco: "tabasco",
4035
3768
 
4036
- TamilNadu = "tamilNadu",
3769
+ TamilNadu: "tamilNadu",
4037
3770
 
4038
- Yucatan = "yucatan",
3771
+ Yucatan: "yucatan",
4039
3772
 
4040
- Zacatecas = "zacatecas",
3773
+ Zacatecas: "zacatecas",
4041
3774
 
4042
- Aguascalientes = "aguascalientes",
3775
+ Aguascalientes: "aguascalientes",
4043
3776
 
4044
- BajaCaliforniaSur = "bajaCaliforniaSur",
3777
+ BajaCaliforniaSur: "bajaCaliforniaSur",
4045
3778
 
4046
- Campeche = "campeche",
3779
+ Campeche: "campeche",
4047
3780
 
4048
- Colima = "colima",
3781
+ Colima: "colima",
4049
3782
 
4050
- QuintanaRooBenitoJuarez = "quintanaRooBenitoJuarez",
3783
+ QuintanaRooBenitoJuarez: "quintanaRooBenitoJuarez",
4051
3784
 
4052
- QuintanaRoo = "quintanaRoo",
3785
+ QuintanaRoo: "quintanaRoo",
4053
3786
 
4054
- QuintanaRooSolidaridad = "quintanaRooSolidaridad",
3787
+ QuintanaRooSolidaridad: "quintanaRooSolidaridad",
4055
3788
 
4056
- Tlaxcala = "tlaxcala",
3789
+ Tlaxcala: "tlaxcala",
4057
3790
 
4058
- QuintanaRooCozumel = "quintanaRooCozumel",
3791
+ QuintanaRooCozumel: "quintanaRooCozumel",
4059
3792
 
4060
- SanPaolo = "saoPaolo",
3793
+ SanPaolo: "saoPaolo",
4061
3794
 
4062
- RioDeJaniero = "rioDeJaneiro",
3795
+ RioDeJaniero: "rioDeJaneiro",
4063
3796
 
4064
- RioGrandeDoSul = "rioGrandeDoSul",
3797
+ RioGrandeDoSul: "rioGrandeDoSul",
4065
3798
 
4066
- NorthWestTerritories = "northWestTerritories",
3799
+ NorthWestTerritories: "northWestTerritories",
4067
3800
 
4068
- Nunavut = "nunavut",
3801
+ Nunavut: "nunavut",
4069
3802
 
4070
- PrinceEdwardIsland = "princeEdwardIsland",
3803
+ PrinceEdwardIsland: "princeEdwardIsland",
4071
3804
 
4072
- DistritoFederal = "distritoFederal",
3805
+ DistritoFederal: "distritoFederal",
4073
3806
 
4074
- Maranhao = "maranhao",
3807
+ Maranhao: "maranhao",
4075
3808
 
4076
- MatoGrosso = "matoGrosso",
3809
+ MatoGrosso: "matoGrosso",
4077
3810
 
4078
- MinasGerais = "minasGerais",
3811
+ MinasGerais: "minasGerais",
4079
3812
 
4080
- Para = "para",
3813
+ Para: "para",
4081
3814
 
4082
- Parana = "parana",
3815
+ Parana: "parana",
4083
3816
 
4084
- Pernambuco = "pernambuco",
3817
+ Pernambuco: "pernambuco",
4085
3818
 
4086
- SantaCatarina = "santaCatarina",
3819
+ SantaCatarina: "santaCatarina",
4087
3820
 
4088
- AndhraPradesh = "andhraPradesh",
3821
+ AndhraPradesh: "andhraPradesh",
4089
3822
 
4090
- Ceara = "ceara",
3823
+ Ceara: "ceara",
4091
3824
 
4092
- Goias = "goias",
3825
+ Goias: "goias",
4093
3826
 
4094
- GuerreroAcapulcoDeJuarez = "guerreroAcapulcoDeJuarez",
3827
+ GuerreroAcapulcoDeJuarez: "guerreroAcapulcoDeJuarez",
4095
3828
 
4096
- Haryana = "haryana",
3829
+ Haryana: "haryana",
4097
3830
 
4098
- Sergipe = "sergipe",
3831
+ Sergipe: "sergipe",
4099
3832
 
4100
- Alagos = "alagos",
3833
+ Alagos: "alagos",
4101
3834
 
4102
- Bangsamoro = "bangsamoro",
3835
+ Bangsamoro: "bangsamoro",
4103
3836
 
4104
- Telangana = "telangana",
4105
- }
3837
+ Telangana: "telangana",
3838
+
3839
+ Acre: "acre",
3840
+
3841
+ EspiritoSanto: "espiritoSanto",
3842
+
3843
+ MatoGrossoDoSul: "matoGrossoDoSul",
3844
+
3845
+ Paraiba: "paraiba",
3846
+
3847
+ Piaui: "piaui",
3848
+
3849
+ RioGrandeDoNorte: "rioGrandeDoNorte",
3850
+
3851
+ Tocantins: "tocantins",
3852
+
3853
+ Odisha: "odisha",
3854
+
3855
+ Uttarakhand: "uttarakhand",
3856
+ } as const;
3857
+
3858
+ export type Region = (typeof Region)[keyof typeof Region];
4106
3859
 
4107
3860
  /**
4108
3861
  * Document type.
4109
3862
  *
4110
3863
  */
4111
- export enum DocumentType {
4112
- None = "none",
3864
+ export const DocumentType = {
3865
+ None: "none",
4113
3866
 
4114
- ConsularId = "consularId",
3867
+ ConsularId: "consularId",
4115
3868
 
4116
- Dl = "dl",
3869
+ Dl: "dl",
4117
3870
 
4118
- DlPublicServicesCard = "dlPublicServicesCard",
3871
+ DlPublicServicesCard: "dlPublicServicesCard",
4119
3872
 
4120
- EmploymentPass = "employmentPass",
3873
+ EmploymentPass: "employmentPass",
4121
3874
 
4122
- FinCard = "finCard",
3875
+ FinCard: "finCard",
4123
3876
 
4124
- Id = "id",
3877
+ Id: "id",
4125
3878
 
4126
- MultipurposeId = "multipurposeId",
3879
+ MultipurposeId: "multipurposeId",
4127
3880
 
4128
- MyKad = "myKad",
3881
+ MyKad: "myKad",
4129
3882
 
4130
- MyKid = "myKid",
3883
+ MyKid: "myKid",
4131
3884
 
4132
- MyPr = "myPR",
3885
+ MyPr: "myPR",
4133
3886
 
4134
- MyTentera = "myTentera",
3887
+ MyTentera: "myTentera",
4135
3888
 
4136
- PanCard = "panCard",
3889
+ PanCard: "panCard",
4137
3890
 
4138
- ProfessionalId = "professionalId",
3891
+ ProfessionalId: "professionalId",
4139
3892
 
4140
- PublicServicesCard = "publicServicesCard",
3893
+ PublicServicesCard: "publicServicesCard",
4141
3894
 
4142
- ResidencePermit = "residencePermit",
3895
+ ResidencePermit: "residencePermit",
4143
3896
 
4144
- ResidentId = "residentId",
3897
+ ResidentId: "residentId",
4145
3898
 
4146
- TemporaryResidencePermit = "temporaryResidencePermit",
3899
+ TemporaryResidencePermit: "temporaryResidencePermit",
4147
3900
 
4148
- VoterId = "voterId",
3901
+ VoterId: "voterId",
4149
3902
 
4150
- WorkPermit = "workPermit",
3903
+ WorkPermit: "workPermit",
4151
3904
 
4152
- IKad = "iKad",
3905
+ IKad: "iKad",
4153
3906
 
4154
- MilitaryId = "militaryId",
3907
+ MilitaryId: "militaryId",
4155
3908
 
4156
- MyKas = "myKas",
3909
+ MyKas: "myKas",
4157
3910
 
4158
- DocialSecurityCard = "docialSecurityCard",
3911
+ DocialSecurityCard: "docialSecurityCard",
4159
3912
 
4160
- HealthInsuranceCard = "healthInsuranceCard",
3913
+ HealthInsuranceCard: "healthInsuranceCard",
4161
3914
 
4162
- Passport = "passport",
3915
+ Passport: "passport",
4163
3916
 
4164
- SPass = "sPass",
3917
+ SPass: "sPass",
4165
3918
 
4166
- AddressCard = "addressCard",
3919
+ AddressCard: "addressCard",
4167
3920
 
4168
- AlienId = "alienId",
3921
+ AlienId: "alienId",
4169
3922
 
4170
- AlienPassport = "alienPassport",
3923
+ AlienPassport: "alienPassport",
4171
3924
 
4172
- GreenCard = "greenCard",
3925
+ GreenCard: "greenCard",
4173
3926
 
4174
- MinorsId = "minorsId",
3927
+ MinorsId: "minorsId",
4175
3928
 
4176
- PostalId = "postalId",
3929
+ PostalId: "postalId",
4177
3930
 
4178
- ProfessionalDl = "professionalDl",
3931
+ ProfessionalDl: "professionalDl",
4179
3932
 
4180
- TaxId = "taxId",
3933
+ TaxId: "taxId",
4181
3934
 
4182
- WeaponPermit = "weaponPermit",
3935
+ WeaponPermit: "weaponPermit",
4183
3936
 
4184
- Visa = "visa",
3937
+ Visa: "visa",
4185
3938
 
4186
- BorderCrossingCard = "borderCrossingCard",
3939
+ BorderCrossingCard: "borderCrossingCard",
4187
3940
 
4188
- DriverCard = "driverCard",
3941
+ DriverCard: "driverCard",
4189
3942
 
4190
- GlobalEntryCard = "globalEntryCard",
3943
+ GlobalEntryCard: "globalEntryCard",
4191
3944
 
4192
- MyPolis = "mypolis",
3945
+ MyPolis: "mypolis",
4193
3946
 
4194
- NexusCard = "nexusCard",
3947
+ NexusCard: "nexusCard",
4195
3948
 
4196
- PassportCard = "passportCard",
3949
+ PassportCard: "passportCard",
4197
3950
 
4198
- ProofOfAgeCard = "proofOfAgeCard",
3951
+ ProofOfAgeCard: "proofOfAgeCard",
4199
3952
 
4200
- RefugeeId = "refugeeId",
3953
+ RefugeeId: "refugeeId",
4201
3954
 
4202
- TribalId = "tribalId",
3955
+ TribalId: "tribalId",
4203
3956
 
4204
- VeteranId = "veteranId",
3957
+ VeteranId: "veteranId",
4205
3958
 
4206
- CitizenshipCertificate = "citizenshipCertificate",
3959
+ CitizenshipCertificate: "citizenshipCertificate",
4207
3960
 
4208
- MyNumberCard = "myNumberCard",
3961
+ MyNumberCard: "myNumberCard",
4209
3962
 
4210
- ConsularPassport = "consularPassport",
3963
+ ConsularPassport: "consularPassport",
4211
3964
 
4212
- MinorsPassport = "minorsPassport",
3965
+ MinorsPassport: "minorsPassport",
4213
3966
 
4214
- MinorsPublicServicesCard = "minorsPublicServicesCard",
3967
+ MinorsPublicServicesCard: "minorsPublicServicesCard",
4215
3968
 
4216
- DrivingPriviligeCard = "drivingPriviligeCard",
3969
+ DrivingPriviligeCard: "drivingPriviligeCard",
4217
3970
 
4218
- AsylumRequest = "asylumRequest",
3971
+ AsylumRequest: "asylumRequest",
4219
3972
 
4220
- DriverQualificationCard = "driverQualificationCard",
3973
+ DriverQualificationCard: "driverQualificationCard",
4221
3974
 
4222
- ProvisionalDl = "provisionalDl",
3975
+ ProvisionalDl: "provisionalDl",
4223
3976
 
4224
- RefugeePassport = "refugeePassport",
3977
+ RefugeePassport: "refugeePassport",
4225
3978
 
4226
- SpecialId = "specialId",
3979
+ SpecialId: "specialId",
4227
3980
 
4228
- UniformedServicesId = "uniformedServicesId",
3981
+ UniformedServicesId: "uniformedServicesId",
4229
3982
 
4230
- ImmigrantVisa = "immigrantVisa",
3983
+ ImmigrantVisa: "immigrantVisa",
4231
3984
 
4232
- ConsularVoterId = "consularVoterId",
3985
+ ConsularVoterId: "consularVoterId",
4233
3986
 
4234
- TwicCard = "twicCard",
3987
+ TwicCard: "twicCard",
4235
3988
 
4236
- ExitEntryPermit = "exitEntryPermit",
3989
+ ExitEntryPermit: "exitEntryPermit",
4237
3990
 
4238
- MainlandTravelPermitTaiwan = "mainlandTravelPermitTaiwan",
3991
+ MainlandTravelPermitTaiwan: "mainlandTravelPermitTaiwan",
4239
3992
 
4240
- NbiClearance = "nbiClearance",
3993
+ NbiClearance: "nbiClearance",
4241
3994
 
4242
- ProofOfRegistration = "proofOfRegistration",
3995
+ ProofOfRegistration: "proofOfRegistration",
4243
3996
 
4244
- TemporaryProtectionPermit = "temporaryProtectionPermit",
3997
+ TemporaryProtectionPermit: "temporaryProtectionPermit",
4245
3998
 
4246
- AfghanCitizenCard = "afghanCitizenCard",
3999
+ AfghanCitizenCard: "afghanCitizenCard",
4247
4000
 
4248
- EId = "eId",
4001
+ EId: "eId",
4249
4002
 
4250
- Pass = "pass",
4003
+ Pass: "pass",
4251
4004
 
4252
- SisId = "sisId",
4005
+ SisId: "sisId",
4253
4006
 
4254
- AsicCard = "asicCard",
4007
+ AsicCard: "asicCard",
4255
4008
 
4256
- BidoonCard = "bidoonCard",
4009
+ BidoonCard: "bidoonCard",
4257
4010
 
4258
- InterimHealthInsuranceCard = "interimHealthInsuranceCard",
4011
+ InterimHealthInsuranceCard: "interimHealthInsuranceCard",
4259
4012
 
4260
- NonVoterId = "nonVoterId",
4013
+ NonVoterId: "nonVoterId",
4261
4014
 
4262
- ReciprocalHealthInsuranceCard = "reciprocalHealthInsuranceCard",
4015
+ ReciprocalHealthInsuranceCard: "reciprocalHealthInsuranceCard",
4263
4016
 
4264
- VehicleRegistration = "vehicleRegistration",
4017
+ VehicleRegistration: "vehicleRegistration",
4265
4018
 
4266
- EsaadCard = "esaadCard",
4019
+ EsaadCard: "esaadCard",
4267
4020
 
4268
- RegistrationCertificate = "registrationCertificate",
4021
+ RegistrationCertificate: "registrationCertificate",
4269
4022
 
4270
- MedicalMarijuanaId = "medicalMarijuanaId",
4023
+ MedicalMarijuanaId: "medicalMarijuanaId",
4271
4024
 
4272
- NonCardTribalId = "nonCardTribalId",
4025
+ NonCardTribalId: "nonCardTribalId",
4273
4026
 
4274
- DiplomaticId = "diplomaticId",
4027
+ DiplomaticId: "diplomaticId",
4275
4028
 
4276
- EmergencyPassport = "emergencyPassport",
4029
+ EmergencyPassport: "emergencyPassport",
4277
4030
 
4278
- temporaryPassport = "temporaryPassport",
4031
+ TemporaryPassport: "temporaryPassport",
4279
4032
 
4280
- metisFederationCard = "metisFederationCard",
4033
+ MetisFederationCard: "metisFederationCard",
4281
4034
 
4282
- adrCertificate = "adrCertificate",
4283
- }
4035
+ SocialSecurityCard: "socialSecurityCard",
4036
+
4037
+ AdrCertificate: "adrCertificate",
4284
4038
 
4039
+ NinCard: "ninCard",
4040
+
4041
+ MysssCard: "mysssCard",
4042
+
4043
+ GendarmerieId: "gendarmerieId",
4044
+
4045
+ PoliceId: "policeId",
4046
+
4047
+ OriginCard: "originCard",
4048
+ } as const;
4049
+ export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
4285
4050
  /**
4286
4051
  * Represents all possible field types that can be extracted from the document.
4287
4052
  *
4288
4053
  */
4289
- export enum FieldType {
4290
- AdditionalAddressInformation = "additionalAddressInformation",
4054
+ export const FieldType = {
4055
+ AdditionalAddressInformation: "additionalAddressInformation",
4291
4056
 
4292
- AdditionalNameInformation = "additionalNameInformation",
4057
+ AdditionalNameInformation: "additionalNameInformation",
4293
4058
 
4294
- AdditionalOptionalAddressInformation = "additionalOptionalAddressInformation",
4059
+ AdditionalOptionalAddressInformation: "additionalOptionalAddressInformation",
4295
4060
 
4296
- AdditionalPersonalIdNumber = "additionalPersonalIdNumber",
4061
+ AdditionalPersonalIdNumber: "additionalPersonalIdNumber",
4297
4062
 
4298
- Address = "address",
4063
+ Address: "address",
4299
4064
 
4300
- ClassEffectiveDate = "classEffectiveDate",
4065
+ ClassEffectiveDate: "classEffectiveDate",
4301
4066
 
4302
- ClassExpiryDate = "classExpiryDate",
4067
+ ClassExpiryDate: "classExpiryDate",
4303
4068
 
4304
- Conditions = "conditions",
4069
+ Conditions: "conditions",
4305
4070
 
4306
- DateOfBirth = "dateOfBirth",
4071
+ DateOfBirth: "dateOfBirth",
4307
4072
 
4308
- DateOfExpiry = "dateOfExpiry",
4073
+ DateOfExpiry: "dateOfExpiry",
4309
4074
 
4310
- DateOfIssue = "dateOfIssue",
4075
+ DateOfIssue: "dateOfIssue",
4311
4076
 
4312
- DocumentAdditionalNumber = "documentAdditionalNumber",
4077
+ DocumentAdditionalNumber: "documentAdditionalNumber",
4313
4078
 
4314
- DocumentOptionalAdditionalNumber = "documentOptionalAdditionalNumber",
4079
+ DocumentOptionalAdditionalNumber: "documentOptionalAdditionalNumber",
4315
4080
 
4316
- DocumentNumber = "documentNumber",
4081
+ DocumentNumber: "documentNumber",
4317
4082
 
4318
- Employer = "employer",
4083
+ Employer: "employer",
4319
4084
 
4320
- Endorsements = "endorsements",
4085
+ Endorsements: "endorsements",
4321
4086
 
4322
- FathersName = "fathersName",
4087
+ FathersName: "fathersName",
4323
4088
 
4324
- FirstName = "firstName",
4089
+ FirstName: "firstName",
4325
4090
 
4326
- FullName = "fullName",
4091
+ FullName: "fullName",
4327
4092
 
4328
- IssuingAuthority = "issuingAuthority",
4093
+ IssuingAuthority: "issuingAuthority",
4329
4094
 
4330
- LastName = "lastName",
4095
+ LastName: "lastName",
4331
4096
 
4332
- LicenseType = "licenceType",
4097
+ LicenseType: "licenceType",
4333
4098
 
4334
- LocalizedName = "localizedName",
4099
+ LocalizedName: "localizedName",
4335
4100
 
4336
- MaritalStatus = "maritalStatus",
4101
+ MaritalStatus: "maritalStatus",
4337
4102
 
4338
- MothersName = "mothersName",
4103
+ MothersName: "mothersName",
4339
4104
 
4340
- Mrz = "mrz",
4105
+ Mrz: "mrz",
4341
4106
 
4342
- Nationality = "nationality",
4107
+ Nationality: "nationality",
4343
4108
 
4344
- PersonalIdNumber = "personalIdNumber",
4109
+ PersonalIdNumber: "personalIdNumber",
4345
4110
 
4346
- PlaceOfBirth = "placeOfBirth",
4111
+ PlaceOfBirth: "placeOfBirth",
4347
4112
 
4348
- Profession = "profession",
4113
+ Profession: "profession",
4349
4114
 
4350
- Race = "race",
4115
+ Race: "race",
4351
4116
 
4352
- Religion = "religion",
4117
+ Religion: "religion",
4353
4118
 
4354
- ResidentialStatus = "residentialStatus",
4119
+ ResidentialStatus: "residentialStatus",
4355
4120
 
4356
- Restriction = "restrictions",
4121
+ Restriction: "restrictions",
4357
4122
 
4358
- Sex = "sex",
4123
+ Sex: "sex",
4359
4124
 
4360
- VehicleClass = "vehicleClass",
4125
+ VehicleClass: "vehicleClass",
4361
4126
 
4362
- BloodType = "bloodType",
4127
+ BloodType: "bloodType",
4363
4128
 
4364
- Sponsor = "sponsor",
4129
+ Sponsor: "sponsor",
4365
4130
 
4366
- VisaType = "visaType",
4131
+ VisaType: "visaType",
4367
4132
 
4368
- DocumentSubtype = "documentSubtype",
4133
+ DocumentSubtype: "documentSubtype",
4369
4134
 
4370
- Remarks = "remarks",
4135
+ Remarks: "remarks",
4371
4136
 
4372
- ResidencePermitType = "residencePermitType",
4137
+ ResidencePermitType: "residencePermitType",
4373
4138
 
4374
- ManufacturingYear = "manufacturingYear",
4139
+ ManufacturingYear: "manufacturingYear",
4375
4140
 
4376
- VehicleType = "vehicleType",
4141
+ VehicleType: "vehicleType",
4377
4142
 
4378
- DependentDateOfBirth = "dependentDateOfBirth",
4143
+ DependentDateOfBirth: "dependentDateOfBirth",
4379
4144
 
4380
- DependentSex = "dependentSex",
4145
+ DependentSex: "dependentSex",
4381
4146
 
4382
- DependentDocumentNumber = "dependentDocumentNumber",
4147
+ DependentDocumentNumber: "dependentDocumentNumber",
4383
4148
 
4384
- DependentFullName = "dependentFullName",
4149
+ DependentFullName: "dependentFullName",
4385
4150
 
4386
- EligibilityCategory = "eligibilityCategory",
4151
+ EligibilityCategory: "eligibilityCategory",
4387
4152
 
4388
- SpecificDocumentValidity = "specificDocumentValidity",
4153
+ SpecificDocumentValidity: "specificDocumentValidity",
4389
4154
 
4390
- VehicleOwner = "vehicleOwner",
4155
+ VehicleOwner: "vehicleOwner",
4391
4156
 
4392
- nationalInsuranceNumber = "nationalInsuranceNumber",
4157
+ nationalInsuranceNumber: "nationalInsuranceNumber",
4393
4158
 
4394
- CountryCode = "countryCode",
4159
+ CountryCode: "countryCode",
4395
4160
 
4396
- CertificateNumber = "certificateNumber",
4161
+ CertificateNumber: "certificateNumber",
4397
4162
 
4398
- MunicipalityOfRegistration = "municipalityOfRegistration",
4163
+ MunicipalityOfRegistration: "municipalityOfRegistration",
4399
4164
 
4400
- LocalityCode = "localityCode",
4165
+ LocalityCode: "localityCode",
4401
4166
 
4402
- MaidenName = "maidenName",
4167
+ MaidenName: "maidenName",
4403
4168
 
4404
- StateCode = "stateCode",
4169
+ StateCode: "stateCode",
4405
4170
 
4406
- DateOfEntry = "dateOfEntry",
4171
+ DateOfEntry: "dateOfEntry",
4407
4172
 
4408
- MunicipalityCode = "municipalityCode",
4173
+ MunicipalityCode: "municipalityCode",
4409
4174
 
4410
- PollingStationCode = "pollingStationCode",
4175
+ PollingStationCode: "pollingStationCode",
4411
4176
 
4412
- SectionCode = "sectionCode",
4177
+ SectionCode: "sectionCode",
4413
4178
 
4414
- RegistrationCenterCode = "registrationCenterCode",
4179
+ RegistrationCenterCode: "registrationCenterCode",
4415
4180
 
4416
- StateName = "stateName",
4417
- }
4181
+ StateName: "stateName",
4182
+
4183
+ EffectiveDate: "effectiveDate",
4184
+
4185
+ ParentsLastName: "parentsLastName",
4186
+
4187
+ ParentsFirstName: "parentsFirstName",
4188
+
4189
+ WorkRestriction: "workRestriction",
4190
+
4191
+ SocialSecurityStatus: "socialSecurityStatus",
4192
+
4193
+ LegalStatus: "legalStatus",
4194
+
4195
+ HusbandName: "husbandName",
4196
+
4197
+ CardAccessNumber: "cardAccessNumber",
4198
+ } as const;
4199
+
4200
+ export type FieldType = (typeof FieldType)[keyof typeof FieldType];
4418
4201
 
4419
4202
  /** An enum indicating preffered camera position for document capturing. */
4420
- export enum PreferredCamera {
4203
+ export type PreferredCamera =
4421
4204
  /**
4422
4205
  * Use the back-facing camera
4423
4206
  *
4424
4207
  * This is the default value
4425
4208
  */
4426
- Back = "back",
4209
+ | "back"
4427
4210
 
4428
4211
  /**
4429
4212
  * Use the front-facing camera
4430
4213
  *
4431
4214
  */
4432
- Front = "front",
4433
- }
4215
+ | "front";