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

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 (216) hide show
  1. package/dist/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-C7N1N61V.esm.js} +55 -1
  2. package/dist/{FaceDetectionProvider-2NzWDbV8.esm.js → FaceDetectionProvider-WtuJ6QBK.esm.js} +16 -11
  3. package/dist/{IWasmUtilCapability-BRn0wz8v.d.ts → IWasmUtilCapability-XcOtT1TP.d.ts} +5 -4
  4. package/dist/{MultipartRecordingProvider-CduV32Qa.esm.js → MultipartRecordingProvider-BtMQZEbg.esm.js} +1 -1
  5. package/dist/{StreamCanvasCapture-ixfy84ys.d.ts → StreamCanvasCapture-BnBfA6fb.d.ts} +24 -2
  6. package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
  7. package/dist/{WasmUtilProvider-DdhAHHw4.esm.js → WasmUtilProvider-D5RMElzw.esm.js} +7 -0
  8. package/dist/{WorkerEncoderRecordingProvider-CsDED9UU.esm.js → WorkerEncoderRecordingProvider-BO7urYwT.esm.js} +1 -1
  9. package/dist/{addressSearch-Rxm1K67A.esm.js → addressSearch-BzAy6lhp.esm.js} +2 -4
  10. package/dist/ae-signature.esm.js +1 -1
  11. package/dist/antifraud.esm.js +2 -2
  12. package/dist/{antifraudManager-DKNOi9-z.esm.js → antifraudManager-Bw5nw5fh.esm.js} +3 -3
  13. package/dist/{antifraudStateMachine-BJ6PmCsw.esm.js → antifraudStateMachine-kOfsaAuT.esm.js} +2 -4
  14. package/dist/{api-CZpuJuZl.esm.js → api-DSZSaaWr.esm.js} +2 -0
  15. package/dist/{apiError-BamZ815u.esm.js → apiError-BDuL1wTs.esm.js} +1 -1
  16. package/dist/{attemptCarry-BecGGZK8.esm.js → attemptCarry-QFQkA3na.esm.js} +1 -1
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-yBVGiIf_.esm.js → authenticationManager-B0SioAdd.esm.js} +6 -6
  20. package/dist/{authenticationManager-DRaugLgH.d.ts → authenticationManager-eYcurNiS.d.ts} +1 -1
  21. package/dist/{authenticationStateMachine-DPqTOJPp.esm.js → authenticationStateMachine-n1OrhPTv.esm.js} +3 -3
  22. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-6qVHvj76.esm.js} +2 -2
  23. package/dist/{browser-pQZA35G2-DxIBykpe.esm.js → browser-pQZA35G2-CG3C-xGt.esm.js} +1 -1
  24. package/dist/calendarDate-DcqGuEht.esm.js +35 -0
  25. package/dist/camera-9yYDUOsO.d.ts +5 -0
  26. package/dist/{camera-E_Kcre4O.esm.js → camera-CJKApt0x.esm.js} +10 -3
  27. package/dist/camera.d.ts +2 -2
  28. package/dist/camera.esm.js +1 -1
  29. package/dist/certificate-issuance.esm.js +2 -2
  30. package/dist/{certificateIssuanceManager-Dxl9UwR0.esm.js → certificateIssuanceManager-DPT8E9zV.esm.js} +3 -3
  31. package/dist/{certificateIssuanceStateMachine-CM4q71h1.esm.js → certificateIssuanceStateMachine-BwDb3ezx.esm.js} +1 -1
  32. package/dist/consent.d.ts +1 -1
  33. package/dist/consent.esm.js +2 -2
  34. package/dist/{consentManager-B2F_VeAo.d.ts → consentManager-B0YKqYtZ.d.ts} +9 -9
  35. package/dist/{consentManager-BPocwpm2.esm.js → consentManager-DRMJ3O4r.esm.js} +3 -3
  36. package/dist/{consentStateMachine-DgiIcT9q.esm.js → consentStateMachine-Br0JbW7k.esm.js} +4 -7
  37. package/dist/cross-document-data-match.esm.js +1 -1
  38. package/dist/{crossDocumentDataMatchManager-BfA29Aji.esm.js → crossDocumentDataMatchManager-BIQ-SYcR.esm.js} +3 -4
  39. package/dist/curp-validation.d.ts +1 -1
  40. package/dist/curp-validation.esm.js +2 -2
  41. package/dist/{curpValidationManager-CbvBDoE1.esm.js → curpValidationManager-BKUDQ55W.esm.js} +3 -3
  42. package/dist/{curpValidationManager-Ci2iVuog.d.ts → curpValidationManager-DgUZySoq.d.ts} +1 -1
  43. package/dist/{curpValidationStateMachine-BQ8XK2Y3.esm.js → curpValidationStateMachine-BwUBkyyi.esm.js} +13 -14
  44. package/dist/custom-fields.esm.js +1 -1
  45. package/dist/custom-watchlist.esm.js +2 -2
  46. package/dist/{customFieldsManager-BRqSCR9R.esm.js → customFieldsManager-CPhONu5i.esm.js} +12 -16
  47. package/dist/{customWatchlistManager-Bd1ooIDB.esm.js → customWatchlistManager-cN57usIW.esm.js} +3 -3
  48. package/dist/{customWatchlistStateMachine-r8nGhyo1.esm.js → customWatchlistStateMachine-C1Xq1ugl.esm.js} +2 -4
  49. package/dist/{deepsightLoader-CEY2mSPM.esm.js → deepsightLoader-ClCQCdeL.esm.js} +5 -5
  50. package/dist/{desktopCameraElection-enVPfRsQ.esm.js → desktopCameraElection-btFONYx6.esm.js} +22 -10
  51. package/dist/device.d.ts +3 -3
  52. package/dist/device.esm.js +15 -15
  53. package/dist/document-capture.d.ts +2 -2
  54. package/dist/document-capture.esm.js +2 -2
  55. package/dist/document-signature.d.ts +123 -0
  56. package/dist/document-signature.esm.js +149 -0
  57. package/dist/{documentCaptureManager-C11k5BO-.esm.js → documentCaptureManager-5I3lKDVW.esm.js} +3 -3
  58. package/dist/{documentCaptureManager-BZBmcOKI.d.ts → documentCaptureManager-BkaPpoKy.d.ts} +1 -1
  59. package/dist/{documentCaptureStateMachine-g0gfL0_1.esm.js → documentCaptureStateMachine-jtQHasPA.esm.js} +7 -10
  60. package/dist/documentSignatureStateMachine-DKtU0H-F.esm.js +218 -0
  61. package/dist/dynamic-forms.esm.js +2 -2
  62. package/dist/{dynamicFormsManager-BmfCZ2zV.esm.js → dynamicFormsManager-B6Bv32wU.esm.js} +3 -3
  63. package/dist/{dynamicFormsStateMachine-B-eYytau.esm.js → dynamicFormsStateMachine-Kauq2oB-.esm.js} +10 -11
  64. package/dist/ekyb.d.ts +1 -1
  65. package/dist/ekyb.esm.js +2 -2
  66. package/dist/{ekybManager-BPaMfbgw.esm.js → ekybManager-wi135kG-.esm.js} +3 -3
  67. package/dist/{ekybStateMachine-C_lEw4I7.esm.js → ekybStateMachine-Vjb6_mFt.esm.js} +4 -6
  68. package/dist/ekyc-prefill.d.ts +1 -1
  69. package/dist/ekyc-prefill.esm.js +2 -2
  70. package/dist/ekyc.esm.js +3 -3
  71. package/dist/{ekycManager-nRT0rxei.esm.js → ekycManager-DWCL912J.esm.js} +3 -3
  72. package/dist/{ekycPrefillManager-DOTl3Y2w.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -4
  73. package/dist/{ekycPrefillManager-CCtbmrFd.esm.js → ekycPrefillManager-C27Cu6rn.esm.js} +1 -1
  74. package/dist/{ekycPrefillStateMachine-XpxgCAoC.esm.js → ekycPrefillStateMachine-DqXvupSw.esm.js} +4 -6
  75. package/dist/{ekycRules-DXP2hqVw.esm.js → ekycRules-1hyjJ6bw.esm.js} +7 -4
  76. package/dist/{ekycStateMachine-nwJRel2s.esm.js → ekycStateMachine-DjiGyQtm.esm.js} +149 -13
  77. package/dist/{ekycUtils-FcqA6oU4.esm.js → ekycUtils-D9ui9Ztp.esm.js} +5 -0
  78. package/dist/electronic-signature.esm.js +1 -1
  79. package/dist/{electronicSignatureManager-M2O2VDks.esm.js → electronicSignatureManager-BHnxFx7u.esm.js} +8 -16
  80. package/dist/email.esm.js +2 -2
  81. package/dist/{emailManager-Co4jarT1.esm.js → emailManager-CfvR6pQN.esm.js} +3 -3
  82. package/dist/{emailStateMachine-CTEaYncs.esm.js → emailStateMachine-C4FouMzc.esm.js} +3 -5
  83. package/dist/{events-CP3yOzAl.esm.js → events-CsPmTidH.esm.js} +2 -2
  84. package/dist/events.d.ts +1 -0
  85. package/dist/events.esm.js +2 -2
  86. package/dist/extensibility.d.ts +14 -14
  87. package/dist/extensibility.esm.js +36 -36
  88. package/dist/face-match.esm.js +2 -2
  89. package/dist/{faceCaptureManagerFactory-3Or5qfbA.esm.js → faceCaptureManagerFactory-BjVIUTMM.esm.js} +5 -5
  90. package/dist/{faceCaptureManagerFactory-CRGajjZ4.d.ts → faceCaptureManagerFactory-DhDPxxp-.d.ts} +12 -6
  91. package/dist/{faceCaptureSetup-Cf87i0rT.esm.js → faceCaptureSetup-q33e6ah9.esm.js} +26 -15
  92. package/dist/{faceMatchManager-CGmNGbov.esm.js → faceMatchManager-CsPFaja4.esm.js} +3 -3
  93. package/dist/{faceMatchStateMachine-BuHt7kec.esm.js → faceMatchStateMachine-Co2S7iN8.esm.js} +8 -19
  94. package/dist/{feature-management-DG016L6E.esm.js → feature-management-BhRKAG--.esm.js} +3 -2
  95. package/dist/feature-management.esm.js +1 -1
  96. package/dist/field-comparison.esm.js +1 -1
  97. package/dist/{fieldComparisonManager-VgCU4X96.esm.js → fieldComparisonManager-Chn80m_n.esm.js} +4 -6
  98. package/dist/fiscal-qr.esm.js +1 -1
  99. package/dist/{fiscalQrManager-DOLq45ph.esm.js → fiscalQrManager-CpX6MOy_.esm.js} +6 -7
  100. package/dist/flow-events.d.ts +1 -1
  101. package/dist/flow.d.ts +6 -6
  102. package/dist/flow.esm.js +5 -5
  103. package/dist/{flowCompletionService-BpeAbbXc.esm.js → flowCompletionService-E_6ChYsV.esm.js} +2 -2
  104. package/dist/{flowServices-rDg1bAMs.esm.js → flowServices-C23o7MqO.esm.js} +10 -9
  105. package/dist/geolocation.esm.js +2 -2
  106. package/dist/{geolocationManager-T8m4lqvF.esm.js → geolocationManager-dgMVi0ed.esm.js} +3 -3
  107. package/dist/{geolocationStateMachine-NWmA1Dtn.esm.js → geolocationStateMachine-CCVd9xGh.esm.js} +6 -8
  108. package/dist/{getDeviceClass-DoIWuKI8.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
  109. package/dist/government-validation.esm.js +2 -2
  110. package/dist/{governmentValidationManager-6JQQkzha.esm.js → governmentValidationManager-D2KGYDws.esm.js} +3 -3
  111. package/dist/{governmentValidationStateMachine-wBunpfQ9.esm.js → governmentValidationStateMachine-DRG-5jwQ.esm.js} +2 -4
  112. package/dist/home.d.ts +1 -1
  113. package/dist/home.esm.js +2 -2
  114. package/dist/http.esm.js +1 -1
  115. package/dist/id-ocr.d.ts +1 -1
  116. package/dist/id-ocr.esm.js +2 -2
  117. package/dist/id-selfie-flow.d.ts +2 -2
  118. package/dist/id-selfie-flow.esm.js +10 -10
  119. package/dist/id-verification.esm.js +2 -2
  120. package/dist/id.d.ts +3 -3
  121. package/dist/id.esm.js +3 -3
  122. package/dist/{idCaptureDefaults-Cjesf5i9.esm.js → idCaptureDefaults-BivjtJka.esm.js} +1 -1
  123. package/dist/{idCaptureManager-5-ReVgbB.esm.js → idCaptureManager-B_deOVCC.esm.js} +12 -14
  124. package/dist/{idCaptureManager-Cqx2y_fC.d.ts → idCaptureManager-DzAMWmRO.d.ts} +12 -5
  125. package/dist/{idCaptureServices-exB6I9lV.esm.js → idCaptureServices-BFCsusKB.esm.js} +17 -25
  126. package/dist/{idCaptureStateMachine-DQ14d3GR.esm.js → idCaptureStateMachine--CMATkG9.esm.js} +49 -56
  127. package/dist/{idOcrManager-im7VfJQi.esm.js → idOcrManager-C-_bzBSX.esm.js} +3 -3
  128. package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
  129. package/dist/{idOcrStateMachine-B832arAl.esm.js → idOcrStateMachine-BNtBkAXC.esm.js} +10 -7
  130. package/dist/{idVerificationManager-PMGM4hXY.esm.js → idVerificationManager-CdvGdtg2.esm.js} +3 -3
  131. package/dist/{idVerificationStateMachine-DeeugC00.esm.js → idVerificationStateMachine-mozw0CIg.esm.js} +2 -4
  132. package/dist/identity-reuse.esm.js +2 -2
  133. package/dist/identity-search.esm.js +3 -4
  134. package/dist/{identityReuseManager-CjFZ7WRa.esm.js → identityReuseManager-Z1Re4UGd.esm.js} +3 -3
  135. package/dist/{identityReuseStateMachine-CLFjPp13.esm.js → identityReuseStateMachine-C_3fSFCw.esm.js} +3 -7
  136. package/dist/{index-DxYNO94y.d.ts → index-C0WIMlJE.d.ts} +1 -1
  137. package/dist/{index-DM43R87x.d.ts → index-CNck5TLp.d.ts} +1 -1
  138. package/dist/index.d.ts +1 -1
  139. package/dist/index.esm.js +1 -1
  140. package/dist/{invokeOnCaptureCallback-lXP41N7b.esm.js → invokeOnCaptureCallback-DNQX9k5e.esm.js} +1 -1
  141. package/dist/kyb-checks.esm.js +2 -2
  142. package/dist/{kybChecksManager-CZfdCkLC.esm.js → kybChecksManager-D-mVF14T.esm.js} +1 -1
  143. package/dist/{kybChecksStateMachine-DkWxSU4L.esm.js → kybChecksStateMachine-BARZh9GN.esm.js} +5 -9
  144. package/dist/mandatory-consent.d.ts +2 -2
  145. package/dist/mandatory-consent.esm.js +2 -2
  146. package/dist/{mandatoryConsentManager-Dh3pBhOe.esm.js → mandatoryConsentManager-CKzzbbRe.esm.js} +3 -3
  147. package/dist/{mandatoryConsentManager-Bh1asNJh.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +8 -8
  148. package/dist/{mandatoryConsentStateMachine-BjuI72HZ.esm.js → mandatoryConsentStateMachine-DpK7fg3E.esm.js} +4 -7
  149. package/dist/{mediaRecorderOptions-g1TwTlhd.esm.js → mediaRecorderOptions-Di_V9TnZ.esm.js} +1 -1
  150. package/dist/{multipartRecordingService-WgK8ieRI.esm.js → multipartRecordingService-CEtaAPz4.esm.js} +2 -2
  151. package/dist/{permissionGuards-D-4_VU7-.esm.js → permissionGuards-BJIaHxvI.esm.js} +1 -1
  152. package/dist/{permissionServices-DpccEnzE.esm.js → permissionServices-6Mdq1hDk.esm.js} +8 -5
  153. package/dist/phone.esm.js +2 -2
  154. package/dist/{phoneManager-rA7updqF.esm.js → phoneManager-D8-l6-0y.esm.js} +3 -3
  155. package/dist/{phoneServices-CFXcwCFr.esm.js → phoneServices-C9lFIuCM.esm.js} +3 -7
  156. package/dist/{phoneStateMachine-DKdY2Scx.esm.js → phoneStateMachine-CGLBgJJR.esm.js} +2 -2
  157. package/dist/{platform-aPh7gTWh.esm.js → platform-GIg4uPWe.esm.js} +1 -4
  158. package/dist/{processFaceMatch-B_DkDTE5.esm.js → processFaceMatch-B1Mhqkep.esm.js} +1 -1
  159. package/dist/qe-signature.esm.js +1 -1
  160. package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-CLGnDCDl.esm.js} +7 -6
  161. package/dist/redirect-to-mobile.esm.js +2 -2
  162. package/dist/{redirectToMobileManager-DTB_pWuS.esm.js → redirectToMobileManager-Djb_daci.esm.js} +3 -3
  163. package/dist/{redirectToMobileStateMachine-nP9DM01_.esm.js → redirectToMobileStateMachine-BCyQFlpn.esm.js} +7 -17
  164. package/dist/{runChildModule-CXLcOcXN.esm.js → runChildModule-DF2c6TxC.esm.js} +2 -2
  165. package/dist/{sdkVersion-fqxsdqFZ.esm.js → sdkVersion-B5_kVegT.esm.js} +1 -1
  166. package/dist/selfie.d.ts +5 -5
  167. package/dist/selfie.esm.js +11 -11
  168. package/dist/{selfieErrorUtils-MOfYdGPz.esm.js → selfieErrorUtils-BVuv5qO7.esm.js} +1 -1
  169. package/dist/{selfieManager-DihwheJ6.d.ts → selfieManager-C5a6Fw6W.d.ts} +1 -1
  170. package/dist/{selfieManager-Dq8tIqGd.esm.js → selfieManager-Dnb5h3qV.esm.js} +6 -6
  171. package/dist/{selfieStateMachine-BZVDQB8R.esm.js → selfieStateMachine-BT69FLFb.esm.js} +3 -3
  172. package/dist/{session-C7x_iJ-p.esm.js → session-OCc4b-Iv.esm.js} +4 -4
  173. package/dist/session.d.ts +1 -1
  174. package/dist/session.esm.js +5 -5
  175. package/dist/{sessionInitializer-k-hKIBg8.esm.js → sessionInitializer-BUUpdBy6.esm.js} +11 -13
  176. package/dist/{setup-CpXbdA1X.d.ts → setup-BpD7lYSf.d.ts} +5 -4
  177. package/dist/{setup-BRbhjHiU.esm.js → setup-CJMohzTE.esm.js} +10 -10
  178. package/dist/signature.esm.js +2 -2
  179. package/dist/{signatureManager-BgAja97K.esm.js → signatureManager-B6dRieBV.esm.js} +3 -3
  180. package/dist/{signatureStateMachine-CVPmvU2p.esm.js → signatureStateMachine-DSW5-ZO0.esm.js} +3 -5
  181. package/dist/{stats-DoByUnTa.esm.js → stats-VqHbD5rn.esm.js} +1 -1
  182. package/dist/stats.esm.js +1 -1
  183. package/dist/{tri-CI2exudk.esm.js → tri-B5Yh5glk.esm.js} +2 -2
  184. package/dist/tri.d.ts +1 -1
  185. package/dist/tri.esm-DYdFtcDH.esm.js +3105 -0
  186. package/dist/tri.esm.js +1 -1
  187. package/dist/{trueSightService-DhW2O8mB.esm.js → trueSightService-D9D2IdEj.esm.js} +6 -7
  188. package/dist/trust-graph.esm.js +2 -2
  189. package/dist/{types-Ddc4Tr_f.d.ts → types-B2DGXHe6.d.ts} +2 -0
  190. package/dist/{types-Cpdum4vi.d.ts → types-BBHnkH6S.d.ts} +4 -4
  191. package/dist/types-BNkzXOXE.d.ts +45 -0
  192. package/dist/{types-DJPU3W2M.d.ts → types-BkWUNheX.d.ts} +1 -1
  193. package/dist/types-C2uJrJrS.d.ts +6 -0
  194. package/dist/{types-DYYMdAGv.esm.js → types-CBQN04Rh.esm.js} +2 -1
  195. package/dist/{types-CyNndVAT.d.ts → types-CaVUb1DL.d.ts} +1 -1
  196. package/dist/{types-DFP7eSle.d.ts → types-Crg7oL-l.d.ts} +1 -1
  197. package/dist/{types-9wlf1-GE.d.ts → types-x5MQKskR.d.ts} +4 -2
  198. package/dist/video-selfie.d.ts +2 -2
  199. package/dist/video-selfie.esm.js +9 -9
  200. package/dist/{videoSelfieCameraWarmer-YwO_uP-b.esm.js → videoSelfieCameraWarmer-CYEHPKK6.esm.js} +9 -9
  201. package/dist/{videoSelfieStepDetector-DRrh4P0A.d.ts → videoSelfieStepDetector-DGXi_TXk.d.ts} +18 -8
  202. package/dist/wasm.d.ts +1 -1
  203. package/dist/wasm.esm.js +1 -1
  204. package/dist/{wasmDsFlagSync-D_6e8W62.esm.js → wasmDsFlagSync-BNttW5Sm.esm.js} +1 -1
  205. package/dist/watchlist-for-business.esm.js +2 -2
  206. package/dist/watchlist.esm.js +2 -2
  207. package/dist/{watchlistForBusinessManager-BH6M4kqA.esm.js → watchlistForBusinessManager-CfLnsL8p.esm.js} +3 -3
  208. package/dist/{watchlistForBusinessStateMachine-BMWm5mcP.esm.js → watchlistForBusinessStateMachine-EzlC_4I4.esm.js} +9 -6
  209. package/dist/{watchlistManager-BDaVjzLW.esm.js → watchlistManager-CGXbemnp.esm.js} +3 -3
  210. package/dist/{watchlistStateMachine-Cx-6QAvu.esm.js → watchlistStateMachine-CsNEmiXL.esm.js} +2 -4
  211. package/dist/workflow.d.ts +1 -1
  212. package/dist/workflow.esm.js +40 -38
  213. package/package.json +6 -1
  214. package/dist/camera-9wWD-pwg.d.ts +0 -4
  215. package/dist/tri.esm-CxLWmTZk.esm.js +0 -2287
  216. package/dist/types-CE1jkHw3.d.ts +0 -6
@@ -1,5 +1,5 @@
1
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
- import { n as getFlow } from "./flowServices-rDg1bAMs.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
+ import { n as getFlow } from "./flowServices-C23o7MqO.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
5
  import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
@@ -7,7 +7,7 @@ import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
7
  import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
8
8
  import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
9
9
  import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
10
- import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
10
+ import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BzAy6lhp.esm.js";
11
11
  //#region src/modules/ekyb/ekybValidators.ts
12
12
  const createValidators = () => ({
13
13
  required: (value, _rule, field) => {
@@ -575,9 +575,7 @@ async function fetchEkybModuleConfig(signal) {
575
575
  }
576
576
  /** Submits eKYB business verification */
577
577
  async function submitEkyb(data, signal) {
578
- const res = await api.post(endpoints.ekybSubmit, data, { signal });
579
- if (!res.ok) throw new Error(`POST ${endpoints.ekybSubmit} failed: ${res.status} ${res.statusText}`);
580
- return res.data;
578
+ return (await api.post(endpoints.ekybSubmit, data, { signal })).data;
581
579
  }
582
580
  //#endregion
583
581
  //#region src/modules/ekyb/ekybActors.ts
@@ -1,6 +1,6 @@
1
1
  import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
2
2
  import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
3
- import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-DOTl3Y2w.js";
3
+ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BcLhkpp8.js";
4
4
  //#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
5
5
  /**
6
6
  * Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
@@ -1,3 +1,3 @@
1
- import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-XpxgCAoC.esm.js";
2
- import { t as createEkycPrefillManager } from "./ekycPrefillManager-CCtbmrFd.esm.js";
1
+ import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DqXvupSw.esm.js";
2
+ import { t as createEkycPrefillManager } from "./ekycPrefillManager-C27Cu6rn.esm.js";
3
3
  export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
package/dist/ekyc.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
2
- import { l as toEkycConfig } from "./ekycUtils-FcqA6oU4.esm.js";
3
- import { t as createEkycManager } from "./ekycManager-nRT0rxei.esm.js";
1
+ import { t as ekycMachine } from "./ekycStateMachine-DjiGyQtm.esm.js";
2
+ import { l as toEkycConfig } from "./ekycUtils-D9ui9Ztp.esm.js";
3
+ import { t as createEkycManager } from "./ekycManager-DWCL912J.esm.js";
4
4
  export { createEkycManager, ekycMachine, toEkycConfig };
@@ -1,9 +1,9 @@
1
- import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
- import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
6
- import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
6
+ import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-DjiGyQtm.esm.js";
7
7
  //#region src/modules/ekyc/ekycActor.ts
8
8
  /**
9
9
  * Creates and starts an eKYC actor.
@@ -45,10 +45,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
45
45
  id: string | undefined;
46
46
  };
47
47
  }>, Values<{
48
- clearError: {
49
- type: "clearError";
50
- params: NonReducibleUnknown;
51
- };
52
48
  applyForm: {
53
49
  type: "applyForm";
54
50
  params: NonReducibleUnknown;
@@ -81,6 +77,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
81
77
  type: "setSubmitError";
82
78
  params: NonReducibleUnknown;
83
79
  };
80
+ clearError: {
81
+ type: "clearError";
82
+ params: NonReducibleUnknown;
83
+ };
84
84
  }>, Values<{
85
85
  isValid: {
86
86
  type: "isValid";
@@ -1,6 +1,6 @@
1
1
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
2
2
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
3
- import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-XpxgCAoC.esm.js";
3
+ import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DqXvupSw.esm.js";
4
4
  //#region src/modules/ekyc-prefill/ekycPrefillActor.ts
5
5
  /** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
6
6
  function createEkycPrefillActor(options = {}) {
@@ -1,9 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-BamZ815u.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-BDuL1wTs.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
- import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-DXP2hqVw.esm.js";
6
+ import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-1hyjJ6bw.esm.js";
7
7
  import { t as createBundledDefinitionSource } from "./definitionSource-Nw0YCbpe.esm.js";
8
8
  import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
9
9
  import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
@@ -434,9 +434,7 @@ function buildSubmitBody(submit, values) {
434
434
  */
435
435
  async function submitEkycPrefill(body, signal) {
436
436
  try {
437
- const res = await api.post(endpoints.ekycPrefillSubmit, body, { signal });
438
- if (!res.ok) throw res;
439
- return res.data;
437
+ return (await api.post(endpoints.ekycPrefillSubmit, body, { signal })).data;
440
438
  } catch (error) {
441
439
  throw toIncodeApiError(endpoints.ekycPrefillSubmit, error);
442
440
  }
@@ -1,6 +1,7 @@
1
1
  import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
3
3
  import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
4
+ import { n as calendarDateError } from "./calendarDate-DcqGuEht.esm.js";
4
5
  import { i as getPostalCodeErrorParams, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-Nw0YCbpe.esm.js";
5
6
  import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-DaaQSVWp.esm.js";
6
7
  import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
@@ -160,8 +161,8 @@ function matchesCharTemplate(value, templates, ignoreCase = false) {
160
161
  /**
161
162
  * `maxAge`: an ISO `YYYY-MM-DD` date of birth at most `years` full years
162
163
  * before `today`, also ISO, in the user's calendar. As in SDK1, someone turns
163
- * a year older on their birthday. A value that isn't an ISO date passes; the
164
- * date input owns that.
164
+ * a year older on their birthday. Field structure validation checks calendar
165
+ * dates before this age rule runs.
165
166
  */
166
167
  function isWithinMaxAge(value, today, years) {
167
168
  if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
@@ -180,8 +181,8 @@ function hasNameCharacters(value) {
180
181
  //#region src/internal/forms/checks/notFuture.ts
181
182
  /**
182
183
  * `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
183
- * the user's calendar. A value that isn't an ISO date passes; the date input
184
- * owns that.
184
+ * the user's calendar. Field structure validation checks calendar dates
185
+ * before this range rule runs.
185
186
  */
186
187
  function isNotFuture(value, today) {
187
188
  if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
@@ -374,6 +375,8 @@ const withRuleMessage = (error, rule) => !rule.message || error.key === rule.mes
374
375
  key: rule.message
375
376
  };
376
377
  const evaluateRules = (value, rules, field, values, validators) => {
378
+ const dateError = field.type === "date" ? calendarDateError(value.trim()) : void 0;
379
+ if (dateError) return { key: dateError };
377
380
  if (!rules) return void 0;
378
381
  for (const rule of rules) {
379
382
  const error = validators[rule.type](value, rule, field, values);
@@ -1,13 +1,13 @@
1
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
2
  import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
- import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-DXP2hqVw.esm.js";
5
+ import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-1hyjJ6bw.esm.js";
6
6
  import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
7
  import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
8
8
  import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
9
- import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
10
- import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-FcqA6oU4.esm.js";
9
+ import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BzAy6lhp.esm.js";
10
+ import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-D9ui9Ztp.esm.js";
11
11
  import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
12
12
  import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
13
13
  //#region src/internal/forms/resolvePrefill.ts
@@ -5045,6 +5045,148 @@ const EKYC_DEFINITIONS = {
5045
5045
  }
5046
5046
  }
5047
5047
  },
5048
+ "ekyc/PT/PT_PHONE_REGISTER": {
5049
+ schemaVersion: 1,
5050
+ vocabulary: "1.2",
5051
+ id: "ekyc/PT/PT_PHONE_REGISTER",
5052
+ module: "ekyc",
5053
+ country: "PT",
5054
+ source: "PT_PHONE_REGISTER",
5055
+ sections: [{ id: "address" }],
5056
+ fields: [
5057
+ {
5058
+ name: "firstName",
5059
+ kind: "text",
5060
+ group: "name",
5061
+ required: true,
5062
+ label: { key: "verification.labels.firstName" },
5063
+ placeholder: { key: "verification.placeholder.firstName" },
5064
+ input: {
5065
+ maxLength: 100,
5066
+ autofill: "givenName"
5067
+ },
5068
+ rules: [{ id: "nameCharacters" }],
5069
+ prefill: ["document.firstName", "poa.firstName"]
5070
+ },
5071
+ {
5072
+ name: "middleName",
5073
+ kind: "text",
5074
+ group: "name",
5075
+ label: { key: "verification.labels.middleName" },
5076
+ placeholder: { key: "verification.placeholder.middleName" },
5077
+ input: {
5078
+ maxLength: 100,
5079
+ autofill: "middleName"
5080
+ },
5081
+ rules: [{ id: "nameCharacters" }],
5082
+ prefill: ["document.middleName"]
5083
+ },
5084
+ {
5085
+ name: "surName",
5086
+ kind: "text",
5087
+ group: "name",
5088
+ required: true,
5089
+ label: { key: "verification.labels.surName" },
5090
+ placeholder: { key: "verification.placeholder.surname" },
5091
+ input: {
5092
+ maxLength: 100,
5093
+ autofill: "familyName"
5094
+ },
5095
+ rules: [{ id: "nameCharacters" }],
5096
+ prefill: ["document.paternalLastName", "poa.lastName"]
5097
+ },
5098
+ {
5099
+ name: "email",
5100
+ kind: "text",
5101
+ group: "email",
5102
+ required: true,
5103
+ label: { key: "verification.labels.email" },
5104
+ placeholder: { key: "verification.placeholder.email" },
5105
+ input: {
5106
+ keyboard: "email",
5107
+ autofill: "email"
5108
+ },
5109
+ rules: [{ id: "emailFormat" }],
5110
+ prefill: ["emailModule.email"]
5111
+ },
5112
+ {
5113
+ name: "phone",
5114
+ kind: "phone",
5115
+ group: "phone",
5116
+ label: { key: "verification.labels.phone" },
5117
+ input: { autofill: "phone" },
5118
+ phone: { lockCountry: true },
5119
+ rules: [{ id: "phoneFormat" }, {
5120
+ id: "phoneDigits",
5121
+ params: {
5122
+ min: 9,
5123
+ max: 9
5124
+ }
5125
+ }],
5126
+ payload: { transforms: [{ id: "e164" }] },
5127
+ prefill: ["phoneModule.phone"]
5128
+ },
5129
+ {
5130
+ name: "gender",
5131
+ kind: "choice",
5132
+ group: "gender",
5133
+ widget: "radio",
5134
+ label: { key: "verification.labels.gender" },
5135
+ options: [{
5136
+ value: "F",
5137
+ label: { key: "common.female" }
5138
+ }, {
5139
+ value: "M",
5140
+ label: { key: "common.male" }
5141
+ }]
5142
+ },
5143
+ {
5144
+ name: "street",
5145
+ kind: "text",
5146
+ group: "address",
5147
+ section: "address",
5148
+ widget: "addressSearch",
5149
+ label: { key: "verification.labels.streetAndHouseNumber" },
5150
+ input: { autofill: "addressLine1" },
5151
+ rules: [{ id: "noPoBox" }],
5152
+ prefill: ["document.street", "poa.street"]
5153
+ },
5154
+ {
5155
+ name: "city",
5156
+ kind: "text",
5157
+ group: "address",
5158
+ section: "address",
5159
+ label: { key: "verification.labels.city" },
5160
+ input: { autofill: "addressLevel2" },
5161
+ prefill: ["document.city", "poa.city"]
5162
+ },
5163
+ {
5164
+ name: "postalCode",
5165
+ kind: "text",
5166
+ group: "address",
5167
+ section: "address",
5168
+ label: { key: "verification.labels.postalCode" },
5169
+ input: {
5170
+ maxLength: 8,
5171
+ autofill: "postalCode",
5172
+ keyboard: "numeric"
5173
+ },
5174
+ rules: [{ id: "postalCodeFormat" }],
5175
+ payload: { transforms: [{
5176
+ id: "stripSeparators",
5177
+ params: { chars: "- " }
5178
+ }] },
5179
+ prefill: ["document.postalCode", "poa.postalCode"]
5180
+ }
5181
+ ],
5182
+ submit: {
5183
+ static: { plugins: ["kyc"] },
5184
+ context: {
5185
+ source: "source",
5186
+ countryCode: "country"
5187
+ }
5188
+ }
5189
+ },
5048
5190
  "ekyc/RO/RO_VOTER_REGISTER": {
5049
5191
  schemaVersion: 1,
5050
5192
  vocabulary: "1.3",
@@ -7371,21 +7513,15 @@ function firstStepWithError(steps, errors) {
7371
7513
  /** Fetches module configuration for EXTERNAL_VERIFICATION */
7372
7514
  async function fetchModuleConfig(flowId, signal) {
7373
7515
  const url = `${endpoints.moduleConfig}?id=${encodeURIComponent(flowId)}&moduleKey=EXTERNAL_VERIFICATION`;
7374
- const res = await api.get(url, { signal });
7375
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
7376
- return res.data;
7516
+ return (await api.get(url, { signal })).data;
7377
7517
  }
7378
7518
  /** Fetches OCR data for pre-fill */
7379
7519
  async function fetchOcrData(signal) {
7380
- const res = await api.get(endpoints.ocrData, { signal });
7381
- if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
7382
- return res.data;
7520
+ return (await api.get(endpoints.ocrData, { signal })).data;
7383
7521
  }
7384
7522
  /** Fetches phone/email from prior OTP modules */
7385
7523
  async function fetchOtpStatus(signal) {
7386
- const res = await api.get(endpoints.otpStatus, { signal });
7387
- if (!res.ok) throw new Error(`GET ${endpoints.otpStatus} failed: ${res.status} ${res.statusText}`);
7388
- return res.data;
7524
+ return (await api.get(endpoints.otpStatus, { signal })).data;
7389
7525
  }
7390
7526
  var EkycSubmitError = class extends Error {
7391
7527
  constructor(status, apiError) {
@@ -161,6 +161,11 @@ const EKYC_INDEX = [
161
161
  country: "PT",
162
162
  source: "PT_CIVIL_REG_CREDIT_TELCO"
163
163
  },
164
+ {
165
+ id: "ekyc/PT/PT_PHONE_REGISTER",
166
+ country: "PT",
167
+ source: "PT_PHONE_REGISTER"
168
+ },
164
169
  {
165
170
  id: "ekyc/RO/RO_VOTER_REGISTER",
166
171
  country: "RO",
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-M2O2VDks.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BHnxFx7u.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -1,8 +1,8 @@
1
- import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
- import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
3
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
4
4
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BamZ815u.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BDuL1wTs.esm.js";
6
6
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
7
7
  import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
8
8
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
@@ -10,27 +10,21 @@ import { t as externalFetch } from "./externalFetch-cUjJYyXj.esm.js";
10
10
  //#region src/modules/electronic-signature/electronicSignatureServices.ts
11
11
  async function fetchUnsignedDocuments(signal) {
12
12
  try {
13
- const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
14
- if (!res.ok) throw res;
15
- return res.data;
13
+ return (await api.get(endpoints.aesUnsignedDocuments, { signal })).data;
16
14
  } catch (error) {
17
15
  toIncodeApiError(endpoints.aesUnsignedDocuments, error);
18
16
  }
19
17
  }
20
18
  async function fetchSignedDocuments(signal) {
21
19
  try {
22
- const res = await api.get(endpoints.esSignedDocuments, { signal });
23
- if (!res.ok) throw res;
24
- return res.data;
20
+ return (await api.get(endpoints.esSignedDocuments, { signal })).data;
25
21
  } catch (error) {
26
22
  toIncodeApiError(endpoints.esSignedDocuments, error);
27
23
  }
28
24
  }
29
25
  async function fetchQesTerms(languageCode, signal) {
30
26
  try {
31
- const res = await api.post(endpoints.qesTerms, { languageCode }, { signal });
32
- if (!res.ok) throw res;
33
- return res.data;
27
+ return (await api.post(endpoints.qesTerms, { languageCode }, { signal })).data;
34
28
  } catch (error) {
35
29
  toIncodeApiError(endpoints.qesTerms, error);
36
30
  }
@@ -50,9 +44,7 @@ async function signDocument(documentRef, variant, signal) {
50
44
  }
51
45
  }
52
46
  async function generateUploadUrl(signal) {
53
- const res = await api.post(endpoints.aesGenerateUploadUrl, {}, { signal });
54
- if (!res.ok) throw new Error(`POST ${endpoints.aesGenerateUploadUrl} failed: ${res.status} ${res.statusText}`);
55
- return res.data;
47
+ return (await api.post(endpoints.aesGenerateUploadUrl, {}, { signal })).data;
56
48
  }
57
49
  async function uploadDocumentFile(presignedUrl, data, signal) {
58
50
  await externalFetch({
package/dist/email.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as emailMachine } from "./emailStateMachine-CTEaYncs.esm.js";
2
- import { t as createEmailManager } from "./emailManager-Co4jarT1.esm.js";
1
+ import { t as emailMachine } from "./emailStateMachine-C4FouMzc.esm.js";
2
+ import { t as createEmailManager } from "./emailManager-CfvR6pQN.esm.js";
3
3
  export { createEmailManager, emailMachine };
@@ -1,8 +1,8 @@
1
- import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
- import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
1
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
2
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
3
3
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
- import { t as emailMachine } from "./emailStateMachine-CTEaYncs.esm.js";
5
+ import { t as emailMachine } from "./emailStateMachine-C4FouMzc.esm.js";
6
6
  import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
7
7
  //#region src/modules/email/emailActor.ts
8
8
  function createEmailActor(options) {
@@ -1,8 +1,8 @@
1
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
1
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
- import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
5
+ import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
6
6
  import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
7
7
  //#region src/modules/email/emailServices.ts
8
8
  function getEmailServerFailureReason(error, invalidStatus) {
@@ -10,9 +10,7 @@ function getEmailServerFailureReason(error, invalidStatus) {
10
10
  return "serverError";
11
11
  }
12
12
  async function fetchEmail(signal) {
13
- const res = await api.get(endpoints.getEmail, { signal });
14
- if (!res.ok) throw new Error(`GET ${endpoints.getEmail} failed: ${res.status} ${res.statusText}`);
15
- return res.data;
13
+ return (await api.get(endpoints.getEmail, { signal })).data;
16
14
  }
17
15
  async function addEmail(params, signal) {
18
16
  try {
@@ -1,5 +1,5 @@
1
- import { _ as stateChanged, c as elementClicked, d as foreground, f as moduleClosed, g as screenOpened, l as errorTriggered, m as screenClosed, o as background, p as moduleOpened, s as captureAttemptFinished, u as experimentAssigned, y as getAnalyticsBatcher } from "./types-DYYMdAGv.esm.js";
2
- import { t as api } from "./api-CZpuJuZl.esm.js";
1
+ import { _ as stateChanged, c as elementClicked, d as foreground, f as moduleClosed, g as screenOpened, l as errorTriggered, m as screenClosed, o as background, p as moduleOpened, s as captureAttemptFinished, u as experimentAssigned, y as getAnalyticsBatcher } from "./types-CBQN04Rh.esm.js";
2
+ import { t as api } from "./api-DSZSaaWr.esm.js";
3
3
  //#region src/internal/events/AnalyticsBatchingService.ts
4
4
  const DEFAULT_MAX_BATCH_SIZE = 50;
5
5
  const MAX_STATE_BATCH_SIZE = 50;
package/dist/events.d.ts CHANGED
@@ -68,6 +68,7 @@ declare const eventModuleNames: {
68
68
  readonly home: "home";
69
69
  readonly workflow: "workflow";
70
70
  readonly fiscalQr: "FISCAL_QR";
71
+ readonly documentSignature: "DOCUMENT_SIGNATURE";
71
72
  };
72
73
  declare const eventScreenNames: {
73
74
  readonly faceMatch: "FACE_MATCH";
@@ -1,3 +1,3 @@
1
- import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, c as elementClicked, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as experimentAssigned, v as addEvent } from "./types-DYYMdAGv.esm.js";
2
- import { n as recordExperimentAssignmentOnce } from "./events-CP3yOzAl.esm.js";
1
+ import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, c as elementClicked, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as experimentAssigned, v as addEvent } from "./types-CBQN04Rh.esm.js";
2
+ import { n as recordExperimentAssignmentOnce } from "./events-CsPmTidH.esm.js";
3
3
  export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -5,33 +5,33 @@ import "./Actor-DqjOqDfU.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-5tYz-a4o.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BxfCsyA7.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-CRGajjZ4.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-DhDPxxp-.js";
9
9
  import "./createFaceAvatar-BimBTONm.js";
10
- import { a as IStorageCapability } from "./IWasmUtilCapability-BRn0wz8v.js";
11
- import "./StreamCanvasCapture-ixfy84ys.js";
12
- import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-Cqx2y_fC.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DRaugLgH.js";
10
+ import { a as IStorageCapability } from "./IWasmUtilCapability-XcOtT1TP.js";
11
+ import "./StreamCanvasCapture-BnBfA6fb.js";
12
+ import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-DzAMWmRO.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-eYcurNiS.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-BcYhxO63.js";
15
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-B2F_VeAo.js";
15
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-B0YKqYtZ.js";
16
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
17
- import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Ci2iVuog.js";
17
+ import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DgUZySoq.js";
18
18
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CdWTbsew.js";
19
19
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-lJrveDS4.js";
20
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-BZBmcOKI.js";
20
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-BkaPpoKy.js";
21
21
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C45pTncO.js";
22
22
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BflWuTe4.js";
23
- import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-DOTl3Y2w.js";
23
+ import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-BcLhkpp8.js";
24
24
  import { i as createEkycManagerFromActor, n as EkycState, o as EkycActor, t as EkycManager } from "./ekycManager-BKVQazAb.js";
25
25
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-pM7ZPuMa.js";
26
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DihwheJ6.js";
27
- import { i as CaptureIdResponse } from "./types-Cpdum4vi.js";
26
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-C5a6Fw6W.js";
27
+ import { i as CaptureIdResponse } from "./types-BBHnkH6S.js";
28
28
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-VO1HEoUZ.js";
29
29
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DQq4GxBO.js";
30
30
  import { i as WatchlistForBusinessState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor } from "./watchlistForBusinessManager-l7ZERQcV.js";
31
31
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-CZ-qJ_Aa.js";
32
32
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-mFOHRhVd.js";
33
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Bh1asNJh.js";
34
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
33
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-D6tBmPDy.js";
34
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DflRx-_u.js";
35
35
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-pT6FiPE7.js";
36
36
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-daT_8fj_.js";
37
37
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-CENrvxpK.js";
@@ -40,7 +40,7 @@ import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n
40
40
  import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-C5b5WtcY.js";
41
41
  import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-DFnFVpP9.js";
42
42
  import { c as KybChecksState, d as createKybChecksManagerFromActor, f as KybChecksActor, o as KybChecksManager } from "./kybChecksManager-B7Di9auB.js";
43
- import "./types-DFP7eSle.js";
43
+ import "./types-Crg7oL-l.js";
44
44
  //#region src/modules/authentication/authenticationUploadService.d.ts
45
45
  type AuthenticationUploadResponse = {
46
46
  overallStatus: 'PASS' | 'FAIL';