@incodetech/core 2.4.0 → 2.4.1-agentic

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 (228) hide show
  1. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
  2. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  3. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  4. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  5. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  6. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  7. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
  8. package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
  9. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  10. package/dist/ae-signature.esm.js +1 -1
  11. package/dist/antifraud.esm.js +2 -2
  12. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
  13. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
  14. package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
  15. package/dist/{apiError-DPwFas2f.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
  16. package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
  20. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
  21. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
  22. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
  23. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  24. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  25. package/dist/camera.esm.js +1 -1
  26. package/dist/certificate-issuance.esm.js +2 -2
  27. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
  28. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
  29. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  30. package/dist/connectivity-HSl0diCx.esm.js +133 -0
  31. package/dist/consent.d.ts +1 -1
  32. package/dist/consent.esm.js +2 -2
  33. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
  34. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
  35. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
  36. package/dist/cross-document-data-match.esm.js +1 -1
  37. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
  38. package/dist/curp-validation.d.ts +1 -1
  39. package/dist/curp-validation.esm.js +2 -2
  40. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
  41. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
  42. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
  43. package/dist/custom-fields.esm.js +1 -1
  44. package/dist/custom-watchlist.esm.js +2 -2
  45. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
  46. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
  47. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
  48. package/dist/{deepsightLoader-DeNvGU3c.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
  49. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
  50. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
  51. package/dist/device.esm.js +2 -2
  52. package/dist/document-capture.d.ts +2 -2
  53. package/dist/document-capture.esm.js +2 -2
  54. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
  55. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
  56. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
  57. package/dist/dynamic-forms.d.ts +2 -2
  58. package/dist/dynamic-forms.esm.js +2 -2
  59. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  60. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
  61. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
  62. package/dist/ekyb.d.ts +4 -4
  63. package/dist/ekyb.esm.js +3 -3
  64. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
  65. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
  66. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
  67. package/dist/ekyc.d.ts +3 -3
  68. package/dist/ekyc.esm.js +3 -3
  69. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
  70. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
  71. package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
  72. package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
  73. package/dist/electronic-signature.esm.js +1 -1
  74. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
  75. package/dist/email.esm.js +2 -2
  76. package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
  77. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
  78. package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
  79. package/dist/events.esm.js +1 -1
  80. package/dist/extensibility.d.ts +34 -20
  81. package/dist/extensibility.esm.js +34 -34
  82. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  83. package/dist/face-match.d.ts +1 -1
  84. package/dist/face-match.esm.js +2 -2
  85. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
  86. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
  87. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
  88. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
  89. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  90. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
  91. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
  92. package/dist/feature-management.esm.js +1 -1
  93. package/dist/field-comparison.esm.js +1 -1
  94. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
  95. package/dist/fiscal-qr.esm.js +1 -1
  96. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
  97. package/dist/flow-events.d.ts +1 -1
  98. package/dist/flow.d.ts +10 -10
  99. package/dist/flow.esm.js +8 -11
  100. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
  101. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
  102. package/dist/geolocation.d.ts +1 -1
  103. package/dist/geolocation.esm.js +2 -2
  104. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  105. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
  106. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
  107. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  108. package/dist/government-validation.esm.js +2 -2
  109. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
  110. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
  111. package/dist/home.d.ts +1 -1
  112. package/dist/home.esm.js +1 -1
  113. package/dist/http.esm.js +1 -1
  114. package/dist/id-ocr.esm.js +2 -2
  115. package/dist/id-selfie-flow.d.ts +1 -1
  116. package/dist/id-selfie-flow.esm.js +9 -9
  117. package/dist/id-verification.esm.js +2 -2
  118. package/dist/id.d.ts +3 -16
  119. package/dist/id.esm.js +3 -3
  120. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
  121. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
  122. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
  123. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
  124. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
  125. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
  126. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
  127. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
  128. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
  129. package/dist/identity-reuse.esm.js +2 -2
  130. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
  131. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
  132. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  133. package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
  134. package/dist/index.d.ts +1 -1
  135. package/dist/index.esm.js +1 -1
  136. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
  137. package/dist/mandatory-consent.d.ts +2 -2
  138. package/dist/mandatory-consent.esm.js +2 -2
  139. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
  140. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +11 -4
  141. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
  142. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
  143. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  144. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
  145. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
  146. package/dist/phone-number.d.ts +7 -1
  147. package/dist/phone-number.esm.js +15 -2
  148. package/dist/phone.d.ts +1 -1
  149. package/dist/phone.esm.js +2 -2
  150. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  151. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
  152. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
  153. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  154. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  155. package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
  156. package/dist/qe-signature.esm.js +1 -1
  157. package/dist/redirect-to-mobile.d.ts +2 -2
  158. package/dist/redirect-to-mobile.esm.js +2 -2
  159. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
  160. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  161. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
  162. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
  163. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
  164. package/dist/selfie.d.ts +4 -4
  165. package/dist/selfie.esm.js +10 -10
  166. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
  167. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
  168. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
  169. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
  170. package/dist/{session-CpwfoVdH.esm.js → session-DAaAewMX.esm.js} +77 -9
  171. package/dist/session.d.ts +96 -10
  172. package/dist/session.esm.js +7 -6
  173. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
  174. package/dist/{setup-BInNAvQw.esm.js → setup-CDAKwTr7.esm.js} +32 -19
  175. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  176. package/dist/signature.esm.js +2 -2
  177. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
  178. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
  179. package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
  180. package/dist/stats.esm.js +1 -1
  181. package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
  182. package/dist/tri.d.ts +1 -1
  183. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  184. package/dist/tri.esm.js +1 -1
  185. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
  186. package/dist/trust-graph.esm.js +1 -1
  187. package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
  188. package/dist/types-B2FK_wYb.d.ts +249 -0
  189. package/dist/types-B9C8W01q.d.ts +34 -0
  190. package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
  191. package/dist/types-D9r3zRfY.d.ts +6 -0
  192. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  193. package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
  194. package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
  195. package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
  196. package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
  197. package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
  198. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  199. package/dist/video-selfie.d.ts +8 -8
  200. package/dist/video-selfie.esm.js +95 -22
  201. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
  202. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
  203. package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
  204. package/dist/wasm.d.ts +2 -2
  205. package/dist/wasm.esm.js +3 -3
  206. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
  207. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  208. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
  209. package/dist/watchlist-for-business.d.ts +2 -1
  210. package/dist/watchlist-for-business.esm.js +2 -2
  211. package/dist/watchlist.esm.js +2 -2
  212. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
  213. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  214. package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
  215. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
  216. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
  217. package/dist/workflow.d.ts +5 -2
  218. package/dist/workflow.esm.js +57 -47
  219. package/package.json +2 -1
  220. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  221. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  222. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  223. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  224. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  225. package/dist/types-BvLo3U4u.d.ts +0 -134
  226. package/dist/types-zOgZqMni.d.ts +0 -6
  227. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  228. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
- import { r as getWasmStatus } from "./warmup-BElYWRh7.esm.js";
2
- import { r as getToken, t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
3
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BTjYgE-V.esm.js";
4
- import { E as updateFeatureManagementUser } from "./feature-management-B5rR10uS.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-DPwFas2f.esm.js";
6
- import "./session-CpwfoVdH.esm.js";
7
- import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
1
+ import { r as getWasmStatus } from "./warmup-BkfxQZsC.esm.js";
2
+ import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
3
+ import { d as whenSessionFingerprintSettled, f as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CWFT4dfw.esm.js";
4
+ import { E as updateFeatureManagementUser } from "./feature-management-DjAG5lsJ.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-CfuIvnUy.esm.js";
6
+ import "./session-DAaAewMX.esm.js";
7
+ import { c as toEkycConfig } from "./ekycUtils-BFncpC4F.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
10
10
  if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
@@ -75,7 +75,6 @@ const FIELD_NAME_MAPPING = {
75
75
  "postalCode-user_input": "postalCode",
76
76
  "taxId-user_input": "taxId"
77
77
  };
78
- const COUNTRIES_WITH_CNPJ_VALIDATION = ["BR"];
79
78
  const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
80
79
  const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
81
80
  "BR",
@@ -95,47 +94,6 @@ const UBO_FIELD_LABELS = {
95
94
  name: "ekyb.uboName",
96
95
  surname: "ekyb.uboSurname"
97
96
  };
98
- const INVALID_CNPJ_PATTERNS = [
99
- "00000000000000",
100
- "11111111111111",
101
- "22222222222222",
102
- "33333333333333",
103
- "44444444444444",
104
- "55555555555555",
105
- "66666666666666",
106
- "77777777777777",
107
- "88888888888888",
108
- "99999999999999"
109
- ];
110
- const CNPJ_FIRST_DIGIT_FACTORS = [
111
- 5,
112
- 4,
113
- 3,
114
- 2,
115
- 9,
116
- 8,
117
- 7,
118
- 6,
119
- 5,
120
- 4,
121
- 3,
122
- 2
123
- ];
124
- const CNPJ_SECOND_DIGIT_FACTORS = [
125
- 6,
126
- 5,
127
- 4,
128
- 3,
129
- 2,
130
- 9,
131
- 8,
132
- 7,
133
- 6,
134
- 5,
135
- 4,
136
- 3,
137
- 2
138
- ];
139
97
  //#endregion
140
98
  //#region src/modules/ekyb/ekybUtils.ts
141
99
  /**
@@ -685,4 +643,4 @@ async function resolveDashboardModuleConfig(options) {
685
643
  return flowConfig;
686
644
  }
687
645
  //#endregion
688
- export { isSupportedCountry as A, COUNTRIES_WITH_CNPJ_VALIDATION as C, INVALID_CNPJ_PATTERNS as D, FIELD_ORDER as E, SUPPORTED_COUNTRIES as O, CNPJ_SECOND_DIGIT_FACTORS as S, FIELD_NAME_MAPPING as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, mergeDashboardConfig as j, UBO_FIELD_LABELS as k, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, DEV_ONLY_COUNTRIES as w, CNPJ_FIRST_DIGIT_FACTORS as x, ADDRESS_FIELDS as y };
646
+ export { FIELD_ORDER as C, mergeDashboardConfig as D, isSupportedCountry as E, FIELD_NAME_MAPPING as S, UBO_FIELD_LABELS as T, sortModulesByOrder as _, resolveDashboardModuleConfig as a, ALL_COUNTRIES as b, getRequiredWasmPipelines as c, facingModeForStep as d, resolveVideoSelfieSteps as f, requiresAddressValidation as g, isFieldOptional as h, resetDashboardFlowCache as i, normalizeFlowModules as l, hasAtLeastOneAddressField as m, getFlow as n, enrichFlowModuleConfig as o, videoSelfieWasmPipelines as p, preloadDashboardFlow as r, getNextRequiredWasmPipelines as s, completeDeferredActivation as t, resolveFlowModuleConfig as u, toEkybConfig as v, SUPPORTED_COUNTRIES as w, DEV_ONLY_COUNTRIES as x, ADDRESS_FIELDS as y };
@@ -1,2 +1,2 @@
1
- import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-Dn24g1fl.js";
1
+ import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-6e1i9UIR.js";
2
2
  export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-DnONzWL5.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-eWy_G4Os.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DLbvZwUB.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,15 +1,7 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
5
- type GeolocationCoords = {
6
- latitude: number;
7
- longitude: number;
8
- };
9
- type IGeolocationCapability = {
10
- getCurrentPosition(): Promise<GeolocationCoords>;
11
- };
12
- //#endregion
4
+ import { n as IGeolocationCapability } from "./IGeolocationCapability-r49Qo7rR.js";
13
5
  //#region src/modules/geolocation/types.d.ts
14
6
  /**
15
7
  * Configuration options for the Geolocation module.
@@ -104,6 +96,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
104
96
  params: NonReducibleUnknown;
105
97
  };
106
98
  }>, Values<{
99
+ isOutOfAttempts: {
100
+ type: "isOutOfAttempts";
101
+ params: unknown;
102
+ };
107
103
  canSkip: {
108
104
  type: "canSkip";
109
105
  params: unknown;
@@ -120,10 +116,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
120
116
  type: "isPermissionDenied";
121
117
  params: unknown;
122
118
  };
123
- }>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired" | "noNetwork", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
119
+ }>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
124
120
  readonly id: "geolocation";
125
121
  readonly initial: "idle";
126
- readonly context: ({ input }: {
122
+ readonly context: ({ input, self }: {
127
123
  spawn: {
128
124
  <TSrc extends "requestPosition" | "submitPosition">(logic: TSrc, ...[options]: ({
129
125
  src: "requestPosition";
@@ -219,9 +215,12 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
219
215
  readonly states: {
220
216
  readonly idle: {
221
217
  readonly on: {
222
- readonly REQUEST: {
218
+ readonly REQUEST: readonly [{
219
+ readonly target: "error";
220
+ readonly guard: "isOutOfAttempts";
221
+ }, {
223
222
  readonly target: "requestingLocation";
224
- };
223
+ }];
225
224
  };
226
225
  };
227
226
  readonly requestingLocation: {
@@ -326,7 +325,7 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
326
325
  readonly actions: "setLocation";
327
326
  };
328
327
  readonly onError: readonly [{
329
- readonly target: "noNetwork";
328
+ readonly target: "error";
330
329
  readonly guard: "isNetworkError";
331
330
  }, {
332
331
  readonly target: "error";
@@ -334,7 +333,6 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
334
333
  }];
335
334
  };
336
335
  };
337
- readonly noNetwork: {};
338
336
  readonly error: {
339
337
  readonly on: {
340
338
  readonly RETRY: {
@@ -409,8 +407,8 @@ type GeolocationErrorState = {
409
407
  canSkip: boolean;
410
408
  };
411
409
  /**
412
- * A backend request failed due to lost connectivity (device offline/network
413
- * error) = the user refreshes once the connection returns.
410
+ * @deprecated Never emitted. A connectivity failure now goes to `error`
411
+ * without using an attempt, and the session boundary shows the offline screen.
414
412
  */
415
413
  type GeolocationNoNetworkState = {
416
414
  status: 'noNetwork';
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-eWy_G4Os.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -38,10 +38,10 @@ function createGeolocationActor(options) {
38
38
  * a transient failure (position unavailable / timeout, e.g. the browser's
39
39
  * `kCLErrorLocationUnknown`) routes to the attempt-limited `error` state so the
40
40
  * user can retry. A backend submit failure (`submitPosition` `onError`) splits
41
- * by cause: a connectivity error routes to `noNetwork`
42
- * (`Geolocation.error.noNetwork`), while a server-side rejection routes to the
43
- * same attempt-limited location-unavailable screen. Both rendered error
44
- * surfaces have their own Figma screen names.
41
+ * by cause: a server-side rejection routes to the same attempt-limited
42
+ * location-unavailable screen, while a connectivity error routes there without
43
+ * using an attempt (the session boundary shows the offline screen). Both
44
+ * rendered error surfaces have their own Figma screen names.
45
45
  */
46
46
  function getGeolocationScreenName(snapshot) {
47
47
  const { value } = snapshot;
@@ -54,7 +54,6 @@ function getGeolocationScreenName(snapshot) {
54
54
  case "finished": return "Geolocation.continue";
55
55
  case "permissionDenied": return "Geolocation.allowLocation";
56
56
  case "error": return "Geolocation.error.locationUnavailable";
57
- case "noNetwork": return "Geolocation.error.noNetwork";
58
57
  default: return;
59
58
  }
60
59
  }
@@ -78,7 +77,6 @@ function mapState(snapshot) {
78
77
  attemptsRemaining: context.attemptsRemaining,
79
78
  canSkip: context.config.allowUserToSkipGeolocation === true
80
79
  };
81
- if (typedSnapshot.matches("noNetwork")) return { status: "noNetwork" };
82
80
  if (typedSnapshot.matches("finished")) return { status: "finished" };
83
81
  if (typedSnapshot.matches("closed")) return { status: "closed" };
84
82
  return { status: "idle" };
@@ -1,8 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
2
- import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
3
- import { n as isConnectivityError } from "./apiError-DPwFas2f.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
+ import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-CfuIvnUy.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
+ import { t as carryAttempts } from "./attemptCarry-BjTJ6bMQ.esm.js";
6
7
  //#region src/modules/geolocation/geolocationServices.ts
7
8
  async function addGeolocation(params, signal) {
8
9
  const res = await api.post(endpoints.addGeolocation, {
@@ -50,6 +51,7 @@ const geolocationMachine = setup({
50
51
  decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 }))
51
52
  },
52
53
  guards: {
54
+ isOutOfAttempts: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < resolveMaxAttempts(context.config),
53
55
  canSkip: ({ context }) => context.config.allowUserToSkipGeolocation === true,
54
56
  hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
55
57
  isNetworkError: ({ event }) => isConnectivityError(event.error),
@@ -58,16 +60,19 @@ const geolocationMachine = setup({
58
60
  }).createMachine({
59
61
  id: "geolocation",
60
62
  initial: "idle",
61
- context: ({ input }) => ({
63
+ context: ({ input, self }) => ({
62
64
  config: input.config,
63
65
  geolocation: input.geolocation,
64
66
  coords: void 0,
65
67
  location: void 0,
66
68
  deviceType: detectDeviceType(),
67
- attemptsRemaining: resolveMaxAttempts(input.config)
69
+ attemptsRemaining: carryAttempts("geolocation", self, (s) => ({ attemptsRemaining: s.context.attemptsRemaining })).attemptsRemaining ?? resolveMaxAttempts(input.config)
68
70
  }),
69
71
  states: {
70
- idle: { on: { REQUEST: { target: "requestingLocation" } } },
72
+ idle: { on: { REQUEST: [{
73
+ target: "error",
74
+ guard: "isOutOfAttempts"
75
+ }, { target: "requestingLocation" }] } },
71
76
  requestingLocation: { invoke: {
72
77
  id: "requestPosition",
73
78
  src: "requestPosition",
@@ -97,14 +102,13 @@ const geolocationMachine = setup({
97
102
  actions: "setLocation"
98
103
  },
99
104
  onError: [{
100
- target: "noNetwork",
105
+ target: "error",
101
106
  guard: "isNetworkError"
102
107
  }, {
103
108
  target: "error",
104
109
  actions: "decrementAttemptsRemaining"
105
110
  }]
106
111
  } },
107
- noNetwork: {},
108
112
  error: { on: {
109
113
  RETRY: {
110
114
  target: "idle",
@@ -1,5 +1,5 @@
1
1
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
2
- import { f as isTabletWithoutAndroid } from "./platform-DkcRc9JV.esm.js";
2
+ import { p as isTabletWithoutAndroid } from "./platform-aPh7gTWh.esm.js";
3
3
  import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
4
4
  //#region src/internal/device/getDeviceClass.ts
5
5
  function getDeviceClass() {
@@ -1,3 +1,3 @@
1
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
2
- import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-BtXWHICu.esm.js";
1
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
2
+ import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-CkX9TEkh.esm.js";
3
3
  export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
4
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
5
5
  //#region src/modules/government-validation/governmentValidationActor.ts
6
6
  function createGovernmentValidationActor(options) {
7
7
  return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/government-validation/governmentValidationServices.ts
package/dist/home.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as StateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
- import { t as EmptyConfig } from "./types-B6HsSzpk.js";
3
+ import { t as EmptyConfig } from "./types-DuD8TRJU.js";
4
4
  //#region src/modules/home/types.d.ts
5
5
  type HomeConfig = EmptyConfig;
6
6
  //#endregion
package/dist/home.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
2
2
  import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  //#region src/modules/home/homeStateMachine.ts
4
4
  const homeMachine = setup({ types: {
package/dist/http.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getApi, t as api } from "./api-Cz90EHyu.esm.js";
1
+ import { n as getApi, t as api } from "./api-BO8JA7Pf.esm.js";
2
2
  export { api, getApi };
@@ -1,6 +1,6 @@
1
1
  import { t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
2
- import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
3
- import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-D3-HNMXP.esm.js";
2
+ import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
3
+ import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-B64-fjWg.esm.js";
4
4
  //#region src/modules/id-ocr/idOcrCpfUtils.ts
5
5
  function formatCPF(value) {
6
6
  const digits = value.replace(/\D/g, "").slice(0, 11);
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
5
  import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
6
6
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
7
- import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-CGsTltqB.js";
7
+ import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-RfSmlFFW.js";
8
8
  //#region src/modules/id-selfie-flow/types.d.ts
9
9
  /**
10
10
  * The capture steps an ID + Selfie flow session can run, in flow order. A
@@ -1,17 +1,17 @@
1
- import { t as ensureWasmPipelines } from "./setup-BInNAvQw.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CDAKwTr7.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-roD0oIQL.esm.js";
4
+ import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-g2tVWsJl.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
- import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-DcPOC2gS.esm.js";
8
- import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-CLwrF5wD.esm.js";
7
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-B83VmClw.esm.js";
8
+ import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-DMBxHKS2.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BGsG2OAs.esm.js";
11
- import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-BSj6EH2l.esm.js";
10
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-MSQoqScU.esm.js";
11
+ import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-8OHinO0N.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-BDI5QpfR.esm.js";
14
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-D1xA0u8y.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-ChMU2v79.esm.js";
14
+ import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DjkPpoj_.esm.js";
15
15
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
16
  /** Default autocapture window for the selfie step. */
17
17
  const SELFIE_AUTOCAPTURE_MS = 1e4;
@@ -1,3 +1,3 @@
1
- import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
2
- import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-iWz7Avkr.esm.js";
1
+ import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
2
+ import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-_Kebv-Ue.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 barcodeToBase64, B as startRecordingSession, C as FinalizedIdRecording, D as UploadIdImageParams, E as StartRecordingParams, F as isSuspendableRecordingSession, H as stopStream, I as pauseRecordingForAttempt, L as prepareRecordingForCameraRetry, M as finalizeRecordingSession, N as getRealQualityValue, O as ValidationError, P as initializeIdCapture, R as processId, S as AddBarcodeParams, T as InitializeIdCaptureParams, U as uploadIdImage, V as stopRecording, W as validateUploadResponse, _ as CreateIdCaptureActorOptions, a as RenderWalletError, b as IdCaptureMachine, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as CreateIdCaptureOnlyActorOptions, g as idCaptureOnlyMachine, h as IdCaptureOnlyMachine, j as disposeRecordingSession, k as addBarcode, l as DeviceWalletState, m as createIdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as IdCaptureOnlyActor, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as IdCaptureActor, w as IdCaptureInitResult, x as idCaptureMachine, y as createIdCaptureActor, z as resumeRecordingAfterPause } from "./idCaptureManager-0M02hSuC.js";
3
+ import { A as addBarcode, B as resumeRecordingAfterPause, C as AddBarcodeParams, D as StartRecordingParams, E as InitializeIdCaptureParams, F as initializeIdCapture, G as validateUploadResponse, H as stopRecording, I as isSuspendableRecordingSession, L as pauseRecordingForAttempt, M as disposeRecordingSession, N as finalizeRecordingSession, O as UploadIdImageParams, P as getRealQualityValue, R as prepareRecordingForCameraRetry, S as idCaptureMachine, T as IdCaptureInitResult, U as stopStream, V as startRecordingSession, W as uploadIdImage, _ 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 barcodeToBase64, k as ValidationError, 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 processId } from "./idCaptureManager-DzTfQ1Am.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
5
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
6
- import { A as DeviceWalletDecision, B as DigitalIdFunnelEntry, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, H as ResolvedDigitalIdRoute, L as DIGITAL_ID_DOCUMENT_TYPES, M as DeviceWalletFailReason, N as DeviceWalletOutput, O as UploadIdResponse, P as DeviceWalletPlatform, R as DIGITAL_ID_REGISTRY, S as IdCaptureThresholds, T as IdError, U as isRedirectFlowType, V as DigitalIdPlatformSupport, W as resolveDigitalIdImplementation, _ 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 DeviceWalletDecryptResponse, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as RedirectReturnParams, 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 DigitalIdDocumentType } from "./types-BAxn7MpY.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-xEEWCx1j.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
@@ -15,19 +15,6 @@ declare const DEVICE_WALLET_ERROR_KEYS: {
15
15
  readonly WALLET_ERROR: "idv2.deviceWallet.errorDescription";
16
16
  };
17
17
  //#endregion
18
- //#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
19
- /**
20
- * Maps an explicit provider override or the current user agent to the wallet
21
- * platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
22
- * capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
23
- * and is consulted by the digital-ID funnel before this module is invoked).
24
- *
25
- * Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
26
- * and every other desktop/unknown browser (incl. macOS Chrome) → Google
27
- * Wallet, which is the only wallet reachable there.
28
- */
29
- declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
30
- //#endregion
31
18
  //#region src/modules/id/idCaptureOnlyManager.d.ts
32
19
  type IdCaptureOnlyManager = IdCaptureManager;
33
20
  /**
@@ -47,4 +34,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
47
34
  */
48
35
  declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
49
36
  //#endregion
50
- export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
37
+ export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateDeviceWalletActorOptions, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletManager, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DeviceWalletState, type DigitalIdCountryDetectionDependencies, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, IdCaptureDigitalIdRedirectOption, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type RenderWalletError, type RenderWalletParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createDeviceWalletManager, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, isSuspendableRecordingSession, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, renderWallet, resolveDigitalIdImplementation, resolveWalletPlatform, resumeRecordingAfterPause, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
package/dist/id.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-dXKBYHQp.esm.js";
2
- import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BrfYjCm_.esm.js";
3
- import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-BSj6EH2l.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-B3G6XoDG.esm.js";
2
+ import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-zZdTcpG1.esm.js";
3
+ import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-8OHinO0N.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
- import { M as resolveWasmSource, S as getBarcodeEnhanceModelUrl, T as WASM_MODEL_FILES } from "./wasmWebClient-BjZw_7OB.esm.js";
2
- import { c as wasmRuntime, t as getResolvedModelSource } from "./warmup-BElYWRh7.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
1
+ import { C as getBarcodeEnhanceModelUrl, E as WASM_MODEL_FILES, N as resolveWasmSource } from "./wasmWebClient-DTj9auyA.esm.js";
2
+ import { l as wasmRuntime, t as getResolvedModelSource } from "./warmup-BkfxQZsC.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-GTkoJyFY.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 {
@@ -4,14 +4,14 @@ import "./Actor-DpTj5PFb.js";
4
4
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
5
5
  import "./index-DpTj5PFb.js";
6
6
  import "./createFaceAvatar-lYX0VTYs.js";
7
- import { a as RegulationTypes } from "./types-B6HsSzpk.js";
8
- import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-GF2n7sfm.js";
7
+ import { a as RegulationTypes } from "./types-DuD8TRJU.js";
8
+ import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-Cqiaxydi.js";
9
9
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
10
10
  import { t as BaseWasmProvider } from "./BaseWasmProvider-Bq3OHo7P.js";
11
- import { n as DeepsightService } from "./StreamCanvasCapture-7JRf-2ck.js";
11
+ import { n as DeepsightService } from "./StreamCanvasCapture-C3xNfOsv.js";
12
12
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
13
13
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
14
- import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-BAxn7MpY.js";
14
+ 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-xEEWCx1j.js";
15
15
  //#region src/internal/http/endpoints.d.ts
16
16
  /**
17
17
  * Backend `CaptureType` for the `captureType` query param on `add/front-id`,
@@ -37,8 +37,16 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
37
37
  setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
38
38
  setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
39
39
  setMotionStatus(status: string): void;
40
+ /**
41
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
42
+ * removal in 3.0.0. Like the other shims it never requires initialization.
43
+ */
40
44
  setBackgroundMode(backgroundMode: boolean): void;
41
45
  setOnDeviceMode(enabled: boolean): void;
46
+ /**
47
+ * @deprecated Native-free no-op since ml-wasm-kit v2.14.54; scheduled for
48
+ * removal in 3.0.0. Like the other shims it never requires initialization.
49
+ */
42
50
  setZc(zc: string): void;
43
51
  setInspectorOpened(opened: boolean): void;
44
52
  getInspectorOpened(): boolean;
@@ -58,6 +66,12 @@ declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapa
58
66
  getPipelineState(): string;
59
67
  estimatePerformance(): string;
60
68
  isVirtualCamera(label: string | null): boolean;
69
+ /**
70
+ * @deprecated Resolves without doing anything since ml-wasm-kit v2.14.52:
71
+ * the pre-capture check runs inside the protected camera step, so existing
72
+ * `prc()` then `poc()` call sites keep working. Scheduled for removal in
73
+ * 3.0.0.
74
+ */
61
75
  prc(): Promise<void>;
62
76
  poc(output: VirtualCameraCheckOutput): Promise<void>;
63
77
  rsp(): Promise<void>;
@@ -228,6 +242,19 @@ declare function createIdCaptureOnlyActor(options: CreateIdCaptureOnlyActorOptio
228
242
  //#region src/modules/id/digitalUpload/types.d.ts
229
243
  type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
230
244
  //#endregion
245
+ //#region src/modules/id/deviceWallet/deviceWalletPlatform.d.ts
246
+ /**
247
+ * Maps an explicit provider override or the current user agent to the wallet
248
+ * platform (ported from V1 `resolveWalletPlatform`, minus the Credentials API
249
+ * capability check — that lives on `IDigitalCredentialsCapability.isAvailable()`
250
+ * and is consulted by the digital-ID funnel before this module is invoked).
251
+ *
252
+ * Auto-detection: iOS/iPadOS and macOS Safari → Apple Wallet (web); Android
253
+ * and every other desktop/unknown browser (incl. macOS Chrome) → Google
254
+ * Wallet, which is the only wallet reachable there.
255
+ */
256
+ declare function resolveWalletPlatform(provider?: DeviceWalletProvider): DeviceWalletPlatform;
257
+ //#endregion
231
258
  //#region src/modules/id/deviceWallet/deviceWalletActor.d.ts
232
259
  type CreateDeviceWalletActorOptions = {
233
260
  /**
@@ -401,6 +428,32 @@ type IdCaptureChooserState = {
401
428
  * `selectDocument('digitalIdRedirect', { providerId })`.
402
429
  */
403
430
  digitalIdRedirectOptions: IdCaptureDigitalIdRedirectOption[];
431
+ /**
432
+ * ISO alpha-2 country `digitalIdRedirectOptions` are ranked for: the
433
+ * detected one, or the one picked with `setChooserCountry`. `undefined`
434
+ * when no country is known.
435
+ */
436
+ country: string | undefined;
437
+ /**
438
+ * Whether the options are country-ranked: the list can be ranked (two or
439
+ * more redirect providers serving different countries) and country
440
+ * detection ran for it. Detection runs whenever a country source is wired
441
+ * (by default always: IP lookup and browser locale), so in practice this
442
+ * is "the list is rankable". A detection that found no country is still
443
+ * `true`, with `country` `undefined`. Offer a country picker only when
444
+ * `true`; `setChooserCountry` has no visible effect otherwise.
445
+ */
446
+ countryRanked: boolean;
447
+ /**
448
+ * The wallet family this device certainly reaches, for naming it on the
449
+ * Digital ID card: `apple` (iOS / iPadOS / macOS Safari), `samsung` (a
450
+ * detectable Samsung Android device), `android` (any other Android).
451
+ * `undefined` when the OS gives no certain answer (desktop Chrome, Windows,
452
+ * Linux) — show no wallet name then. It describes the device only, not the
453
+ * wallet methods enabled for the flow: those decide whether `digitalId` is
454
+ * in `availableDocumentTypes` at all.
455
+ */
456
+ walletDevice: 'apple' | 'samsung' | 'android' | undefined;
404
457
  };
405
458
  /**
406
459
  * Which UI-less machine phase the collapsed `loading` status stands for. The
@@ -664,6 +717,13 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
664
717
  selectDocument(documentType: IdDocumentType, options?: {
665
718
  providerId?: DigitalIdProviderId;
666
719
  }): void;
720
+ /**
721
+ * On the chooser: re-ranks `digitalIdRedirectOptions` for the given ISO
722
+ * alpha-2 country (the "Viewing options for" picker). Only reorders —
723
+ * every option stays available. Ignored outside the chooser and for an
724
+ * invalid code.
725
+ */
726
+ setChooserCountry(country: string): void;
667
727
  nextStep(): Promise<void>;
668
728
  /**
669
729
  * Continues from Tutorial into permission orchestration. When iOS requires
@@ -747,6 +807,7 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
747
807
  selectDocument(documentType: IdDocumentType, options?: {
748
808
  providerId?: DigitalIdProviderId;
749
809
  }): void;
810
+ setChooserCountry(country: string): void;
750
811
  nextStep(): Promise<void>;
751
812
  continueToPermission(): void;
752
813
  requestPermission(options?: {
@@ -785,4 +846,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
785
846
  deviceWalletUseAnotherMethod(): void;
786
847
  };
787
848
  //#endregion
788
- export { barcodeToBase64 as A, startRecordingSession as B, FinalizedIdRecording as C, UploadIdImageParams as D, StartRecordingParams as E, isSuspendableRecordingSession as F, WasmUtilProvider as G, stopStream as H, pauseRecordingForAttempt as I, prepareRecordingForCameraRetry as L, finalizeRecordingSession as M, getRealQualityValue as N, ValidationError as O, initializeIdCapture as P, processId as R, AddBarcodeParams as S, InitializeIdCaptureParams as T, uploadIdImage as U, stopRecording as V, validateUploadResponse as W, CreateIdCaptureActorOptions as _, RenderWalletError as a, IdCaptureMachine as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, CreateIdCaptureOnlyActorOptions as f, idCaptureOnlyMachine as g, IdCaptureOnlyMachine as h, createIdCaptureManagerFromActor as i, disposeRecordingSession as j, addBarcode as k, DeviceWalletState as l, createIdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, IdCaptureOnlyActor as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, IdCaptureActor as v, IdCaptureInitResult as w, idCaptureMachine as x, createIdCaptureActor as y, resumeRecordingAfterPause as z };
849
+ export { addBarcode as A, resumeRecordingAfterPause as B, AddBarcodeParams as C, StartRecordingParams as D, InitializeIdCaptureParams as E, initializeIdCapture as F, validateUploadResponse as G, stopRecording as H, isSuspendableRecordingSession as I, WasmUtilProvider as K, pauseRecordingForAttempt as L, disposeRecordingSession as M, finalizeRecordingSession as N, UploadIdImageParams as O, getRealQualityValue as P, prepareRecordingForCameraRetry as R, idCaptureMachine as S, IdCaptureInitResult as T, stopStream as U, startRecordingSession as V, uploadIdImage as W, idCaptureOnlyMachine as _, RenderWalletError as a, createIdCaptureActor as b, DeviceWalletManager as c, CreateDeviceWalletActorOptions as d, resolveWalletPlatform as f, IdCaptureOnlyMachine as g, createIdCaptureOnlyActor as h, createIdCaptureManagerFromActor as i, barcodeToBase64 as j, ValidationError as k, DeviceWalletState as l, IdCaptureOnlyActor as m, IdCaptureManager as n, RenderWalletParams as o, CreateIdCaptureOnlyActorOptions as p, IdCaptureState as r, renderWallet as s, createIdCaptureManager as t, createDeviceWalletManager as u, CreateIdCaptureActorOptions as v, FinalizedIdRecording as w, IdCaptureMachine as x, IdCaptureActor as y, processId as z };