@incodetech/core 0.0.0-dev-20260902-10b14cca → 0.0.0-dev-20260902-6556495d

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 (64) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-DtFRGFsW.esm.js → BrowserDiagnosticsCryptoProvider-Cv9672N-.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-KOB7cWEf.esm.js → apiError-BQImY3jJ.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-D57x9ATY.esm.js → authenticationManager-DAB3My9S.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-DiSRcFz0.esm.js → authenticationStateMachine-Bages6QW.esm.js} +2 -2
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-DLOyIZzt.d.ts} +1 -1
  9. package/dist/{deepsightLoader-BOB2TX0m.esm.js → deepsightLoader-Cl8Itges.esm.js} +2 -2
  10. package/dist/document-capture.d.ts +1 -1
  11. package/dist/{documentCaptureManager-DD0qtFdE.d.ts → documentCaptureManager-DensIj5F.d.ts} +1 -1
  12. package/dist/dynamic-forms.esm.js +2 -2
  13. package/dist/{dynamicFormsManager-ByHjdYT3.esm.js → dynamicFormsManager-Cx5cD1AA.esm.js} +1 -1
  14. package/dist/{dynamicFormsStateMachine-BMFKYhVO.esm.js → dynamicFormsStateMachine-C59wLWng.esm.js} +1 -1
  15. package/dist/ekyb.esm.js +3 -3
  16. package/dist/{ekybManager-D63tugZt.esm.js → ekybManager-DDwnVyx9.esm.js} +1 -1
  17. package/dist/{ekybStateMachine-Bmb3kNkV.esm.js → ekybStateMachine-BuBXieCh.esm.js} +1 -1
  18. package/dist/electronic-signature.esm.js +1 -1
  19. package/dist/{electronicSignatureManager-DTwzVpwT.esm.js → electronicSignatureManager-C29vdDX6.esm.js} +1 -1
  20. package/dist/extensibility.d.ts +6 -6
  21. package/dist/extensibility.esm.js +10 -10
  22. package/dist/{faceCaptureManagerFactory-D9RZYTJX.esm.js → faceCaptureManagerFactory-Csg929gt.esm.js} +1 -1
  23. package/dist/{faceCaptureSetup-CxrvWh7B.esm.js → faceCaptureSetup-DkGUmrJ3.esm.js} +3 -3
  24. package/dist/{feature-management-Dpu0bwTw.esm.js → feature-management-BtdeXRed.esm.js} +1 -1
  25. package/dist/feature-management.esm.js +1 -1
  26. package/dist/flow.esm.js +3 -3
  27. package/dist/{flowCompletionService-jIof7Rao.esm.js → flowCompletionService-BsNzxSq-.esm.js} +1 -1
  28. package/dist/{flowServices-CaM0XYs-.esm.js → flowServices-bGm5mZL5.esm.js} +4 -4
  29. package/dist/geolocation.esm.js +2 -2
  30. package/dist/{geolocationManager-C1tGjrqF.esm.js → geolocationManager-DMqijTPA.esm.js} +1 -1
  31. package/dist/{geolocationStateMachine-DN-C5o8H.esm.js → geolocationStateMachine-QbuMbJAb.esm.js} +1 -1
  32. package/dist/id-ocr.d.ts +1 -1
  33. package/dist/id-selfie-flow.esm.js +7 -7
  34. package/dist/id.d.ts +1 -1
  35. package/dist/id.esm.js +4 -4
  36. package/dist/{idCaptureDefaults-DmvTQn--.esm.js → idCaptureDefaults-BHdKvRz0.esm.js} +1 -1
  37. package/dist/{idCaptureManager-DWam0J9e.esm.js → idCaptureManager-BD_ssQoI.esm.js} +54 -23
  38. package/dist/{idCaptureManager-DUuhY5pI.d.ts → idCaptureManager-DFUR_tVA.d.ts} +59 -0
  39. package/dist/{idCaptureServices-VqNjDE_5.esm.js → idCaptureServices-BfUvbcBp.esm.js} +3 -3
  40. package/dist/{idCaptureStateMachine-DqaI5c-B.esm.js → idCaptureStateMachine-BXC0-9LT.esm.js} +68 -22
  41. package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-CFlDwUvN.d.ts} +1 -1
  42. package/dist/identity-reuse.d.ts +1 -1
  43. package/dist/{identityReuseManager-BFDI7iFK.d.ts → identityReuseManager-BXEBBI3N.d.ts} +1 -1
  44. package/dist/index.esm.js +1 -1
  45. package/dist/mandatory-consent.d.ts +1 -1
  46. package/dist/{mandatoryConsentManager-CSh8HjSF.d.ts → mandatoryConsentManager-eFC-htLS.d.ts} +1 -1
  47. package/dist/{onDeviceFaceResults-BTmWNXUl.esm.js → onDeviceFaceResults-Dz7rpx4-.esm.js} +4 -4
  48. package/dist/personhood.esm.js +4 -4
  49. package/dist/qe-signature.esm.js +1 -1
  50. package/dist/{runChildModule-oTiWT8JP.esm.js → runChildModule-BG2tsIPy.esm.js} +1 -1
  51. package/dist/{sdkVersion-DDaq4mWu.esm.js → sdkVersion-Vz0UpRKd.esm.js} +1 -1
  52. package/dist/selfie.esm.js +5 -5
  53. package/dist/{selfieManager-DVZp-yz5.esm.js → selfieManager-LfYdLPO4.esm.js} +3 -3
  54. package/dist/{selfieStateMachine-Qf0kKZQN.esm.js → selfieStateMachine-Dxskb9DJ.esm.js} +12 -9
  55. package/dist/{session-PlRq9-Sm.esm.js → session-wkMnXGLr.esm.js} +3 -3
  56. package/dist/session.esm.js +4 -4
  57. package/dist/{sessionInitializer-CbRzX-Ez.esm.js → sessionInitializer-DBAuxLl0.esm.js} +3 -3
  58. package/dist/{setup-ME2tUOgF.esm.js → setup-D2MpI1k7.esm.js} +4 -4
  59. package/dist/{trueSightService-CHMCXxqO.esm.js → trueSightService-D_D4otT9.esm.js} +2 -2
  60. package/dist/video-selfie.esm.js +3 -3
  61. package/dist/{videoSelfieCameraWarmer-I72q6qX3.esm.js → videoSelfieCameraWarmer-BjUn4j6m.esm.js} +3 -3
  62. package/dist/wasm.esm.js +1 -1
  63. package/dist/workflow.esm.js +14 -14
  64. package/package.json +3 -3
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
18
18
  */
19
19
  function getTruesightKey() {
20
20
  try {
21
- const key = decodeTruesightKey("axMUEyZiK0tG9CbTu7mHf251C5WUq9s3GdO7QbBhMV4=", "E/pI4WZSYM5IRPRP6P0nPMFrMkZ/IDQfZeERlwrZyIQ=");
21
+ const key = decodeTruesightKey("rIJ65H4iGpT6GjqNQo0N/wI+udgfzI8PHkIEgGfffcE=", "gkWJNtge/wnZKgMXqMz4gC93bL9LqrRzLlNcHG2N8IM=");
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-DTwzVpwT.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-C29vdDX6.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-CHMCXxqO.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-D_D4otT9.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-DiSRcFz0.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-D57x9ATY.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-Bages6QW.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DAB3My9S.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { l as BrowserStorageProvider } from "./setup-ME2tUOgF.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-D2MpI1k7.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-D9RZYTJX.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DiSRcFz0.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Csg929gt.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-Bages6QW.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-CxrvWh7B.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BTmWNXUl.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DkGUmrJ3.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dz7rpx4-.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
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -97,7 +97,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
@@ -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-CHMCXxqO.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CbRzX-Ez.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-D_D4otT9.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DBAuxLl0.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
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-BjSly8cp.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DD0qtFdE.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DensIj5F.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -251,7 +251,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
251
251
  type: "fileSizeOkForNonGallery";
252
252
  params: unknown;
253
253
  };
254
- }>, never, "uploading" | "closed" | "success" | "finished" | "capturing" | "failure" | "initCamera" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
254
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
255
255
  permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
