@incodetech/core 2.4.0 → 2.4.1-agentic.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 (252) hide show
  1. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  2. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
  3. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
  4. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  5. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  6. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  7. package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
  8. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  9. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
  12. package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
  13. package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
  14. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  19. package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
  20. package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
  21. package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
  22. package/dist/authentication.d.ts +3 -3
  23. package/dist/authentication.esm.js +2 -2
  24. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  25. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
  26. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  29. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  30. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  31. package/dist/camera.d.ts +2 -2
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.esm.js +2 -2
  34. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  35. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
  36. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  37. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
  41. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
  42. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
  48. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  55. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
  56. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
  57. package/dist/device.esm.js +2 -2
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
  61. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
  62. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
  63. package/dist/dynamic-forms.d.ts +2 -2
  64. package/dist/dynamic-forms.esm.js +2 -2
  65. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  66. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
  67. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
  68. package/dist/ekyb.d.ts +4 -4
  69. package/dist/ekyb.esm.js +3 -3
  70. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  71. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
  72. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
  73. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  74. package/dist/ekyc.d.ts +4 -3
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  77. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
  78. package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
  79. package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
  80. package/dist/electronic-signature.esm.js +1 -1
  81. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
  82. package/dist/email.esm.js +2 -2
  83. package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  84. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
  85. package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
  86. package/dist/events.esm.js +1 -1
  87. package/dist/extensibility.d.ts +37 -22
  88. package/dist/extensibility.esm.js +36 -35
  89. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  90. package/dist/face-match.d.ts +1 -1
  91. package/dist/face-match.esm.js +2 -2
  92. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
  93. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
  94. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
  95. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  96. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  97. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
  98. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
  99. package/dist/feature-management.esm.js +1 -1
  100. package/dist/field-comparison.esm.js +1 -1
  101. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  102. package/dist/fiscal-qr.esm.js +1 -1
  103. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
  104. package/dist/flow-events.d.ts +1 -1
  105. package/dist/flow.d.ts +10 -10
  106. package/dist/flow.esm.js +10 -9
  107. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
  108. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
  109. package/dist/geolocation.d.ts +1 -1
  110. package/dist/geolocation.esm.js +2 -2
  111. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  112. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
  113. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
  114. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  115. package/dist/government-validation.esm.js +2 -2
  116. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  117. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  118. package/dist/home.d.ts +1 -1
  119. package/dist/home.esm.js +1 -1
  120. package/dist/http.esm.js +1 -1
  121. package/dist/id-ocr.d.ts +1 -1
  122. package/dist/id-ocr.esm.js +2 -2
  123. package/dist/id-selfie-flow.d.ts +1 -1
  124. package/dist/id-selfie-flow.esm.js +10 -9
  125. package/dist/id-verification.esm.js +2 -2
  126. package/dist/id.d.ts +3 -16
  127. package/dist/id.esm.js +4 -4
  128. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
  129. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
  130. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
  131. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
  132. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
  133. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  134. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  135. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
  136. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  137. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  138. package/dist/identity-reuse.esm.js +2 -2
  139. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  140. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  141. package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  142. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.esm.js +1 -1
  145. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  146. package/dist/kyb-checks.d.ts +3 -0
  147. package/dist/kyb-checks.esm.js +3 -0
  148. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  149. package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
  150. package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
  154. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
  155. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
  156. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  157. package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
  158. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  159. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
  160. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
  161. package/dist/phone-number.d.ts +7 -1
  162. package/dist/phone-number.esm.js +15 -2
  163. package/dist/phone.d.ts +1 -1
  164. package/dist/phone.esm.js +2 -2
  165. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  166. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  167. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
  168. package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
  169. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
  170. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  171. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  172. package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
  173. package/dist/qe-signature.esm.js +1 -1
  174. package/dist/recordingService-CTko6Cjn.esm.js +397 -0
  175. package/dist/redirect-to-mobile.d.ts +2 -2
  176. package/dist/redirect-to-mobile.esm.js +2 -2
  177. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
  178. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  179. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
  180. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  181. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
  182. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
  183. package/dist/selfie.d.ts +4 -4
  184. package/dist/selfie.esm.js +10 -10
  185. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
  186. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  187. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
  188. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
  189. package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
  190. package/dist/session.d.ts +96 -10
  191. package/dist/session.esm.js +7 -6
  192. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
  193. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  194. package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
  195. package/dist/signature.esm.js +2 -2
  196. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  197. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  198. package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
  199. package/dist/stats.esm.js +1 -1
  200. package/dist/textRules-D4NRinKY.d.ts +41 -0
  201. package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
  202. package/dist/tri.d.ts +1 -1
  203. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  204. package/dist/tri.esm.js +1 -1
  205. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
  206. package/dist/trust-graph.esm.js +1 -1
  207. package/dist/types-B9C8W01q.d.ts +34 -0
  208. package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
  209. package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
  210. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  211. package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
  212. package/dist/types-CTaL0XJz.d.ts +80 -0
  213. package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  214. package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
  215. package/dist/types-CuMJ2M7D.d.ts +210 -0
  216. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  217. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  218. package/dist/types-J6g6iKe_.d.ts +6 -0
  219. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  220. package/dist/video-selfie.d.ts +8 -8
  221. package/dist/video-selfie.esm.js +97 -22
  222. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
  223. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
  224. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  225. package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
  226. package/dist/wasm.d.ts +2 -2
  227. package/dist/wasm.esm.js +3 -3
  228. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
  229. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  230. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
  231. package/dist/watchlist-for-business.d.ts +2 -1
  232. package/dist/watchlist-for-business.esm.js +2 -2
  233. package/dist/watchlist.esm.js +2 -2
  234. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  235. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
  236. package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
  237. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  238. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  239. package/dist/workflow.d.ts +5 -2
  240. package/dist/workflow.esm.js +60 -50
  241. package/package.json +12 -5
  242. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  243. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  244. package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
  245. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  246. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  247. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  248. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  249. package/dist/types-BvLo3U4u.d.ts +0 -134
  250. package/dist/types-zOgZqMni.d.ts +0 -6
  251. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  252. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,351 @@
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
+ //#region src/shared/displayErrors.ts
210
+ const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
211
+ //#endregion
212
+ //#region src/internal/forms/checkSupport.ts
213
+ const GROUP_POLICIES = /* @__PURE__ */ new Set(["hide", "forceShow"]);
214
+ /**
215
+ * Compares `major.minor` vocabulary versions. The compiler's twin is
216
+ * `compareVersions` in `packages/form-definitions/scripts/lib/checks.mjs`;
217
+ * both are tested against that package's `fixtures/vocabularyVersions.json`.
218
+ */
219
+ function compareVocabulary(a, b) {
220
+ const [aMajor = 0, aMinor = 0] = a.split(".").map(Number);
221
+ const [bMajor = 0, bMinor = 0] = b.split(".").map(Number);
222
+ return aMajor - bMajor || aMinor - bMinor;
223
+ }
224
+ /**
225
+ * Whether this build can use a definition. Any id it doesn't implement makes
226
+ * the definition unsupported, so the caller falls back to its bundled
227
+ * definition or current form. Presentation hints (widget, keyboard, autofill)
228
+ * never fail: an unknown hint falls back to the platform default.
229
+ */
230
+ function checkSupport(definition, ids) {
231
+ const problems = [];
232
+ const need = (category, known, id, path) => {
233
+ if (!known.has(id)) problems.push({
234
+ category,
235
+ id,
236
+ path
237
+ });
238
+ };
239
+ if (!ids.schemaVersions.includes(definition.schemaVersion)) problems.push({
240
+ category: "schemaVersion",
241
+ id: String(definition.schemaVersion),
242
+ path: "schemaVersion"
243
+ });
244
+ if (compareVocabulary(definition.vocabulary, ids.vocabulary) > 0) problems.push({
245
+ category: "vocabulary",
246
+ id: definition.vocabulary,
247
+ path: "vocabulary"
248
+ });
249
+ const checkField = (field, path) => {
250
+ need("kind", ids.kinds, field.kind, `${path}.kind`);
251
+ need("group", ids.groups, field.group, `${path}.group`);
252
+ field.rules?.forEach((rule, i) => need("rule", ids.rules, rule.id, `${path}.rules[${i}]`));
253
+ field.input?.format?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.input.format[${i}]`));
254
+ field.payload?.transforms?.forEach((t, i) => need("transform", ids.transforms, t.id, `${path}.payload.transforms[${i}]`));
255
+ if (field.optionsRef) need("optionList", ids.optionLists, field.optionsRef, `${path}.optionsRef`);
256
+ if (field.suggestionsRef) need("optionList", ids.optionLists, field.suggestionsRef, `${path}.suggestionsRef`);
257
+ field.requiredWhen?.forEach((condition, i) => {
258
+ const keys = Object.keys(condition);
259
+ if (keys.length !== 1) problems.push({
260
+ category: "condition",
261
+ id: keys.join("+") || "(empty)",
262
+ path: `${path}.requiredWhen[${i}]`
263
+ });
264
+ for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
265
+ });
266
+ field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
267
+ const lock = field.phone?.lockCountry;
268
+ if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
269
+ category: "phoneLock",
270
+ id: lock,
271
+ path: `${path}.phone`
272
+ });
273
+ };
274
+ definition.fields.forEach((field) => checkField(field, `fields.${field.name}`));
275
+ definition.groups?.forEach((policy) => {
276
+ need("group", ids.groups, policy.group, `groups.${policy.group}`);
277
+ if (!GROUP_POLICIES.has(policy.whenDisabled)) problems.push({
278
+ category: "groupPolicy",
279
+ id: policy.whenDisabled,
280
+ path: `groups.${policy.group}`
281
+ });
282
+ });
283
+ definition.groupRules?.forEach((rule, i) => {
284
+ need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
285
+ const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
286
+ if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
287
+ if (!Array.isArray(rules)) continue;
288
+ rules.forEach((ref, j) => {
289
+ const id = ref?.id;
290
+ need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
291
+ });
292
+ }
293
+ });
294
+ definition.collections?.forEach((collection) => {
295
+ need("group", ids.groups, collection.group, `collections.${collection.id}`);
296
+ collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
297
+ });
298
+ return problems.length === 0 ? { supported: true } : {
299
+ supported: false,
300
+ problems
301
+ };
302
+ }
303
+ //#endregion
304
+ //#region src/internal/forms/resolveForm.ts
305
+ const FORCE_SHOW = "forceShow";
306
+ const WHEN_PHONE_RISK = "whenPhoneRisk";
307
+ /**
308
+ * Resolves a definition against module configuration: which fields show,
309
+ * which are required, whether the phone is locked, and which group rules and
310
+ * collections apply. Pure and synchronous, so it runs inside an assign action.
311
+ *
312
+ * Call `checkSupport` first for any definition that wasn't bundled with this
313
+ * build; `resolveForm` ignores ids it doesn't know.
314
+ */
315
+ function resolveForm(definition, context) {
316
+ const forcedGroups = new Set((definition.groups ?? []).filter((policy) => policy.whenDisabled === FORCE_SHOW).map((policy) => policy.group));
317
+ const isOn = (group) => context.groups[group] === true;
318
+ const isShown = (group) => isOn(group) || forcedGroups.has(group);
319
+ const riskAddons = new Set(context.riskAddons ?? []);
320
+ const shownFields = definition.fields.filter((field) => isShown(field.group));
321
+ const shownNames = new Set(shownFields.map((field) => field.name));
322
+ const fields = shownFields.map((field) => {
323
+ const conditions = field.requiredWhen ?? [];
324
+ const addonRequired = conditions.some((condition) => condition.riskAddon !== void 0 && riskAddons.has(condition.riskAddon));
325
+ const requiredIfFilled = conditions.map((condition) => condition.fieldFilled).filter((name) => name !== void 0 && shownNames.has(name));
326
+ const lock = field.phone?.lockCountry;
327
+ return {
328
+ field,
329
+ required: field.required === true || addonRequired,
330
+ requiredIfFilled,
331
+ forced: !isOn(field.group),
332
+ phoneLocked: field.kind === "phone" && (lock === true || lock === WHEN_PHONE_RISK && context.phoneRisk === true)
333
+ };
334
+ });
335
+ const order = shownFields.map((field) => field.name);
336
+ return {
337
+ definition,
338
+ fields,
339
+ groupRules: (definition.groupRules ?? []).map((rule) => ({
340
+ rule,
341
+ fields: order.filter((name) => rule.fields.includes(name))
342
+ })).filter((resolved) => resolved.fields.length > 0),
343
+ collections: (definition.collections ?? []).filter((collection) => isShown(collection.group)).map((collection) => ({
344
+ collection,
345
+ min: collection.min ?? 0,
346
+ max: collection.max
347
+ }))
348
+ };
349
+ }
350
+ //#endregion
351
+ export { usStates as a, usStateOptions as i, checkSupport as n, DYNAMIC_REQUIRED_KEY as r, resolveForm as t };
@@ -1,6 +1,6 @@
1
- import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { w as createEventBus } from "./events-Du2A4-Qr.esm.js";
3
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BMT-TubT.esm.js";
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
+ import { w as createEventBus } from "./events-ggpBBaZ8.esm.js";
3
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-GuLthUVK.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  //#region src/internal/flow-events/flowEvents.ts
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "2.4.0";
2
+ const SDK_VERSION = "2.4.1-agentic.1";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
package/dist/selfie.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
- import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-1hzeS_rB.js";
2
+ import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-DV2ULUYS.js";
3
3
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
4
- import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-yPH8lAH-.js";
5
- import { n as DeepsightService } from "./StreamCanvasCapture-7JRf-2ck.js";
4
+ import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-BEVHQbbC.js";
5
+ import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
6
6
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
7
- import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-BJdNu_nd.js";
7
+ import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DmZFzs1-.js";
8
8
  //#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
9
9
  type SelfieCaptureOnlyState = FaceCaptureManagerState;
10
10
  type SelfieCaptureOnlyManager = FaceCaptureManager;
@@ -1,15 +1,15 @@
1
- import { u as BrowserStorageProvider } from "./setup-BInNAvQw.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
3
- import { n as eventModuleNames } from "./events-Du2A4-Qr.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-DDahygZs.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
+ import { n as eventModuleNames } from "./events-ggpBBaZ8.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-TY8RXc2N.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BlGvXzXA.esm.js";
8
- import { c as processFace } from "./FaceDetectionProvider-DcPOC2gS.esm.js";
9
- import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-Dj_LHUvN.esm.js";
10
- import { t as selfieMachine } from "./selfieStateMachine-BFVp3ElQ.esm.js";
11
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-vAAwzsHk.esm.js";
12
- import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DYrkOXO6.esm.js";
6
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-ZfiWg0fo.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Dp90bedH.esm.js";
8
+ import { s as processFace } from "./FaceDetectionProvider-CAY43vSI.esm.js";
9
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BGMtYwk3.esm.js";
10
+ import { t as selfieMachine } from "./selfieStateMachine-DaZIVv3Q.esm.js";
11
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-hopelYEk.esm.js";
12
+ import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BJ0GVHGr.esm.js";
13
13
  /**
14
14
  * Selfie state machine variant for the captureOnly flow. Shares the full base
15
15
  * face-capture state tree; only the upload/process step is local instead of
@@ -1,4 +1,4 @@
1
- import { d as FACE_ERROR_CODES } from "./FaceDetectionProvider-DcPOC2gS.esm.js";
1
+ import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CAY43vSI.esm.js";
2
2
  //#region src/modules/selfie/selfieErrorUtils.ts
3
3
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
4
4
  const isFaceErrorCode = (value) => {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C9T5amUN.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-1hzeS_rB.js";
3
+ import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-DV2ULUYS.js";
4
4
  //#region src/modules/selfie/selfieManager.d.ts
5
5
  type SelfieState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,9 @@
1
- import { u as BrowserStorageProvider } from "./setup-BInNAvQw.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
3
- import { n as eventModuleNames } from "./events-Du2A4-Qr.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-DDahygZs.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
+ import { n as eventModuleNames } from "./events-ggpBBaZ8.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BlGvXzXA.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-BFVp3ElQ.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Dp90bedH.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-DaZIVv3Q.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,8 +1,8 @@
1
1
  import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-TY8RXc2N.esm.js";
4
- import { c as processFace, d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-DcPOC2gS.esm.js";
5
- import { n as validateUploadResponse } from "./selfieErrorUtils-BY0-YbPW.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-ZfiWg0fo.esm.js";
4
+ import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CAY43vSI.esm.js";
5
+ import { n as validateUploadResponse } from "./selfieErrorUtils-f4MgAG2A.esm.js";
6
6
  /**
7
7
  * The selfie capture state machine.
8
8
  *
@@ -1,7 +1,7 @@
1
- import { n as getApi, u as endpoints } from "./api-Cz90EHyu.esm.js";
2
- import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-BMT-TubT.esm.js";
3
- import "./sessionInitializer-BTjYgE-V.esm.js";
4
- import { i as toIncodeApiError } from "./apiError-DPwFas2f.esm.js";
1
+ import { n as getApi, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
+ import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-GuLthUVK.esm.js";
3
+ import "./sessionInitializer-DsL7X2j9.esm.js";
4
+ import { i as toIncodeApiError } from "./apiError-DH-CH4Nz.esm.js";
5
5
  //#region src/internal/session/sessionService.ts
6
6
  /**
7
7
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
@@ -14,6 +14,18 @@ const QR_VALIDATION_ERROR_CODES = {
14
14
  invalidQRuuid: 4081,
15
15
  onboardingUrlAlreadyUsed: 4083
16
16
  };
17
+ /**
18
+ * Incode status codes `POST /omni/session/continue` rejects a handoff link
19
+ * with (as `IncodeApiError.status`). Trying again does not help: the same link
20
+ * fails the same way.
21
+ */
22
+ const SESSION_CONTINUE_ERROR_CODES = {
23
+ invalidUuid: 4026,
24
+ invalidQrValidation: 4081,
25
+ continuationPeriodExpired: 4086,
26
+ continuationLimitReached: 4087,
27
+ sessionNotActive: 4088
28
+ };
17
29
  var QrValidationError = class extends Error {
18
30
  constructor(status, statusText) {
19
31
  super(`POST ${endpoints.qrValidateUuid} failed: ${status} ${statusText}`);
@@ -23,7 +35,14 @@ var QrValidationError = class extends Error {
23
35
  }
24
36
  };
25
37
  /**
26
- * Creates a new onboarding session.
38
+ * Creates a new onboarding session, or continues an existing one when
39
+ * `options.uuid` is set (see {@link CreateSessionOptions.uuid}).
40
+ *
41
+ * The server allows a limited number of continues (a server setting, two by
42
+ * default), within 48 hours of the session start. Each successful call with a
43
+ * `uuid` spends one, a reload of the handoff link included. A refused continue
44
+ * throws an `IncodeApiError` whose `status` is one of
45
+ * {@link SESSION_CONTINUE_ERROR_CODES}.
27
46
  *
28
47
  * @param apiKey - The API key from the Incode dashboard
29
48
  * @param options - Session creation options
@@ -40,6 +59,17 @@ var QrValidationError = class extends Error {
40
59
  * ```
41
60
  */
42
61
  async function createSession(apiKey, options, signal) {
62
+ if (options.uuid) {
63
+ const session = await continueSession(apiKey, {
64
+ uuid: options.uuid,
65
+ urlUuid: options.urlUuid
66
+ }, signal);
67
+ noteSessionCreated(session, {
68
+ configurationId: options.configurationId,
69
+ language: options.language
70
+ });
71
+ return session;
72
+ }
43
73
  try {
44
74
  const session = (await getApi().post(endpoints.createSession, {
45
75
  configurationId: options.configurationId,
@@ -47,7 +77,6 @@ async function createSession(apiKey, options, signal) {
47
77
  externalCustomerId: options.externalCustomerId,
48
78
  language: options.language ?? "en-US",
49
79
  customFields: options.customFields,
50
- uuid: options.uuid ?? null,
51
80
  urlUuid: options.urlUuid ?? null,
52
81
  interviewId: options.interviewId ?? null,
53
82
  ...options.loginHint != null && options.loginHint !== "" ? { loginHint: options.loginHint } : {}
@@ -71,6 +100,45 @@ async function createSession(apiKey, options, signal) {
71
100
  }
72
101
  }
73
102
  /**
103
+ * Continues the session behind a desktop→mobile handoff link through
104
+ * `POST /omni/session/continue`. Only `uuid` and `urlUuid` are sent, and the
105
+ * response `sessionId` is returned as `interviewId`. `createSession` and
106
+ * `bootstrapSession` call it when `uuid` is set.
107
+ *
108
+ * Each successful call spends one continue. A refused continue throws an
109
+ * `IncodeApiError` whose `status` is one of {@link SESSION_CONTINUE_ERROR_CODES}.
110
+ *
111
+ * @param apiKey - The API key from the Incode dashboard
112
+ * @param options - The handoff link's `uuid` and `urlUuid`
113
+ * @param signal - Optional AbortSignal for request cancellation
114
+ * @returns The continued session with token
115
+ */
116
+ async function continueSession(apiKey, options, signal) {
117
+ try {
118
+ const { sessionId, token, endScreenTitle, endScreenText } = (await getApi().post(endpoints.sessionContinue, {
119
+ uuid: options.uuid,
120
+ urlUuid: options.urlUuid ?? null
121
+ }, {
122
+ headers: {
123
+ "x-api-key": apiKey,
124
+ "api-version": "1.0"
125
+ },
126
+ signal
127
+ })).data;
128
+ const session = {
129
+ token,
130
+ interviewId: sessionId,
131
+ endScreenTitle,
132
+ endScreenText
133
+ };
134
+ noteSessionCreated(session);
135
+ trueSightLog("info", "session", "orchestration", "session continued");
136
+ return session;
137
+ } catch (error) {
138
+ toIncodeApiError(endpoints.sessionContinue, error);
139
+ }
140
+ }
141
+ /**
74
142
  * Validates and rotates a QR anti-phishing URL UUID before creating a session.
75
143
  *
76
144
  * This call is unauthenticated; the `{ onboardingId, urlUuid }` pair itself
@@ -121,8 +189,8 @@ async function refreshQrUrlUuid(options, signal) {
121
189
  }
122
190
  /**
123
191
  * Validates and rotates a QR anti-phishing `urlUuid` (when present), then
124
- * creates a session bound to the refreshed value. When `urlUuid` is absent,
125
- * behaves identically to {@link createSession}.
192
+ * creates (or, with `uuid`, continues) a session bound to the refreshed value.
193
+ * When `urlUuid` is absent, behaves identically to {@link createSession}.
126
194
  *
127
195
  * Use this when the host owns session creation and wants the SDK to handle
128
196
  * phishing-resistance rotation in a single call. For raw control, compose
@@ -156,4 +224,4 @@ async function bootstrapSession(apiKey, options, signal) {
156
224
  }, signal);
157
225
  }
158
226
  //#endregion
159
- export { refreshQrUrlUuid as a, createSession as i, QrValidationError as n, validateQrUuid as o, bootstrapSession as r, QR_VALIDATION_ERROR_CODES as t };
227
+ export { continueSession as a, validateQrUuid as c, bootstrapSession as i, QrValidationError as n, createSession as o, SESSION_CONTINUE_ERROR_CODES as r, refreshQrUrlUuid as s, QR_VALIDATION_ERROR_CODES as t };