@incodetech/core 2.2.0 → 2.3.0-rc.1

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 (258) hide show
  1. package/THIRD_PARTY_NOTICES.txt +281 -0
  2. package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
  3. package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js} +1 -1
  4. package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
  5. package/dist/FaceDetectionProvider-BfhWkK90.esm.js +431 -0
  6. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
  7. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
  8. package/dist/IWasmUtilCapability-CNWRl7jr.d.ts +117 -0
  9. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
  10. package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
  11. package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +54 -41
  12. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  13. package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
  14. package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
  15. package/dist/ae-signature.d.ts +4 -2
  16. package/dist/ae-signature.esm.js +1 -1
  17. package/dist/antifraud.esm.js +2 -2
  18. package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-DNkw66oW.esm.js} +2 -2
  19. package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
  20. package/dist/{apiError-BA1d_au0.esm.js → apiError-Budb6m6w.esm.js} +14 -2
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-CjXBjC-c.d.ts} +7 -1
  24. package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-cMXhG70r.esm.js} +5 -5
  25. package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-MOYz4HCf.esm.js} +6 -62
  26. package/dist/avatar.d.ts +1 -2
  27. package/dist/avatar.esm.js +1 -1
  28. package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
  29. package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
  30. package/dist/camera.esm.js +1 -1
  31. package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
  32. package/dist/certificate-issuance.d.ts +2 -302
  33. package/dist/certificate-issuance.esm.js +3 -66
  34. package/dist/certificateIssuanceManager-C3-CI0_s.esm.js +69 -0
  35. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  36. package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
  37. package/dist/consent.d.ts +1 -1
  38. package/dist/consent.esm.js +2 -2
  39. package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B6E1XJDw.esm.js} +2 -2
  40. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-BhYFeKiG.d.ts} +4 -4
  41. package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
  42. package/dist/createCameraCycleOwnership-CX3hJGKc.esm.js +826 -0
  43. package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
  44. package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
  45. package/dist/cross-document-data-match.esm.js +1 -1
  46. package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +2 -2
  47. package/dist/curp-validation.d.ts +1 -1
  48. package/dist/curp-validation.esm.js +2 -2
  49. package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +2 -2
  50. package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
  51. package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
  52. package/dist/custom-fields.d.ts +2 -114
  53. package/dist/custom-fields.esm.js +2 -232
  54. package/dist/custom-watchlist.d.ts +2 -51
  55. package/dist/custom-watchlist.esm.js +3 -70
  56. package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
  57. package/dist/customFieldsManager-CzWZTkW-.esm.js +264 -0
  58. package/dist/customWatchlistManager-DWTED5Ur.esm.js +73 -0
  59. package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
  60. package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
  61. package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-DDv3vhXU.esm.js} +27 -71
  62. package/dist/device.d.ts +25 -2
  63. package/dist/device.esm.js +69 -7
  64. package/dist/document-capture.d.ts +2 -2
  65. package/dist/document-capture.esm.js +2 -2
  66. package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-CwAiM9WY.esm.js} +2 -2
  67. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
  68. package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-DfGOBapD.esm.js} +5 -5
  69. package/dist/dynamic-forms.d.ts +1 -1
  70. package/dist/dynamic-forms.esm.js +2 -2
  71. package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-BbS-XMFc.esm.js} +16 -5
  72. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
  73. package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-D8zHBCh4.esm.js} +35 -3
  74. package/dist/ekyb.d.ts +1 -1
  75. package/dist/ekyb.esm.js +3 -3
  76. package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-5aiac8wL.esm.js} +2 -2
  77. package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-Bn2IE9rx.esm.js} +3 -3
  78. package/dist/ekyc.esm.js +2 -2
  79. package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-BlQ-Qj4E.esm.js} +2 -2
  80. package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
  81. package/dist/electronic-signature.d.ts +3 -3
  82. package/dist/electronic-signature.esm.js +2 -2
  83. package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-BJJH0Tvi.esm.js} +357 -51
  84. package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
  85. package/dist/email.esm.js +2 -2
  86. package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-bR1N5rV_.esm.js} +2 -2
  87. package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
  88. package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-B-3Q-LUw.esm.js} +24 -10
  89. package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
  90. package/dist/events.d.ts +1 -1
  91. package/dist/events.esm.js +1 -1
  92. package/dist/extensibility.d.ts +24 -64
  93. package/dist/extensibility.esm.js +35 -29
  94. package/dist/face-match.esm.js +2 -2
  95. package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-B7Ms6pSs.esm.js} +68 -7
  96. package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-BeUl8fl1.d.ts} +86 -54
  97. package/dist/faceCaptureSetup-bkAlr5d8.esm.js +2067 -0
  98. package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +2 -2
  99. package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
  100. package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-E0mq0pMs.esm.js} +32 -7
  101. package/dist/feature-management.d.ts +1 -1
  102. package/dist/feature-management.esm.js +1 -1
  103. package/dist/field-comparison.esm.js +1 -1
  104. package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +2 -2
  105. package/dist/fiscal-qr.d.ts +2 -56
  106. package/dist/fiscal-qr.esm.js +2 -308
  107. package/dist/fiscalQrManager-B1STmT6z.d.ts +71 -0
  108. package/dist/fiscalQrManager-BunLVFbd.esm.js +34143 -0
  109. package/dist/flow-events.d.ts +1 -1
  110. package/dist/flow.d.ts +212 -185
  111. package/dist/flow.esm.js +119 -30
  112. package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-DJp1odGN.esm.js} +2 -2
  113. package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-DjPFGs_D.esm.js} +91 -26
  114. package/dist/geolocation.esm.js +2 -2
  115. package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-D5906YXx.esm.js} +2 -2
  116. package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-BVOduc3y.esm.js} +3 -3
  117. package/dist/getBrowser-CBiibsL-.esm.js +19 -0
  118. package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
  119. package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
  120. package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
  121. package/dist/government-validation.d.ts +2 -85
  122. package/dist/government-validation.esm.js +3 -120
  123. package/dist/governmentValidationManager-CacFOtKO.esm.js +79 -0
  124. package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
  125. package/dist/governmentValidationStateMachine-CoaZOSTP.esm.js +54 -0
  126. package/dist/home.d.ts +1 -1
  127. package/dist/home.esm.js +1 -1
  128. package/dist/id-ocr.d.ts +2 -2
  129. package/dist/id-ocr.esm.js +2 -2
  130. package/dist/id-selfie-flow.d.ts +3 -2
  131. package/dist/id-selfie-flow.esm.js +11 -10
  132. package/dist/id-verification.esm.js +2 -2
  133. package/dist/id.d.ts +29 -5
  134. package/dist/id.esm.js +48 -46
  135. package/dist/idCaptureDefaults-CbPA-Auz.esm.js +727 -0
  136. package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-DKESug0R.d.ts} +230 -43
  137. package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-rfV9dIXy.esm.js} +259 -46
  138. package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-i1KxugN7.esm.js} +285 -72
  139. package/dist/idCaptureStateMachine-Ne_PXth_.esm.js +5333 -0
  140. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  141. package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-r46XfZGE.esm.js} +2 -2
  142. package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
  143. package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-DT42c77H.esm.js} +2 -2
  144. package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
  145. package/dist/identity-reuse.esm.js +2 -2
  146. package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-yG3acUrQ.esm.js} +2 -2
  147. package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
  148. package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
  149. package/dist/index.d.ts +1 -1
  150. package/dist/index.esm.js +1 -1
  151. package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
  152. package/dist/mandatory-consent.d.ts +2 -2
  153. package/dist/mandatory-consent.esm.js +2 -2
  154. package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +2 -2
  155. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +1 -1
  156. package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
  157. package/dist/multipartRecordingService-OEgIRvqC.esm.js +605 -0
  158. package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
  159. package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
  160. package/dist/personhood.d.ts +6 -5
  161. package/dist/personhood.esm.js +10 -10
  162. package/dist/phone.esm.js +2 -2
  163. package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-IjhSv5XS.esm.js} +2 -2
  164. package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
  165. package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
  166. package/dist/qe-signature.d.ts +5 -3
  167. package/dist/qe-signature.esm.js +2 -2
  168. package/dist/redirect-to-mobile.esm.js +2 -2
  169. package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +2 -2
  170. package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
  171. package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
  172. package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-CI1gGWN1.esm.js} +3 -21
  173. package/dist/safeStorage-B-trhxg6.esm.js +423 -0
  174. package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-BZh6dj53.esm.js} +1 -1
  175. package/dist/selfie.d.ts +5 -5
  176. package/dist/selfie.esm.js +14 -76
  177. package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +30 -4
  178. package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-4RRLi21P.d.ts} +8 -11
  179. package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-B-2c1n_x.esm.js} +5 -5
  180. package/dist/selfieStateMachine-Bzx41R8d.esm.js +69 -0
  181. package/dist/{session-BFdLgN4i.esm.js → session-3LmvAU4S.esm.js} +4 -5
  182. package/dist/session.d.ts +21 -11
  183. package/dist/session.esm.js +5 -5
  184. package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BFk33E67.esm.js} +187 -68
  185. package/dist/{setup-BIAtLa8k.esm.js → setup-BWG-hivt.esm.js} +226 -100
  186. package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
  187. package/dist/signature.esm.js +2 -2
  188. package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-B72np4ZO.esm.js} +2 -2
  189. package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
  190. package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
  191. package/dist/{stats-B0nFKawG.esm.js → stats-CZcy2J53.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-BN-Hzw82.esm.js} +7 -7
  194. package/dist/trust-graph.esm.js +1 -1
  195. package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
  196. package/dist/types-BT_Oalip.d.ts +1 -0
  197. package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
  198. package/dist/{types-Hmd7U0JA.d.ts → types-Bnl58jUQ.d.ts} +6 -85
  199. package/dist/types-ChAowIxT.d.ts +6 -0
  200. package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
  201. package/dist/types-DgDvvzg0.d.ts +10 -0
  202. package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
  203. package/dist/{types-Bdf8_LYB2.d.ts → types-byBHOzCG2.d.ts} +305 -25
  204. package/dist/video-selfie.d.ts +59 -35
  205. package/dist/video-selfie.esm.js +510 -601
  206. package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-B8PcYqmz.esm.js} +14 -153
  207. package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
  208. package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +59 -13
  209. package/dist/virtualCameraCheck-Cjab7FTI.esm.js +48 -0
  210. package/dist/warmup-CUUnwYxe.esm.js +714 -0
  211. package/dist/warmup-Cis2p6O0.d.ts +128 -0
  212. package/dist/wasm.d.ts +30 -6
  213. package/dist/wasm.esm.js +36 -4
  214. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
  215. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
  216. package/dist/watchlist-for-business.d.ts +2 -78
  217. package/dist/watchlist-for-business.esm.js +3 -102
  218. package/dist/watchlist.esm.js +2 -2
  219. package/dist/watchlistForBusinessManager-CIMkpEhu.esm.js +107 -0
  220. package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
  221. package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +13 -6
  222. package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CixcLNDT.esm.js} +2 -2
  223. package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
  224. package/dist/workflow.d.ts +12 -8
  225. package/dist/workflow.esm.js +48 -39
  226. package/package.json +4 -10
  227. package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
  228. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  229. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  230. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  231. package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
  232. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  233. package/dist/document-upload.d.ts +0 -325
  234. package/dist/document-upload.esm.js +0 -197
  235. package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
  236. package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
  237. package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
  238. package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
  239. package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
  240. package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
  241. package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
  242. package/dist/lib-DAyUtOTj.esm.js +0 -12420
  243. package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
  244. package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
  245. package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
  246. package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
  247. package/dist/recordingService-3NSENVwp.esm.js +0 -329
  248. package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
  249. package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
  250. package/dist/trueSight-B_icM8r2.esm.js +0 -1
  251. package/dist/types-EELWyWpd.d.ts +0 -6
  252. package/dist/types-Vb4P9ovf.d.ts +0 -22
  253. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  254. package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
  255. package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
  256. package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
  257. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  258. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
