@incodetech/core 2.4.1-agentic.9 → 2.5.0-rc.0

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 (286) hide show
  1. package/dist/Actor-DqjOqDfU.d.ts +1 -0
  2. package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
  3. package/dist/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
  4. package/dist/{FaceDetectionProvider-CHpscouN.esm.js → FaceDetectionProvider-n9u4dEn_.esm.js} +9 -9
  5. package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
  6. package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
  7. package/dist/Manager-BvXAwDv9.esm.js +125 -0
  8. package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
  9. package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
  10. package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
  11. package/dist/{WasmUtilProvider-Dp2V-Uct.esm.js → WasmUtilProvider-0xTxgP0R.esm.js} +42 -6
  12. package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
  13. package/dist/{addressSearch-D6cKPWmk.esm.js → addressSearch-Rxm1K67A.esm.js} +5 -4
  14. package/dist/{advanceableErrors-k-U-cL5m.esm.js → advanceableErrors-CxZyPRyh.esm.js} +3 -0
  15. package/dist/ae-signature.d.ts +2 -2
  16. package/dist/ae-signature.esm.js +1 -1
  17. package/dist/antifraud.d.ts +1 -1
  18. package/dist/antifraud.esm.js +2 -2
  19. package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
  20. package/dist/{antifraudManager-CbIwM35x.esm.js → antifraudManager-DKNOi9-z.esm.js} +5 -3
  21. package/dist/{antifraudStateMachine-qNNXrlsP.esm.js → antifraudStateMachine-BJ6PmCsw.esm.js} +3 -3
  22. package/dist/{api-C_P9YXbL.esm.js → api-CZpuJuZl.esm.js} +2 -1
  23. package/dist/{apiError-BeWqIYu8.esm.js → apiError-CtArBUt-.esm.js} +1 -1
  24. package/dist/{attemptCarry-BaAXPR_w.esm.js → attemptCarry-BecGGZK8.esm.js} +1 -1
  25. package/dist/authentication.d.ts +3 -3
  26. package/dist/authentication.esm.js +2 -2
  27. package/dist/{authenticationManager-CTHFl6dl.esm.js → authenticationManager-9N3eg3Uh.esm.js} +7 -6
  28. package/dist/{authenticationManager-DKLRA91K.d.ts → authenticationManager-DRaugLgH.d.ts} +2 -2
  29. package/dist/{authenticationStateMachine-D-SOzH8C.esm.js → authenticationStateMachine-DoK5RKIS.esm.js} +50 -18
  30. package/dist/avatar.d.ts +1 -1
  31. package/dist/{browser-pQZA35G2-DJEJnmCd.esm.js → browser-DlFgHpoC-DnyrCR8r.esm.js} +150 -161
  32. package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
  33. package/dist/camera.esm.js +1 -1
  34. package/dist/certificate-issuance.d.ts +1 -1
  35. package/dist/certificate-issuance.esm.js +2 -2
  36. package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
  37. package/dist/{certificateIssuanceManager-CrF3wjCH.esm.js → certificateIssuanceManager-DaUklfNj.esm.js} +5 -3
  38. package/dist/{certificateIssuanceStateMachine-uSD9IkcV.esm.js → certificateIssuanceStateMachine-_EQcjGE3.esm.js} +4 -4
  39. package/dist/{cnpj-Co1ottYN.esm.js → cnpj-Bl_olpdX.esm.js} +5 -3
  40. package/dist/consent.d.ts +1 -1
  41. package/dist/consent.esm.js +2 -2
  42. package/dist/{consentManager-BD7wwgat.esm.js → consentManager-BPocwpm2.esm.js} +5 -3
  43. package/dist/{consentManager-7aHaehwF.d.ts → consentManager-vI6QHkHU.d.ts} +5 -4
  44. package/dist/{consentStateMachine-BAiLDE3D.esm.js → consentStateMachine-DgiIcT9q.esm.js} +3 -3
  45. package/dist/{cpf-BIADjddF.esm.js → cpf-DDXMTLYr.esm.js} +1 -1
  46. package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
  47. package/dist/cross-document-data-match.d.ts +1 -1
  48. package/dist/cross-document-data-match.esm.js +1 -1
  49. package/dist/{crossDocumentDataMatchManager-CUc1uACE.esm.js → crossDocumentDataMatchManager-BfA29Aji.esm.js} +6 -4
  50. package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
  51. package/dist/curp-DZGvefg3.esm.js +14 -0
  52. package/dist/curp-validation.d.ts +1 -1
  53. package/dist/curp-validation.esm.js +2 -2
  54. package/dist/{curpValidationManager-DBfZSQbu.esm.js → curpValidationManager-CbvBDoE1.esm.js} +6 -4
  55. package/dist/{curpValidationManager-Crz3bnCo.d.ts → curpValidationManager-Ci2iVuog.d.ts} +4 -4
  56. package/dist/{curpValidationStateMachine-DyAEyScb.esm.js → curpValidationStateMachine-BQ8XK2Y3.esm.js} +5 -5
  57. package/dist/custom-fields.d.ts +1 -1
  58. package/dist/custom-fields.esm.js +1 -1
  59. package/dist/custom-watchlist.d.ts +1 -1
  60. package/dist/custom-watchlist.esm.js +2 -2
  61. package/dist/{customFieldsManager-BZhIPyaY.esm.js → customFieldsManager-BRqSCR9R.esm.js} +6 -4
  62. package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
  63. package/dist/{customWatchlistManager-B4cmxi__.esm.js → customWatchlistManager-Bd1ooIDB.esm.js} +5 -3
  64. package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
  65. package/dist/{customWatchlistStateMachine-ZZoDGRAZ.esm.js → customWatchlistStateMachine-r8nGhyo1.esm.js} +3 -3
  66. package/dist/{deepsightLoader-je1YxHgT.esm.js → deepsightLoader-zG373VVx.esm.js} +10 -6
  67. package/dist/{definitionSource-BHNxbuiv.esm.js → definitionSource-Nw0YCbpe.esm.js} +38 -1
  68. package/dist/{desktopCameraElection-m2dAj6Zu.esm.js → desktopCameraElection-BKFjsQpO.esm.js} +5 -5
  69. package/dist/document-capture.d.ts +1 -1
  70. package/dist/document-capture.esm.js +2 -2
  71. package/dist/{documentCaptureManager-v57klTso.esm.js → documentCaptureManager-BKaJVQxg.esm.js} +5 -3
  72. package/dist/{documentCaptureManager-DDfviFg0.d.ts → documentCaptureManager-CoGcEiMK.d.ts} +4 -3
  73. package/dist/{documentCaptureStateMachine-CgCtimSa.esm.js → documentCaptureStateMachine-BYLb5Azk.esm.js} +6 -6
  74. package/dist/dynamic-forms.d.ts +1 -1
  75. package/dist/dynamic-forms.esm.js +2 -2
  76. package/dist/{dynamicFormsManager-BKWJZfkn.esm.js → dynamicFormsManager-BfQKWG7a.esm.js} +5 -3
  77. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C45pTncO.d.ts} +3 -3
  78. package/dist/{dynamicFormsStateMachine-CQN8p1ux.esm.js → dynamicFormsStateMachine-CRq01QNK.esm.js} +4 -4
  79. package/dist/ekyb.d.ts +3 -3
  80. package/dist/ekyb.esm.js +2 -2
  81. package/dist/{ekybManager-BD6HTwFJ.esm.js → ekybManager-B489iXyO.esm.js} +5 -3
  82. package/dist/{ekybManager-BLOkwmWO.d.ts → ekybManager-BflWuTe4.d.ts} +3 -3
  83. package/dist/{ekybStateMachine-3kceTymI.esm.js → ekybStateMachine-DZxg8T0H.esm.js} +18 -20
  84. package/dist/ekyc-prefill.d.ts +3 -3
  85. package/dist/ekyc-prefill.esm.js +2 -2
  86. package/dist/ekyc.d.ts +3 -3
  87. package/dist/ekyc.esm.js +3 -3
  88. package/dist/{ekycManager-CERRvIfg.d.ts → ekycManager-BKVQazAb.d.ts} +48 -7
  89. package/dist/{ekycManager-DawJq3Jo.esm.js → ekycManager-nRT0rxei.esm.js} +39 -16
  90. package/dist/{ekycPrefillManager-D_8NJzZf.esm.js → ekycPrefillManager-BXWDF7vT.esm.js} +3 -2
  91. package/dist/{ekycPrefillManager-DLNmToWT.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +6 -5
  92. package/dist/{ekycPrefillStateMachine-C-JAvkH3.esm.js → ekycPrefillStateMachine-CuWTVze1.esm.js} +11 -10
  93. package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-DXP2hqVw.esm.js} +198 -38
  94. package/dist/{ekycStateMachine-qvQ-b4IY.esm.js → ekycStateMachine-nwJRel2s.esm.js} +349 -67
  95. package/dist/{ekycUtils-Drx8ImpN.esm.js → ekycUtils-FcqA6oU4.esm.js} +45 -43
  96. package/dist/electronic-signature.d.ts +1 -1
  97. package/dist/electronic-signature.esm.js +1 -1
  98. package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
  99. package/dist/{electronicSignatureManager-u3UBhWw_.esm.js → electronicSignatureManager-BcE0XMrN.esm.js} +8 -6
  100. package/dist/email.d.ts +1 -1
  101. package/dist/email.esm.js +2 -2
  102. package/dist/{emailManager-BSaGg1Gl.esm.js → emailManager-Co4jarT1.esm.js} +5 -3
  103. package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
  104. package/dist/{emailStateMachine-CaoPZtZN.esm.js → emailStateMachine-CTEaYncs.esm.js} +4 -4
  105. package/dist/events-CP3yOzAl.esm.js +299 -0
  106. package/dist/events.d.ts +3 -1
  107. package/dist/events.esm.js +2 -1
  108. package/dist/extensibility.d.ts +42 -56
  109. package/dist/extensibility.esm.js +38 -38
  110. package/dist/{externalFetch-cUjJYyXj.esm.js → externalFetch-CQY41QT1.esm.js} +1 -1
  111. package/dist/face-match.d.ts +1 -1
  112. package/dist/face-match.esm.js +2 -2
  113. package/dist/{faceCaptureManagerFactory-DKJUjsV2.esm.js → faceCaptureManagerFactory-BBQzNrku.esm.js} +17 -6
  114. package/dist/{faceCaptureManagerFactory-ZudYP6Qp.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +18 -11
  115. package/dist/{faceCaptureSetup-CZzv26ip.esm.js → faceCaptureSetup-D8_ilXFc.esm.js} +46 -38
  116. package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-C5b5WtcY.d.ts} +12 -5
  117. package/dist/{faceMatchManager-qPJsa5Ac.esm.js → faceMatchManager-CGmNGbov.esm.js} +5 -3
  118. package/dist/{faceMatchStateMachine-D90ZHY1r.esm.js → faceMatchStateMachine-BuHt7kec.esm.js} +44 -18
  119. package/dist/{feature-management-BMUPPAzI.esm.js → feature-management-SIBmKJs8.esm.js} +1 -1
  120. package/dist/feature-management.esm.js +1 -1
  121. package/dist/field-comparison.d.ts +1 -1
  122. package/dist/field-comparison.esm.js +1 -1
  123. package/dist/{fieldComparisonManager-BLLj_Ey1.esm.js → fieldComparisonManager-VgCU4X96.esm.js} +6 -4
  124. package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
  125. package/dist/fiscal-qr.d.ts +1 -1
  126. package/dist/fiscal-qr.esm.js +1 -1
  127. package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
  128. package/dist/{fiscalQrManager-Bh3rxb7Y.esm.js → fiscalQrManager-DOLq45ph.esm.js} +6 -4
  129. package/dist/flow-events.d.ts +1 -1
  130. package/dist/flow.d.ts +51 -13
  131. package/dist/flow.esm.js +241 -62
  132. package/dist/{flowCompletionService-DgA2VEq4.esm.js → flowCompletionService-BFCddN3G.esm.js} +24 -3
  133. package/dist/{flowServices-aJ5kGxBd.esm.js → flowServices-NX4ksmS5.esm.js} +374 -13
  134. package/dist/geolocation.d.ts +1 -1
  135. package/dist/geolocation.esm.js +2 -2
  136. package/dist/{geolocationManager-6e1i9UIR.d.ts → geolocationManager-CENrvxpK.d.ts} +4 -3
  137. package/dist/{geolocationManager-BA57nCxj.esm.js → geolocationManager-D1Ga7_lB.esm.js} +5 -3
  138. package/dist/{geolocationStateMachine-3-d1ECCh.esm.js → geolocationStateMachine-oPgI5FIQ.esm.js} +5 -5
  139. package/dist/government-validation.d.ts +1 -1
  140. package/dist/government-validation.esm.js +2 -2
  141. package/dist/{governmentValidationManager-D5HkBqfr.esm.js → governmentValidationManager-6JQQkzha.esm.js} +5 -3
  142. package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
  143. package/dist/{governmentValidationStateMachine-BwMClTqC.esm.js → governmentValidationStateMachine-wBunpfQ9.esm.js} +3 -3
  144. package/dist/home.d.ts +4 -3
  145. package/dist/home.esm.js +4 -2
  146. package/dist/http.esm.js +1 -1
  147. package/dist/id-ocr.d.ts +1 -1
  148. package/dist/id-ocr.esm.js +3 -3
  149. package/dist/id-selfie-flow.d.ts +6 -5
  150. package/dist/id-selfie-flow.esm.js +12 -11
  151. package/dist/id-verification.d.ts +1 -1
  152. package/dist/id-verification.esm.js +2 -2
  153. package/dist/id.d.ts +3 -3
  154. package/dist/id.esm.js +3 -3
  155. package/dist/{idCaptureDefaults-Dszuq9ng.esm.js → idCaptureDefaults-Drh207VJ.esm.js} +3 -3
  156. package/dist/{idCaptureManager-NRGuCVv2.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +12 -11
  157. package/dist/{idCaptureManager-B_TyUA3w.esm.js → idCaptureManager-DjZyIbxc.esm.js} +12 -10
  158. package/dist/{idCaptureServices-C6FUQ76N.esm.js → idCaptureServices-DWs9Fb58.esm.js} +7 -7
  159. package/dist/{idCaptureStateMachine-Cr8WdGyp.esm.js → idCaptureStateMachine-BGMkWF9t.esm.js} +22 -20
  160. package/dist/{idOcrCpfUtils-Nfln1Psb.esm.js → idOcrCpfUtils-D5Gwskxu.esm.js} +1 -1
  161. package/dist/{idOcrManager-B5xeI2lg.d.ts → idOcrManager-DflRx-_u.d.ts} +5 -4
  162. package/dist/{idOcrManager-BMK2oou0.esm.js → idOcrManager-im7VfJQi.esm.js} +5 -3
  163. package/dist/{idOcrStateMachine-RjNycN07.esm.js → idOcrStateMachine-B832arAl.esm.js} +4 -4
  164. package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
  165. package/dist/{idVerificationManager-4wY-Ee4j.esm.js → idVerificationManager-PMGM4hXY.esm.js} +5 -3
  166. package/dist/{idVerificationStateMachine-Bj00uWvh.esm.js → idVerificationStateMachine-DeeugC00.esm.js} +3 -3
  167. package/dist/identity-reuse.d.ts +2 -2
  168. package/dist/identity-reuse.esm.js +2 -2
  169. package/dist/identity-search.d.ts +97 -0
  170. package/dist/identity-search.esm.js +97 -0
  171. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-C40ngKeM.d.ts} +82 -15
  172. package/dist/{identityReuseManager-CCZ-ES2E.esm.js → identityReuseManager-CjFZ7WRa.esm.js} +9 -4
  173. package/dist/{identityReuseStateMachine-BtpkGpYZ.esm.js → identityReuseStateMachine-CLFjPp13.esm.js} +22 -25
  174. package/dist/{index-DlVDVTcf.d.ts → index-BKOWUhxG.d.ts} +22 -93
  175. package/dist/index-DHuAkTe0.d.ts +1 -0
  176. package/dist/{index-BGnYn_4J.d.ts → index-DxYNO94y.d.ts} +2 -2
  177. package/dist/index.d.ts +1 -1
  178. package/dist/index.esm.js +1 -1
  179. package/dist/{invokeOnCaptureCallback-BkvXSZfa.esm.js → invokeOnCaptureCallback-lXP41N7b.esm.js} +1 -1
  180. package/dist/kyb-checks.d.ts +1 -1
  181. package/dist/kyb-checks.esm.js +2 -2
  182. package/dist/{kybChecksManager-CblEL97E.d.ts → kybChecksManager-B7Di9auB.d.ts} +3 -3
  183. package/dist/{kybChecksManager-x2nBdasv.esm.js → kybChecksManager-eRU3ht0m.esm.js} +3 -2
  184. package/dist/{kybChecksStateMachine-DdWSo3jQ.esm.js → kybChecksStateMachine-CU0oIYDR.esm.js} +8 -7
  185. package/dist/mandatory-consent.d.ts +2 -2
  186. package/dist/mandatory-consent.esm.js +2 -2
  187. package/dist/{mandatoryConsentManager-JNeVXgK8.d.ts → mandatoryConsentManager-C1B2ERZk.d.ts} +6 -5
  188. package/dist/{mandatoryConsentManager-C9JJGENL.esm.js → mandatoryConsentManager-Dh3pBhOe.esm.js} +5 -3
  189. package/dist/{mandatoryConsentStateMachine-DLNIGElA.esm.js → mandatoryConsentStateMachine-BjuI72HZ.esm.js} +3 -3
  190. package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
  191. package/dist/{multipartRecordingService-OmSzHBqh.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +2 -2
  192. package/dist/{permissionGuards-DFV-Ws0a.esm.js → permissionGuards-pcrrqrPR.esm.js} +1 -1
  193. package/dist/{permissionServices-D190ATGD.esm.js → permissionServices-DFJlH7K3.esm.js} +1 -1
  194. package/dist/phone.d.ts +1 -1
  195. package/dist/phone.esm.js +2 -2
  196. package/dist/phoneFormat-C3q0Ukh4.esm.js +27 -0
  197. package/dist/{phoneManager-6nrJkvkG.d.ts → phoneManager-VO1HEoUZ.d.ts} +3 -3
  198. package/dist/{phoneManager-BylOWecM.esm.js → phoneManager-rA7updqF.esm.js} +5 -3
  199. package/dist/{phoneServices-Crge7uSV.esm.js → phoneServices-CFXcwCFr.esm.js} +1 -1
  200. package/dist/{phoneStateMachine-CHnhCS-4.esm.js → phoneStateMachine-DKdY2Scx.esm.js} +4 -4
  201. package/dist/{processFaceMatch-BveUAHts.esm.js → processFaceMatch-B_DkDTE5.esm.js} +1 -1
  202. package/dist/qe-signature.d.ts +2 -2
  203. package/dist/qe-signature.esm.js +1 -1
  204. package/dist/{recordingService-BUqAQd8F.esm.js → recordingService-DxiwS8TV.esm.js} +5 -5
  205. package/dist/redirect-to-mobile.d.ts +1 -1
  206. package/dist/redirect-to-mobile.esm.js +2 -2
  207. package/dist/{redirectToMobileManager-DUpLyXsq.esm.js → redirectToMobileManager-DjsEtWLq.esm.js} +6 -4
  208. package/dist/{redirectToMobileManager-Dm9ctRCC.d.ts → redirectToMobileManager-pT6FiPE7.d.ts} +3 -3
  209. package/dist/{redirectToMobileStateMachine-D0DW4y-f.esm.js → redirectToMobileStateMachine-CMjjUXSu.esm.js} +4 -4
  210. package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
  211. package/dist/{runChildModule-BTMOZdMM.esm.js → runChildModule-CJ_aQO92.esm.js} +8 -6
  212. package/dist/{sdkVersion-CinXzhdk.esm.js → sdkVersion-C9kbIDeX.esm.js} +1 -1
  213. package/dist/selfie.d.ts +4 -4
  214. package/dist/selfie.esm.js +13 -12
  215. package/dist/{selfieErrorUtils-D92PpZGe.esm.js → selfieErrorUtils-DUokfsv4.esm.js} +1 -1
  216. package/dist/{selfieManager-BPOlD-UN.d.ts → selfieManager-DihwheJ6.d.ts} +2 -2
  217. package/dist/{selfieManager-DX9Ejy4x.esm.js → selfieManager-uJtbzEp9.esm.js} +7 -6
  218. package/dist/{selfieStateMachine-BfJ5mJ57.esm.js → selfieStateMachine-CKXAmNkA.esm.js} +5 -5
  219. package/dist/{session-CswNE2eZ.esm.js → session-Bk2K8TEv.esm.js} +4 -4
  220. package/dist/session.d.ts +2 -2
  221. package/dist/session.esm.js +5 -5
  222. package/dist/{sessionInitializer-DFtIRfDh.esm.js → sessionInitializer-CUCBGZ_s.esm.js} +120 -135
  223. package/dist/{setup-Bl3CRduw.esm.js → setup-B3a5KQeI.esm.js} +14 -16
  224. package/dist/{setup-prV5HQCQ.d.ts → setup-DpOr8H_l.d.ts} +2 -2
  225. package/dist/signature.d.ts +1 -1
  226. package/dist/signature.esm.js +2 -2
  227. package/dist/{signatureManager-QlegdTo3.esm.js → signatureManager-BgAja97K.esm.js} +5 -3
  228. package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
  229. package/dist/{signatureStateMachine-DFbbbFwg.esm.js → signatureStateMachine-CVPmvU2p.esm.js} +3 -3
  230. package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
  231. package/dist/{stats-Bv5PiWvo.esm.js → stats-DoByUnTa.esm.js} +1 -1
  232. package/dist/stats.esm.js +1 -1
  233. package/dist/thumbmark.esm-CRc0cYvz.esm.js +1242 -0
  234. package/dist/{tri-BUFivnaE.esm.js → tri-xzRLIIMN.esm.js} +7 -133
  235. package/dist/tri.d.ts +2 -2
  236. package/dist/tri.esm-BIjHhBJ2.esm.js +2620 -0
  237. package/dist/tri.esm.js +2 -2
  238. package/dist/{trueSightService-CDbmG-Mi.esm.js → trueSightService-BnQDjqUu.esm.js} +7 -4
  239. package/dist/trust-graph.d.ts +4 -3
  240. package/dist/trust-graph.esm.js +5 -3
  241. package/dist/{types-BD9sV5oG.d.ts → types-9wlf1-GE.d.ts} +3 -3
  242. package/dist/{types-D9vIGFbl.d.ts → types-B-PIc0en.d.ts} +1 -1
  243. package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
  244. package/dist/types-CE1jkHw3.d.ts +6 -0
  245. package/dist/{types-BpJ21a4T.d.ts → types-Cpdum4vi.d.ts} +5 -5
  246. package/dist/{types-BaDx6utW.d.ts → types-DEa3taWc.d.ts} +4 -0
  247. package/dist/{types-0Rr7etmf.d.ts → types-DFP7eSle.d.ts} +1 -1
  248. package/dist/{types-LA74KylV.d.ts → types-DJPU3W2M.d.ts} +1 -1
  249. package/dist/{events-kU5WJU4B.esm.js → types-DYYMdAGv.esm.js} +3 -298
  250. package/dist/{types-CquDWYfv.d.ts → types-Ddc4Tr_f.d.ts} +33 -4
  251. package/dist/{urlUtils-B2wagB5v.esm.js → urlUtils-eYiyWjh0.esm.js} +1 -14
  252. package/dist/video-selfie.d.ts +7 -6
  253. package/dist/video-selfie.esm.js +14 -13
  254. package/dist/{videoSelfieCameraWarmer-Dnkiqe0z.esm.js → videoSelfieCameraWarmer-CgqaNI-W.esm.js} +6 -6
  255. package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
  256. package/dist/{videoSelfieStepDetector-B78BE_x9.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +4 -4
  257. package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
  258. package/dist/{warmup-DtB0DJpl.esm.js → warmup-BZOMg303.esm.js} +46 -4
  259. package/dist/wasm.d.ts +9 -3
  260. package/dist/wasm.esm.js +3 -3
  261. package/dist/{wasmDsFlagSync-BtiR5pig.esm.js → wasmDsFlagSync-DPK7qGgo.esm.js} +1 -1
  262. package/dist/{wasmWebClient-BDrax6Eu.esm.js → wasmWebClient-CyLCM31e.esm.js} +22 -32
  263. package/dist/watchlist-for-business.d.ts +1 -1
  264. package/dist/watchlist-for-business.esm.js +2 -2
  265. package/dist/watchlist.d.ts +1 -1
  266. package/dist/watchlist.esm.js +2 -2
  267. package/dist/{watchlistForBusinessManager-DOYmIiaj.esm.js → watchlistForBusinessManager-BH6M4kqA.esm.js} +5 -3
  268. package/dist/{watchlistForBusinessManager-DX2AyM4Y.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +3 -3
  269. package/dist/{watchlistForBusinessStateMachine-D8qIyL8w.esm.js → watchlistForBusinessStateMachine-BMWm5mcP.esm.js} +4 -4
  270. package/dist/{watchlistManager-BJGLRv-x.esm.js → watchlistManager-BDaVjzLW.esm.js} +5 -3
  271. package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
  272. package/dist/{watchlistStateMachine-DeLfuGSl.esm.js → watchlistStateMachine-Cx-6QAvu.esm.js} +3 -3
  273. package/dist/workflow.d.ts +230 -44
  274. package/dist/workflow.esm.js +166 -68
  275. package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
  276. package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
  277. package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
  278. package/package.json +8 -8
  279. package/dist/Actor-DpTj5PFb.d.ts +0 -1
  280. package/dist/index-DpTj5PFb.d.ts +0 -1
  281. package/dist/nationalIds-B91f_RuB.esm.js +0 -99
  282. package/dist/phoneFormat-DEpESpz2.esm.js +0 -87
  283. package/dist/step-up.d.ts +0 -378
  284. package/dist/step-up.esm.js +0 -639
  285. package/dist/tri.esm-DgtAka_v.esm.js +0 -2145
  286. package/dist/types-B2M1IPZn.d.ts +0 -6
@@ -1,87 +0,0 @@
1
- import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
2
- //#region src/shared/validators/textRules.ts
3
- const CHARACTER_CLASSES = [
4
- "letter",
5
- "digit",
6
- "space"
7
- ];
8
- const CLASS_PATTERNS = {
9
- letter: "\\p{L}\\p{M}",
10
- digit: "0-9",
11
- space: " "
12
- };
13
- const escapeForClass = (chars) => chars.replace(/[\\\]^-]/g, "\\$&");
14
- const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
15
- const NAME_REGEX = /^[\p{L}\p{M} '’-]+$/u;
16
- /** `nameCharacters`: letters from any script, spaces, hyphens and apostrophes. */
17
- function hasNameCharacters(value) {
18
- return NAME_REGEX.test(value);
19
- }
20
- /**
21
- * `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
22
- * the user's calendar. A value that isn't an ISO date passes; the date input
23
- * owns that.
24
- */
25
- function isNotFuture(value, today) {
26
- if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
27
- return value <= today;
28
- }
29
- /**
30
- * `maxAge`: an ISO `YYYY-MM-DD` date of birth at most `years` full years
31
- * before `today`, also ISO, in the user's calendar. As in SDK1, someone turns
32
- * a year older on their birthday. A value that isn't an ISO date passes; the
33
- * date input owns that.
34
- */
35
- function isWithinMaxAge(value, today, years) {
36
- if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
37
- const [birthYear, birthMonthDay] = [value.slice(0, 4), value.slice(5)];
38
- const [todayYear, todayMonthDay] = [today.slice(0, 4), today.slice(5)];
39
- return Number(todayYear) - Number(birthYear) - (todayMonthDay < birthMonthDay ? 1 : 0) <= years;
40
- }
41
- /** `digitCount`: only the digits 0-9, with a count in `lengths` or between `min` and `max`. */
42
- function hasDigitCount(value, count) {
43
- if (!/^[0-9]+$/.test(value)) return false;
44
- const { length } = value;
45
- if (count.lengths) return count.lengths.includes(length);
46
- return (count.min === void 0 || length >= count.min) && (count.max === void 0 || length <= count.max);
47
- }
48
- /**
49
- * `allowedCharacters`: only characters from `classes`, plus any in `extra`.
50
- * With `ascii`, `letter` means A-Z in either case instead of any script.
51
- */
52
- function hasAllowedCharacters(value, classes, extra = "", ascii = false) {
53
- const set = classes.map((c) => ascii && c === "letter" ? "A-Za-z" : CLASS_PATTERNS[c]).join("");
54
- return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
55
- }
56
- /**
57
- * `charTemplate`: the whole value matches one template, where `9` is a digit,
58
- * `A` an uppercase letter A-Z and any other character stands for itself.
59
- * `ignoreCase` also accepts lowercase letters and literals in either case.
60
- */
61
- function matchesCharTemplate(value, templates, ignoreCase = false) {
62
- return templates.some((template) => {
63
- const pattern = [...template].map((char) => {
64
- if (char === "9") return "[0-9]";
65
- if (char === "A") return "[A-Z]";
66
- return escapeForPattern(char);
67
- }).join("");
68
- return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
69
- });
70
- }
71
- /** `numericRange`: a whole number from `min` to `max`. */
72
- function isInNumericRange(value, min, max) {
73
- if (!/^-?[0-9]+$/.test(value)) return false;
74
- const number = Number(value);
75
- return number >= min && number <= max;
76
- }
77
- //#endregion
78
- //#region src/shared/phoneFormat.ts
79
- /**
80
- * The phone in E.164, or the value as typed when the rules are not loaded
81
- * (`loadPhoneValidation()`) or the number is not valid.
82
- */
83
- function formatPhoneE164(phone, country) {
84
- return getPhoneValidation()?.formatE164(phone, country) ?? phone;
85
- }
86
- //#endregion
87
- export { hasNameCharacters as a, isWithinMaxAge as c, hasDigitCount as i, matchesCharTemplate as l, CHARACTER_CLASSES as n, isInNumericRange as o, hasAllowedCharacters as r, isNotFuture as s, formatPhoneE164 as t };
package/dist/step-up.d.ts DELETED
@@ -1,378 +0,0 @@
1
- import { t as Manager } from "./Manager-C9T5amUN.js";
2
- import "./Actor-DpTj5PFb.js";
3
- import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
4
- //#region src/modules/step-up/types.d.ts
5
- /**
6
- * One scope the agent class asks for, as shown on the permissions screen.
7
- */
8
- type StepUpScope = {
9
- /** Machine name sent back in `approvedScopes`, e.g. `tx.read`. */
10
- name: string;
11
- /** Human label, e.g. `Read transactions`. Falls back to `name`. */
12
- displayName: string;
13
- description?: string;
14
- /**
15
- * Whether the permissions screen starts with this scope ticked (contract
16
- * v0.5). Incode sets it from the agent class: the scope that triggered the
17
- * step-up and `auto-select` scopes are ticked, `dynamic-select` ones only
18
- * when suggested; missing means unticked.
19
- */
20
- autoSelect?: boolean;
21
- /**
22
- * `auto-select`: starts ticked. `dynamic-select`: starts ticked only when
23
- * suggested (see `autoSelect`). The person may untick either. Missing reads
24
- * as `dynamic-select`.
25
- */
26
- selectionMode?: 'auto-select' | 'dynamic-select';
27
- };
28
- /**
29
- * The step-up's `consent`, exactly as the Decision API start response
30
- * returns it (contract v0.2 §6.1: camelCase everywhere).
31
- */
32
- type StepUpPermissions = {
33
- agentClassId?: string;
34
- purpose?: string;
35
- scopes: StepUpScope[];
36
- /** Limits keyed by scope name; only scopes that have one are listed. */
37
- limits?: Record<string, StepUpLimit>;
38
- /** How long the approval lasts, in seconds. */
39
- durationSeconds: number;
40
- };
41
- /** The agent class's limit on one scope. Amounts carry no currency. */
42
- type StepUpLimit = {
43
- budgetLimit?: number;
44
- usageLimit?: number;
45
- /** What one use is called, e.g. `reads`. */
46
- usageLimitLabel?: string;
47
- };
48
- /** When the SDK's permissions screen shows, relative to the face check. */
49
- type StepUpPermissionsOrder = 'afterFaceCheck' | 'beforeFaceCheck';
50
- /**
51
- * The Decision API's step-up modes: `embedded` runs the workflow in this page,
52
- * `hosted` frames Incode's hosted page at `onboardingUrl`.
53
- */
54
- type StepUpMode = 'embedded' | 'hosted';
55
- type StepUpPermissionsUi = 'sdk' | 'none';
56
- /**
57
- * What `onFinish` receives. A hint only: the bank server's status read
58
- * (`GET /step-ups/{id}`) is what checks the face check and activates the
59
- * mandate.
60
- */
61
- type StepUpResult = {
62
- stepUpId: string;
63
- approvedScopes: string[];
64
- };
65
- /**
66
- * Error codes on {@link StepUpError.code} (contract v0.2 §6.3). Public API:
67
- * hosts branch on them.
68
- *
69
- * - `INVALID_OPTIONS` — `renderStepUp` was called with bad options (thrown).
70
- * - `USER_DENIED` — the user pressed Deny on the permissions screen.
71
- * - `FACE_CHECK_FAILED` — the face check ran and failed: the workflow finished
72
- * `rejected` or with score `FAIL` / `MANUAL_FAIL`, or the hosted page
73
- * reported `FACE_CHECK_FAILED`.
74
- * - `VERIFICATION_PENDING` — the workflow ended without a result yet (async
75
- * resolution, e.g. manual review), or the hosted page reported
76
- * `VERIFICATION_PENDING`. The bank server's status read answers `pending`
77
- * until Incode decides.
78
- * - `VERIFICATION_ERROR` — the verification could not finish: network,
79
- * expired token, camera denied, any other workflow or hosted-page error, a
80
- * hosted result that approved none of the agent class's scopes, a hosted
81
- * page that never sent `ready` (`detail.code` `READY_TIMEOUT`), or an
82
- * `onPermissionsApproved` that rejected (`detail.code`
83
- * `PERMISSIONS_NOT_SAVED`).
84
- * {@link StepUpError.detail} carries the original code and message.
85
- * - `IFRAME_ORIGIN_MISMATCH` — the step-up iframe posted from an origin other
86
- * than `onboardingUrl`'s (for example it was redirected elsewhere).
87
- */
88
- type StepUpErrorCode = 'INVALID_OPTIONS' | 'USER_DENIED' | 'FACE_CHECK_FAILED' | 'VERIFICATION_PENDING' | 'VERIFICATION_ERROR' | 'IFRAME_ORIGIN_MISMATCH';
89
- /** The codes the verification step (workflow or hosted page) can end with. */
90
- type StepUpVerificationErrorCode = Extract<StepUpErrorCode, 'FACE_CHECK_FAILED' | 'VERIFICATION_PENDING' | 'VERIFICATION_ERROR'>;
91
- /**
92
- * What the workflow or hosted page reported underneath a step-up error, as
93
- * given (for logs and support; not stable API).
94
- */
95
- type StepUpErrorDetail = {
96
- /** E.g. a workflow module error code, an HTTP status, or a hosted code. */
97
- code?: string;
98
- message?: string;
99
- };
100
- /** Options validated by core. The DOM container is checked by the UI layer. */
101
- type StepUpOptionsInput = {
102
- stepUpId: string;
103
- sessionToken: string;
104
- interviewId?: string;
105
- /** The start response's `consent`, passed on unchanged. */
106
- consent: StepUpPermissions;
107
- mode?: StepUpMode;
108
- onboardingUrl?: string;
109
- permissionsUi?: StepUpPermissionsUi;
110
- /**
111
- * Embedded mode: show the permissions screen before the face check
112
- * (default) or after it. Ignored with `permissionsUi: 'none'`. Incode
113
- * activates the mandate once it has both the scope choice and a passed face
114
- * check, in either order.
115
- */
116
- permissionsOrder?: StepUpPermissionsOrder;
117
- /**
118
- * Embedded mode: called when the person approves, with the scopes they kept.
119
- * The step-up waits for the returned promise, then runs the face check (or
120
- * finishes, after it). Use it to have the bank server record the choice
121
- * (`POST /api/v1/step-ups/{id}/scopes`). A rejection ends the step-up with
122
- * `VERIFICATION_ERROR`, `detail.code` `PERMISSIONS_NOT_SAVED`.
123
- */
124
- onPermissionsApproved?: (result: StepUpResult) => void | Promise<unknown>;
125
- /**
126
- * Hosted mode: how long to wait for the hosted page's `ready` before
127
- * failing with `VERIFICATION_ERROR` (`detail.code` `READY_TIMEOUT`).
128
- * Default 15000.
129
- */
130
- readyTimeoutMs?: number;
131
- /** Default language, as `<incode-workflow lang>`. Embedded mode. */
132
- lang?: string;
133
- /** Skips the tenant's dashboard theme, as on `<incode-workflow>`. Embedded mode. */
134
- disableDashboardTheme?: boolean;
135
- onFinish: (result: StepUpResult) => void;
136
- onError?: (error: Error) => void;
137
- };
138
- /** Options after validation: defaults filled in, permissions normalized. */
139
- type NormalizedStepUpOptions = {
140
- stepUpId: string;
141
- sessionToken: string;
142
- interviewId?: string;
143
- permissions: StepUpPermissions;
144
- mode: StepUpMode;
145
- onboardingUrl?: string;
146
- /** Exact origin of `onboardingUrl` (hosted mode only). */
147
- onboardingOrigin?: string;
148
- permissionsUi: StepUpPermissionsUi;
149
- permissionsOrder: StepUpPermissionsOrder;
150
- readyTimeoutMs: number;
151
- lang?: string;
152
- disableDashboardTheme: boolean;
153
- onPermissionsApproved?: (result: StepUpResult) => void | Promise<unknown>;
154
- onFinish: (result: StepUpResult) => void;
155
- onError?: (error: Error) => void;
156
- };
157
- /** Duration in the largest whole unit, for the i18n layer to phrase. */
158
- type StepUpDuration = {
159
- unit: 'days' | 'hours' | 'minutes' | 'seconds';
160
- count: number;
161
- };
162
- /** What a message from the hosted onboarding page means to the step-up. */
163
- type HostedPageMessage = {
164
- kind: 'ready';
165
- } | {
166
- kind: 'finished';
167
- approvedScopes: string[];
168
- } | {
169
- kind: 'error';
170
- code: string;
171
- message?: string;
172
- } | {
173
- kind: 'originMismatch';
174
- } | {
175
- kind: 'ignored';
176
- };
177
- //#endregion
178
- //#region src/modules/step-up/stepUpStateMachine.d.ts
179
- type StepUpInput = {
180
- stepUpId: string;
181
- permissions: StepUpPermissions;
182
- permissionsUi: StepUpPermissionsUi;
183
- permissionsOrder: StepUpPermissionsOrder;
184
- /** The host saves the approved scopes before the step-up goes on. */
185
- hostSavesPermissions: boolean;
186
- };
187
- //#endregion
188
- //#region src/modules/step-up/stepUpActor.d.ts
189
- type CreateStepUpActorOptions = StepUpInput;
190
- //#endregion
191
- //#region src/modules/step-up/stepUpManager.d.ts
192
- type StepUpVerifyingState = {
193
- status: 'verifying';
194
- };
195
- type StepUpPermissionsState = {
196
- status: 'permissions';
197
- purpose?: string;
198
- scopes: Array<StepUpScope & {
199
- checked: boolean;
200
- limit?: StepUpLimit;
201
- }>;
202
- duration: StepUpDuration;
203
- /** False when no scope is checked: Approve needs at least one. */
204
- canApprove: boolean;
205
- /** Approved; the host is saving the choice before the step-up goes on. */
206
- saving: boolean;
207
- };
208
- type StepUpFinishedState = {
209
- status: 'finished';
210
- result: StepUpResult;
211
- };
212
- type StepUpClosedState = {
213
- status: 'closed';
214
- };
215
- type StepUpErrorState = {
216
- status: 'error';
217
- /** The `StepUpError` code to report. */
218
- code: StepUpVerificationErrorCode;
219
- error: string;
220
- detail?: StepUpErrorDetail;
221
- };
222
- /** The parts of the workflow's `FinishStatus` the step-up reads. */
223
- type StepUpWorkflowResult = Pick<FinishStatus, 'action' | 'scoreStatus'>;
224
- /**
225
- * What the workflow's `onFinish` result means for the step-up:
226
- * - `failed` — `action: 'rejected'`, or score `FAIL` / `MANUAL_FAIL`.
227
- * - `pending` — no result (the workflow went to async resolution).
228
- * - `passed` — anything else, `WARN` and `UNKNOWN` included. That is only a
229
- * UI hint: Incode passes the face check only on `OK` / `MANUAL_OK`, so
230
- * `onFinish` is never an approval.
231
- */
232
- declare function readWorkflowResult(result: StepUpWorkflowResult | undefined): 'passed' | 'failed' | 'pending';
233
- type StepUpState = StepUpVerifyingState | StepUpPermissionsState | StepUpFinishedState | StepUpClosedState | StepUpErrorState;
234
- type CreateStepUpManagerOptions = {
235
- stepUpId: string;
236
- permissions: StepUpPermissions;
237
- permissionsUi?: CreateStepUpActorOptions['permissionsUi'];
238
- permissionsOrder?: CreateStepUpActorOptions['permissionsOrder'];
239
- /** Approve waits for `permissionsSaved()` before going on. */
240
- hostSavesPermissions?: boolean;
241
- };
242
- /**
243
- * Creates the step-up manager. Pass permissions already normalized by
244
- * `validateStepUpOptions` / `normalizeStepUpPermissions`.
245
- */
246
- declare function createStepUpManager(options: CreateStepUpManagerOptions): Manager<StepUpState> & {
247
- /** Verification passed: show the permissions (or finish, `'none'`). */
248
- verificationFinished(): void;
249
- /**
250
- * The workflow's `onFinish`, with its result. A failed face check goes to
251
- * `error` (`FACE_CHECK_FAILED`) and no result to `error`
252
- * (`VERIFICATION_PENDING`); neither shows the permissions.
253
- */
254
- workflowFinished(result?: StepUpWorkflowResult): void;
255
- /**
256
- * The workflow or hosted page ended without a passed check. `code`
257
- * defaults to `VERIFICATION_ERROR` (could not finish); pass
258
- * `FACE_CHECK_FAILED` only for a check that ran and failed.
259
- */
260
- verificationFailed(error: string, code?: StepUpVerificationErrorCode, detail?: StepUpErrorDetail): void;
261
- /** Hosted mode: the hosted page finished, with the scopes it approved. */
262
- hostedFinished(approvedScopes: string[]): void;
263
- /** Hosted mode: the user denied on the hosted page. */
264
- hostedDenied(): void;
265
- toggleScope(name: string): void;
266
- /** Ignored while no scope is checked. */
267
- approve(): void;
268
- deny(): void;
269
- /** The host saved the approved scopes: go on to the face check or finish. */
270
- permissionsSaved(): void;
271
- /** The host could not save them: the step-up ends in error. */
272
- permissionsSaveFailed(error: string): void;
273
- };
274
- type StepUpManager = ReturnType<typeof createStepUpManager>;
275
- //#endregion
276
- //#region src/modules/step-up/stepUpError.d.ts
277
- /**
278
- * Error passed to the step-up `onError` callback (and thrown for invalid
279
- * options). `code` is stable; `message` is for developers, not end users.
280
- * `detail` is what the workflow or hosted page reported underneath (set for
281
- * `VERIFICATION_ERROR`, and for `FACE_CHECK_FAILED` from the workflow).
282
- */
283
- declare class StepUpError extends Error {
284
- readonly code: StepUpErrorCode;
285
- readonly stepUpId?: string;
286
- readonly detail?: StepUpErrorDetail;
287
- constructor(code: StepUpErrorCode, message: string, stepUpId?: string, detail?: StepUpErrorDetail);
288
- }
289
- declare function isStepUpError(error: unknown): error is StepUpError;
290
- //#endregion
291
- //#region src/modules/step-up/stepUpOptions.d.ts
292
- /**
293
- * Checks the consent block from the start response and fills in
294
- * `displayName` (falls back to the scope name). Keeps each scope's boolean
295
- * `autoSelect` and known `selectionMode`, and the valid limits of known
296
- * scopes. Throws `INVALID_OPTIONS` when a required field is missing, or
297
- * `durationSeconds` is not a positive number.
298
- */
299
- declare function normalizeStepUpPermissions(raw: unknown): StepUpPermissions;
300
- /**
301
- * Exact origin (`scheme://host[:port]`) of an absolute http(s) URL, or
302
- * `undefined` when the URL is not one.
303
- */
304
- declare function getUrlOrigin(url: string): string | undefined;
305
- /**
306
- * Validates the `renderStepUp` options (everything except the DOM container,
307
- * which the UI layer checks) and fills in defaults:
308
- * `mode: 'embedded'`, `permissionsUi: 'sdk'`,
309
- * `permissionsOrder: 'beforeFaceCheck'` (`'afterFaceCheck'` in hosted mode),
310
- * `readyTimeoutMs: DEFAULT_STEP_UP_READY_TIMEOUT_MS` (15 s),
311
- * `disableDashboardTheme: false`.
312
- *
313
- * Throws {@link StepUpError} with code `INVALID_OPTIONS`.
314
- */
315
- declare function validateStepUpOptions(raw: unknown): NormalizedStepUpOptions;
316
- /**
317
- * Picks the largest unit that divides the duration exactly, so
318
- * 36000 s → 10 hours, 5400 s → 90 minutes. A duration that is not a whole
319
- * number of minutes is rounded up to minutes (never shown shorter than it is),
320
- * and anything under a minute stays in seconds.
321
- */
322
- declare function describeStepUpDuration(durationSeconds: number): StepUpDuration;
323
- //#endregion
324
- //#region src/modules/step-up/stepUpHostedMessage.d.ts
325
- /**
326
- * Tag on every step-up `postMessage`, both directions. Matches the local
327
- * step-up mock's hosted page (contract P4.7 §6.6 reference implementation).
328
- */
329
- declare const STEP_UP_MESSAGE_SOURCE = "incode-step-up";
330
- /**
331
- * The parts of a browser `MessageEvent` the check needs. Kept structural so
332
- * core never touches DOM types.
333
- */
334
- type HostedMessageEventLike = {
335
- origin: string;
336
- data: unknown;
337
- };
338
- /**
339
- * True only when the message came from exactly `expectedOrigin`
340
- * (scheme, host and port). No suffix or prefix matching:
341
- * `https://onboarding.incode.com.evil.com` does not match
342
- * `https://onboarding.incode.com`.
343
- */
344
- declare function isTrustedHostedOrigin(origin: string, expectedOrigin: string): boolean;
345
- /**
346
- * Reads a `postMessage` from the hosted step-up page.
347
- *
348
- * Pass only messages whose `source` is the step-up iframe's own window. The
349
- * page tags messages `{ source: 'incode-step-up', type, ... }`:
350
- * - `ready` — loaded; the parent answers with {@link createStepUpInitMessage}.
351
- * - `finish` — `{ stepUpId, approvedScopes }`; the hosted page ran the face
352
- * check and its own permissions screen. Read only when `stepUpId` is
353
- * exactly `expectedStepUpId`; otherwise (missing or another step-up's)
354
- * it is ignored, not relayed.
355
- * - `error` — `{ code, message? }`, e.g. `USER_DENIED` or
356
- * `FACE_CHECK_FAILED`. Ignored when it names another `stepUpId`.
357
- *
358
- * A tagged message from another origin returns `originMismatch` (the frame
359
- * left the onboarding origin, for example after a redirect). Untagged
360
- * messages are ignored.
361
- */
362
- declare function readHostedPageMessage(event: HostedMessageEventLike, expectedOrigin: string, expectedStepUpId: string): HostedPageMessage;
363
- /** Message the parent posts to the hosted page after its `ready`. */
364
- type StepUpInitMessage = {
365
- source: typeof STEP_UP_MESSAGE_SOURCE;
366
- type: 'init';
367
- permissions: StepUpPermissions;
368
- parentOrigin: string;
369
- };
370
- /**
371
- * Builds the `init` message that hands the hosted page the permissions and
372
- * the parent's origin (contract v0.2 §6.6; the page checks `parentOrigin`
373
- * against its `returnOrigin`). The caller posts it with `targetOrigin` set to
374
- * the exact onboarding origin, never `'*'`.
375
- */
376
- declare function createStepUpInitMessage(permissions: StepUpPermissions, parentOrigin: string): StepUpInitMessage;
377
- //#endregion
378
- export { type CreateStepUpManagerOptions, type HostedMessageEventLike, type HostedPageMessage, type NormalizedStepUpOptions, STEP_UP_MESSAGE_SOURCE, type StepUpClosedState, type StepUpDuration, StepUpError, type StepUpErrorCode, type StepUpErrorDetail, type StepUpErrorState, type StepUpFinishedState, type StepUpInitMessage, type StepUpLimit, type StepUpManager, type StepUpMode, type StepUpOptionsInput, type StepUpPermissions, type StepUpPermissionsOrder, type StepUpPermissionsState, type StepUpPermissionsUi, type StepUpResult, type StepUpScope, type StepUpState, type StepUpVerificationErrorCode, type StepUpVerifyingState, type StepUpWorkflowResult, createStepUpInitMessage, createStepUpManager, describeStepUpDuration, getUrlOrigin, isStepUpError, isTrustedHostedOrigin, normalizeStepUpPermissions, readHostedPageMessage, readWorkflowResult, validateStepUpOptions };