@incodetech/core 2.0.1-rc.0 → 2.1.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 (218) hide show
  1. package/dist/{BrowserStorageProvider-CuOW1Er2.esm.js → BrowserStorageProvider-BpJM-gIl.esm.js} +8 -1
  2. package/dist/{IpifyProvider-D7jx52AL.esm.js → IpifyProvider-D4LWD15E.esm.js} +28 -0
  3. package/dist/{MotionSensorProvider-4v7xkqAp.esm.js → MotionSensorProvider-Bx7Mpzt0.esm.js} +63 -13
  4. package/dist/{OpenViduRecordingProvider-CMu6XVdc.esm.js → OpenViduRecordingProvider-O4GjBseO.esm.js} +1 -1
  5. package/dist/StateMachine-BC_nGvrc.d.ts +2 -0
  6. package/dist/StreamCanvasCapture-ImiDQdVA.esm.js +118 -0
  7. package/dist/StreamCanvasCapture-yyl20qd9.d.ts +152 -0
  8. package/dist/{BaseWasmProvider-C_DLEI40.esm.js → WasmUtilProvider-CiEN7Gjn.esm.js} +183 -11
  9. package/dist/{addressSearch-BpTbTWCa.esm.js → addressSearch-DvmWXKZg.esm.js} +63 -57
  10. package/dist/{ae-signature-DDDZmWXj.esm.js → ae-signature-BFZta3TZ.esm.js} +1 -1
  11. package/dist/ae-signature.d.ts +3 -3
  12. package/dist/ae-signature.esm.js +6 -5
  13. package/dist/antifraud.d.ts +5 -46
  14. package/dist/antifraud.esm.js +6 -43
  15. package/dist/antifraudManager-CkV4u-LE.esm.js +55 -0
  16. package/dist/antifraudManager-CznnhyvD.d.ts +63 -0
  17. package/dist/{antifraudStateMachine-O0TMf6yc.esm.js → antifraudStateMachine-Ccrb-Jxc.esm.js} +2 -2
  18. package/dist/apiError-B-j-gyDx.esm.js +51 -0
  19. package/dist/authentication.d.ts +13 -11
  20. package/dist/authentication.esm.js +26 -22
  21. package/dist/{authenticationManager-C83GNIhl.d.ts → authenticationManager-CIVY80H9.d.ts} +4 -4
  22. package/dist/{authenticationManager-5M-fKzXx.esm.js → authenticationManager-ZNotsWnC.esm.js} +6 -6
  23. package/dist/{authenticationStateMachine-BMZqatiF.esm.js → authenticationStateMachine-DksVbF_H.esm.js} +21 -9
  24. package/dist/{backCameraStream-DMdMeGk2.esm.js → backCameraStream-D7Wo4Nbx.esm.js} +95 -7
  25. package/dist/{session-CGtQJJzB.esm.js → browserSimulation-B1dWiXp7.esm.js} +61 -476
  26. package/dist/camera.d.ts +4 -3
  27. package/dist/camera.esm.js +4 -3
  28. package/dist/canvas-SKcRBxsk.esm.js +230 -0
  29. package/dist/consent.d.ts +4 -398
  30. package/dist/consent.esm.js +6 -77
  31. package/dist/consentManager-BLd51QiW.d.ts +419 -0
  32. package/dist/consentManager-BYo9Nu1r.esm.js +90 -0
  33. package/dist/{consentStateMachine-CCT-B60O.esm.js → consentStateMachine-BG3yL8aC.esm.js} +9 -6
  34. package/dist/cpf-ocr.d.ts +4 -199
  35. package/dist/cpf-ocr.esm.js +8 -177
  36. package/dist/cpfOcrManager-BnieFXuG.d.ts +216 -0
  37. package/dist/cpfOcrManager-sSKegxox.esm.js +190 -0
  38. package/dist/cross-document-data-match.d.ts +1 -1
  39. package/dist/cross-document-data-match.esm.js +4 -4
  40. package/dist/curp-validation.d.ts +8 -158
  41. package/dist/curp-validation.esm.js +6 -108
  42. package/dist/curpValidationManager-CFem6zP9.esm.js +122 -0
  43. package/dist/curpValidationManager-RttixpIc.d.ts +184 -0
  44. package/dist/{curpValidationStateMachine-CitWLr2c.esm.js → curpValidationStateMachine-B7V_qp66.esm.js} +20 -13
  45. package/dist/custom-fields.d.ts +2 -2
  46. package/dist/custom-fields.esm.js +4 -4
  47. package/dist/custom-watchlist.d.ts +1 -1
  48. package/dist/custom-watchlist.esm.js +4 -41
  49. package/dist/customWatchlistStateMachine-HmFybXLX.esm.js +50 -0
  50. package/dist/{deepsightLoader-Cm4JIT_z.esm.js → deepsightLoader-65k1Appi.esm.js} +19 -10
  51. package/dist/{deepsightService-CEVxzehb.d.ts → deepsightService-B7ShOkWL.d.ts} +8 -160
  52. package/dist/deepsightService-CrHmvx8X.esm.js +276 -0
  53. package/dist/device.esm.js +4 -3
  54. package/dist/document-capture.d.ts +992 -83
  55. package/dist/document-capture.esm.js +34 -8
  56. package/dist/document-upload.d.ts +47 -47
  57. package/dist/document-upload.esm.js +7 -7
  58. package/dist/{documentCaptureStateMachine-BqzTDy9k.esm.js → documentCaptureStateMachine-WYV1r9le.esm.js} +90 -6
  59. package/dist/dynamic-forms.d.ts +20 -5
  60. package/dist/dynamic-forms.esm.js +150 -61
  61. package/dist/ekyb.d.ts +32 -13
  62. package/dist/ekyb.esm.js +25 -15
  63. package/dist/{ekybStateMachine-BR2let5f.esm.js → ekybStateMachine-aYixw2sL.esm.js} +319 -207
  64. package/dist/ekyc.d.ts +10 -78
  65. package/dist/ekyc.esm.js +17 -12
  66. package/dist/{ekycStateMachine-oeO0Iekd.esm.js → ekycStateMachine-CXbpaJJn.esm.js} +201 -113
  67. package/dist/electronic-signature.d.ts +3 -3
  68. package/dist/electronic-signature.esm.js +5 -4
  69. package/dist/{electronicSignatureManager-D9OHzTpG.esm.js → electronicSignatureManager-BaECdJ1u.esm.js} +91 -23
  70. package/dist/email.d.ts +4 -3
  71. package/dist/email.esm.js +6 -5
  72. package/dist/{emailManager-wAV0LE-H.esm.js → emailManager--D5G3ChB.esm.js} +30 -7
  73. package/dist/{emailManager-DIfnS5g1.d.ts → emailManager-lAzDoQOs.d.ts} +66 -8
  74. package/dist/{emailStateMachine-DOf4j58N.esm.js → emailStateMachine-CxTOMAjC.esm.js} +46 -11
  75. package/dist/{endpoints-CnN3SyDa.esm.js → endpoints-BeTK0Mlt.esm.js} +6 -3
  76. package/dist/{events-D6-e4vok.esm.js → events-Dvvriq9l.esm.js} +3 -1
  77. package/dist/events.d.ts +2 -0
  78. package/dist/events.esm.js +1 -1
  79. package/dist/extensibility.d.ts +32 -16
  80. package/dist/extensibility.esm.js +55 -33
  81. package/dist/face-match.d.ts +32 -2
  82. package/dist/face-match.esm.js +5 -5
  83. package/dist/{faceCaptureManagerFactory-yqtpxjnN.d.ts → faceCaptureManagerFactory-C_hRHx8a.d.ts} +35 -11
  84. package/dist/{faceCaptureManagerFactory-Dh2PdGlF.esm.js → faceCaptureManagerFactory-kqbUqtrr.esm.js} +21 -5
  85. package/dist/{faceCaptureSetup-B3faSpYA.esm.js → faceCaptureSetup-CtvHWd3x.esm.js} +68 -183
  86. package/dist/{faceMatchStateMachine-DNFrxTFS.esm.js → faceMatchStateMachine-DdGXUBnx.esm.js} +60 -6
  87. package/dist/field-comparison.d.ts +4 -0
  88. package/dist/field-comparison.esm.js +7 -0
  89. package/dist/fieldComparisonManager-Bu5TaSr3.d.ts +76 -0
  90. package/dist/fieldComparisonManager-COGI2ARD.esm.js +162 -0
  91. package/dist/fiscal-qr.d.ts +59 -0
  92. package/dist/fiscal-qr.esm.js +323 -0
  93. package/dist/flow-events.d.ts +6 -5
  94. package/dist/flow.d.ts +23 -15
  95. package/dist/flow.esm.js +63 -17
  96. package/dist/flowCompletionService-BdR2cGgB.d.ts +19 -0
  97. package/dist/flowCompletionService-DdGojV9K.esm.js +20 -0
  98. package/dist/{flowServices-DG3IdWw6.esm.js → flowServices-BTuHLHVr.esm.js} +10 -5
  99. package/dist/geolocation.d.ts +4 -4
  100. package/dist/geolocation.esm.js +6 -6
  101. package/dist/{geolocationStateMachine-asasuHY2.esm.js → geolocationStateMachine-Dvh7X0wF.esm.js} +5 -5
  102. package/dist/getBrowser-C8DP7oTB.esm.js +8 -0
  103. package/dist/{getBrowser-BSXUTWXw.esm.js → getDeviceClass-C0olyNFS.esm.js} +1 -8
  104. package/dist/{getDeviceClass-BSntT9_j.esm.js → getDeviceClass-C8Do2qYu.esm.js} +1 -1
  105. package/dist/government-validation.d.ts +28 -8
  106. package/dist/government-validation.esm.js +19 -8
  107. package/dist/{governmentValidationStateMachine-BDDYrJTo.esm.js → governmentValidationStateMachine-DcJ-BfsC.esm.js} +35 -77
  108. package/dist/home.d.ts +15 -14
  109. package/dist/home.esm.js +2 -2
  110. package/dist/http-Cai3IoLS.esm.js +0 -0
  111. package/dist/http.esm.js +1 -0
  112. package/dist/id-ocr.d.ts +54 -54
  113. package/dist/id-ocr.esm.js +5 -5
  114. package/dist/id-verification.d.ts +27 -27
  115. package/dist/id-verification.esm.js +4 -4
  116. package/dist/id.d.ts +12 -10
  117. package/dist/id.esm.js +36 -26
  118. package/dist/{idCaptureManager-Fyd0eam-.d.ts → idCaptureManager-D-QYESvF.d.ts} +28 -14
  119. package/dist/{idCaptureManager-ZPkD7Gjk.esm.js → idCaptureManager-DGVv5l1_.esm.js} +22 -7
  120. package/dist/{idCaptureStateMachine-BK0bPHoc.esm.js → idCaptureStateMachine-DHi7HydI.esm.js} +172 -123
  121. package/dist/{idOcrStateMachine-YbjjC_Gg.esm.js → idOcrStateMachine-CDQ5d_VM.esm.js} +4 -4
  122. package/dist/{idVerificationStateMachine-xbw9HP1Z.esm.js → idVerificationStateMachine-kRxwImzO.esm.js} +2 -2
  123. package/dist/identity-reuse.d.ts +4 -530
  124. package/dist/identity-reuse.esm.js +8 -274
  125. package/dist/identityReuseManager-C6n_97dw.esm.js +95 -0
  126. package/dist/identityReuseManager-DwLtVzUn.d.ts +428 -0
  127. package/dist/identityReuseStateMachine-BfE5YiEr.esm.js +148 -0
  128. package/dist/{index-BcRG8rtJ.d.ts → index-B5hPA0Bg.d.ts} +2 -2
  129. package/dist/{index-DZoqeAo9.d.ts → index-B9NysVDB.d.ts} +469 -195
  130. package/dist/index.d.ts +2 -2
  131. package/dist/index.esm.js +10 -8
  132. package/dist/{invokeOnCaptureCallback-rc6kBHo5.esm.js → invokeOnCaptureCallback-ygByVdnn.esm.js} +1 -1
  133. package/dist/{lib-BB0B_qQX.esm.js → lib-BY67lgbq.esm.js} +1 -1
  134. package/dist/mandatory-consent.d.ts +8 -412
  135. package/dist/mandatory-consent.esm.js +6 -76
  136. package/dist/mandatoryConsentManager-H6D18cZB.esm.js +89 -0
  137. package/dist/mandatoryConsentManager-KfIlURRY.d.ts +429 -0
  138. package/dist/{mandatoryConsentStateMachine-Cnco1jvn.esm.js → mandatoryConsentStateMachine-DtQNW1ji.esm.js} +6 -6
  139. package/dist/openviduLazy-B8L--0oe.esm.js +3 -0
  140. package/dist/{openviduLazy-Cok70ZSg.esm.js → openviduLazy-Dh14JNJc.esm.js} +2 -2
  141. package/dist/otp-CGMdUzBC.esm.js +33 -0
  142. package/dist/otp-DF5A0sFx.d.ts +8 -0
  143. package/dist/permissionGuards-C1ispV96.esm.js +23 -0
  144. package/dist/permissionServices-CG3bMSfG.esm.js +130 -0
  145. package/dist/phone.d.ts +4 -3
  146. package/dist/phone.esm.js +6 -5
  147. package/dist/{phoneManager-DAJbGhlY.esm.js → phoneManager-BmF-0Ez4.esm.js} +30 -7
  148. package/dist/{phoneManager-B6M30hKE.d.ts → phoneManager-fPmIBYQK.d.ts} +65 -7
  149. package/dist/{phoneStateMachine-CuPARRaT.esm.js → phoneStateMachine-BiV0yoEx.esm.js} +46 -11
  150. package/dist/{qe-signature-DFo_Cc-I.esm.js → qe-signature-CUYPcHVo.esm.js} +1 -1
  151. package/dist/qe-signature.d.ts +3 -3
  152. package/dist/qe-signature.esm.js +6 -5
  153. package/dist/{recordingService-Ig2UgbLv.esm.js → recordingService-Bn9EdCmz.esm.js} +197 -179
  154. package/dist/redirect-to-mobile.d.ts +6 -104
  155. package/dist/redirect-to-mobile.esm.js +6 -99
  156. package/dist/redirectToMobileManager-BNe3IzC_.d.ts +178 -0
  157. package/dist/redirectToMobileManager-Dy3t7o0C.esm.js +159 -0
  158. package/dist/{redirectToMobileStateMachine-BOEqe46A.esm.js → redirectToMobileStateMachine-DyAdRxfP.esm.js} +28 -19
  159. package/dist/{runChildModule-CqqwqAkW.esm.js → runChildModule-CuoHZ1cx.esm.js} +35 -3
  160. package/dist/selfie.d.ts +13 -11
  161. package/dist/selfie.esm.js +27 -23
  162. package/dist/{selfieManager-Duisl7qN.esm.js → selfieManager-BjCoKRy0.esm.js} +6 -6
  163. package/dist/{selfieManager-D0lSgd-J.d.ts → selfieManager-dUbKRzOh.d.ts} +4 -4
  164. package/dist/{selfieStateMachine-D76whWEf.esm.js → selfieStateMachine-b4F2q9zw.esm.js} +5 -3
  165. package/dist/session-DoVb-OcB.esm.js +152 -0
  166. package/dist/session.d.ts +37 -5
  167. package/dist/session.esm.js +12 -7
  168. package/dist/sessionInitializer-B8H5MsXM.esm.js +366 -0
  169. package/dist/{setup-C5AITV8m.d.ts → setup-BbkprdVv.d.ts} +57 -6
  170. package/dist/{setup-DsM8IG7k.esm.js → setup-BqEfrdja.esm.js} +162 -24
  171. package/dist/signature.d.ts +2 -2
  172. package/dist/signature.esm.js +4 -4
  173. package/dist/{signatureStateMachine-B5-QVUve.esm.js → signatureStateMachine-C5qqYLRz.esm.js} +3 -3
  174. package/dist/stats-BMNUG1AU.esm.js +41 -0
  175. package/dist/stats.d.ts +13 -2
  176. package/dist/stats.esm.js +3 -2
  177. package/dist/trust-graph.d.ts +33 -4
  178. package/dist/trust-graph.esm.js +21 -15
  179. package/dist/{types-CFV9G_7j.d.ts → types-Bj9hdFjU.d.ts} +1 -1
  180. package/dist/{types-BP1m8VRw.d.ts → types-DOUhndhT.d.ts} +14 -2
  181. package/dist/types-DsnEVMhr.esm.js +34 -0
  182. package/dist/types-DvGZI7BF.d.ts +131 -0
  183. package/dist/{types-B06Ypu2F.d.ts → types-NuT8ftBV.d.ts} +1 -1
  184. package/dist/types-ya0LN_MX.d.ts +5 -0
  185. package/dist/{warmup-CEcppFiS.d.ts → warmup-Dg8Lh-50.d.ts} +8 -0
  186. package/dist/wasm.d.ts +6 -4
  187. package/dist/wasm.esm.js +11 -9
  188. package/dist/watchlist-for-business.d.ts +1 -1
  189. package/dist/watchlist-for-business.esm.js +5 -73
  190. package/dist/watchlist.d.ts +1 -1
  191. package/dist/watchlist.esm.js +4 -41
  192. package/dist/watchlistForBusinessStateMachine-DMl8j2Ov.esm.js +74 -0
  193. package/dist/watchlistStateMachine-DmQlqI6L.esm.js +50 -0
  194. package/dist/workflow.d.ts +153 -100
  195. package/dist/workflow.esm.js +156 -80
  196. package/package.json +19 -1
  197. package/dist/StateMachine-BCQrZJhf.d.ts +0 -2
  198. package/dist/WasmUtilProvider-j98OJf-S.esm.js +0 -114
  199. package/dist/browserSimulation-gxD8cSpM.esm.js +0 -20
  200. package/dist/deepsightService-O74l4Y__.esm.js +0 -489
  201. package/dist/displayErrors-DqJ_IbsG.d.ts +0 -39
  202. package/dist/flowCompletionService-DhkT4SRY.d.ts +0 -10
  203. package/dist/flowCompletionService-P54yzGvA.esm.js +0 -13
  204. package/dist/openviduLazy-Cm0XFh_v.esm.js +0 -3
  205. package/dist/permissionServices-D_i6nzEw.esm.js +0 -50
  206. package/dist/stats-CIfiPzb1.esm.js +0 -16
  207. package/dist/types-CAD4va6a.d.ts +0 -5
  208. package/dist/watchlistServices-DMbUhkBX.esm.js +0 -12
  209. /package/dist/{Actor-CI32dTbG.d.ts → Actor-Y0_Fj-KL.d.ts} +0 -0
  210. /package/dist/{ITimerCapability-C67ZRskg.esm.js → ITimerCapability-CB0I1Uf2.esm.js} +0 -0
  211. /package/dist/{Manager-C8PrhBOx.d.ts → Manager-BHn8wH8K.d.ts} +0 -0
  212. /package/dist/{camera-PA2Ljri3.esm.js → camera-DJWm3V4g.esm.js} +0 -0
  213. /package/dist/{camera-DBSxa6ML.d.ts → camera-SRBpPq2X.d.ts} +0 -0
  214. /package/dist/{chunk-CRF6K_H_.esm.js → chunk-CMUKZ2uL.esm.js} +0 -0
  215. /package/dist/{cpf-PPz2Njto.esm.js → cpf-BRzggV8G.esm.js} +0 -0
  216. /package/dist/{dateUtils-UoN5xswP.esm.js → dateUtils-AksLQmgV.esm.js} +0 -0
  217. /package/dist/{platform-CfrjKhmi.esm.js → platform-SKvEfCBh.esm.js} +0 -0
  218. /package/dist/{xstate.esm-B70JrNqo.esm.js → xstate.esm-C9wncMQa.esm.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.js";
2
2
  import { t as api } from "./api-CESGtpbH.esm.js";
3
- import { t as endpoints } from "./endpoints-CnN3SyDa.esm.js";
4
- import { i as fromCallback } from "./xstate.esm-B70JrNqo.esm.js";
3
+ import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
4
+ import { i as fromCallback } from "./xstate.esm-C9wncMQa.esm.js";
5
5
 
6
6
  //#region src/shared/usStates.ts
7
7
  const usStates = {
@@ -211,6 +211,66 @@ const usStateOptions = Object.values(usStates).map((state) => ({
211
211
  label: state.name
212
212
  }));
213
213
 
214
+ //#endregion
215
+ //#region src/shared/addressSuggestion.ts
216
+ /** Shown when an autocomplete suggestion has no street (city/region-level result). */
217
+ const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
218
+ function isStreetMissingFromSuggestion(suggestion) {
219
+ return !suggestion.street?.trim();
220
+ }
221
+ /**
222
+ * Validation error for `street` after selecting a suggestion without `street`,
223
+ * or `undefined` when the suggestion is street-level or street is not active.
224
+ */
225
+ function getStreetLevelErrorForSuggestion(suggestion, activeFields) {
226
+ if (!activeFields.has("street")) return void 0;
227
+ return isStreetMissingFromSuggestion(suggestion) ? STREET_LEVEL_REQUIRED_ERROR : void 0;
228
+ }
229
+ /**
230
+ * Fills form values from an address autocomplete suggestion.
231
+ * Shared between eKYC and eKYB address forms.
232
+ */
233
+ function fillFromSuggestion(values, touched, suggestion, activeFields) {
234
+ const newValues = { ...values };
235
+ const newTouched = { ...touched };
236
+ const hasHouseNoField = !activeFields || activeFields.has("houseNo");
237
+ const hasStreetField = !activeFields || activeFields.has("street");
238
+ const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
239
+ if (hasStreetField) {
240
+ newValues.street = streetValue;
241
+ newTouched.street = true;
242
+ }
243
+ if (suggestion.city) {
244
+ newValues.city = suggestion.city;
245
+ newTouched.city = true;
246
+ }
247
+ if (suggestion.stateCode) {
248
+ newValues.state = suggestion.stateCode;
249
+ newTouched.state = true;
250
+ }
251
+ if (suggestion.postalCode) {
252
+ newValues.postalCode = suggestion.postalCode;
253
+ newTouched.postalCode = true;
254
+ }
255
+ if (suggestion.houseNumber && hasHouseNoField) {
256
+ newValues.houseNo = suggestion.houseNumber;
257
+ newTouched.houseNo = true;
258
+ }
259
+ return {
260
+ values: newValues,
261
+ touched: newTouched
262
+ };
263
+ }
264
+ function buildStreetValue(street, houseNumber, hasHouseNoField) {
265
+ if (hasHouseNoField) return street ?? "";
266
+ if (houseNumber && street) return `${houseNumber} ${street}`;
267
+ return houseNumber ?? street ?? "";
268
+ }
269
+
270
+ //#endregion
271
+ //#region src/shared/displayErrors.ts
272
+ const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
273
+
214
274
  //#endregion
215
275
  //#region src/shared/postalCode.ts
216
276
  const DEFAULT_POSTAL_CODE_MAX_LENGTH = 8;
@@ -231,14 +291,6 @@ const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
231
291
  KE: 5,
232
292
  MX: 5
233
293
  };
234
- const POSTAL_CODE_FORMAT_ERROR_KEYS = new Set([
235
- "verification.errors.zipCodeInvalidFormat",
236
- "verification.errors.postalCodeInvalidFormat",
237
- "verification.errors.invalidPostalCodeFixedLength",
238
- "verification.errors.CAPostalCodeInvalidFormat",
239
- "verification.errors.UKPostalCodeInvalidFormat",
240
- "verification.errors.ARPostalCodeInvalidFormat"
241
- ]);
242
294
  const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
243
295
  const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
244
296
  DE: 5,
@@ -333,52 +385,6 @@ function formatPostalCode(value, country) {
333
385
  return value.slice(0, DEFAULT_POSTAL_CODE_MAX_LENGTH);
334
386
  }
335
387
 
336
- //#endregion
337
- //#region src/shared/displayErrors.ts
338
- const DYNAMIC_REQUIRED_KEY = "verification.errors.fieldRequiredDynamic";
339
-
340
- //#endregion
341
- //#region src/shared/addressSuggestion.ts
342
- /**
343
- * Fills form values from an address autocomplete suggestion.
344
- * Shared between eKYC and eKYB address forms.
345
- */
346
- function fillFromSuggestion(values, touched, suggestion, activeFields) {
347
- const newValues = { ...values };
348
- const newTouched = { ...touched };
349
- const hasHouseNoField = !activeFields || activeFields.has("houseNo");
350
- const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
351
- if (streetValue) {
352
- newValues.street = streetValue;
353
- newTouched.street = true;
354
- }
355
- if (suggestion.city) {
356
- newValues.city = suggestion.city;
357
- newTouched.city = true;
358
- }
359
- if (suggestion.stateCode) {
360
- newValues.state = suggestion.stateCode;
361
- newTouched.state = true;
362
- }
363
- if (suggestion.postalCode) {
364
- newValues.postalCode = suggestion.postalCode;
365
- newTouched.postalCode = true;
366
- }
367
- if (suggestion.houseNumber && hasHouseNoField) {
368
- newValues.houseNo = suggestion.houseNumber;
369
- newTouched.houseNo = true;
370
- }
371
- return {
372
- values: newValues,
373
- touched: newTouched
374
- };
375
- }
376
- function buildStreetValue(street, houseNumber, hasHouseNoField) {
377
- if (hasHouseNoField) return street ?? "";
378
- if (houseNumber && street) return `${houseNumber} ${street}`;
379
- return houseNumber ?? street ?? "";
380
- }
381
-
382
388
  //#endregion
383
389
  //#region src/shared/addressSearch.ts
384
390
  /** Searches for address suggestions via the address autocomplete API. */
@@ -427,4 +433,4 @@ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
427
433
  });