@@ -1,12 +1,192 @@
1
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CPQ4qv3F.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BWG-hivt.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-E0mq0pMs.esm.js";
2
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
- import { r as isDesktop } from "./platform-BJrm5nzZ.esm.js";
5
- import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-CUHwyZT4.esm.js";
6
- import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
7
- import { t as getDeviceClass } from "./getDeviceClass-9y-kbVDw.esm.js";
8
- import { n as preloadOpenViduProvider } from "./recordingService-3NSENVwp.esm.js";
9
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-WeHbQM7W.esm.js";
4
+ import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
+ import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
6
+ import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
7
+ import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
8
+ import { s as queryCameraPermission } from "./permissionServices-Bj_fyWtv.esm.js";
9
+ import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
10
+ import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
11
+ import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
12
+ import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CbPA-Auz.esm.js";
13
+ //#region src/internal/camera/cameraServices.ts
14
+ function createCameraServices(camera) {
15
+ return {
16
+ async checkPermission() {
17
+ return queryCameraPermission();
18
+ },
19
+ async requestStream(config) {
20
+ return camera.requestStream({
21
+ facingMode: config.facingMode,
22
+ deviceId: config.deviceId
23
+ });
24
+ },
25
+ stopStream(stream) {
26
+ camera.stopStream(stream);
27
+ },
28
+ captureFrame(video) {
29
+ return camera.captureFrame(video);
30
+ }
31
+ };
32
+ }
33
+ setup({
34
+ types: {
35
+ context: {},
36
+ events: {},
37
+ input: {}
38
+ },
39
+ actors: {
40
+ checkPermission: fromPromise(async ({ input }) => {
41
+ return createCameraServices(input.camera).checkPermission();
42
+ }),
43
+ requestStream: fromPromise(async ({ input }) => {
44
+ return createCameraServices(input.camera).requestStream(input.config);
45
+ })
46
+ },
47
+ actions: {
48
+ setPermissionResult: assign({ permissionResult: ({ event }) => {
49
+ if ("output" in event) return event.output;
50
+ if (event.type === "PERMISSION_RESULT") return event.result;
51
+ } }),
52
+ setStream: assign({ stream: ({ event }) => {
53
+ if ("output" in event) return event.output;
54
+ if (event.type === "STREAM_READY") return event.stream;
55
+ } }),
56
+ setError: assign({
57
+ error: ({ event }) => {
58
+ if ("error" in event && event.type?.startsWith?.("xstate.error")) {
59
+ const err = event.error;
60
+ return err.message || String(err);
61
+ }
62
+ if (event.type === "STREAM_ERROR") return event.error;
63
+ },
64
+ errorType: ({ event }) => {
65
+ if ("error" in event && event.type?.startsWith?.("xstate.error")) {
66
+ const err = event.error;
67
+ if (err.name === "NotAllowedError") return "permission_denied";
68
+ if (err.name === "NotFoundError") return "not_found";
69
+ if (err.name === "NotReadableError") return "not_readable";
70
+ if (err.name === "OverconstrainedError") return "overconstrained";
71
+ if (err.name === "SecurityError") return "security";
72
+ if (err.name === "AbortError") return "abort";
73
+ return "unknown";
74
+ }
75
+ if (event.type === "STREAM_ERROR") return event.errorType;
76
+ }
77
+ }),
78
+ stopStream: ({ context }) => {
79
+ if (context.stream) createCameraServices(context.camera).stopStream(context.stream);
80
+ },
81
+ resetContext: assign(({ context }) => ({
82
+ camera: context.camera,
83
+ config: context.config,
84
+ stream: void 0,
85
+ permissionResult: void 0,
86
+ error: void 0,
87
+ errorType: void 0
88
+ }))
89
+ },
90
+ guards: {
91
+ permissionGranted: ({ context }) => context.permissionResult === "granted",
92
+ permissionDenied: ({ context }) => context.permissionResult === "denied",
93
+ hasStream: ({ context }) => context.stream !== void 0
94
+ }
95
+ }).createMachine({
96
+ id: "camera",
97
+ initial: "idle",
98
+ context: ({ input }) => ({
99
+ camera: input.camera,
100
+ config: input.config ?? {},
101
+ stream: void 0,
102
+ permissionResult: void 0,
103
+ error: void 0,
104
+ errorType: void 0
105
+ }),
106
+ states: {
107
+ idle: { on: { START: "checkingPermission" } },
108
+ checkingPermission: {
109
+ invoke: {
110
+ id: "checkPermission",
111
+ src: "checkPermission",
112
+ input: ({ context }) => ({ camera: context.camera }),
113
+ onDone: {
114
+ target: "routing",
115
+ actions: "setPermissionResult"
116
+ },
117
+ onError: {
118
+ target: "routing",
119
+ actions: assign({ permissionResult: () => "prompt" })
120
+ }
121
+ },
122
+ on: { STOP: {
123
+ target: "idle",
124
+ actions: "resetContext"
125
+ } }
126
+ },
127
+ routing: { always: [
128
+ {
129
+ target: "requesting",
130
+ guard: "permissionGranted"
131
+ },
132
+ {
133
+ target: "error",
134
+ guard: "permissionDenied",
135
+ actions: assign({
136
+ error: () => "Camera permission denied",
137
+ errorType: () => "permission_denied"
138
+ })
139
+ },
140
+ { target: "requesting" }
141
+ ] },
142
+ requesting: {
143
+ invoke: {
144
+ id: "requestStream",
145
+ src: "requestStream",
146
+ input: ({ context }) => ({
147
+ camera: context.camera,
148
+ config: context.config
149
+ }),
150
+ onDone: {
151
+ target: "streaming",
152
+ actions: "setStream"
153
+ },
154
+ onError: {
155
+ target: "error",
156
+ actions: "setError"
157
+ }
158
+ },
159
+ on: { STOP: {
160
+ target: "idle",
161
+ actions: "resetContext"
162
+ } }
163
+ },
164
+ streaming: {
165
+ exit: "stopStream",
166
+ on: {
167
+ STOP: {
168
+ target: "idle",
169
+ actions: "resetContext"
170
+ },
171
+ RESET: {
172
+ target: "idle",
173
+ actions: "resetContext"
174
+ }
175
+ }
176
+ },
177
+ error: { on: {
178
+ RESET: {
179
+ target: "idle",
180
+ actions: "resetContext"
181
+ },
182
+ STOP: {
183
+ target: "idle",
184
+ actions: "resetContext"
185
+ }
186
+ } }
187
+ }
188
+ });
189
+ //#endregion
10
190
  //#region src/modules/id/idCameraStream.ts
11
191
  async function getIdCameraStream(deviceId) {
12
192
  return getBackCameraStream(deviceId);
@@ -33,9 +213,9 @@ async function getIdCameraStream(deviceId) {
33
213
  * payload whose halves exceed it is halved to fit rather than rejected, and a
34
214
  * session whose budget cannot fit a meaningful split runs the countdown arm.
35
215
  * Note this means the console payload decides total capture duration — a
36
- * treatment payload that leaves `framesAggregationIntervalMs` at its 3000
37
- * default produces a 4500ms window against the 5s default budget, i.e. longer
38
- * than the countdown arm's 3000ms. Set both halves explicitly.
216
+ * treatment payload that leaves `framesAggregationIntervalMs` at its 1700
217
+ * default produces a 3200ms window against the 5s default budget, i.e. longer
218
+ * than the countdown arm's 1700ms. Set both halves explicitly.
39
219
  */
40
220
  const MAX_OPTIMIZING_DWELL_MS = 2500;
41
221
  const DEFAULT_OPTIMIZING_DWELL_MS = 1500;
@@ -66,7 +246,8 @@ const OPTIMIZING_WATCHDOG_MARGIN_MS = 1e3;
66
246
  * the countdown arm, only the pre-boundary half in the treatment arm. Bounding it
67
247
  * for one would break the other, so the arm-aware handling lives in
68
248
  * `resolveCaptureOptimizingTreatment`. Its code default stays at the
69
- * canonical 3000 so an unallocated session keeps shipped control behavior.
249
+ * canonical SDK 1-compatible 1700 so an unallocated session keeps production
250
+ * parity.
70
251
  */
71
252
  const CAPTURE_OPTIMIZING = {
72
253
  storeParam: "idcExp05ShowResult",
@@ -161,8 +342,8 @@ function resolveCaptureOptimizingTreatment(config) {
161
342
  /**
162
343
  * Single source of truth for the WASM ID-capture thresholds passed to
163
344
  * `IIdCaptureCapability.setThresholds`. Resolves `framesAggregationInterval`
164
- * — the countdown / best-frame aggregation window (canonical default
165
- * 3000ms) — with precedence:
345
+ * — the countdown / best-frame aggregation window (SDK 1-compatible canonical
346
+ * default 1700ms) — with precedence:
166
347
  *
167
348
  * 1. An explicit `config.thresholds.framesAggregationInterval` (host/headless
168
349
  * override) always wins. Such a session never runs the IDC-05 treatment
@@ -248,6 +429,7 @@ const DEFAULT_ID_CAPTURE_SETTINGS = {
248
429
  };
249
430
  async function initializeIdCapture(params) {
250
431
  const { config, deepsightService } = params;
432
+ await ensureWasmPipelines(["idCapture"]);
251
433
  const provider = new IdCaptureProvider();
252
434
  await provider.initialize({});
253
435
  provider.setThresholds(resolveIdCaptureThresholds(config));
@@ -269,11 +451,13 @@ async function initializeIdCapture(params) {
269
451
  if (typeof settings.width === "number" && typeof settings.height === "number") captureResolution = `${settings.width}x${settings.height}`;
270
452
  }
271
453
  if (deepsightService && videoTrack) deepsightService.metadata.updateCameraInfo(videoTrack);
454
+ const usingBackCamera = videoTrack ? isBackFacingTrack(videoTrack) : true;
272
455
  return {
273
456
  stream,
274
457
  provider,
275
458
  captureResolution,
276
- cameraFallbackLevel: fallbackLevel
459
+ cameraFallbackLevel: fallbackLevel,
460
+ usingBackCamera
277
461
  };
278
462
  }
279
463
  function stopStream(stream) {
@@ -292,6 +476,12 @@ function validateUploadResponse(response, sessionState) {
292
476
  messageDescription: response.side === "back" ? "Please show the back side of your ID" : "Please show the front side of your ID",
293
477
  errorKey: ID_ERROR_CODES.WRONG_DOCUMENT_SIDE
294
478
  };
479
+ if (response.failReason === "DOCUMENT_NOT_READABLE") return {
480
+ error: true,
481
+ message: "Info is not readable",
482
+ messageDescription: "Minimize camera shake by holding your phone steady",
483
+ errorKey: ID_ERROR_CODES.READABILITY_ISSUE
484
+ };
295
485
  if (!response.classification) return {
296
486
  error: true,
297
487
  message: "ID classification failed",
@@ -378,71 +568,94 @@ async function uploadIdImage(params) {
378
568
  throw new Error(`${ID_ERROR_CODES.UPLOAD_ERROR}: ${errorMessage}`);
379
569
  }
380
570
  }
381
- function buildStandardResolution(width, height) {
382
- return height > width ? {
383
- width: 1080,
384
- height: 1920
385
- } : {
386
- width: 1920,
387
- height: 1080
388
- };
571
+ const multipartIdSessions = /* @__PURE__ */ new WeakMap();
572
+ const idRecordingFinalizations = /* @__PURE__ */ new WeakMap();
573
+ function createMultipartSessionHandle(service, compositor, recordingSource) {
574
+ const session = {};
575
+ multipartIdSessions.set(session, {
576
+ compositor,
577
+ needsVideoSourceReplacement: false,
578
+ recorderPaused: false,
579
+ recordingSource,
580
+ service
581
+ });
582
+ return session;
389
583
  }
390
- function buildResolutionFromStream(stream) {
391
- const track = stream.getVideoTracks()[0];
392
- if (!track) return "1080x1920";
393
- const settings = track.getSettings();
394
- const width = settings.width;
395
- const height = settings.height;
396
- if (typeof width === "number" && typeof height === "number") {
397
- const standard = buildStandardResolution(width, height);
398
- return `${standard.width}x${standard.height}`;
584
+ async function startRecordingSession(params) {
585
+ if (params.config.enableIdRecording !== true) return;
586
+ if (params.existing) {
587
+ const multipartSession = multipartIdSessions.get(params.existing);
588
+ if (multipartSession?.needsVideoSourceReplacement) {
589
+ const recordingSource = params.stream.clone();
590
+ recordingSource.getAudioTracks().forEach((track) => track.stop());
591
+ multipartSession.compositor.switchVideo(recordingSource);
592
+ multipartSession.needsVideoSourceReplacement = false;
593
+ multipartSession.recordingSource = recordingSource;
594
+ const resumeResult = await multipartSession.compositor.resume();
595
+ if (resumeResult !== "resumed") throw new Error(`ID recording camera did not resume: ${resumeResult}`);
596
+ }
597
+ if (multipartSession?.recorderPaused && !multipartSession.service.resume()) throw new Error("ID recording did not resume");
598
+ if (multipartSession) multipartSession.recorderPaused = false;
599
+ return params.existing;
399
600
  }
400
- return "1080x1920";
401
- }
402
- function preloadIdRecordingProvider(config) {
403
- if (config.enableIdRecording !== true) return;
404
- preloadOpenViduProvider();
601
+ const service = new MultipartRecordingService(params.type);
602
+ const recordingSource = params.stream.clone();
603
+ const compositor = new CameraCompositor({ fps: 30 });
604
+ try {
605
+ const recordingStream = compositor.start(recordingSource);
606
+ await service.start(recordingStream);
607
+ } catch (error) {
608
+ compositor.stop();
609
+ service.cleanup();
610
+ throw error;
611
+ }
612
+ return createMultipartSessionHandle(service, compositor, recordingSource);
405
613
  }
406
- async function createOpenViduRecordingProvider() {
407
- const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-Du98qevC.esm.js");
408
- return new OpenViduRecordingProvider();
614
+ function pauseRecordingForAttempt(session) {
615
+ const multipartSession = multipartIdSessions.get(session);
616
+ if (!multipartSession) return;
617
+ multipartSession.recorderPaused = multipartSession.service.pause();
409
618
  }
410
- async function startRecordingSession(params) {
411
- if (params.config.enableIdRecording !== true) return;
412
- if (params.existing) return params.existing;
413
- const provider = params.config.recording?.capability ?? await createOpenViduRecordingProvider();
414
- const clonedStream = params.stream.clone();
415
- const hasAudio = clonedStream.getAudioTracks().length > 0;
416
- const resolution = buildResolutionFromStream(clonedStream);
417
- const session = await createRecordingSession(params.type);
418
- const connection = await provider.connect({
419
- sessionToken: session.token,
420
- stream: clonedStream,
421
- events: {}
422
- });
423
- await startRecording({
424
- videoRecordingId: session.videoRecordingId,
425
- type: params.type,
426
- resolution,
427
- hasAudio
428
- });
429
- return {
430
- token: session.token,
431
- sessionId: session.sessionId,
432
- videoRecordingId: session.videoRecordingId,
433
- connection,
434
- resolution,
435
- hasAudio
436
- };
619
+ function prepareRecordingForCameraRetry(session) {
620
+ const multipartSession = multipartIdSessions.get(session);
621
+ if (!multipartSession) return;
622
+ if (!multipartSession.recorderPaused) multipartSession.recorderPaused = multipartSession.service.pause();
623
+ multipartSession.compositor.pause();
624
+ multipartSession.recordingSource.getVideoTracks().forEach((track) => track.stop());
625
+ multipartSession.needsVideoSourceReplacement = true;
437
626
  }
438
- function stopRecording(session) {
439
- (async () => {
627
+ /**
628
+ * Fully drains an ID recording before the protected camera cycle runs POC.
629
+ * Every recorder clone is stopped before this promise settles.
630
+ */
631
+ async function finalizeRecordingSession(session) {
632
+ const existing = idRecordingFinalizations.get(session);
633
+ if (existing) return existing;
634
+ const multipartSession = multipartIdSessions.get(session);
635
+ if (!multipartSession) return {};
636
+ const finalization = (async () => {
637
+ multipartIdSessions.delete(session);
440
638
  try {
441
- await stopRecording$1(session.videoRecordingId);
639
+ return await multipartSession.service.stop();
442
640
  } finally {
443
- await session.connection.disconnect();
641
+ multipartSession.compositor.stop();
444
642
  }
445
643
  })();
644
+ idRecordingFinalizations.set(session, finalization);
645
+ return finalization;
646
+ }
647
+ /** Synchronous teardown used when an attempt is cancelled before finalization. */
648
+ function disposeRecordingSession(session) {
649
+ const multipartSession = multipartIdSessions.get(session);
650
+ if (multipartSession) {
651
+ multipartIdSessions.delete(session);
652
+ const finalization = multipartSession.service.stop().finally(() => multipartSession.compositor.stop());
653
+ idRecordingFinalizations.set(session, finalization);
654
+ finalization.catch(() => {});
655
+ }
656
+ }
657
+ function stopRecording(session) {
658
+ finalizeRecordingSession(session).catch(() => {});
446
659
  }
447
660
  async function processId(isSecondId = false, queueName = "", signal) {
448
661
  const endpoint = isSecondId ? endpoints.processSecondId : endpoints.processId;
@@ -519,4 +732,4 @@ async function addBarcode(params) {
519
732
  return res.data;
520
733
  }
521
734
  //#endregion
522
- export { getIdCameraStream as _, processId as a, stopStream as c, validateUploadResponse as d, ID_ERROR_CODES as f, OPTIMIZING_WATCHDOG_MARGIN_MS as g, CAPTURE_OPTIMIZING as h, preloadIdRecordingProvider as i, uploadIdImage as l, resolveIdCaptureThresholds as m, barcodeToBase64 as n, startRecordingSession as o, resolveCaptureOptimizingTreatment as p, initializeIdCapture as r, stopRecording as s, addBarcode as t, uploadManualIdFile as u };
735
+ export { resolveCaptureOptimizingTreatment as _, getRealQualityValue as a, OPTIMIZING_WATCHDOG_MARGIN_MS as b, prepareRecordingForCameraRetry as c, stopRecording as d, stopStream as f, ID_ERROR_CODES as g, validateUploadResponse as h, finalizeRecordingSession as i, processId as l, uploadManualIdFile as m, barcodeToBase64 as n, initializeIdCapture as o, uploadIdImage as p, disposeRecordingSession as r, pauseRecordingForAttempt as s, addBarcode as t, startRecordingSession as u, resolveIdCaptureThresholds as v, getIdCameraStream as x, CAPTURE_OPTIMIZING as y };