256
256
  }, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
257
257
  readonly id: "documentCapture";
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BMFKYhVO.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-ByHjdYT3.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C59wLWng.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-Cx5cD1AA.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-BMFKYhVO.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C59wLWng.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 { r as toIncodeApiError, t as IncodeApiError } from "./apiError-KOB7cWEf.esm.js";
3
+ import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-BQImY3jJ.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-CaM0XYs-.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Bmb3kNkV.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-D63tugZt.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-bGm5mZL5.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-BuBXieCh.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-DDwnVyx9.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-Bmb3kNkV.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-BuBXieCh.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-CaM0XYs-.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-bGm5mZL5.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-DTwzVpwT.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-C29vdDX6.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 { n as isConnectivityError, r as toIncodeApiError, t as IncodeApiError } from "./apiError-KOB7cWEf.esm.js";
5
+ import { n as isConnectivityError, r as toIncodeApiError, t as IncodeApiError } from "./apiError-BQImY3jJ.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";
@@ -12,26 +12,26 @@ import { n as BaseWasmProvider } from "./FaceDetectionProvider-Cn1wS-sA.js";
12
12
  import "./deepsightService-MZOpj7Vp.js";
13
13
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B3-y3IRx.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.js";
15
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
15
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
16
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
17
17
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-cSd2MrOQ.js";
18
18
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
19
19
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
20
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DD0qtFdE.js";
20
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DensIj5F.js";
21
21
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-fhK0yINk.js";
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
25
  import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-D0IU0qx7.js";
26
26
  import { i as CaptureIdResponse } from "./types-DdbdcjPc2.js";
27
- import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-DUuhY5pI.js";
27
+ import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-DFUR_tVA.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-BXEBBI3N.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";
34
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
33
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-eFC-htLS.js";
34
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-CFlDwUvN.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";
37
37
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-ME2tUOgF.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-D2MpI1k7.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-0bZuUtSP.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-CbRzX-Ez.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-DBAuxLl0.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-DTwzVpwT.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-C29vdDX6.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-Bg9ynGum.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-CxrvWh7B.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D57x9ATY.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DkGUmrJ3.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DAB3My9S.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-ByHjdYT3.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-D63tugZt.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-Cx5cD1AA.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-DDwnVyx9.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-DVZp-yz5.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DWam0J9e.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-LfYdLPO4.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BD_ssQoI.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-C1tGjrqF.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-DMqijTPA.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";
@@ -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-CxrvWh7B.esm.js";
4
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-DkGUmrJ3.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-BTmWNXUl.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-Dz7rpx4-.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";
@@ -789,7 +789,7 @@ const faceCaptureMachine = setup({
789
789
  detectionStatus: () => "idle",
790
790
  capturedImage: () => void 0
791
791
  }),
792
- clearStreamForRetry: assign(({ context }) => {
792
+ prepareStreamForRetry: assign(({ context }) => {
793
793
  context.frameCapturer?.dispose();
794
794
  if (context.stream) stopStream(context.stream);
795
795
  context.provider?.dispose();
@@ -1366,7 +1366,7 @@ const faceCaptureMachine = setup({
1366
1366
  actions: [
1367
1367
  "resetDetection",
1368
1368
  "clearUploadFailure",
1369
- "clearStreamForRetry"
1369
+ "prepareStreamForRetry"
1370
1370
  ]
1371
1371
  },
1372
1372
  {
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-DDaq4mWu.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-Vz0UpRKd.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-Dpu0bwTw.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-BtdeXRed.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-CaM0XYs-.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-bGm5mZL5.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-jIof7Rao.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-oTiWT8JP.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-BsNzxSq-.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BG2tsIPy.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 { r as toIncodeApiError } from "./apiError-KOB7cWEf.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-BQImY3jJ.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-Dpu0bwTw.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-BtdeXRed.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-CbRzX-Ez.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DBAuxLl0.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-KOB7cWEf.esm.js";
6
- import "./session-PlRq9-Sm.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-BQImY3jJ.esm.js";
6
+ import "./session-wkMnXGLr.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-C1tGjrqF.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-DN-C5o8H.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DMqijTPA.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-QbuMbJAb.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-DN-C5o8H.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-QbuMbJAb.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-KOB7cWEf.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-BQImY3jJ.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
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-CFlDwUvN.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,18 +1,18 @@
1
- import { t as ensureWasmPipelines } from "./setup-ME2tUOgF.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-D2MpI1k7.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-CaM0XYs-.esm.js";
4
+ import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-bGm5mZL5.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-BTmWNXUl.esm.js";
7
+ import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-Dz7rpx4-.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 { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DmvTQn--.esm.js";
13
- import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-VqNjDE_5.esm.js";
14
- import { n as getFinishStatus } from "./flowCompletionService-jIof7Rao.esm.js";
15
- import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-I72q6qX3.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BHdKvRz0.esm.js";
13
+ import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-BfUvbcBp.esm.js";
14
+ import { n as getFinishStatus } from "./flowCompletionService-BsNzxSq-.esm.js";
15
+ import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-BjUn4j6m.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 createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, 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 stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-DUuhY5pI.js";
6
+ import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, 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 stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-DFUR_tVA.js";
7
7
  //#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
8
8
  /**
9
9
  * Fail reason → i18n key for the device-wallet error screen (same shape as
package/dist/id.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { l as BrowserStorageProvider } from "./setup-ME2tUOgF.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-D2MpI1k7.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-DqaI5c-B.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DWam0J9e.esm.js";
7
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-VqNjDE_5.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-BXC0-9LT.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BD_ssQoI.esm.js";
7
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-BfUvbcBp.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
  /**
@@ -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-ME2tUOgF.esm.js";
2
+ import { p as getBarcodeEnhanceModelUrl } from "./setup-D2MpI1k7.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/wasm/idCaptureWasmApi.ts
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-ME2tUOgF.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-D2MpI1k7.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 { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.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 { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-J5S1dEIf.esm.js";
8
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DqaI5c-B.esm.js";
9
- import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-VqNjDE_5.esm.js";
8
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BXC0-9LT.esm.js";
9
+ import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BfUvbcBp.esm.js";
10
10
  //#region src/modules/id/digitalUpload/instrumentation.ts
11
11
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
12
12
  function isHoldingState(value) {
@@ -285,8 +285,44 @@ function mapCaptureState(snapshot, context) {
285
285
  canRetry: context.attemptsRemaining > 0
286
286
  };
287
287
  }
288
- function isLoadingPhase(snapshot) {
289
- return snapshot.matches({ capture: "checkingStream" }) || snapshot.matches({ capture: "initializingDeepsight" }) || snapshot.matches({ capture: "initializing" }) || snapshot.matches({ permissions: "idle" });
288
+ function mapPermissionsState(snapshot, context) {
289
+ return {
290
+ status: "permissions",
291
+ permissionStatus: getPermissionStatus(snapshot) ?? "idle",
292
+ selectedDocumentType: context.selectedDocumentType,
293
+ currentMode: context.currentMode,
294
+ tutorialEnabled: context.config.showTutorial === true
295
+ };
296
+ }
297
+ function getLoadingPhase(snapshot) {
298
+ if (snapshot.matches({ capture: "checkingStream" })) return "checkingStream";
299
+ if (snapshot.matches({ capture: "initializingDeepsight" })) return "initializingDeepsight";
300
+ if (snapshot.matches({ capture: "initializing" })) return "initializingCamera";
301
+ if (snapshot.matches({ permissions: "idle" })) return "permissionsIdle";
302
+ }
303
+ function mapLoadingState(snapshot, phase) {
304
+ return {
305
+ status: "loading",
306
+ phase,
307
+ tutorialEnabled: snapshot.context.config.showTutorial === true,
308
+ selectedDocumentType: snapshot.context.selectedDocumentType,
309
+ currentMode: snapshot.context.currentMode
310
+ };
311
+ }
312
+ function getTutorialPhase(snapshot) {
313
+ if (snapshot.matches({ tutorial: "checkingPermission" })) return "checkingPermission";
314
+ if (snapshot.matches({ tutorial: "waitingForPermission" })) return "waitingForPermission";
315
+ if (snapshot.matches({ tutorial: { initializingCamera: { userIntent: "clicked" } } })) return "waitingForCamera";
316
+ if (snapshot.matches({ tutorial: "initializingCamera" })) return "initializingCamera";
317
+ return "ready";
318
+ }
319
+ function mapTutorialState(snapshot, context) {
320
+ return {
321
+ status: "tutorial",
322
+ phase: getTutorialPhase(snapshot),
323
+ selectedDocumentType: context.selectedDocumentType,
324
+ currentMode: context.currentMode
325
+ };
290
326
  }
291
327
  function mapManualUploadState(snapshot) {
292
328
  const { config } = snapshot.context;
@@ -397,30 +433,17 @@ function mapDeviceWalletState(snapshot) {
397
433
  function mapState(snapshot) {
398
434
  const { context } = snapshot;
399
435
  if (snapshot.matches("idle")) return { status: "idle" };
400
- if (isLoadingPhase(snapshot)) return { status: "loading" };
436
+ const loadingPhase = getLoadingPhase(snapshot);
437
+ if (loadingPhase) return mapLoadingState(snapshot, loadingPhase);
401
438
  if (snapshot.matches("chooser")) return {
402
439
  status: "chooser",
403
440
  availableDocumentTypes: context.availableDocumentTypes
404
441
  };
405
- if (snapshot.matches("loading")) return { status: "loading" };
406
- if (snapshot.matches("tutorial")) return {
407
- status: "tutorial",
408
- selectedDocumentType: context.selectedDocumentType,
409
- currentMode: context.currentMode
410
- };
442
+ if (snapshot.matches("loading")) return mapLoadingState(snapshot, "bootstrapping");
443
+ if (snapshot.matches("tutorial")) return mapTutorialState(snapshot, context);
411
444
  if (snapshot.matches("ageVerification")) return { status: "ageVerification" };
412
445
  if (snapshot.matches("closed")) return { status: "closed" };
413
- if (snapshot.matches("permissions")) {
414
- const permissionStatus = getPermissionStatus(snapshot);
415
- if (permissionStatus === void 0) return {
416
- status: "permissions",
417
- permissionStatus: "idle"
418
- };
419
- return {
420
- status: "permissions",
421
- permissionStatus
422
- };
423
- }
446
+ if (snapshot.matches("permissions")) return mapPermissionsState(snapshot, context);
424
447
  if (snapshot.matches("capture")) return mapCaptureState(snapshot, context);
425
448
  if (snapshot.matches("mandatoryConsent")) return {
426
449
  status: "mandatoryConsent",
@@ -492,6 +515,14 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
492
515
  }
493
516
  actor.send({ type: "NEXT_STEP" });
494
517
  },
518
+ /**
519
+ * Requests camera (and, when deepsight is enabled, motion) permission.
520
+ * Effective in `permissions.idle`, `permissions.waitingForUser`,
521
+ * `permissions.motionOnly`, `permissions.learnMore`, `tutorial.ready`,
522
+ * `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
523
+ * the camera pre-warms it records the user's intent to continue, so the
524
+ * tutorial advances to capture as soon as the warm-up finishes).
525
+ */
495
526
  requestPermission() {
496
527
  trackElementClicked?.("requestPermission");
497
528
  actor.send({ type: "REQUEST_PERMISSION" });