428
434
 
429
435
  //#endregion
430
- export { POSTAL_CODE_FORMAT_ERROR_KEYS as a, getPostalCodeMaxLength as c, FIXED_DIGIT_POSTAL_CODE_LENGTH as i, validatePostalCode as l, fillFromSuggestion as n, formatPostalCode as o, DYNAMIC_REQUIRED_KEY as r, getPostalCodeErrorKey as s, debounceSearchActor as t, usStateOptions as u };
436
+ export { getPostalCodeMaxLength as a, STREET_LEVEL_REQUIRED_ERROR as c, usStateOptions as d, getPostalCodeErrorKey as i, fillFromSuggestion as l, FIXED_DIGIT_POSTAL_CODE_LENGTH as n, validatePostalCode as o, formatPostalCode as r, DYNAMIC_REQUIRED_KEY as s, debounceSearchActor as t, getStreetLevelErrorForSuggestion as u };
@@ -1,4 +1,4 @@
1
- import { t as createElectronicSignatureManager } from "./electronicSignatureManager-D9OHzTpG.esm.js";
1
+ import { t as createElectronicSignatureManager } from "./electronicSignatureManager-BaECdJ1u.esm.js";
2
2
 
3
3
  //#region src/modules/ae-signature/index.ts
4
4
  function createAeSignatureManager(options) {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-C8PrhBOx.js";
2
- import "./Actor-CI32dTbG.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-DZoqeAo9.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-B9NysVDB.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,8 +1,9 @@
1
1
  import "./api-CESGtpbH.esm.js";
2
- import "./events-D6-e4vok.esm.js";
3
- import "./endpoints-CnN3SyDa.esm.js";
4
- import "./xstate.esm-B70JrNqo.esm.js";
5
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-D9OHzTpG.esm.js";
6
- import { t as createAeSignatureManager } from "./ae-signature-DDDZmWXj.esm.js";
2
+ import "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-BeTK0Mlt.esm.js";
4
+ import "./xstate.esm-C9wncMQa.esm.js";
5
+ import "./apiError-B-j-gyDx.esm.js";
6
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-BaECdJ1u.esm.js";
7
+ import { t as createAeSignatureManager } from "./ae-signature-BFZta3TZ.esm.js";
7
8
 
8
9
  export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
@@ -1,50 +1,9 @@
1
- import { t as Manager } from "./Manager-C8PrhBOx.js";
1
+ import "./Manager-BHn8wH8K.js";
2
+ import "./Actor-Y0_Fj-KL.js";
3
+ import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-CznnhyvD.js";
2
4
 
3
- //#region src/modules/antifraud/antifraudManager.d.ts
4
- type AntifraudIdleState = {
5
- status: 'idle';
6
- };
7
- type AntifraudProcessingState = {
8
- status: 'processing';
9
- };
10
- type AntifraudFinishedState = {
11
- status: 'finished';
12
- };
13
- /**
14
- * Union of all possible antifraud manager states.
15
- *
16
- * @example
17
- * ```typescript
18
- * const state = antifraudManager.getState();
19
- * if (state.status === 'finished') {
20
- * console.log('Antifraud check complete');
21
- * }
22
- * ```
23
- */
24
- type AntifraudState = AntifraudIdleState | AntifraudProcessingState | AntifraudFinishedState;
25
- /**
26
- * Creates an antifraud manager for headless or UI-driven usage.
27
- *
28
- * @example Headless usage
29
- * ```typescript
30
- * const manager = createAntifraudManager();
31
- * manager.subscribe((state) => console.log(state.status));
32
- * manager.load();
33
- * ```
34
- */
35
- declare function createAntifraudManager(): Manager<AntifraudState> & {
36
- /**
37
- * Kicks off the antifraud process.
38
- * Transitions from 'idle' to 'processing'.
39
- */
40
- load(): void;
41
- };
42
- type AntifraudManager = ReturnType<typeof createAntifraudManager>;
43
- //#endregion
44
- //#region src/modules/antifraud/antifraudStateMachine.d.ts
45
- declare const antifraudMachine: any;
46
- //#endregion
47
5
  //#region src/modules/antifraud/types.d.ts
6
+
48
7
  /**
49
8
  * Configuration options for the antifraud module.
50
9
  *
@@ -54,4 +13,4 @@ declare const antifraudMachine: any;
54
13
  */
55
14
  type AntifraudConfig = Record<string, never>;
56
15
  //#endregion
57
- export { type AntifraudConfig, type AntifraudManager, type AntifraudState, antifraudMachine, createAntifraudManager };
16
+ export { type AntifraudConfig, type AntifraudManager, type AntifraudState, antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -1,45 +1,8 @@
1
1
  import "./api-CESGtpbH.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D6-e4vok.esm.js";
3
- import "./endpoints-CnN3SyDa.esm.js";
4
- import { c as createManager, s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
5
- import { t as antifraudMachine } from "./antifraudStateMachine-O0TMf6yc.esm.js";
2
+ import "./events-Dvvriq9l.esm.js";
3
+ import "./endpoints-BeTK0Mlt.esm.js";
4
+ import "./xstate.esm-C9wncMQa.esm.js";
5
+ import { t as antifraudMachine } from "./antifraudStateMachine-Ccrb-Jxc.esm.js";
6
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CkV4u-LE.esm.js";
6
7
 
7
- //#region src/modules/antifraud/antifraudActor.ts
8
- function createAntifraudActor() {
9
- return createActor(antifraudMachine).start();
10
- }
11
-
12
- //#endregion
13
- //#region src/modules/antifraud/antifraudManager.ts
14
- function mapState(snapshot) {
15
- const typedSnapshot = snapshot;
16
- if (typedSnapshot.matches("processing")) return { status: "processing" };
17
- if (typedSnapshot.matches("finished")) return { status: "finished" };
18
- return { status: "idle" };
19
- }
20
- function createApi({ actor }) {
21
- return { load() {
22
- actor.send({ type: "LOAD" });
23
- } };
24
- }
25
- /**
26
- * Creates an antifraud manager for headless or UI-driven usage.
27
- *
28
- * @example Headless usage
29
- * ```typescript
30
- * const manager = createAntifraudManager();
31
- * manager.subscribe((state) => console.log(state.status));
32
- * manager.load();
33
- * ```
34
- */
35
- function createAntifraudManager() {
36
- return createManager({
37
- actor: createAntifraudActor(),
38
- mapState,
39
- createApi,
40
- instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
41
- });
42
- }
43
-
44
- //#endregion
45
- export { antifraudMachine, createAntifraudManager };
8
+ export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -0,0 +1,55 @@
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dvvriq9l.esm.js";
2
+ import { c as createManager, s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
3
+ import { t as antifraudMachine } from "./antifraudStateMachine-Ccrb-Jxc.esm.js";
4
+
5
+ //#region src/modules/antifraud/antifraudActor.ts
6
+ function createAntifraudActor() {
7
+ return createActor(antifraudMachine).start();
8
+ }
9
+
10
+ //#endregion
11
+ //#region src/modules/antifraud/antifraudManager.ts
12
+ function mapState(snapshot) {
13
+ const typedSnapshot = snapshot;
14
+ if (typedSnapshot.matches("processing")) return { status: "processing" };
15
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
16
+ return { status: "idle" };
17
+ }
18
+ function createApi({ actor }) {
19
+ return { load() {
20
+ actor.send({ type: "LOAD" });
21
+ } };
22
+ }
23
+ /**
24
+ * Creates an antifraud manager for headless or UI-driven usage.
25
+ *
26
+ * @example Headless usage
27
+ * ```typescript
28
+ * const manager = createAntifraudManager();
29
+ * manager.subscribe((state) => console.log(state.status));
30
+ * manager.load();
31
+ * ```
32
+ */
33
+ function createAntifraudManager() {
34
+ return createManager({
35
+ actor: createAntifraudActor(),
36
+ mapState,
37
+ createApi,
38
+ instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
39
+ });
40
+ }
41
+ /**
42
+ * Creates an antifraud manager from a pre-built actor.
43
+ * Use this when overriding the machine via `.provide()` for custom backends or testing.
44
+ */
45
+ function createAntifraudManagerFromActor(actor) {
46
+ return createManager({
47
+ actor,
48
+ mapState,
49
+ createApi,
50
+ instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
51
+ });
52
+ }
53
+
54
+ //#endregion
55
+ export { createAntifraudManagerFromActor as n, createAntifraudManager as t };
@@ -0,0 +1,63 @@
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import { t as ActorRefFrom } from "./Actor-Y0_Fj-KL.js";
3
+
4
+ //#region src/modules/antifraud/antifraudStateMachine.d.ts
5
+ declare const antifraudMachine: any;
6
+ type AntifraudMachine = typeof antifraudMachine;
7
+ //#endregion
8
+ //#region src/modules/antifraud/antifraudActor.d.ts
9
+ type AntifraudActor = ActorRefFrom<AntifraudMachine>;
10
+ //#endregion
11
+ //#region src/modules/antifraud/antifraudManager.d.ts
12
+ type AntifraudIdleState = {
13
+ status: 'idle';
14
+ };
15
+ type AntifraudProcessingState = {
16
+ status: 'processing';
17
+ };
18
+ type AntifraudFinishedState = {
19
+ status: 'finished';
20
+ };
21
+ /**
22
+ * Union of all possible antifraud manager states.
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * const state = antifraudManager.getState();
27
+ * if (state.status === 'finished') {
28
+ * console.log('Antifraud check complete');
29
+ * }
30
+ * ```
31
+ */
32
+ type AntifraudState = AntifraudIdleState | AntifraudProcessingState | AntifraudFinishedState;
33
+ /**
34
+ * Creates an antifraud manager for headless or UI-driven usage.
35
+ *
36
+ * @example Headless usage
37
+ * ```typescript
38
+ * const manager = createAntifraudManager();
39
+ * manager.subscribe((state) => console.log(state.status));
40
+ * manager.load();
41
+ * ```
42
+ */
43
+ declare function createAntifraudManager(): Manager<AntifraudState> & {
44
+ /**
45
+ * Kicks off the antifraud process.
46
+ * Transitions from 'idle' to 'processing'.
47
+ */
48
+ load(): void;
49
+ };
50
+ /**
51
+ * Creates an antifraud manager from a pre-built actor.
52
+ * Use this when overriding the machine via `.provide()` for custom backends or testing.
53
+ */
54
+ declare function createAntifraudManagerFromActor(actor: AntifraudActor): Manager<AntifraudState> & {
55
+ /**
56
+ * Kicks off the antifraud process.
57
+ * Transitions from 'idle' to 'processing'.
58
+ */
59
+ load(): void;
60
+ };
61
+ type AntifraudManager = ReturnType<typeof createAntifraudManager>;
62
+ //#endregion
63
+ export { AntifraudActor as a, createAntifraudManagerFromActor as i, AntifraudState as n, antifraudMachine as o, createAntifraudManager as r, AntifraudManager as t };
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-CESGtpbH.esm.js";
2
- import { t as endpoints } from "./endpoints-CnN3SyDa.esm.js";
3
- import { a as fromPromise, t as setup } from "./xstate.esm-B70JrNqo.esm.js";
2
+ import { t as endpoints } from "./endpoints-BeTK0Mlt.esm.js";
3
+ import { a as fromPromise, t as setup } from "./xstate.esm-C9wncMQa.esm.js";
4
4
 
5
5
  //#region src/modules/antifraud/antifraudServices.ts
6
6
  async function processAntifraud(signal) {
@@ -0,0 +1,51 @@
1
+ //#region src/internal/http/apiError.ts
2
+ /**
3
+ * Incode API error.
4
+ *
5
+ * Wraps an HTTP failure so callers can branch on the Incode-specific status
6
+ * code (e.g. `4028` for "Flow is not activated") and surface the server's
7
+ * human-readable message to the user. The Incode backend returns these on
8
+ * HTTP `400` responses with a body shaped:
9
+ *
10
+ * ```json
11
+ * { "status": 4028, "error": "Flow is not activated.", "message": "...", "path": "/0/omni/start" }
12
+ * ```
13
+ *
14
+ * - `status` — prefers the body's Incode status code, falls back to the HTTP
15
+ * status when the body doesn't carry one.
16
+ * - `httpStatus` — always the underlying HTTP status.
17
+ * - `cause` — the original `HttpError` (typically `FetchHttpError`) is
18
+ * preserved on the standard ES `Error.cause` slot, so core consumers that
19
+ * need `url` / `method` / `headers` / raw `data` can read them via
20
+ * `err.cause`.
21
+ */
22
+ var IncodeApiError = class extends Error {
23
+ constructor(endpoint, status, httpStatus, message, cause) {
24
+ super(message);
25
+ this.name = "IncodeApiError";
26
+ this.endpoint = endpoint;
27
+ this.status = status;
28
+ this.httpStatus = httpStatus;
29
+ if (cause !== void 0) this.cause = cause;
30
+ }
31
+ };
32
+ function isHttpError(err) {
33
+ return typeof err === "object" && err !== null && "status" in err && "statusText" in err && "data" in err;
34
+ }
35
+ /**
36
+ * Convert an unknown error caught from `api.{get,post,...}` into an
37
+ * `IncodeApiError`, extracting the Incode-specific status and message from
38
+ * the response body when present. The original error is preserved on
39
+ * `IncodeApiError.cause`. Non-HTTP errors (including `AbortError`) and any
40
+ * other shape are re-thrown unchanged.
41
+ */
42
+ function toIncodeApiError(endpoint, err) {
43
+ if (!isHttpError(err)) throw err;
44
+ const body = err.data ?? {};
45
+ const status = typeof body.status === "number" ? body.status : err.status;
46
+ const message = body.error ?? body.message ?? err.statusText ?? `HTTP ${err.status}`;
47
+ throw new IncodeApiError(endpoint, status, err.status, message, err);
48
+ }
49
+
50
+ //#endregion
51
+ export { toIncodeApiError as n, IncodeApiError as t };
@@ -1,12 +1,14 @@
1
- import "./warmup-CEcppFiS.js";
2
- import "./Manager-C8PrhBOx.js";
3
- import "./Actor-CI32dTbG.js";
4
- import "./StateMachine-BCQrZJhf.js";
5
- import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-yqtpxjnN.js";
6
- import "./camera-DBSxa6ML.js";
7
- import "./types-CFV9G_7j.js";
8
- import "./types-BP1m8VRw.js";
9
- import "./deepsightService-CEVxzehb.js";
10
- import "./types-CAD4va6a.js";
11
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C83GNIhl.js";
1
+ import "./warmup-Dg8Lh-50.js";
2
+ import "./Manager-BHn8wH8K.js";
3
+ import "./Actor-Y0_Fj-KL.js";
4
+ import "./StateMachine-BC_nGvrc.js";
5
+ import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
6
+ import "./camera-SRBpPq2X.js";
7
+ import "./types-Bj9hdFjU.js";
8
+ import "./types-DvGZI7BF.js";
9
+ import "./types-DOUhndhT.js";
10
+ import "./deepsightService-B7ShOkWL.js";
11
+ import "./types-ya0LN_MX.js";
12
+ import "./StreamCanvasCapture-yyl20qd9.js";
13
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CIVY80H9.js";
12
14
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,25 +1,29 @@
1
- import "./BaseWasmProvider-C_DLEI40.esm.js";
2
- import "./WasmUtilProvider-j98OJf-S.esm.js";
1
+ import "./WasmUtilProvider-CiEN7Gjn.esm.js";
3
2
  import "./api-CESGtpbH.esm.js";
4
- import "./events-D6-e4vok.esm.js";
5
- import "./endpoints-CnN3SyDa.esm.js";
6
- import "./browserSimulation-gxD8cSpM.esm.js";
7
- import "./xstate.esm-B70JrNqo.esm.js";
8
- import "./faceCaptureManagerFactory-Dh2PdGlF.esm.js";
9
- import "./BrowserStorageProvider-CuOW1Er2.esm.js";
10
- import "./faceCaptureSetup-B3faSpYA.esm.js";
11
- import "./ITimerCapability-C67ZRskg.esm.js";
12
- import "./camera-PA2Ljri3.esm.js";
13
- import "./deepsightService-O74l4Y__.esm.js";
14
- import "./recordingService-Ig2UgbLv.esm.js";
15
- import "./platform-CfrjKhmi.esm.js";
16
- import "./backCameraStream-DMdMeGk2.esm.js";
17
- import "./getBrowser-BSXUTWXw.esm.js";
18
- import "./stats-CIfiPzb1.esm.js";
19
- import "./getDeviceClass-BSntT9_j.esm.js";
20
- import "./MotionSensorProvider-4v7xkqAp.esm.js";
21
- import "./permissionServices-D_i6nzEw.esm.js";
22
- import { t as authenticationMachine } from "./authenticationStateMachine-BMZqatiF.esm.js";
23
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-5M-fKzXx.esm.js";
3
+ import "./events-Dvvriq9l.esm.js";
4
+ import "./endpoints-BeTK0Mlt.esm.js";
5
+ import "./stats-BMNUG1AU.esm.js";
6
+ import "./browserSimulation-B1dWiXp7.esm.js";
7
+ import "./platform-SKvEfCBh.esm.js";
8
+ import "./getBrowser-C8DP7oTB.esm.js";
9
+ import "./xstate.esm-C9wncMQa.esm.js";
10
+ import "./BrowserStorageProvider-BpJM-gIl.esm.js";
11
+ import "./MotionSensorProvider-Bx7Mpzt0.esm.js";
12
+ import "./permissionServices-CG3bMSfG.esm.js";
13
+ import "./camera-DJWm3V4g.esm.js";
14
+ import "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
15
+ import "./recordingService-Bn9EdCmz.esm.js";
16
+ import "./ITimerCapability-CB0I1Uf2.esm.js";
17
+ import "./canvas-SKcRBxsk.esm.js";
18
+ import "./backCameraStream-D7Wo4Nbx.esm.js";
19
+ import "./deepsightService-CrHmvx8X.esm.js";
20
+ import "./getDeviceClass-C0olyNFS.esm.js";
21
+ import "./getDeviceClass-C8Do2qYu.esm.js";
22
+ import "./types-DsnEVMhr.esm.js";
23
+ import "./StreamCanvasCapture-ImiDQdVA.esm.js";
24
+ import "./permissionGuards-C1ispV96.esm.js";
25
+ import "./faceCaptureSetup-CtvHWd3x.esm.js";
26
+ import { t as authenticationMachine } from "./authenticationStateMachine-DksVbF_H.esm.js";
27
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-ZNotsWnC.esm.js";
24
28
 
25
29
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,11 +1,11 @@
1
- import { t as Manager } from "./Manager-C8PrhBOx.js";
2
- import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-yqtpxjnN.js";
1
+ import { t as Manager } from "./Manager-BHn8wH8K.js";
2
+ import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-C_hRHx8a.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  declare function createAuthenticationManagerFromActor(actor: AuthenticationActor): Manager<FaceCaptureManagerState> & {
7
7
  load(): void;
8
- nextStep(): void;
8
+ nextStep(): Promise<void>;
9
9
  requestPermission(): void;
10
10
  goToLearnMore(): void;
11
11
  back(): void;
@@ -52,7 +52,7 @@ declare function createAuthenticationManagerFromActor(actor: AuthenticationActor
52
52
  */
53
53
  declare function createAuthenticationManager(options: CreateAuthenticationActorOptions): Manager<FaceCaptureManagerState> & {
54
54
  load(): void;
55
- nextStep(): void;
55
+ nextStep(): Promise<void>;
56
56
  requestPermission(): void;
57
57
  goToLearnMore(): void;
58
58
  back(): void;
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-j98OJf-S.esm.js";
2
- import { n as eventModuleNames } from "./events-D6-e4vok.esm.js";
3
- import { s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Dh2PdGlF.esm.js";
5
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CuOW1Er2.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BMZqatiF.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-CiEN7Gjn.esm.js";
2
+ import { n as eventModuleNames } from "./events-Dvvriq9l.esm.js";
3
+ import { s as createActor } from "./xstate.esm-C9wncMQa.esm.js";
4
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BpJM-gIl.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-kqbUqtrr.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-DksVbF_H.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {