@incodetech/core 0.0.0-dev-20260903-cb11a9ab → 0.0.0-dev-20260908-bc61c595

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 (63) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-Bdp-zwAD.esm.js → BrowserDiagnosticsCryptoProvider-COg8iELF.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-DtdWBO9B.esm.js → apiError-gVQs-Oxi.esm.js} +1 -1
  4. package/dist/authentication.d.ts +2 -2
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-Be64Kl4X.d.ts → authenticationManager-BCkV6CSG.d.ts} +1 -1
  7. package/dist/{authenticationManager-5OHZKAk-.esm.js → authenticationManager-CXRIdm8K.esm.js} +3 -3
  8. package/dist/{authenticationStateMachine-QPAhHZNa.esm.js → authenticationStateMachine-EBxmokh-.esm.js} +2 -2
  9. package/dist/{deepsightLoader-CP8TjQ0_.esm.js → deepsightLoader-CbUkJe2L.esm.js} +2 -2
  10. package/dist/dynamic-forms.esm.js +2 -2
  11. package/dist/{dynamicFormsManager-C_uLv-j7.esm.js → dynamicFormsManager-ClAZl2ot.esm.js} +1 -1
  12. package/dist/{dynamicFormsStateMachine-CLWUWc-G.esm.js → dynamicFormsStateMachine-Be2f9LsF.esm.js} +1 -1
  13. package/dist/ekyb.esm.js +3 -3
  14. package/dist/{ekybManager-Ca6y67Lj.esm.js → ekybManager-CvzO6TGV.esm.js} +1 -1
  15. package/dist/{ekybStateMachine-BMs1zUp-.esm.js → ekybStateMachine-2jA6bLAR.esm.js} +1 -1
  16. package/dist/electronic-signature.esm.js +1 -1
  17. package/dist/{electronicSignatureManager-FRR-mgfN.esm.js → electronicSignatureManager-AI_PS64z.esm.js} +1 -1
  18. package/dist/extensibility.d.ts +6 -6
  19. package/dist/extensibility.esm.js +10 -10
  20. package/dist/{faceCaptureManagerFactory-CzEyW5zU.d.ts → faceCaptureManagerFactory-CzUr_ZPq.d.ts} +3 -3
  21. package/dist/{faceCaptureManagerFactory-Da_Q_58Y.esm.js → faceCaptureManagerFactory-DVxdlwpM.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-1iPMffsU.esm.js → faceCaptureSetup--6GLJ4eE.esm.js} +19 -3
  23. package/dist/{feature-management-BimUsGVX.esm.js → feature-management-4Nknz-8m.esm.js} +1 -1
  24. package/dist/feature-management.esm.js +1 -1
  25. package/dist/flow.esm.js +3 -3
  26. package/dist/{flowCompletionService-B3Hzat5g.esm.js → flowCompletionService-jtw6OcpK.esm.js} +1 -1
  27. package/dist/{flowServices-CMpx1GCZ.esm.js → flowServices-CYrJcJVa.esm.js} +4 -4
  28. package/dist/geolocation.esm.js +2 -2
  29. package/dist/{geolocationManager-D5fnHjEI.esm.js → geolocationManager-DGRfvEeJ.esm.js} +1 -1
  30. package/dist/{geolocationStateMachine-BAKVk8Az.esm.js → geolocationStateMachine-Bo0lnnfK.esm.js} +1 -1
  31. package/dist/id-selfie-flow.esm.js +7 -7
  32. package/dist/id.d.ts +2 -2
  33. package/dist/id.esm.js +5 -5
  34. package/dist/{idCaptureDefaults-1s-kgOKZ.esm.js → idCaptureDefaults-DeQq5Rg9.esm.js} +1 -1
  35. package/dist/{idCaptureManager-B2UfP1pP.d.ts → idCaptureManager-BBbaa0Vu.d.ts} +6 -1
  36. package/dist/{idCaptureManager-DH7XlO99.esm.js → idCaptureManager-CUG6brDu.esm.js} +31 -6
  37. package/dist/{idCaptureServices-DUe66Z6j.esm.js → idCaptureServices-Sa62Ym8B.esm.js} +13 -8
  38. package/dist/{idCaptureStateMachine-Cc67bc4h.esm.js → idCaptureStateMachine-ZET2TjQh.esm.js} +19 -10
  39. package/dist/identity-reuse.d.ts +1 -1
  40. package/dist/{identityReuseManager-BFDI7iFK.d.ts → identityReuseManager-v2TH5g7e.d.ts} +4 -4
  41. package/dist/index.esm.js +1 -1
  42. package/dist/mandatory-consent.d.ts +1 -1
  43. package/dist/{mandatoryConsentManager-CSh8HjSF.d.ts → mandatoryConsentManager-BxrRrlBs.d.ts} +4 -4
  44. package/dist/{onDeviceFaceResults-D8HU4XDW.esm.js → onDeviceFaceResults-Def2ASND.esm.js} +7 -6
  45. package/dist/personhood.esm.js +4 -4
  46. package/dist/qe-signature.esm.js +1 -1
  47. package/dist/{runChildModule-DVa0f22q.esm.js → runChildModule-ApFDPyJN.esm.js} +1 -1
  48. package/dist/{sdkVersion-Bh4p324K.esm.js → sdkVersion-R4ye437D.esm.js} +1 -1
  49. package/dist/selfie.d.ts +2 -2
  50. package/dist/selfie.esm.js +5 -5
  51. package/dist/{selfieManager-CJ8SCm7y.esm.js → selfieManager-BLhKtKhE.esm.js} +3 -3
  52. package/dist/{selfieManager-CvJ2RUGy.d.ts → selfieManager-Bg_Xwe4p.d.ts} +1 -1
  53. package/dist/{selfieStateMachine-SiIxh7T9.esm.js → selfieStateMachine-vBVZRCB2.esm.js} +2 -2
  54. package/dist/{session-BNS--jmg.esm.js → session-DgSfkImL.esm.js} +3 -3
  55. package/dist/session.esm.js +4 -4
  56. package/dist/{sessionInitializer-CrOp8xKD.esm.js → sessionInitializer-C53gDEY6.esm.js} +3 -3
  57. package/dist/{setup-CG44R4qH.esm.js → setup-BoKqVO-H.esm.js} +4 -4
  58. package/dist/{trueSightService-BfGQ9MOL.esm.js → trueSightService-D8pETNRD.esm.js} +2 -2
  59. package/dist/video-selfie.esm.js +4 -4
  60. package/dist/{videoSelfieCameraWarmer-DBOEzmED.esm.js → videoSelfieCameraWarmer-B33daRoY.esm.js} +3 -3
  61. package/dist/wasm.esm.js +1 -1
  62. package/dist/workflow.esm.js +14 -14
  63. package/package.json +1 -1
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
18
18
  */
19
19
  function getTruesightKey() {
20
20
  try {
21
- const key = decodeTruesightKey("iLaYAp/YrnQ6e/8aGv7UJohV3ugRt3bWJ99RP2JNjAs=", "HxA2M0rvNS3tyOX2UngYQE6y++c4c235RTRsEhZ0Kbo=");
21
+ const key = decodeTruesightKey("1Qo+hrJe4euyBMaHMJuk7eZ05rJsXWBB99mB+cer2jY=", "GcDwlqy5CHBRbmHb1DeHyDGLZs1dA6aXZAw2b/xivmo=");
22
22
  return key.length === KEY_LENGTH_BYTES ? key : null;
23
23
  } catch {
24
24
  return null;
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-FRR-mgfN.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-AI_PS64z.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-BfGQ9MOL.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-D8pETNRD.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CzEyW5zU.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CzUr_ZPq.js";
2
2
  import { t as AuthenticationConfig } from "./types-m4t_cT5J.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Be64Kl4X.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BCkV6CSG.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-QPAhHZNa.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-5OHZKAk-.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-EBxmokh-.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CXRIdm8K.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CzEyW5zU.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-CzUr_ZPq.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,9 @@
1
- import { l as BrowserStorageProvider } from "./setup-CG44R4qH.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-BoKqVO-H.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Da_Q_58Y.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-QPAhHZNa.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DVxdlwpM.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-EBxmokh-.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
4
4
  import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-1iPMffsU.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-D8HU4XDW.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup--6GLJ4eE.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Def2ASND.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-q9LxdYDh.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,7 +1,7 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-BfGQ9MOL.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CrOp8xKD.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-D8pETNRD.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-C53gDEY6.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
6
6
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
7
7
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CLWUWc-G.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-C_uLv-j7.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Be2f9LsF.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-ClAZl2ot.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CLWUWc-G.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Be2f9LsF.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DtdWBO9B.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-gVQs-Oxi.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-CMpx1GCZ.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-BMs1zUp-.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-Ca6y67Lj.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-CYrJcJVa.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-2jA6bLAR.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-CvzO6TGV.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-BMs1zUp-.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-2jA6bLAR.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-CMpx1GCZ.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-CYrJcJVa.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-BRSu_aGA.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-FRR-mgfN.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-AI_PS64z.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-DtdWBO9B.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-gVQs-Oxi.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -5,12 +5,12 @@ import "./Actor-iTq7YY48.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-Ds-KEVTq.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-CzEyW5zU.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-CzUr_ZPq.js";
9
9
  import "./createFaceAvatar-pUEkdk4X.js";
10
10
  import { i as IStorageCapability, n as VirtualCameraCheckOutput, r as WasmUtilConfig, t as IWasmUtilCapability } from "./IWasmUtilCapability-SNPhmIwB.js";
11
11
  import { n as BaseWasmProvider } from "./FaceDetectionProvider-Cn1wS-sA.js";
12
12
  import "./deepsightService-MZOpj7Vp.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Be64Kl4X.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BCkV6CSG.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.js";
15
15
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
16
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
@@ -22,15 +22,15 @@ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as D
22
22
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
23
23
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
24
24
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
25
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CvJ2RUGy.js";
25
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Bg_Xwe4p.js";
26
26
  import { i as CaptureIdResponse } from "./types-DdbdcjPc2.js";
27
- import { A as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-B2UfP1pP.js";
27
+ import { i as createIdCaptureManagerFromActor, j as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-BBbaa0Vu.js";
28
28
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
29
29
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
30
30
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
31
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BFDI7iFK.js";
31
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
32
32
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
33
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CSh8HjSF.js";
33
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BxrRrlBs.js";
34
34
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
35
35
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
36
36
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-CG44R4qH.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-BoKqVO-H.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-CrOp8xKD.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-C53gDEY6.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-FRR-mgfN.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-AI_PS64z.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-Bg9ynGum.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-1iPMffsU.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-5OHZKAk-.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup--6GLJ4eE.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CXRIdm8K.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-Bfvkq7Cy.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-B5Vqdez-.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-QMOGwHXR.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-2j_PBq4U.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DUVrEdw9.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-BqY_B0Ii.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-C_uLv-j7.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-Ca6y67Lj.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-ClAZl2ot.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-CvzO6TGV.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-CmQBpeiI.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-B5ek_UfM.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-CJ8SCm7y.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DH7XlO99.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BLhKtKhE.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CUG6brDu.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-N1-sbrY4.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-CI8BHFob.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CpuuB1J2.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DHU22hVn.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DsFzdTwA.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-ChsB-nMD.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-D5fnHjEI.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-DGRfvEeJ.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-TjC9iVjH.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CyaixD0D.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Caal2zyV.esm.js";
@@ -85,9 +85,9 @@ type RecordingService = {
85
85
  * Prepares the recording metadata needed by the face-image upload.
86
86
  *
87
87
  * Local video-liveness recordings must stop here because their upload id is
88
- * sent with the image. Scoped face recordings return no legacy id and stay
89
- * active across rejected attempts; the state machine finalizes them only
90
- * after the backend accepts the capture.
88
+ * sent with the image. Scoped face recordings return no legacy id, pause at
89
+ * the end of each attempt, and resume the same upload after a rejection; the
90
+ * state machine finalizes them only after the backend accepts the capture.
91
91
  */
92
92
  prepareUpload(): Promise<{
93
93
  recordingId: string | null;
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
- import { r as concealmentToAvatar } from "./faceCaptureSetup-1iPMffsU.esm.js";
4
+ import { r as concealmentToAvatar } from "./faceCaptureSetup--6GLJ4eE.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-CyCdsfox.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-J5S1dEIf.esm.js";
@@ -3,7 +3,7 @@ import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
3
3
  import { i as assign, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
5
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
6
- import { c as sendLabelInspectionEvent, d as stopRecording, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession, u as startRecordingSession } from "./onDeviceFaceResults-D8HU4XDW.esm.js";
6
+ import { c as sendLabelInspectionEvent, d as stopRecording, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession, u as startRecordingSession } from "./onDeviceFaceResults-Def2ASND.esm.js";
7
7
  import { i as uploadDeepsightVideo } from "./recordingsRepository-CCWy13M-.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
9
9
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-DQKaRise.esm.js";
@@ -533,22 +533,38 @@ var LocalRecordingService = class {
533
533
  var MultipartFaceRecordingService = class {
534
534
  constructor() {
535
535
  this.service = new MultipartRecordingService("selfie");
536
+ this.pausedForAttempt = false;
536
537
  }
537
538
  async start(stream) {
539
+ if (this.pausedForAttempt) {
540
+ if (!this.service.resume()) throw new Error("Face recording did not resume");
541
+ this.pausedForAttempt = false;
542
+ return;
543
+ }
538
544
  await this.service.start(stream);
539
545
  }
540
546
  async prepareUpload() {
547
+ this.pausedForAttempt = this.service.pause();
541
548
  return { recordingId: null };
542
549
  }
543
550
  async stop() {
544
- await this.service.stop();
551
+ try {
552
+ await this.service.stop();
553
+ } finally {
554
+ this.pausedForAttempt = false;
555
+ }
545
556
  return { recordingId: null };
546
557
  }
547
558
  async stopAndGetVideo() {
548
- await this.service.stop();
559
+ try {
560
+ await this.service.stop();
561
+ } finally {
562
+ this.pausedForAttempt = false;
563
+ }
549
564
  return { videoBase64: void 0 };
550
565
  }
551
566
  cleanup() {
567
+ this.pausedForAttempt = false;
552
568
  this.service.cleanup();
553
569
  }
554
570
  };
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-Bh4p324K.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-R4ye437D.esm.js";
3
3
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
4
4
  let currentEnvironment;
5
5
  /** Effective tier: the explicitly-set value, else the default (see note above). */
@@ -1,2 +1,2 @@
1
- import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-BimUsGVX.esm.js";
1
+ import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-4Nknz-8m.esm.js";
2
2
  export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-CMpx1GCZ.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-CYrJcJVa.esm.js";
3
3
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-B3Hzat5g.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DVa0f22q.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-jtw6OcpK.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-ApFDPyJN.esm.js";
7
7
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
8
8
  //#region src/modules/flow/noOpFlowModuleMachine.ts
9
9
  const noOpFlowModuleMachine = setup({}).createMachine({
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-DtdWBO9B.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-gVQs-Oxi.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,9 +1,9 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-BimUsGVX.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-4Nknz-8m.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CrOp8xKD.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-C53gDEY6.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-DtdWBO9B.esm.js";
6
- import "./session-BNS--jmg.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-gVQs-Oxi.esm.js";
6
+ import "./session-DgSfkImL.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-D5fnHjEI.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-BAKVk8Az.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DGRfvEeJ.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-Bo0lnnfK.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-BAKVk8Az.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-Bo0lnnfK.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
3
3
  import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
4
- import { n as isConnectivityError } from "./apiError-DtdWBO9B.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-gVQs-Oxi.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
@@ -1,18 +1,18 @@
1
- import { t as ensureWasmPipelines } from "./setup-CG44R4qH.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BoKqVO-H.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-CMpx1GCZ.esm.js";
4
+ import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-CYrJcJVa.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
7
- import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-D8HU4XDW.esm.js";
7
+ import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-Def2ASND.esm.js";
8
8
  import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-C3lAFggs.esm.js";
11
11
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
12
- import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-1s-kgOKZ.esm.js";
13
- import { f as validateUploadResponse, o as processId, p as ID_ERROR_CODES, u as uploadIdImage } from "./idCaptureServices-DUe66Z6j.esm.js";
14
- import { n as getFinishStatus } from "./flowCompletionService-B3Hzat5g.esm.js";
15
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-DBOEzmED.esm.js";
12
+ import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DeQq5Rg9.esm.js";
13
+ import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-Sa62Ym8B.esm.js";
14
+ import { n as getFinishStatus } from "./flowCompletionService-jtw6OcpK.esm.js";
15
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-B33daRoY.esm.js";
16
16
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
17
17
  /** Default autocapture window for the selfie step. */
18
18
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.d.ts CHANGED
@@ -3,7 +3,7 @@ import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.j
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
4
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
5
5
  import { A as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, B as DeviceWalletPlatform, C as IdDocumentType, D as RecordingSession, E as IdFlowStep, F as ManualUploadTab, G as DigitalIdFunnelEntry, H as DIGITAL_ID_DOCUMENT_TYPES, I as DeviceWalletDecision, J as isRedirectFlowType, K as DigitalIdPlatformSupport, L as DeviceWalletDecryptResponse, M as MANUAL_UPLOAD_MAX_RETRIES, N as ManualUploadContext, O as UploadIdResponse, P as ManualUploadSide, Q as RedirectReturnParams, R as DeviceWalletFailReason, S as IdCapturedImageData, T as IdErrorCode, U as DIGITAL_ID_REGISTRY, V as DeviceWalletProvider, W as DigitalIdDocumentType, X as DigitalIdProviderId, Y as resolveDigitalIdImplementation, _ as IdCaptureInput, a as CaptureOnlyResponse, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureGeometry, h as IdCaptureEvent, i as CaptureIdResponse, j as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as ResolvedDigitalIdRoute, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, w as IdError, x as IdCaptureThresholds, y as IdCaptureOnlyConfig, z as DeviceWalletOutput } from "./types-DdbdcjPc2.js";
6
- import { A as IdCaptureActor, C as validateUploadResponse, D as IdCaptureOnlyMachine, E as createIdCaptureOnlyActor, M as IdCaptureMachine, N as idCaptureMachine, O as idCaptureOnlyMachine, S as uploadManualIdFile, T as IdCaptureOnlyActor, _ as processId, a as AddBarcodeParams, b as stopStream, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as prepareRecordingForCameraRetry, h as preloadIdRecordingProvider, j as createIdCaptureActor, k as CreateIdCaptureActorOptions, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as startRecordingSession, w as CreateIdCaptureOnlyActorOptions, x as uploadIdImage, y as stopRecording } from "./idCaptureManager-B2UfP1pP.js";
6
+ import { A as CreateIdCaptureActorOptions, C as uploadManualIdFile, D as createIdCaptureOnlyActor, E as IdCaptureOnlyActor, M as createIdCaptureActor, N as IdCaptureMachine, O as IdCaptureOnlyMachine, P as idCaptureMachine, S as uploadIdImage, T as CreateIdCaptureOnlyActorOptions, _ as prepareRecordingForCameraRetry, a as AddBarcodeParams, b as stopRecording, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as preloadIdRecordingProvider, h as pauseRecordingForAttempt, j as IdCaptureActor, k as idCaptureOnlyMachine, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as processId, w as validateUploadResponse, x as stopStream, y as startRecordingSession } from "./idCaptureManager-BBbaa0Vu.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
@@ -47,4 +47,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
47
47
  */
48
48
  declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
49
49
  //#endregion
50
- export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, 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 DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, 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, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, type RedirectReturnParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, preloadIdRecordingProvider, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
50
+ export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, 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 DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, 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, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, type RedirectReturnParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, pauseRecordingForAttempt, preloadIdRecordingProvider, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
package/dist/id.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { l as BrowserStorageProvider } from "./setup-CG44R4qH.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-BoKqVO-H.esm.js";
2
2
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
3
3
  import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
5
- import { a as isRedirectFlowType, c as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as DIGITAL_ID_REGISTRY, l as MANUAL_UPLOAD_MAX_RETRIES, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, s as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine, u as resolveWalletPlatform } from "./idCaptureStateMachine-Cc67bc4h.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DH7XlO99.esm.js";
7
- import { a as prepareRecordingForCameraRetry, c as stopRecording, d as uploadManualIdFile, f as validateUploadResponse, h as resolveIdCaptureThresholds, i as preloadIdRecordingProvider, l as stopStream, n as barcodeToBase64, o as processId, p as ID_ERROR_CODES, r as initializeIdCapture, s as startRecordingSession, t as addBarcode, u as uploadIdImage } from "./idCaptureServices-DUe66Z6j.esm.js";
5
+ import { a as isRedirectFlowType, c as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as DIGITAL_ID_REGISTRY, l as MANUAL_UPLOAD_MAX_RETRIES, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, s as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine, u as resolveWalletPlatform } from "./idCaptureStateMachine-ZET2TjQh.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CUG6brDu.esm.js";
7
+ import { a as preloadIdRecordingProvider, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, n as barcodeToBase64, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream } from "./idCaptureServices-Sa62Ym8B.esm.js";
8
8
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
9
9
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
10
10
  /**
@@ -222,4 +222,4 @@ function createIdCaptureOnlyManager(options) {
222
222
  return createIdCaptureOnlyManagerFromActor(createIdCaptureOnlyActor(options), options.config);
223
223
  }
224
224
  //#endregion
225
- export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, preloadIdRecordingProvider, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
225
+ export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, pauseRecordingForAttempt, preloadIdRecordingProvider, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
@@ -1,5 +1,5 @@
1
1
  import { _ as resolveWasmSource, f as WASM_MODEL_FILES } from "./wasmWebClient-BJCaFeBL.esm.js";
2
- import { p as getBarcodeEnhanceModelUrl } from "./setup-CG44R4qH.esm.js";
2
+ import { p as getBarcodeEnhanceModelUrl } from "./setup-BoKqVO-H.esm.js";
3
3
  import { i as BaseWasmProvider, l as wasmRuntime, o as getResolvedModelSource } from "./safeStorage-0bZuUtSP.esm.js";
4
4
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
5
5
  //#region ../infra/src/media/CameraCompositor.ts
@@ -107,6 +107,7 @@ type StartRecordingParams = {
107
107
  };
108
108
  declare function preloadIdRecordingProvider(config: IdCaptureConfig): void;
109
109
  declare function startRecordingSession(params: StartRecordingParams): Promise<RecordingSession | undefined>;
110
+ declare function pauseRecordingForAttempt(session: RecordingSession): void;
110
111
  declare function prepareRecordingForCameraRetry(session: RecordingSession): void;
111
112
  declare function stopRecording(session: RecordingSession): void;
112
113
  declare function processId(isSecondId?: boolean, queueName?: string, signal?: AbortSignal): Promise<{
@@ -258,6 +259,10 @@ type IdCaptureCaptureState = {
258
259
  attemptsRemaining: number;
259
260
  uploadError: IdErrorCode | undefined;
260
261
  currentMode: IdCaptureMode;
262
+ /** Explicit chooser selection, or the effective camera document for direct-entry flows. */
263
+ selectedDocumentType: IdDocumentType | undefined;
264
+ /** `config.showTutorial` — whether this camera path was configured with a tutorial. */
265
+ tutorialEnabled: boolean;
261
266
  counterValue: number;
262
267
  orientation: DetectionOrientation | undefined;
263
268
  idType: string | undefined;
@@ -556,4 +561,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
556
561
  deviceWalletUseAnotherMethod(): void;
557
562
  };
558
563
  //#endregion
559
- export { IdCaptureActor as A, validateUploadResponse as C, IdCaptureOnlyMachine as D, createIdCaptureOnlyActor as E, IdCaptureMachine as M, idCaptureMachine as N, idCaptureOnlyMachine as O, uploadManualIdFile as S, IdCaptureOnlyActor as T, processId as _, AddBarcodeParams as a, stopStream as b, StartRecordingParams as c, ValidationError as d, addBarcode as f, prepareRecordingForCameraRetry as g, preloadIdRecordingProvider as h, createIdCaptureManagerFromActor as i, createIdCaptureActor as j, CreateIdCaptureActorOptions as k, UploadIdImageParams as l, initializeIdCapture as m, IdCaptureManager as n, IdCaptureInitResult as o, barcodeToBase64 as p, IdCaptureState as r, InitializeIdCaptureParams as s, createIdCaptureManager as t, UploadManualIdFileParams as u, startRecordingSession as v, CreateIdCaptureOnlyActorOptions as w, uploadIdImage as x, stopRecording as y };
564
+ export { CreateIdCaptureActorOptions as A, uploadManualIdFile as C, createIdCaptureOnlyActor as D, IdCaptureOnlyActor as E, createIdCaptureActor as M, IdCaptureMachine as N, IdCaptureOnlyMachine as O, idCaptureMachine as P, uploadIdImage as S, CreateIdCaptureOnlyActorOptions as T, prepareRecordingForCameraRetry as _, AddBarcodeParams as a, stopRecording as b, StartRecordingParams as c, ValidationError as d, addBarcode as f, preloadIdRecordingProvider as g, pauseRecordingForAttempt as h, createIdCaptureManagerFromActor as i, IdCaptureActor as j, idCaptureOnlyMachine as k, UploadIdImageParams as l, initializeIdCapture as m, IdCaptureManager as n, IdCaptureInitResult as o, barcodeToBase64 as p, IdCaptureState as r, InitializeIdCaptureParams as s, createIdCaptureManager as t, UploadManualIdFileParams as u, processId as v, validateUploadResponse as w, stopStream as x, startRecordingSession as y };