@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
package/dist/home.esm.js CHANGED
@@ -1,5 +1,5 @@
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, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  //#region src/modules/home/homeStateMachine.ts
package/dist/http.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getApi, t as api } from "./api-CZpuJuZl.esm.js";
1
+ import { n as getApi, t as api } from "./api-DSZSaaWr.esm.js";
2
2
  export { api, getApi };
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-Bpo97EOh.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DflRx-_u.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,4 +1,4 @@
1
1
  import { n as isValidCPF, t as formatCPF } from "./idOcrCpfUtils-D5Gwskxu.esm.js";
2
- import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
3
- import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-im7VfJQi.esm.js";
2
+ import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-BNtBkAXC.esm.js";
3
+ import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-C-_bzBSX.esm.js";
4
4
  export { CPFFlowIds, MIN_AGE, OCR_FIELDS, createIdOcrManager, createIdOcrManagerFromActor, formatCPF, getOcrFields, idOcrStateMachine, isValidCPF };
@@ -2,10 +2,10 @@ import "./warmup-BNhIuURi.js";
2
2
  import "./xstate.cjs-D6Ur0X1F.js";
3
3
  import { t as Manager } from "./Manager-DufwKlav.js";
4
4
  import "./Actor-DqjOqDfU.js";
5
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
+ import { n as FacingMode, t as CameraStream } from "./camera-9yYDUOsO.js";
6
6
  import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
