@incodetech/core 2.4.1-agentic.1 → 2.4.1-agentic.11

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 (289) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
  4. package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
  5. package/dist/{FaceDetectionProvider-CAY43vSI.esm.js → FaceDetectionProvider-2NzWDbV8.esm.js} +9 -9
  6. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  7. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  8. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  9. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  10. package/dist/{MultipartRecordingProvider-D9mauUdS.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +6 -1
  11. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  12. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-DdhAHHw4.esm.js} +42 -6
  13. package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
  14. package/dist/addressSearch-Rxm1K67A.esm.js +73 -0
  15. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  16. package/dist/ae-signature.d.ts +2 -2
  17. package/dist/ae-signature.esm.js +1 -1
  18. package/dist/antifraud.d.ts +1 -1
  19. package/dist/antifraud.esm.js +2 -2
  20. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  21. package/dist/{antifraudManager-BObuHBjn.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  22. package/dist/{antifraudStateMachine-Dfrd2-26.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  23. package/dist/{api-CpP4PS4S.esm.js → api-CZpuJuZl.esm.js} +3 -1
  24. package/dist/{apiError-DH-CH4Nz.esm.js → apiError-BamZ815u.esm.js} +1 -1
  25. package/dist/{attemptCarry-WOkfvFMw.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  26. package/dist/authentication.d.ts +3 -3
  27. package/dist/authentication.esm.js +2 -2
  28. package/dist/{authenticationManager-CWmh7aSY.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  29. package/dist/{authenticationManager-DjX0XDyH.esm.js → authenticationManager-yBVGiIf_.esm.js} +7 -6
  30. package/dist/{authenticationStateMachine-BMbZL8wm.esm.js → authenticationStateMachine-DPqTOJPp.esm.js} +50 -18
  31. package/dist/avatar.d.ts +1 -1
  32. package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-DxIBykpe.esm.js} +1 -1
  33. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  34. package/dist/camera.esm.js +1 -1
  35. package/dist/certificate-issuance.d.ts +1 -1
  36. package/dist/certificate-issuance.esm.js +2 -2
  37. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  38. package/dist/{certificateIssuanceManager-C1nETQos.esm.js → certificateIssuanceManager-Dxl9UwR0.esm.js} +5 -3
  39. package/dist/{certificateIssuanceStateMachine-DThXMDqr.esm.js → certificateIssuanceStateMachine-CM4q71h1.esm.js} +4 -4
  40. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  41. package/dist/consent.d.ts +1 -1
  42. package/dist/consent.esm.js +2 -2
  43. package/dist/{consentManager-bjfVXO7p.d.ts → consentManager-B2F_VeAo.d.ts} +12 -11
  44. package/dist/{consentManager-DMlSL6Ax.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  45. package/dist/{consentStateMachine-DIYSMxKQ.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  46. package/dist/cpf-DDXMTLYr.esm.js +37 -0
  47. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  48. package/dist/cross-document-data-match.d.ts +1 -1
  49. package/dist/cross-document-data-match.esm.js +1 -1
  50. package/dist/{crossDocumentDataMatchManager-BFTdiEDB.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  51. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  52. package/dist/curp-DZGvefg3.esm.js +14 -0
  53. package/dist/curp-validation.d.ts +1 -1
  54. package/dist/curp-validation.esm.js +2 -2
  55. package/dist/{curpValidationManager-DNpC3wyf.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
  56. package/dist/{curpValidationManager-z8428oCM.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  57. package/dist/{curpValidationStateMachine-B3iVsDyt.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
  58. package/dist/custom-fields.d.ts +1 -1
  59. package/dist/custom-fields.esm.js +1 -1
  60. package/dist/custom-watchlist.d.ts +1 -1
  61. package/dist/custom-watchlist.esm.js +2 -2
  62. package/dist/{customFieldsManager-CvI-pDT3.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  63. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  64. package/dist/{customWatchlistManager-BuHtUb0y.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  65. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  66. package/dist/{customWatchlistStateMachine-CiVD9wyF.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  67. package/dist/{deepsightLoader-B7DEYoyY.esm.js → deepsightLoader-CEY2mSPM.esm.js} +5 -5
  68. package/dist/{addressSearch-DzbE9Ogt.esm.js → definitionSource-Nw0YCbpe.esm.js} +39 -72
  69. package/dist/{desktopCameraElection-BGMtYwk3.esm.js → desktopCameraElection-enVPfRsQ.esm.js} +5 -5
  70. package/dist/document-capture.d.ts +1 -1
  71. package/dist/document-capture.esm.js +2 -2
  72. package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +4 -3
  73. package/dist/{documentCaptureManager-DLPqruXJ.esm.js → documentCaptureManager-C11k5BO-.esm.js} +5 -3
  74. package/dist/{documentCaptureStateMachine-DCvWQhFG.esm.js → documentCaptureStateMachine-g0gfL0_1.esm.js} +6 -6
  75. package/dist/dynamic-forms.d.ts +1 -1
  76. package/dist/dynamic-forms.esm.js +2 -2
  77. package/dist/{dynamicFormsManager-DfqCEPg9.esm.js → dynamicFormsManager-BmfCZ2zV.esm.js} +5 -3
  78. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  79. package/dist/{dynamicFormsStateMachine-USQMB-uV.esm.js → dynamicFormsStateMachine-B-eYytau.esm.js} +4 -4
  80. package/dist/ekyb.d.ts +3 -3
  81. package/dist/ekyb.esm.js +2 -2
  82. package/dist/{ekybManager-CR8YSYux.esm.js → ekybManager-BPaMfbgw.esm.js} +5 -3
  83. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  84. package/dist/{ekybStateMachine-kHwdz6hm.esm.js → ekybStateMachine-C_lEw4I7.esm.js} +19 -19
  85. package/dist/ekyc-prefill.d.ts +17 -0
  86. package/dist/ekyc-prefill.esm.js +3 -0
  87. package/dist/ekyc.d.ts +3 -3
  88. package/dist/ekyc.esm.js +3 -3
  89. package/dist/{ekycManager-DlGIn9wA.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  90. package/dist/{ekycManager-DymCvmVB.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  91. package/dist/ekycPrefillManager-CCtbmrFd.esm.js +103 -0
  92. package/dist/ekycPrefillManager-DOTl3Y2w.d.ts +566 -0
  93. package/dist/ekycPrefillStateMachine-XpxgCAoC.esm.js +687 -0
  94. package/dist/ekycRules-DXP2hqVw.esm.js +479 -0
  95. package/dist/{ekycStateMachine-CoFCUJ2z.esm.js → ekycStateMachine-nwJRel2s.esm.js} +915 -596
  96. package/dist/{ekycUtils-GRuMELYr.esm.js → ekycUtils-FcqA6oU4.esm.js} +68 -49
  97. package/dist/electronic-signature.d.ts +1 -1
  98. package/dist/electronic-signature.esm.js +1 -1
  99. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  100. package/dist/{electronicSignatureManager-BCE3uA3z.esm.js → electronicSignatureManager-M2O2VDks.esm.js} +8 -6
  101. package/dist/email.d.ts +1 -1
  102. package/dist/email.esm.js +2 -2
  103. package/dist/{emailManager-CGoE3CUe.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  104. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  105. package/dist/{emailStateMachine-KgHfDNvM.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  106. package/dist/events-CP3yOzAl.esm.js +299 -0
  107. package/dist/events.d.ts +3 -1
  108. package/dist/events.esm.js +2 -1
  109. package/dist/extensibility.d.ts +43 -42
  110. package/dist/extensibility.esm.js +39 -38
  111. package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
  112. package/dist/face-match.d.ts +1 -1
  113. package/dist/face-match.esm.js +2 -2
  114. package/dist/{faceCaptureManagerFactory-Dp90bedH.esm.js → faceCaptureManagerFactory-3Or5qfbA.esm.js} +17 -6
  115. package/dist/{faceCaptureManagerFactory-DV2ULUYS.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
  116. package/dist/{faceCaptureSetup-ZfiWg0fo.esm.js → faceCaptureSetup-Cf87i0rT.esm.js} +46 -38
  117. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  118. package/dist/{faceMatchManager-D2xKPjjQ.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  119. package/dist/{faceMatchStateMachine-CUvwiQi9.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
  120. package/dist/{feature-management-BbCIA4og.esm.js → feature-management-DG016L6E.esm.js} +1 -1
  121. package/dist/feature-management.esm.js +1 -1
  122. package/dist/field-comparison.d.ts +1 -1
  123. package/dist/field-comparison.esm.js +1 -1
  124. package/dist/{fieldComparisonManager-DgDbEeFZ.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  125. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  126. package/dist/fiscal-qr.d.ts +1 -1
  127. package/dist/fiscal-qr.esm.js +1 -1
  128. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  129. package/dist/{fiscalQrManager-BZeklojR.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  130. package/dist/flow-events.d.ts +1 -1
  131. package/dist/flow.d.ts +71 -20
  132. package/dist/flow.esm.js +285 -68
  133. package/dist/{flowCompletionService-CcCnPs_T.esm.js → flowCompletionService-BpeAbbXc.esm.js} +24 -3
  134. package/dist/{flowServices-Dmnc8Rye.esm.js → flowServices-rDg1bAMs.esm.js} +393 -13
  135. package/dist/geolocation.d.ts +1 -1
  136. package/dist/geolocation.esm.js +2 -2
  137. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  138. package/dist/{geolocationManager-BJJ3m_I8.esm.js → geolocationManager-T8m4lqvF.esm.js} +5 -3
  139. package/dist/{geolocationStateMachine-CTI3m4Ie.esm.js → geolocationStateMachine-NWmA1Dtn.esm.js} +5 -5
  140. package/dist/government-validation.d.ts +1 -1
  141. package/dist/government-validation.esm.js +2 -2
  142. package/dist/{governmentValidationManager-CjChjZ3C.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  143. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  144. package/dist/{governmentValidationStateMachine-AEbn3Afi.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  145. package/dist/home.d.ts +4 -3
  146. package/dist/home.esm.js +4 -2
  147. package/dist/http.esm.js +1 -1
  148. package/dist/id-ocr.d.ts +2 -2
  149. package/dist/id-ocr.esm.js +3 -19
  150. package/dist/id-selfie-flow.d.ts +6 -5
  151. package/dist/id-selfie-flow.esm.js +12 -11
  152. package/dist/id-verification.d.ts +1 -1
  153. package/dist/id-verification.esm.js +2 -2
  154. package/dist/id.d.ts +3 -3
  155. package/dist/id.esm.js +3 -3
  156. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-Cjesf5i9.esm.js} +3 -3
  157. package/dist/{idCaptureManager-B3oR4RnA.esm.js → idCaptureManager-5-ReVgbB.esm.js} +12 -10
  158. package/dist/{idCaptureManager-CCA2D1Ah.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
  159. package/dist/{idCaptureServices-DK0QboqT.esm.js → idCaptureServices-exB6I9lV.esm.js} +7 -7
  160. package/dist/{idCaptureStateMachine-zzar9MPy.esm.js → idCaptureStateMachine-DQ14d3GR.esm.js} +51 -21
  161. package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +18 -0
  162. package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-C0C7lFGd.d.ts} +6 -5
  163. package/dist/{idOcrManager-xyEZNOBa.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  164. package/dist/{idOcrStateMachine-DNKXh4Rn.esm.js → idOcrStateMachine-B832arAl.esm.js} +10 -9
  165. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  166. package/dist/{idVerificationManager-DdnvYfgN.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  167. package/dist/{idVerificationStateMachine-DtIBCa32.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  168. package/dist/identity-reuse.d.ts +2 -2
  169. package/dist/identity-reuse.esm.js +2 -2
  170. package/dist/identity-search.d.ts +97 -0
  171. package/dist/identity-search.esm.js +97 -0
  172. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
  173. package/dist/{identityReuseManager-CcpovlfD.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  174. package/dist/{identityReuseStateMachine-DxZFWy47.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  175. package/dist/index-DHuAkTe0.d.ts +1 -0
  176. package/dist/{index-DEfwds5y.d.ts → index-DM43R87x.d.ts} +43 -19
  177. package/dist/{index-DC0P2Vzw.d.ts → index-DxYNO94y.d.ts} +2 -2
  178. package/dist/index.d.ts +1 -1
  179. package/dist/index.esm.js +1 -1
  180. package/dist/{invokeOnCaptureCallback-BJ0GVHGr.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  181. package/dist/kyb-checks.d.ts +1 -1
  182. package/dist/kyb-checks.esm.js +2 -2
  183. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  184. package/dist/{kybChecksManager-DpGOp4Su.esm.js → kybChecksManager-CZfdCkLC.esm.js} +3 -2
  185. package/dist/{kybChecksStateMachine-B43NAnv7.esm.js → kybChecksStateMachine-DkWxSU4L.esm.js} +9 -7
  186. package/dist/mandatory-consent.d.ts +2 -2
  187. package/dist/mandatory-consent.esm.js +2 -2
  188. package/dist/{mandatoryConsentManager-B88Sm5nd.d.ts → mandatoryConsentManager-Bh1asNJh.d.ts} +24 -14
  189. package/dist/{mandatoryConsentManager-B4vCYslr.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  190. package/dist/{mandatoryConsentStateMachine-DWslYPA3.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +13 -7
  191. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
  192. package/dist/{multipartRecordingService-BTqkHGG9.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
  193. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-D-4_VU7-.esm.js} +1 -1
  194. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DpccEnzE.esm.js} +1 -1
  195. package/dist/phone.d.ts +1 -1
  196. package/dist/phone.esm.js +2 -2
  197. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  198. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  199. package/dist/{phoneManager-Dy5tODCU.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  200. package/dist/{phoneServices-DJgyOzU2.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  201. package/dist/{phoneStateMachine-DnlPhnw7.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  202. package/dist/{processFaceMatch-Bst83HaS.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  203. package/dist/qe-signature.d.ts +2 -2
  204. package/dist/qe-signature.esm.js +1 -1
  205. package/dist/{recordingService-CTko6Cjn.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
  206. package/dist/redirect-to-mobile.d.ts +1 -1
  207. package/dist/redirect-to-mobile.esm.js +2 -2
  208. package/dist/{redirectToMobileManager-CgGaT2NP.esm.js → redirectToMobileManager-DTB_pWuS.esm.js} +6 -4
  209. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  210. package/dist/{redirectToMobileStateMachine-CbhN8uVN.esm.js → redirectToMobileStateMachine-nP9DM01_.esm.js} +4 -4
  211. package/dist/{resolveForm-O7-r79VA.esm.js → resolveForm-DaaQSVWp.esm.js} +8 -213
  212. package/dist/{runChildModule-BffFArwl.esm.js → runChildModule-CXLcOcXN.esm.js} +8 -6
  213. package/dist/{sdkVersion-CDd_gaR7.esm.js → sdkVersion-fqxsdqFZ.esm.js} +1 -1
  214. package/dist/selfie.d.ts +4 -4
  215. package/dist/selfie.esm.js +13 -12
  216. package/dist/{selfieErrorUtils-f4MgAG2A.esm.js → selfieErrorUtils-MOfYdGPz.esm.js} +1 -1
  217. package/dist/{selfieManager-DmZFzs1-.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  218. package/dist/{selfieManager-hopelYEk.esm.js → selfieManager-Dq8tIqGd.esm.js} +7 -6
  219. package/dist/{selfieStateMachine-DaZIVv3Q.esm.js → selfieStateMachine-BZVDQB8R.esm.js} +5 -5
  220. package/dist/{session-CdSX4wsZ.esm.js → session-C7x_iJ-p.esm.js} +4 -4
  221. package/dist/session.d.ts +2 -2
  222. package/dist/session.esm.js +5 -5
  223. package/dist/{sessionInitializer-DsL7X2j9.esm.js → sessionInitializer-k-hKIBg8.esm.js} +21 -9
  224. package/dist/{setup-DDahygZs.esm.js → setup-BRbhjHiU.esm.js} +13 -15
  225. package/dist/{setup-D9qt8YVU.d.ts → setup-CpXbdA1X.d.ts} +2 -2
  226. package/dist/signature.d.ts +1 -1
  227. package/dist/signature.esm.js +2 -2
  228. package/dist/{signatureManager-CwqjcxPg.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  229. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  230. package/dist/{signatureStateMachine-DBVDd1Eu.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  231. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  232. package/dist/{stats-CatA2dea.esm.js → stats-DoByUnTa.esm.js} +1 -1
  233. package/dist/stats.esm.js +1 -1
  234. package/dist/step-up.d.ts +379 -0
  235. package/dist/step-up.esm.js +640 -0
  236. package/dist/{tri-DG6priFa.esm.js → tri-CI2exudk.esm.js} +29 -34
  237. package/dist/tri.d.ts +2 -2
  238. package/dist/tri.esm-CxLWmTZk.esm.js +2287 -0
  239. package/dist/tri.esm.js +2 -2
  240. package/dist/{trueSightService-GuLthUVK.esm.js → trueSightService-DhW2O8mB.esm.js} +7 -4
  241. package/dist/trust-graph.d.ts +4 -3
  242. package/dist/trust-graph.esm.js +5 -3
  243. package/dist/{types-BEVHQbbC.d.ts → types-9wlf1-GE.d.ts} +3 -3
  244. package/dist/types-B-PIc0en.d.ts +115 -0
  245. package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
  246. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  247. package/dist/types-CE1jkHw3.d.ts +6 -0
  248. package/dist/{types-BPm1JSu7.d.ts → types-Cpdum4vi.d.ts} +5 -5
  249. package/dist/{types-CuMJ2M7D.d.ts → types-DEa3taWc.d.ts} +8 -1
  250. package/dist/{types-Csh8vzPo.d.ts → types-DFP7eSle.d.ts} +1 -1
  251. package/dist/{types-Cd0J0F9D.d.ts → types-DJPU3W2M.d.ts} +3 -2
  252. package/dist/{events-ggpBBaZ8.esm.js → types-DYYMdAGv.esm.js} +3 -298
  253. package/dist/{types-CRaFu6wS.d.ts → types-Ddc4Tr_f.d.ts} +37 -4
  254. package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
  255. package/dist/usStates-CwOQ2kAx.esm.js +209 -0
  256. package/dist/video-selfie.d.ts +9 -7
  257. package/dist/video-selfie.esm.js +14 -13
  258. package/dist/{videoSelfieCameraWarmer-e3irGfcO.esm.js → videoSelfieCameraWarmer-YwO_uP-b.esm.js} +14 -12
  259. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  260. package/dist/{videoSelfieStepDetector-Dv3Mgws-.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
  261. package/dist/{warmup-DtB0DJpl.esm.js → warmup-9iKKNNuW.esm.js} +46 -4
  262. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  263. package/dist/wasm.d.ts +9 -3
  264. package/dist/wasm.esm.js +3 -3
  265. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-D_6e8W62.esm.js} +1 -1
  266. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-C3v3s_4H.esm.js} +22 -10
  267. package/dist/watchlist-for-business.d.ts +1 -1
  268. package/dist/watchlist-for-business.esm.js +2 -2
  269. package/dist/watchlist.d.ts +1 -1
  270. package/dist/watchlist.esm.js +2 -2
  271. package/dist/{watchlistForBusinessManager-DqUpAEj_.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
  272. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  273. package/dist/{watchlistForBusinessStateMachine-DdaPl2PS.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
  274. package/dist/{watchlistManager-CdpXzT4B.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  275. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  276. package/dist/{watchlistStateMachine-ofHW_lPk.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  277. package/dist/workflow.d.ts +230 -44
  278. package/dist/workflow.esm.js +171 -67
  279. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  280. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  281. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  282. package/package.json +16 -1
  283. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  284. package/dist/cpf-uAZTPUBy.esm.js +0 -61
  285. package/dist/index-DpTj5PFb.d.ts +0 -1
  286. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  287. package/dist/phoneFormat-JJNaWthV.esm.js +0 -75
  288. package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
  289. package/dist/types-J6g6iKe_.d.ts +0 -6
@@ -1,7 +1,8 @@
1
- import { l as RiskAddon } from "./types-CuMJ2M7D.js";
2
- import "./createFaceAvatar-lYX0VTYs.js";
1
+ import { u as RiskAddon } from "./types-DEa3taWc.js";
2
+ import "./createFaceAvatar-BimBTONm.js";
3
3
  import { t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
4
4
  import { n as KybChecksConfig } from "./types-CTaL0XJz.js";
5
+ import { c as EkycPrefillModuleConfig } from "./types-B-PIc0en.js";
5
6
  //#region src/internal/avatar/concealment.d.ts
6
7
  /**
7
8
  * Backend-aligned selfie/auth face-concealment options. The backend returns a
@@ -86,6 +87,17 @@ type FlowModuleConfig = {
86
87
  * + docs/features/FACE_AVATAR.md).
87
88
  */
88
89
  selfieConcealmentOption?: SelfieConcealmentOption;
90
+ /**
91
+ * Set by the SDK on the AUTHENTICATION step of a Flow with identity
92
+ * reuse. The backend never sends it, and `modulesConfig` can't set it. A
93
+ * spoof then ends the module at once, with no retry, with
94
+ * `SPOOF_ATTEMPT_DETECTED`. When the attempts run out, the module ends
95
+ * with `NO_MORE_ATTEMPTS` only if an attempt came back
96
+ * USER_IS_NOT_RECOGNIZED; otherwise it ends with the last attempt's code,
97
+ * such as `BAD_PHOTO_QUALITY`. The flow fails on the spoof and on the last
98
+ * attempt's code, and moves on after `NO_MORE_ATTEMPTS`.
99
+ */
100
+ identityReuseOutcomes?: boolean;
89
101
  };
90
102
  ADDRESS: {
91
103
  disableSkipPoa: boolean;
@@ -128,8 +140,11 @@ type FlowModuleConfig = {
128
140
  uniqueBeneficialOwnerSource: 'userInput';
129
141
  };
130
142
  EKYB_CHECKS: KybChecksConfig;
143
+ EKYC_PREFILL: EkycPrefillModuleConfig;
131
144
  EXTERNAL_VERIFICATION: {
132
- source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'US_CREDIT_TELCO' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_1' | 'CL_1' | 'AR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1' | 'RISK_ADDONS_ONLY';
145
+ source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'US_CREDIT_TELCO' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_1' | 'CL_1' | 'AR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1' | 'HK_RESIDENT_REGISTER' | 'RISK_ADDONS_ONLY';
146
+ /** The backend runs the checks from earlier modules' data; the SDK skips the step. */
147
+ autoExecution?: boolean;
133
148
  checkName: boolean;
134
149
  nameSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
135
150
  checkEmail: boolean;
@@ -200,6 +215,13 @@ type FlowModuleConfig = {
200
215
  TUTORIAL_ID: TutorialIdConfig;
201
216
  ID: TutorialIdConfig;
202
217
  SECOND_ID: TutorialIdConfig;
218
+ /**
219
+ * The backend's ID Validation module (key `ID` right after TUTORIAL_ID),
220
+ * kept as its own step in a Flow with identity reuse. It runs only after a
221
+ * shared identity, and validates the imported document. Every other Flow
222
+ * merges it into the `ID` step.
223
+ */
224
+ ID_VALIDATION: TutorialIdConfig;
203
225
  /** @deprecated Third ID step is deprecated; SDK skips this step and continues flow */
204
226
  THIRD_ID: {
205
227
  documentType: string;
@@ -207,8 +229,10 @@ type FlowModuleConfig = {
207
229
  ID_OCR: {
208
230
  editableOcr: boolean;
209
231
  cpfOnly?: boolean;
210
- /** When true, OCR is collected for the second captured ID after the first. */
232
+ /** Legacy combined review when ocrDocument is omitted. False disables second-ID review. */
211
233
  secondId?: boolean;
234
+ /** Review only this document instead of the combined first/second sequence. */
235
+ ocrDocument?: 'first' | 'second';
212
236
  /** Set by orchestrated flow UI from the active session (`flow.flowId`). */
213
237
  flowId?: string;
214
238
  };
@@ -340,6 +364,8 @@ type FlowModuleConfig = {
340
364
  FISCAL_QR: EmptyConfig;
341
365
  GENERATE_QR: EmptyConfig;
342
366
  HOME: EmptyConfig;
367
+ IDENTITY_REUSE: EmptyConfig;
368
+ IDENTITY_SEARCH: EmptyConfig;
343
369
  INSTANT_VERIFY: EmptyConfig;
344
370
  IP_ADDRESS: EmptyConfig;
345
371
  NAME_CAPTURE: EmptyConfig;
@@ -388,6 +414,13 @@ type Flow = {
388
414
  getEnableIdOnlyIdentity?: boolean;
389
415
  ds?: boolean;
390
416
  oauth2Secured?: boolean;
417
+ /**
418
+ * True when the integrator sent the identity search hint through the
419
+ * backend API at session start. A Flow with identity reuse then skips the
420
+ * EMAIL and PHONE steps in front of the group, since the hint stands in for
421
+ * the contact.
422
+ */
423
+ identitySearchHintProvided?: boolean;
391
424
  };
392
425
  //#endregion
393
426
  export { RegulationTypes as a, FlowModuleConfig as i, Flow as n, TutorialIdConfig as o, FlowModule as r, SelfieConcealmentOption as s, EmptyConfig as t };
@@ -22,5 +22,18 @@ function stripUrlQueryAndFragment(url) {
22
22
  return url.split(/[?#]/, 1)[0];
23
23
  }
24
24
  }
25
+ /**
26
+ * Exact origin (`scheme://host[:port]`) of an absolute `http:` or `https:`
27
+ * URL, or `undefined` for anything else (relative, unparsable, other schemes).
28
+ */
29
+ function getHttpUrlOrigin(url) {
30
+ try {
31
+ const parsed = new URL(url);
32
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return;
33
+ return parsed.origin;
34
+ } catch {
35
+ return;
36
+ }
37
+ }
25
38
  //#endregion
26
- export { stripUrlQueryAndFragment as i, getUrlSearchParam as n, resolveAgainstPageOrigin as r, buildUrlWithSearchParams as t };
39
+ export { stripUrlQueryAndFragment as a, resolveAgainstPageOrigin as i, getHttpUrlOrigin as n, getUrlSearchParam as r, buildUrlWithSearchParams as t };
@@ -0,0 +1,209 @@
1
+ //#region src/shared/usStates.ts
2
+ const usStates = {
3
+ AL: {
4
+ code: "AL",
5
+ name: "Alabama"
6
+ },
7
+ AK: {
8
+ code: "AK",
9
+ name: "Alaska"
10
+ },
11
+ AZ: {
12
+ code: "AZ",
13
+ name: "Arizona"
14
+ },
15
+ AR: {
16
+ code: "AR",
17
+ name: "Arkansas"
18
+ },
19
+ CA: {
20
+ code: "CA",
21
+ name: "California"
22
+ },
23
+ CO: {
24
+ code: "CO",
25
+ name: "Colorado"
26
+ },
27
+ CT: {
28
+ code: "CT",
29
+ name: "Connecticut"
30
+ },
31
+ DE: {
32
+ code: "DE",
33
+ name: "Delaware"
34
+ },
35
+ FL: {
36
+ code: "FL",
37
+ name: "Florida"
38
+ },
39
+ GA: {
40
+ code: "GA",
41
+ name: "Georgia"
42
+ },
43
+ HI: {
44
+ code: "HI",
45
+ name: "Hawaii"
46
+ },
47
+ ID: {
48
+ code: "ID",
49
+ name: "Idaho"
50
+ },
51
+ IL: {
52
+ code: "IL",
53
+ name: "Illinois"
54
+ },
55
+ IN: {
56
+ code: "IN",
57
+ name: "Indiana"
58
+ },
59
+ IA: {
60
+ code: "IA",
61
+ name: "Iowa"
62
+ },
63
+ KS: {
64
+ code: "KS",
65
+ name: "Kansas"
66
+ },
67
+ KY: {
68
+ code: "KY",
69
+ name: "Kentucky"
70
+ },
71
+ LA: {
72
+ code: "LA",
73
+ name: "Louisiana"
74
+ },
75
+ ME: {
76
+ code: "ME",
77
+ name: "Maine"
78
+ },
79
+ MD: {
80
+ code: "MD",
81
+ name: "Maryland"
82
+ },
83
+ MA: {
84
+ code: "MA",
85
+ name: "Massachusetts"
86
+ },
87
+ MI: {
88
+ code: "MI",
89
+ name: "Michigan"
90
+ },
91
+ MN: {
92
+ code: "MN",
93
+ name: "Minnesota"
94
+ },
95
+ MS: {
96
+ code: "MS",
97
+ name: "Mississippi"
98
+ },
99
+ MO: {
100
+ code: "MO",
101
+ name: "Missouri"
102
+ },
103
+ MT: {
104
+ code: "MT",
105
+ name: "Montana"
106
+ },
107
+ NE: {
108
+ code: "NE",
109
+ name: "Nebraska"
110
+ },
111
+ NV: {
112
+ code: "NV",
113
+ name: "Nevada"
114
+ },
115
+ NH: {
116
+ code: "NH",
117
+ name: "New Hampshire"
118
+ },
119
+ NJ: {
120
+ code: "NJ",
121
+ name: "New Jersey"
122
+ },
123
+ NM: {
124
+ code: "NM",
125
+ name: "New Mexico"
126
+ },
127
+ NY: {
128
+ code: "NY",
129
+ name: "New York"
130
+ },
131
+ NC: {
132
+ code: "NC",
133
+ name: "North Carolina"
134
+ },
135
+ ND: {
136
+ code: "ND",
137
+ name: "North Dakota"
138
+ },
139
+ OH: {
140
+ code: "OH",
141
+ name: "Ohio"
142
+ },
143
+ OK: {
144
+ code: "OK",
145
+ name: "Oklahoma"
146
+ },
147
+ OR: {
148
+ code: "OR",
149
+ name: "Oregon"
150
+ },
151
+ PA: {
152
+ code: "PA",
153
+ name: "Pennsylvania"
154
+ },
155
+ RI: {
156
+ code: "RI",
157
+ name: "Rhode Island"
158
+ },
159
+ SC: {
160
+ code: "SC",
161
+ name: "South Carolina"
162
+ },
163
+ SD: {
164
+ code: "SD",
165
+ name: "South Dakota"
166
+ },
167
+ TN: {
168
+ code: "TN",
169
+ name: "Tennessee"
170
+ },
171
+ TX: {
172
+ code: "TX",
173
+ name: "Texas"
174
+ },
175
+ UT: {
176
+ code: "UT",
177
+ name: "Utah"
178
+ },
179
+ VT: {
180
+ code: "VT",
181
+ name: "Vermont"
182
+ },
183
+ VA: {
184
+ code: "VA",
185
+ name: "Virginia"
186
+ },
187
+ WA: {
188
+ code: "WA",
189
+ name: "Washington"
190
+ },
191
+ WV: {
192
+ code: "WV",
193
+ name: "West Virginia"
194
+ },
195
+ WI: {
196
+ code: "WI",
197
+ name: "Wisconsin"
198
+ },
199
+ WY: {
200
+ code: "WY",
201
+ name: "Wyoming"
202
+ }
203
+ };
204
+ const usStateOptions = Object.values(usStates).map((state) => ({
205
+ value: state.code,
206
+ label: state.name
207
+ }));
208
+ //#endregion
209
+ export { usStates as n, usStateOptions as t };
@@ -1,11 +1,12 @@
1
- import { c as WasmPipeline } from "./warmup-BO57syF6.js";
2
- import { A as StateMachine, _ as MachineContext, c as AnyEventObject, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
3
- import { t as Manager } from "./Manager-C9T5amUN.js";
4
- import "./Actor-DpTj5PFb.js";
1
+ import { c as WasmPipeline } from "./warmup-BNhIuURi.js";
2
+ import { b as NonReducibleUnknown, c as AnyEventObject, j as StateMachine, m as EventObject, v as MachineContext, y as MetaObject } from "./spawn-COZKetCS.js";
3
+ import "./xstate.cjs-D6Ur0X1F.js";
4
+ import { t as Manager } from "./Manager-DufwKlav.js";
5
+ import "./Actor-DqjOqDfU.js";
5
6
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
6
7
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
7
- import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
8
- import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieSpeechResult, t as StepDetector } from "./videoSelfieStepDetector-Dv3Mgws-.js";
8
+ import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
9
+ import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieSpeechResult, t as StepDetector } from "./videoSelfieStepDetector-DRrh4P0A.js";
9
10
  //#region ../infra/src/capabilities/ITimerCapability.d.ts
10
11
  type TimerHandle = ReturnType<typeof setTimeout>;
11
12
  type ITimerCapability = {
@@ -299,7 +300,8 @@ type VideoSelfieCameraWarmer = {
299
300
  /**
300
301
  * Stop a warmed-but-unused stream. Call on unmount when capture never started
301
302
  * so the camera light doesn't stay on. No-op once the stream has been consumed
302
- * by the recording machine.
303
+ * by the recording machine. After `dispose()`, `warm()` does nothing and
304
+ * `acquireCamera` always acquires a fresh stream.
303
305
  */
304
306
  dispose(): void;
305
307
  };
@@ -1,19 +1,20 @@
1
- import { t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
- import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BRbhjHiU.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-DdhAHHw4.esm.js";
3
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
5
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
6
- import { f as facingModeForStep, m as videoSelfieWasmPipelines, p as resolveVideoSelfieSteps } from "./flowServices-Dmnc8Rye.esm.js";
7
- import { i as assign, l as raise, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
8
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { b as videoSelfieWasmPipelines, v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-rDg1bAMs.esm.js";
7
+ import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
8
+ import { i as assign, l as raise, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
9
+ import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
9
10
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
- import { t as carryAttempts } from "./attemptCarry-WOkfvFMw.esm.js";
11
- import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-k-U-cL5m.esm.js";
12
- import { n as defaultAcquireCamera, r as createDefaultStepDetector, s as isConnectionError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-e3irGfcO.esm.js";
13
- import { r as createRecordingCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
14
- import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js";
15
- import { t as MultipartRecordingService } from "./multipartRecordingService-BTqkHGG9.esm.js";
16
- import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
11
+ import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
12
+ import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CxZyPRyh.esm.js";
13
+ import { n as defaultAcquireCamera, r as createDefaultStepDetector, s as isConnectionError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-YwO_uP-b.esm.js";
14
+ import { r as createRecordingCompositor } from "./CameraCompositor-ppyMYVoY.esm.js";
15
+ import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-CsDED9UU.esm.js";
16
+ import { t as MultipartRecordingService } from "./multipartRecordingService-WgK8ieRI.esm.js";
17
+ import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
17
18
  //#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
18
19
  var wave_encoder_default = () => {
19
20
  let BYTES_PER_SAMPLE = 2;
@@ -1,14 +1,14 @@
1
- import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { f as facingModeForStep, p as resolveVideoSelfieSteps } from "./flowServices-Dmnc8Rye.esm.js";
3
+ import { v as facingModeForStep, y as resolveVideoSelfieSteps } from "./flowServices-rDg1bAMs.esm.js";
4
4
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-E_Kcre4O.esm.js";
5
- import { t as checkPermission } from "./permissionServices-D190ATGD.esm.js";
6
- import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CAY43vSI.esm.js";
5
+ import { t as checkPermission } from "./permissionServices-DpccEnzE.esm.js";
6
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-2NzWDbV8.esm.js";
7
7
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
- import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-f4MgAG2A.esm.js";
11
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dszuq9ng.esm.js";
10
+ import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-MOfYdGPz.esm.js";
11
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Cjesf5i9.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
13
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
14
14
  async function postVideoSelfieCompare(endpoint, base64Image) {
@@ -470,10 +470,10 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
470
470
  const firstFacing = facingModeForStep(steps[0] ?? "selfie");
471
471
  let warming = null;
472
472
  let warmed = null;
473
- let consumed = false;
473
+ let handedOff = null;
474
474
  return {
475
475
  warm() {
476
- if (warming) return;
476
+ if (warming || handedOff) return;
477
477
  warming = (async () => {
478
478
  try {
479
479
  if (await checkPermission() !== "granted") return null;
@@ -485,8 +485,8 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
485
485
  })();
486
486
  },
487
487
  async acquireCamera(facingMode, withAudio) {
488
- if (!consumed && facingMode === firstFacing && withAudio) {
489
- consumed = true;
488
+ if (!handedOff && facingMode === firstFacing && withAudio) {
489
+ handedOff = "consumed";
490
490
  const stream = warmed ?? (warming ? await warming : null);
491
491
  warmed = null;
492
492
  if (stream) return stream;
@@ -494,12 +494,14 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
494
494
  return defaultAcquireCamera(facingMode, withAudio);
495
495
  },
496
496
  dispose() {
497
- if (consumed) return;
497
+ if (handedOff) return;
498
+ handedOff = "disposed";
498
499
  if (warmed) {
499
500
  stopStream(warmed);
500
501
  warmed = null;
501
502
  } else if (warming) warming.then((stream) => {
502
- if (!consumed) stopStream(stream);
503
+ stopStream(stream);
504
+ warmed = null;
503
505
  });
504
506
  }
505
507
  };
@@ -1,4 +1,4 @@
1
- import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
1
+ import { t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
2
2
  //#region src/modules/video-selfie/videoSelfieFlowModuleMachine.ts
3
3
  /**
4
4
  * Parked flow-module machine for the `VIDEO_ONBOARDING` step.
@@ -1,8 +1,8 @@
1
- import { i as FlowModuleConfig } from "./types-CRaFu6wS.js";
2
- import "./IWasmUtilCapability-Cqiaxydi.js";
3
- import { n as DetectionStatus } from "./types-BEVHQbbC.js";
1
+ import { i as FlowModuleConfig } from "./types-Ddc4Tr_f.js";
2
+ import "./IWasmUtilCapability-BRn0wz8v.js";
3
+ import { n as DetectionStatus } from "./types-9wlf1-GE.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
- import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
5
+ import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
6
6
  //#region src/modules/video-selfie/types.d.ts
7
7
  /**
8
8
  * The capture steps a Video Selfie session can run, in flow order. Which steps
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { A as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, E as WASM_MODEL_FILES, M as missingWasmModelError, N as resolveWasmSource, O as WASM_PIPELINE_MODELS, P as reportWasmIntegritySummary, _ as emitWasmDiagnostic, b as DEFAULT_WASM_VERSION, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, h as acquireWasmStorageFallback, j as buildModelVariantSources, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, w as isDefaultCdnWasmConfig, y as SemaphoreProvider } from "./wasmWebClient-BDrax6Eu.esm.js";
2
+ import { D as WASM_MODEL_FILES, F as reportWasmIntegritySummary, M as buildModelVariantSources, N as missingWasmModelError, P as resolveWasmSource, T as isDefaultCdnWasmConfig, b as SemaphoreProvider, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, g as acquireWasmStorageFallback, h as onWasmModuleReset, j as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, k as WASM_PIPELINE_MODELS, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, v as emitWasmDiagnostic, x as DEFAULT_WASM_VERSION } from "./wasmWebClient-C3v3s_4H.esm.js";
3
3
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
4
4
  import { t as bindWasmMetadataV2Applier } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
5
5
  //#region ../infra/src/wasm/wasmEnumMaps.ts
@@ -449,6 +449,7 @@ var WasmRuntime = class WasmRuntime {
449
449
  this.wasmModule = null;
450
450
  this.workflowApiUtilities = null;
451
451
  this.utilityApi = null;
452
+ this.parkedUtilityApi = null;
452
453
  this.idCaptureWasmApi = null;
453
454
  this.faceProcessingWasmApi = null;
454
455
  this.cameraCycleApi = null;
@@ -473,7 +474,7 @@ var WasmRuntime = class WasmRuntime {
473
474
  this.wasmModule = wasmModule;
474
475
  this.usedSimd_ = simdUsed;
475
476
  this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
476
- this.utilityApi = new this.wasmModule.UtilityApi();
477
+ this.utilityApi = this.takeUtilityApi(this.wasmModule);
477
478
  this.utilityApi.setProductionMode(module.showLogs !== true);
478
479
  this.utilityApi.smv(this.metadataV2Enabled_);
479
480
  installWasmDiagnosticsSink(this.utilityApi);
@@ -491,6 +492,43 @@ var WasmRuntime = class WasmRuntime {
491
492
  }
492
493
  }
493
494
  /**
495
+ * The UtilityApi for `wasmModule`: the parked one when it belongs to that
496
+ * module, else a new one. A parked handle of another module is deleted
497
+ * first; that module is gone, so a failure there must not stop this one.
498
+ */
499
+ takeUtilityApi(wasmModule) {
500
+ const parked = this.parkedUtilityApi;
501
+ this.parkedUtilityApi = null;
502
+ if (parked?.module === wasmModule) return parked.handle;
503
+ deleteWasmHandle(null, parked?.handle ?? null);
504
+ return new wasmModule.UtilityApi();
505
+ }
506
+ /**
507
+ * Parks the UtilityApi of the module being freed instead of deleting it (see
508
+ * `parkedUtilityApi`). Without a module to tie it to, it is deleted as
509
+ * before.
510
+ */
511
+ parkUtilityApi(firstFailure, wasmModule, handle) {
512
+ if (handle === null) return firstFailure;
513
+ if (wasmModule === null) return deleteWasmHandle(firstFailure, handle);
514
+ const previous = this.parkedUtilityApi;
515
+ this.parkedUtilityApi = {
516
+ module: wasmModule,
517
+ handle
518
+ };
519
+ return previous !== null && previous.handle !== handle ? deleteWasmHandle(firstFailure, previous.handle) : firstFailure;
520
+ }
521
+ /**
522
+ * Deletes the parked UtilityApi, if any. Runs when `resetWasmModule()` drops
523
+ * the memoized module: its handle can never be reused, and deleting it lets
524
+ * the module be garbage-collected. Never throws.
525
+ */
526
+ releaseParkedUtilityApi() {
527
+ const parked = this.parkedUtilityApi;
528
+ this.parkedUtilityApi = null;
529
+ deleteWasmHandle(null, parked?.handle ?? null);
530
+ }
531
+ /**
494
532
  * Returns initialization status
495
533
  * @returns
496
534
  */
@@ -532,12 +570,15 @@ var WasmRuntime = class WasmRuntime {
532
570
  this.requireWorkflowApiUtilities("Unable to update pipeline state, cpp API hasn't been initialized").handleDetectionCallAndUpdateState(this.pipelineTypeToWasmEnum(type));
533
571
  }
534
572
  /**
535
- * Free allocated memory
573
+ * Free allocated memory. The UtilityApi is parked for the next
574
+ * `initialize()` on the same module rather than deleted (see
575
+ * `parkedUtilityApi`).
536
576
  */
537
577
  async freeResources() {
538
578
  this.loadedModels.clear();
539
579
  const stream = this.unprotectedStream;
540
580
  const modelsBuffers = this.modelsBuffers;
581
+ const wasmModule = this.wasmModule;
541
582
  const workflowApiUtilities = this.workflowApiUtilities;
542
583
  const utilityApi = this.utilityApi;
543
584
  const idCaptureWasmApi = this.idCaptureWasmApi;
@@ -567,7 +608,7 @@ var WasmRuntime = class WasmRuntime {
567
608
  let firstFailure = releaseCameraCycleResources(stream, cameraCycleApi);
568
609
  firstFailure = deleteWasmHandle(firstFailure, modelsBuffers);
569
610
  firstFailure = deleteWasmHandle(firstFailure, workflowApiUtilities);
570
- firstFailure = deleteWasmHandle(firstFailure, utilityApi);
611
+ firstFailure = this.parkUtilityApi(firstFailure, wasmModule, utilityApi);
571
612
  firstFailure = deleteWasmHandle(firstFailure, idCaptureWasmApi);
572
613
  firstFailure = deleteWasmHandle(firstFailure, faceProcessingWasmApi);
573
614
  firstFailure = deleteWasmHandle(firstFailure, cameraCycleApi);
@@ -896,6 +937,7 @@ WasmRuntime.UNINITIALIZED_ENUM_MAP_MESSAGE = "Unable to map pipeline type, cpp A
896
937
  /** Process-wide runtime. One binary, one heap, one owner. */
897
938
  const wasmRuntime = new WasmRuntime();
898
939
  bindWasmMetadataV2Applier((enabled) => wasmRuntime.setMetadataV2Enabled(enabled));
940
+ onWasmModuleReset(() => wasmRuntime.releaseParkedUtilityApi());
899
941
  //#endregion
900
942
  //#region ../infra/src/wasm/warmup.ts
901
943
  var warmup_exports = /* @__PURE__ */ __exportAll({
@@ -3,6 +3,16 @@ type WasmSource = string | ArrayBuffer | Uint8Array;
3
3
  type WasmGlueModule = {
4
4
  Module?: unknown;
5
5
  };
6
+ /**
7
+ * Lazily imports a JavaScript glue module, for example
8
+ * `() => import('@incodetech/wasm-assets/webLib.js')`.
9
+ *
10
+ * Resolve to the glue module unchanged. Do not wrap its `Module` factory to
11
+ * construct, configure or delete WASM API objects such as `UtilityApi`:
12
+ * deleting one ends the page's fingerprint and behavior signal collection
13
+ * for good, and the SDK cannot restart it (ENG-62947). The SDK already
14
+ * silences WASM output unless `showLogs` is `true`.
15
+ */
6
16
  type WasmGlueLoader = () => Promise<WasmGlueModule>;
7
17
  type WasmPipeline = 'selfie' | 'onDeviceSelfie' | 'idCapture' | 'videoSelfie' | 'videoSelfieId';
8
18
  declare const WASM_MODEL_FILES: {
@@ -63,9 +73,15 @@ type WasmModuleConfig = {
63
73
  * `wasmSimdPath`.
64
74
  */
65
75
  glueCodeSimdPath?: string;
66
- /** Lazy ES-module loader for the standard JavaScript glue. */
76
+ /**
77
+ * Lazy ES-module loader for the standard JavaScript glue. Resolves to the
78
+ * glue module unchanged; see {@link WasmGlueLoader}.
79
+ */
67
80
  loadGlue?: WasmGlueLoader;
68
- /** Lazy ES-module loader for the SIMD JavaScript glue. */
81
+ /**
82
+ * Lazy ES-module loader for the SIMD JavaScript glue. Resolves to the glue
83
+ * module unchanged; see {@link WasmGlueLoader}.
84
+ */
69
85
  loadGlueSimd?: WasmGlueLoader;
70
86
  /**
71
87
  * Enables the SIMD-first load attempt.
package/dist/wasm.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BO57syF6.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-D9qt8YVU.js";
1
+ import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BNhIuURi.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-CpXbdA1X.js";
3
3
  //#region ../infra/src/wasm/wasmDefaults.d.ts
4
4
  /** The WASM version bundled and tested with this SDK release. */
5
- declare const DEFAULT_WASM_VERSION = "v2.14.54-pre6";
5
+ declare const DEFAULT_WASM_VERSION = "v2.14.54-post1";
6
6
  type UrlWasmConfig = WarmupConfig & {
7
7
  wasmPath: string;
8
8
  wasmSimdPath: string;
@@ -25,7 +25,13 @@ type DefineWasmOptions = {
25
25
  pipelines: readonly WasmPipeline[];
26
26
  wasm: WasmSource;
27
27
  wasmSimd?: WasmSource;
28
+ /**
29
+ * Imports the standard glue, e.g.
30
+ * `() => import('@incodetech/wasm-assets/webLib.js')`. Return the module
31
+ * unchanged; see {@link WasmGlueLoader}.
32
+ */
28
33
  glue: WasmGlueLoader;
34
+ /** Imports the SIMD glue. Return the module unchanged, like `glue`. */
29
35
  glueSimd?: WasmGlueLoader;
30
36
  models: Partial<Record<WasmModelName, WasmSource>>;
31
37
  /**
package/dist/wasm.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-BDrax6Eu.esm.js";
2
- import { s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
3
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-DDahygZs.esm.js";
1
+ import { A as WASM_PIPELINE_MODEL_NAMES, C as buildWasmConfigFromBasePath, D as WASM_MODEL_FILES, E as resolveWasmConfig, O as WASM_PIPELINE_LAZY_MODEL_NAMES, S as buildDefaultWasmConfig, x as DEFAULT_WASM_VERSION } from "./wasmWebClient-C3v3s_4H.esm.js";
2
+ import { s as warmupWasm } from "./warmup-9iKKNNuW.esm.js";
3
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BRbhjHiU.esm.js";
4
4
  //#region src/defineWasm.ts
5
5
  function requiredModels(pipelines) {
6
6
  const models = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { i as utilityWasmApi } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
1
+ import { i as utilityWasmApi } from "./WasmUtilProvider-DdhAHHw4.esm.js";
2
2
  //#region ../infra/src/wasm/wasmDsFlagSync.ts
3
3
  /**
4
4
  * Sets the Deepsight (ds) flag that the WASM utility API receives on every