7
7
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
8
- import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-DRrh4P0A.js";
8
+ import { i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-DGXi_TXk.js";
9
9
  //#region src/modules/id-selfie-flow/types.d.ts
10
10
  /**
11
11
  * The capture steps an ID + Selfie flow session can run, in flow order. A
@@ -1,19 +1,19 @@
1
- import { t as ensureWasmPipelines } from "./setup-BRbhjHiU.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DdhAHHw4.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CJMohzTE.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-rDg1bAMs.esm.js";
4
+ import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-C23o7MqO.esm.js";
5
5
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
6
  import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
7
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
- import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-2NzWDbV8.esm.js";
8
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-WtuJ6QBK.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
10
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
11
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Cjesf5i9.esm.js";
12
- import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-exB6I9lV.esm.js";
13
- import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
14
- import { r as getFinishStatus } from "./flowCompletionService-BpeAbbXc.esm.js";
15
- import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-YwO_uP-b.esm.js";
16
- import { t as CameraCompositor } from "./CameraCompositor-ppyMYVoY.esm.js";
11
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BivjtJka.esm.js";
12
+ import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-BFCsusKB.esm.js";
13
+ import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
14
+ import { r as getFinishStatus } from "./flowCompletionService-E_6ChYsV.esm.js";
15
+ import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CYEHPKK6.esm.js";
16
+ import { t as CameraCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
17
17
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
18
18
  /** Default autocapture window for the selfie step. */
19
19
  const SELFIE_AUTOCAPTURE_MS = 1e4;
@@ -1,3 +1,3 @@
1
- import { t as idVerificationMachine } from "./idVerificationStateMachine-DeeugC00.esm.js";
2
- import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-PMGM4hXY.esm.js";
1
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-mozw0CIg.esm.js";
2
+ import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-CdvGdtg2.esm.js";
3
3
  export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
package/dist/id.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
2
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
3
- import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-Cqx2y_fC.js";
4
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
3
+ import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-DzAMWmRO.js";
4
+ import { t as CameraStream } from "./camera-9yYDUOsO.js";
5
5
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
6
- import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Cpdum4vi.js";
6
+ import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-BBHnkH6S.js";
7
7
  //#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
8
8
  /**
9
9
  * Fail reason → i18n key for the device-wallet error screen (same shape as
package/dist/id.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-DQ14d3GR.esm.js";
2
- import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-5-ReVgbB.esm.js";
3
- import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-exB6I9lV.esm.js";
1
+ import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine--CMATkG9.esm.js";
2
+ import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B_deOVCC.esm.js";
3
+ import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-BFCsusKB.esm.js";
4
4
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
5
5
  /**
6
6
  * Fail reason → i18n key for the device-wallet error screen (same shape as
@@ -1,6 +1,6 @@
1
1
  import { D as WASM_MODEL_FILES, P as resolveWasmSource, w as getBarcodeEnhanceModelUrl } from "./wasmWebClient-C3v3s_4H.esm.js";
2
2
  import { l as wasmRuntime, t as getResolvedModelSource } from "./warmup-9iKKNNuW.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-DdhAHHw4.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
4
4
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
5
5
  //#region ../infra/src/wasm/idCaptureWasmApi.ts
6
6
  var IdCaptureWasmApi = class {
@@ -1,19 +1,19 @@
1
- import { u as BrowserStorageProvider } from "./setup-BRbhjHiU.esm.js";
2
- import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
3
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
4
- import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-CJMohzTE.esm.js";
2
+ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
3
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
4
+ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
5
5
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
6
6
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
7
7
  import { i as assign, s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
8
8
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
9
9
  import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
10
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-D_6e8W62.esm.js";
10
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BNttW5Sm.esm.js";
11
11
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
12
- import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DpccEnzE.esm.js";
13
- import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
14
- import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-DQ14d3GR.esm.js";
15
- import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-exB6I9lV.esm.js";
16
- import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-lXP41N7b.esm.js";
12
+ import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-6Mdq1hDk.esm.js";
13
+ import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
14
+ import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine--CMATkG9.esm.js";
15
+ import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BFCsusKB.esm.js";
16
+ import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
17
17
  //#region src/modules/id/digitalUpload/instrumentation.ts
18
18
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
19
19
  function isHoldingState(value) {
@@ -899,9 +899,7 @@ var BrowserLocaleProvider = class {
899
899
  * the backend cannot place the IP.
900
900
  */
901
901
  async function fetchIpCountry(signal) {
902
- const res = await api.get(endpoints.startInfo, { signal });
903
- if (!res.ok) throw new Error(`GET ${endpoints.startInfo} failed: ${res.status} ${res.statusText}`);
904
- return res.data?.ipIsoCode ?? void 0;
902
+ return (await api.get(endpoints.startInfo, { signal })).data?.ipIsoCode ?? void 0;
905
903
  }
906
904
  //#endregion
907
905
  //#region src/modules/id/idCaptureActor.ts
@@ -1133,7 +1131,7 @@ function createIdCaptureOnlyManager(options) {
1133
1131
  * (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
1134
1132
  */
1135
1133
  function createIdCaptureManager(options) {
1136
- import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t).catch(() => void 0);
1134
+ import("./backCameraStream-6qVHvj76.esm.js").then((n) => n.t).catch(() => void 0);
1137
1135
  if (hasOnCaptureCallback(options.config)) return createIdCaptureOnlyManager({
1138
1136
  config: pickIdCaptureOnlyConfig(options.config),
1139
1137
  dependencies: options.dependencies
@@ -5,14 +5,14 @@ import "./Actor-DqjOqDfU.js";
5
5
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
6
6
  import "./index-DHuAkTe0.js";
7
7
  import "./createFaceAvatar-BimBTONm.js";
8
- import { a as RegulationTypes } from "./types-Ddc4Tr_f.js";
9
- import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-BRn0wz8v.js";
8
+ import { a as RegulationTypes } from "./types-B2DGXHe6.js";
9
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-XcOtT1TP.js";
10
10
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
11
11
  import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
12
- import { n as DeepsightService } from "./StreamCanvasCapture-ixfy84ys.js";
13
- import { t as CameraStream } from "./camera-9wWD-pwg.js";
12
+ import { n as DeepsightService } from "./StreamCanvasCapture-BnBfA6fb.js";
13
+ import { t as CameraStream } from "./camera-9yYDUOsO.js";
14
14
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
15
- import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Cpdum4vi.js";
15
+ import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-BBHnkH6S.js";
16
16
  //#region src/internal/http/endpoints.d.ts
17
17
  /**
18
18
  * Backend `CaptureType` for the `captureType` query param on `add/front-id`,
@@ -66,6 +66,13 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
66
66
  getCheck(): string;
67
67
  getPipelineState(): string;
68
68
  estimatePerformance(): string;
69
+ /**
70
+ * @deprecated Always returns `false` (since SDK 2.3.0); scheduled for removal
71
+ * in 3.0.0. The camera-label check runs natively in the pre-capture checks of
72
+ * the protected camera step (`ICameraCycleCapability.startCameraCycle`), and
73
+ * the signed capture metadata carries its verdict. That native check is
74
+ * authoritative; nothing is decided from this return value.
75
+ */
69
76
  isVirtualCamera(label: string | null): boolean;
70
77
  /**
71
78
  * @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
@@ -1,13 +1,13 @@
1
- import { t as ensureWasmPipelines } from "./setup-BRbhjHiU.esm.js";
2
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
- import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DG016L6E.esm.js";
4
- import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CJMohzTE.esm.js";
2
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
3
+ import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-BhRKAG--.esm.js";
4
+ import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
5
5
  import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
6
- import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
7
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Cjesf5i9.esm.js";
6
+ import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
7
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BivjtJka.esm.js";
8
8
  //#region src/modules/id/idCameraStream.ts
9
9
  async function getIdCameraStream(deviceId) {
10
- return (await import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
10
+ return (await import("./backCameraStream-6qVHvj76.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
11
11
  }
12
12
  //#endregion
13
13
  //#region src/modules/id/idCaptureExperiments.ts
@@ -337,9 +337,7 @@ function validateUploadResponse(response, sessionState) {
337
337
  async function getExtraImages(params) {
338
338
  const extraImages = params.ageAssurance ? [params.type === "back" ? "croppedBackID" : "croppedFrontID"] : [];
339
339
  try {
340
- const res = await api.post(endpoints.getImages, { images: ["croppedIDFace", ...extraImages] }, { signal: params.signal });
341
- if (!res.ok) throw new Error(`Failed to get extra images: ${res.status}`);
342
- return res.data ?? {
340
+ return (await api.post(endpoints.getImages, { images: ["croppedIDFace", ...extraImages] }, { signal: params.signal })).data ?? {
343
341
  croppedIDFace: "",
344
342
  croppedFrontID: "",
345
343
  croppedBackID: ""
@@ -376,13 +374,11 @@ async function uploadIdImage(params) {
376
374
  if (sharpness !== void 0) queryParams.sharpness = getRealQualityValue(sharpness);
377
375
  if (extractIdFace === false && type === "front") queryParams.extractIdFace = false;
378
376
  try {
379
- const res = await api.post(endpoint, body, {
377
+ const response = (await api.post(endpoint, body, {
380
378
  signal,
381
379
  query: queryParams,
382
380
  onUploadProgress: onProgress
383
- });
384
- if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
385
- const response = res.data;
381
+ })).data;
386
382
  const extraImages = await getExtraImages({
387
383
  type,
388
384
  ageAssurance,
@@ -422,7 +418,7 @@ async function startRecordingSession(params) {
422
418
  const multipartSession = multipartIdSessions.get(params.existing);
423
419
  if (multipartSession?.needsVideoSourceReplacement) {
424
420
  const recordingSource = params.stream.clone();
425
- recordingSource.getAudioTracks().forEach((track) => track.stop());
421
+ multipartSession.compositor.switchAudio(recordingSource);
426
422
  multipartSession.compositor.switchVideo(recordingSource);
427
423
  multipartSession.needsVideoSourceReplacement = false;
428
424
  multipartSession.recordingSource = recordingSource;
@@ -434,9 +430,9 @@ async function startRecordingSession(params) {
434
430
  return params.existing;
435
431
  }
436
432
  const [compositorModule, recorderModule, serviceModule] = await Promise.all([
437
- import("./CameraCompositor-ppyMYVoY.esm.js").then((n) => n.n),
438
- import("./WorkerEncoderRecordingProvider-CsDED9UU.esm.js").then((n) => n.n),
439
- import("./multipartRecordingService-WgK8ieRI.esm.js").then((n) => n.n)
433
+ import("./CameraCompositor-C7N1N61V.esm.js").then((n) => n.n),
434
+ import("./WorkerEncoderRecordingProvider-BO7urYwT.esm.js").then((n) => n.n),
435
+ import("./multipartRecordingService-CEtaAPz4.esm.js").then((n) => n.n)
440
436
  ]);
441
437
  const recordingSource = params.stream.clone();
442
438
  const compositor = compositorModule.createRecordingCompositor();
@@ -501,6 +497,7 @@ function releaseCameraClone(multipartSession, options) {
501
497
  for (const track of tracks) try {
502
498
  track.stop();
503
499
  } catch {}
500
+ if (options.keepAudio) multipartSession.compositor.releaseAudio();
504
501
  }
505
502
  /**
506
503
  * Completes an ID recording: drains the multipart upload and releases the
@@ -581,15 +578,10 @@ async function addBarcode(params) {
581
578
  body.pdf417CorrectedErrorsCount = metrics.correctedErrorsCount;
582
579
  body.ecLevel = metrics.ecLevel;
583
580
  }
584
- const res = await api.post(endpoints.addBarcode, body, {
581
+ return (await api.post(endpoints.addBarcode, body, {
585
582
  query: { processId },
586
583
  signal
587
- });
588
- if (!res.ok) throw Object.assign(/* @__PURE__ */ new Error(`POST ${endpoints.addBarcode} failed: ${res.status} ${res.statusText}`), {
589
- status: res.status,
590
- data: res.data
591
- });
592
- return res.data;
584
+ })).data;
593
585
  }
594
586
  //#endregion
595
587
  export { OPTIMIZING_WATCHDOG_MARGIN_MS as C, CAPTURE_OPTIMIZING as S, validateUploadResponse as _, finalizeRecordingSession as a, resolveCountdownStepMs as b, isSuspendableRecordingSession as c, processId as d, resumeRecordingAfterPause as f, uploadIdImage as g, stopStream as h, disposeRecordingSession as i, pauseRecordingForAttempt as l, stopRecording as m, addBarcode as n, getRealQualityValue as o, startRecordingSession as p, barcodeToBase64 as r, initializeIdCapture as s, ID_QUALITY_BACKEND_VALIDATION_GATE as t, prepareRecordingForCameraRetry as u, ID_ERROR_CODES as v, getIdCameraStream as w, resolveIdCaptureThresholds as x, resolveCaptureOptimizingTreatment as y };
@@ -1,35 +1,35 @@
1
1
  import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-BRbhjHiU.esm.js";
3
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DdhAHHw4.esm.js";
4
- import { n as eventModuleNames, v as addEvent } from "./types-DYYMdAGv.esm.js";
5
- import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
6
- import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
7
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-DhW2O8mB.esm.js";
8
- import { n as getDisableIpify } from "./sessionInitializer-k-hKIBg8.esm.js";
2
+ import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-CJMohzTE.esm.js";
3
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-D5RMElzw.esm.js";
4
+ import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
5
+ import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
6
+ import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
7
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-D9D2IdEj.esm.js";
8
+ import { n as getDisableIpify } from "./sessionInitializer-BUUpdBy6.esm.js";
9
9
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
10
- import { s as exposeExperimentOnce } from "./feature-management-DG016L6E.esm.js";
11
- import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
12
- import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
13
- import "./session-C7x_iJ-p.esm.js";
10
+ import { s as exposeExperimentOnce } from "./feature-management-BhRKAG--.esm.js";
11
+ import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
12
+ import { d as isSamsungDevice, i as isIOS, l as isMacOsSafari, o as isIPad, s as isIPhone14OrHigher, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
13
+ import "./session-OCc4b-Iv.esm.js";
14
14
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
15
15
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
16
16
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
17
17
  import { r as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-B2wagB5v.esm.js";
18
- import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
19
- import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-DpccEnzE.esm.js";
20
- import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-enVPfRsQ.esm.js";
18
+ import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
19
+ import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-6Mdq1hDk.esm.js";
20
+ import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-btFONYx6.esm.js";
21
21
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
22
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D-4_VU7-.esm.js";
23
- import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
22
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BJIaHxvI.esm.js";
23
+ import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
24
24
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
25
25
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
26
26
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
27
27
  import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
28
28
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
29
- import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
30
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Cjesf5i9.esm.js";
31
- import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-exB6I9lV.esm.js";
32
- import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
29
+ import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
30
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BivjtJka.esm.js";
31
+ import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-BFCsusKB.esm.js";
32
+ import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
33
33
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
34
34
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
35
35
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -69,15 +69,13 @@ async function uploadDigitalIdFile(params) {
69
69
  const { file, signal, onProgress, extractIdFace } = params;
70
70
  const query = { idType: "DigitalId" };
71
71
  if (extractIdFace === false) query.extractIdFace = false;
72
- const response = await api.post(DIGITAL_ID_UPLOAD_PATH, file, {
73
- query,
74
- headers: { "Content-Type": file.type || "application/pdf" },
75
- onUploadProgress: onProgress,
76
- signal
77
- });
78
- if (!response.ok) throw new Error(`POST ${DIGITAL_ID_UPLOAD_PATH} failed: ${response.status}`);
79
72
  return {
80
- ...response.data,
73
+ ...(await api.post(DIGITAL_ID_UPLOAD_PATH, file, {
74
+ query,
75
+ headers: { "Content-Type": file.type || "application/pdf" },
76
+ onUploadProgress: onProgress,
77
+ signal
78
+ })).data,
81
79
  uploadDurationMs: 0
82
80
  };
83
81
  }
@@ -356,12 +354,10 @@ function toGoogleRequestOptions(payload) {
356
354
  */
357
355
  async function requestWalletData(platform, signal) {
358
356
  if (platform === "ios") {
359
- const res = await api.post(endpoints.deviceWalletAppleRequest, {}, {
357
+ const data = (await api.post(endpoints.deviceWalletAppleRequest, {}, {
360
358
  headers: API_VERSION_HEADERS,
361
359
  signal
362
- });
363
- if (!res.ok) throw new Error(`POST ${endpoints.deviceWalletAppleRequest} failed: ${res.status}`);
364
- const data = res.data;
360
+ })).data;
365
361
  return { requests: [{
366
362
  protocol: "org-iso-mdoc",
367
363
  data: {
@@ -370,13 +366,11 @@ async function requestWalletData(platform, signal) {
370
366
  }
371
367
  }] };
372
368
  }
373
- const res = await api.get(endpoints.deviceWalletGoogleRequest, {
369
+ return toGoogleRequestOptions((await api.get(endpoints.deviceWalletGoogleRequest, {
374
370
  headers: API_VERSION_HEADERS,
375
371
  query: { signedSupported: isGoogleWalletSignedRequestsEnabled() },
376
372
  signal
377
- });
378
- if (!res.ok) throw new Error(`GET ${endpoints.deviceWalletGoogleRequest} failed: ${res.status}`);
379
- return toGoogleRequestOptions(res.data);
373
+ })).data);
380
374
  }
381
375
  /**
382
376
  * Forwards the opaque wallet response for backend decryption. The body key
@@ -386,12 +380,10 @@ async function requestWalletData(platform, signal) {
386
380
  async function decryptWalletResponse(platform, walletResponse, signal) {
387
381
  const url = platform === "ios" ? endpoints.deviceWalletAppleDecrypt : endpoints.deviceWalletGoogleDecrypt;
388
382
  const body = platform === "ios" ? { deviceResponse: walletResponse } : { identityToken: walletResponse };
389
- const res = await api.post(url, body, {
383
+ return (await api.post(url, body, {
390
384
  headers: API_VERSION_HEADERS,
391
385
  signal
392
- });
393
- if (!res.ok) throw new Error(`POST ${url} failed: ${res.status}`);
394
- return res.data;
386
+ })).data;
395
387
  }
396
388
  const defaultDeviceWalletServices = {
397
389
  requestWalletData,
@@ -2046,7 +2038,7 @@ fromPromise(async ({ input }) => {
2046
2038
  });
2047
2039
  fromPromise(async ({ input }) => {
2048
2040
  if (!input.dependencies) return;
2049
- const { loadDeepsightSession } = await import("./deepsightLoader-CEY2mSPM.esm.js");
2041
+ const { loadDeepsightSession } = await import("./deepsightLoader-ClCQCdeL.esm.js");
2050
2042
  return loadDeepsightSession({
2051
2043
  ds: input.ds,
2052
2044
  storage: input.dependencies.storage,
@@ -2489,7 +2481,7 @@ function cleanup(service) {
2489
2481
  service.cleanup();
2490
2482
  } catch {}
2491
2483
  }
2492
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-CEY2mSPM.esm.js")).loadDeepsightSession(input)) {
2484
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-ClCQCdeL.esm.js")).loadDeepsightSession(input)) {
2493
2485
  let disposed = false;
2494
2486
  let preparation;
2495
2487
  let service;
@@ -3409,6 +3401,14 @@ function createProtectedIdCallbackSession(input) {
3409
3401
  }
3410
3402
  };
3411
3403
  }
3404
+ /**
3405
+ * Merged session recordings carry sound, as in SDK 1. Only when the capture
3406
+ * uploads an ID recording. The permission step reads it too, so camera and mic
3407
+ * are asked in one prompt.
3408
+ */
3409
+ function requestsIdSessionAudio(config) {
3410
+ return !hasOnCaptureCallback(config) && config.enableIdRecording === true && config.mergeSessionRecordings === true;
3411
+ }
3412
3412
  function createProtectedIdAttemptInput(input) {
3413
3413
  const { context, controller } = input;
3414
3414
  const provider = controller.getProvider();
@@ -3451,6 +3451,7 @@ function createProtectedIdAttemptInput(input) {
3451
3451
  capturePresentationFrame: () => controller.takeAutoCaptureFrame(),
3452
3452
  cycle: cameraCycleProvider,
3453
3453
  cycleOwnership: controller.getCycleOwnership(),
3454
+ recordAudio: requestsIdSessionAudio(context.config),
3454
3455
  recorder: createProtectedIdRecorderHooks({
3455
3456
  config: context.config,
3456
3457
  currentMode: context.currentMode,
@@ -3664,9 +3665,7 @@ function withQuery(path, params) {
3664
3665
  /** GET the provider catalog. Ordering is applied FE-side by the module. */
3665
3666
  async function listProviders(params, signal) {
3666
3667
  const url = withQuery(endpoints.digitalIdProviders, params);
3667
- const res = await api.get(url, { signal });
3668
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
3669
- return res.data ?? [];
3668
+ return (await api.get(url, { signal })).data ?? [];
3670
3669
  }
3671
3670
  /**
3672
3671
  * Append the onboarding `uuid` to `returnUrl` when absent, so the return leg can
@@ -3699,12 +3698,10 @@ async function ensureReturnUrlUuid(returnUrl, signal) {
3699
3698
  */
3700
3699
  async function createVerification(params, signal) {
3701
3700
  const redirectUrl = await ensureReturnUrlUuid(params.redirectUrl, signal);
3702
- const res = await api.post(endpoints.digitalIdVerifications, {
3701
+ return (await api.post(endpoints.digitalIdVerifications, {
3703
3702
  ...params,
3704
3703
  redirectUrl
3705
- }, { signal });
3706
- if (!res.ok) throw new Error(`POST ${endpoints.digitalIdVerifications} failed: ${res.status} ${res.statusText}`);
3707
- return res.data;
3704
+ }, { signal })).data;
3708
3705
  }
3709
3706
  /**
3710
3707
  * Submit the provider's return params. The contract wants them wrapped as a
@@ -3717,9 +3714,7 @@ async function submitWalletResponse(verificationId, params, signal) {
3717
3714
  resultsAccessKey: params.resultsAccessKey,
3718
3715
  success: String(params.success)
3719
3716
  }) };
3720
- const res = await api.post(url, body, { signal });
3721
- if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
3722
- return res.data;
3717
+ return (await api.post(url, body, { signal })).data;
3723
3718
  }
3724
3719
  /**
3725
3720
  * Poll fallback — used when the user does not return or results are delayed.
@@ -3732,7 +3727,6 @@ async function submitWalletResponse(verificationId, params, signal) {
3732
3727
  async function getVerificationStatus(verificationId, signal) {
3733
3728
  const url = `${endpoints.digitalIdVerifications}/${verificationId}/status`;
3734
3729
  const res = await api.get(url, { signal });
3735
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
3736
3730
  return {
3737
3731
  verification: res.data,
3738
3732
  retryAfterMs: parseRetryAfterMs(res.headers)
@@ -3744,9 +3738,7 @@ async function getVerificationStatus(verificationId, signal) {
3744
3738
  */
3745
3739
  async function refreshVerification(verificationId, signal) {
3746
3740
  const url = `${endpoints.digitalIdVerifications}/${verificationId}/refresh`;
3747
- const res = await api.post(url, {}, { signal });
3748
- if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
3749
- return res.data;
3741
+ return (await api.post(url, {}, { signal })).data;
3750
3742
  }
3751
3743
  //#endregion
3752
3744
  //#region src/modules/digital-id-redirect/digitalIdRedirectStorage.ts
@@ -5144,6 +5136,7 @@ const idCaptureMachine = setup({
5144
5136
  input: ({ context, self }) => ({
5145
5137
  permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
5146
5138
  requestMotionPermission: context.config.ds === true,
5139
+ requestAudio: requestsIdSessionAudio(context.config),
5147
5140
  acceptStream: (value) => getIdProtectedCaptureController(self).storePreAcquiredStream(value)
5148
5141
  }),
5149
5142
  onDone: [
@@ -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 idOcrStateMachine } from "./idOcrStateMachine-B832arAl.esm.js";
5
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-BNtBkAXC.esm.js";
6
6
  //#region src/modules/id-ocr/idOcrActor.ts
7
7
  function createIdOcrActor(options) {
8
8
  return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
110
110
  type: "shouldProceedWithoutSubmitToSecondId";
111
111
  params: unknown;
112
112
  };
113
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
+ }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
114
114
  readonly id: "idOcr";
115
115
  readonly initial: "idle";
116
116
  readonly context: ({ input }: {
@@ -1,7 +1,8 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
+ import { t as api, u as endpoints } from "./api-DSZSaaWr.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 { n as calendarDateError, t as INVALID_DATE_ERROR_KEY } from "./calendarDate-DcqGuEht.esm.js";
5
6
  import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
6
7
  import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
7
8
  //#region src/modules/id-ocr/idOcrUtils.ts
@@ -61,16 +62,12 @@ const mapUpdateOcrDataForApi = (params) => {
61
62
  /** Fetch ID OCR data. Throws on failure. */
62
63
  async function getOcrData(signal, isSecondId) {
63
64
  const url = isSecondId ? endpoints.ocrDataSecondId : endpoints.ocrData;
64
- const res = await api.get(url, { signal });
65
- if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
66
- return res.data;
65
+ return (await api.get(url, { signal })).data;
67
66
  }
68
67
  /** Updates ID OCR data if OCR data is editable. Throws on failure. */
69
68
  async function updateOcrData(params, signal, isSecondId) {
70
69
  const url = isSecondId ? endpoints.updateEditableOcrDataSecondId : endpoints.updateEditableOcrData;
71
- const res = await api.put(url, mapUpdateOcrDataForApi(params), { signal });
72
- if (!res.ok) throw new Error(`PUT failed: ${url} failed: ${res.status} ${res.statusText}`);
73
- return res.data;
70
+ return (await api.put(url, mapUpdateOcrDataForApi(params), { signal })).data;
74
71
  }
75
72
  //#endregion
76
73
  //#region src/modules/id-ocr/idOcrConsts.ts
@@ -173,6 +170,12 @@ const createValidators = () => {
173
170
  };
174
171
  const normalizeFieldValue = (value) => typeof value === "string" ? value.trim() : String(value ?? "");
175
172
  const validateFieldValue = (value, field, validators) => {
173
+ if (field.type === "date" && value) {
174
+ const hasTime = value.includes("T");
175
+ const dateError = calendarDateError(hasTime ? value.slice(0, 10) : value);
176
+ if (dateError) return dateError;
177
+ if (hasTime && !Number.isFinite(dateFormattingInstance.parseIsoDateStringToEpochMs(value))) return INVALID_DATE_ERROR_KEY;
178
+ }
176
179
  if (!field.validation) return void 0;
177
180
  for (const rule of field.validation) {
178
181
  const error = validators[rule.type](value, rule);