@incodetech/core 2.3.0-rc.5 → 2.3.0-rc.7

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 (61) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-GNSLTajR.esm.js → BrowserDiagnosticsCryptoProvider-BclCEzL8.esm.js} +1 -1
  2. package/dist/{FaceDetectionProvider-B6Tu0Jyt.esm.js → FaceDetectionProvider-kCLAWdn1.esm.js} +4 -4
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-BDHNCQju.esm.js → apiError-Bvig2fNZ.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-QhZ5GmMj.esm.js → authenticationManager-BE702Ijw.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-Cwrufaf4.esm.js → authenticationStateMachine-CRsqnMxm.esm.js} +2 -2
  8. package/dist/{deepsightLoader-BM-MU9FF.esm.js → deepsightLoader-n43qNbOw.esm.js} +3 -3
  9. package/dist/document-capture.d.ts +1 -1
  10. package/dist/{documentCaptureManager-DD0qtFdE.d.ts → documentCaptureManager-DensIj5F.d.ts} +1 -1
  11. package/dist/dynamic-forms.esm.js +2 -2
  12. package/dist/{dynamicFormsManager-Bn62eN7d.esm.js → dynamicFormsManager-CnQcLXL_.esm.js} +1 -1
  13. package/dist/{dynamicFormsStateMachine-CDvyGbUu.esm.js → dynamicFormsStateMachine-BSjRcqQY.esm.js} +1 -1
  14. package/dist/ekyb.esm.js +3 -3
  15. package/dist/{ekybManager-NEG0o-BI.esm.js → ekybManager-CL-GLqTh.esm.js} +1 -1
  16. package/dist/{ekybStateMachine-CZ_rdwqY.esm.js → ekybStateMachine-3ZRVx12M.esm.js} +1 -1
  17. package/dist/electronic-signature.esm.js +1 -1
  18. package/dist/{electronicSignatureManager-D6ARouxW.esm.js → electronicSignatureManager-CDgeKkaK.esm.js} +1 -1
  19. package/dist/extensibility.d.ts +3 -3
  20. package/dist/extensibility.esm.js +10 -10
  21. package/dist/{faceCaptureManagerFactory-CMiMgxrc.esm.js → faceCaptureManagerFactory-D_Ljfeey.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-DkvGggEn.esm.js → faceCaptureSetup-DgPE6Y2i.esm.js} +3 -3
  23. package/dist/{feature-management-w1_FfboJ.esm.js → feature-management-PDAuJ35w.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-CRih-2EQ.esm.js → flowCompletionService-_qvfViI5.esm.js} +1 -1
  27. package/dist/{flowServices-CO2sokSP.esm.js → flowServices-tV_n-phH.esm.js} +4 -4
  28. package/dist/geolocation.esm.js +2 -2
  29. package/dist/{geolocationManager-CjcUGTjZ.esm.js → geolocationManager-S68x93Tj.esm.js} +1 -1
  30. package/dist/{geolocationStateMachine-CT-62aW7.esm.js → geolocationStateMachine-rJY4ba6N.esm.js} +1 -1
  31. package/dist/id-selfie-flow.esm.js +7 -7
  32. package/dist/id.esm.js +3 -3
  33. package/dist/{idCaptureDefaults-Be1W2-wR.esm.js → idCaptureDefaults-AySbfIxl.esm.js} +1 -1
  34. package/dist/{idCaptureManager-DbWP4585.esm.js → idCaptureManager-BqQL-OOf.esm.js} +3 -3
  35. package/dist/{idCaptureServices-CauHljHd.esm.js → idCaptureServices-O1skRskw.esm.js} +3 -3
  36. package/dist/{idCaptureStateMachine-BOS1E9wf.esm.js → idCaptureStateMachine-DXHBTn83.esm.js} +15 -14
  37. package/dist/identity-reuse.d.ts +1 -1
  38. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BFDI7iFK.d.ts} +4 -4
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.esm.js +1 -1
  41. package/dist/mandatory-consent.d.ts +1 -1
  42. package/dist/{mandatoryConsentManager-CJSyhTpi.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts} +4 -4
  43. package/dist/personhood.esm.js +4 -4
  44. package/dist/qe-signature.esm.js +1 -1
  45. package/dist/{runChildModule-DxY-aAvK.esm.js → runChildModule-CPl1GIjN.esm.js} +1 -1
  46. package/dist/{sdkVersion-B0oJ7gFE.esm.js → sdkVersion-Cmc8CPSi.esm.js} +1 -1
  47. package/dist/selfie.esm.js +5 -5
  48. package/dist/{selfieManager-CHD7bgE9.esm.js → selfieManager-68bOKgEb.esm.js} +3 -3
  49. package/dist/{selfieStateMachine-ju8X2cOw.esm.js → selfieStateMachine-CJyGioZT.esm.js} +2 -2
  50. package/dist/{session-DG6MDEiP.esm.js → session-BQ4dCQCr.esm.js} +3 -3
  51. package/dist/session.esm.js +4 -4
  52. package/dist/{sessionInitializer-BjaAWqrJ.esm.js → sessionInitializer-DRfVB5Az.esm.js} +3 -3
  53. package/dist/{setup-BmvTIU-Z.esm.js → setup-BUnRvSkr.esm.js} +8 -146
  54. package/dist/{setup-Cv-JM9QC.d.ts → setup-CLfBztP0.d.ts} +2 -1
  55. package/dist/{trueSightService-CfUra9Uf.esm.js → trueSightService-B8SjRCo7.esm.js} +175 -18
  56. package/dist/video-selfie.esm.js +3 -3
  57. package/dist/{videoSelfieCameraWarmer-CrqkHgFl.esm.js → videoSelfieCameraWarmer-CY5YHgLl.esm.js} +3 -3
  58. package/dist/wasm.d.ts +1 -1
  59. package/dist/wasm.esm.js +2 -1
  60. package/dist/workflow.esm.js +14 -14
  61. 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("NItVvnoJGLvB0iWuUYqLFRABi5fLLo8S7aDnbfmATGM=", "YKZkqIcvXZHQBVkTg87Xu+doT6xMLF5hEWETyI+N7XA=");
21
+ const key = decodeTruesightKey("RwiJI7GHCMGqQ4MLJiWEFyrW4T62UyE0n5suuf06LPw=", "W2+wrD1PwuJT2cTYDd6t0HbO6tvjI1xbxgu6tfIjywI=");
22
22
  return key.length === KEY_LENGTH_BYTES ? key : null;
23
23
  } catch {
24
24
  return null;
@@ -1,8 +1,8 @@
1
- import { t as ensureWasmPipelines } from "./setup-BmvTIU-Z.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-B8SjRCo7.esm.js";
2
2
  import { s as wasmRuntime } from "./warmup-CUUnwYxe.esm.js";
3
3
  import { i as BaseWasmProvider } from "./safeStorage-B-trhxg6.esm.js";
4
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-CfUra9Uf.esm.js";
5
- import "./sessionInitializer-BjaAWqrJ.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-BUnRvSkr.esm.js";
5
+ import "./sessionInitializer-DRfVB5Az.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
7
7
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
8
8
  import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
@@ -156,7 +156,7 @@ function startDetection(params) {
156
156
  };
157
157
  }
158
158
  async function initializeDeepsightSession(options) {
159
- const { loadDeepsightSession } = await import("./deepsightLoader-BM-MU9FF.esm.js");
159
+ const { loadDeepsightSession } = await import("./deepsightLoader-n43qNbOw.esm.js");
160
160
  return loadDeepsightSession({
161
161
  ds: options.ds,
162
162
  storage: options.storage
@@ -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-D6ARouxW.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CDgeKkaK.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-CfUra9Uf.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-B8SjRCo7.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-Cwrufaf4.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-QhZ5GmMj.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-CRsqnMxm.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BE702Ijw.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { l as BrowserStorageProvider } from "./setup-BmvTIU-Z.esm.js";
2
1
  import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.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-CMiMgxrc.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-Cwrufaf4.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D_Ljfeey.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CRsqnMxm.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DkvGggEn.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-B6Tu0Jyt.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DgPE6Y2i.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
7
7
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,7 +1,7 @@
1
+ import { l as trueSightLog } from "./trueSightService-B8SjRCo7.esm.js";
1
2
  import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
2
- import { l as trueSightLog } from "./trueSightService-CfUra9Uf.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-BjaAWqrJ.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-B0oJ7gFE.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-DRfVB5Az.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-Cmc8CPSi.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.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-CDvyGbUu.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-Bn62eN7d.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BSjRcqQY.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-CnQcLXL_.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-CDvyGbUu.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BSjRcqQY.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-B-3Q-LUw.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BDHNCQju.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-Bvig2fNZ.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 { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-CO2sokSP.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-CZ_rdwqY.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-NEG0o-BI.esm.js";
1
+ import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-tV_n-phH.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-3ZRVx12M.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-CL-GLqTh.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-CZ_rdwqY.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-3ZRVx12M.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-B-3Q-LUw.esm.js";
3
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-CO2sokSP.esm.js";
3
+ import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-tV_n-phH.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-DyHGgeX8.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-D6ARouxW.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-CDgeKkaK.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-B-3Q-LUw.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BDHNCQju.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-Bvig2fNZ.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";
@@ -16,7 +16,7 @@ import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchMana
16
16
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-SSKNrm5Z.js";
17
17
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
18
18
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
19
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DD0qtFdE.js";
19
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DensIj5F.js";
20
20
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
21
21
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
22
22
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
@@ -27,9 +27,9 @@ import { B as WasmUtilProvider, d as IdCaptureActor, i as createIdCaptureManager
27
27
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
28
28
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
29
29
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
30
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BFDI7iFK.js";
31
31
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
32
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CJSyhTpi.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Csfl7_XQ.js";
33
33
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BF_cXZq8.js";
34
34
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
35
35
  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-BmvTIU-Z.esm.js";
2
1
  import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-BjaAWqrJ.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-DRfVB5Az.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-D6ARouxW.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-CDgeKkaK.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-DNkw66oW.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DkvGggEn.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-QhZ5GmMj.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DgPE6Y2i.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BE702Ijw.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-C3-CI0_s.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-B6E1XJDw.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9XhFVZ5S.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-CzWZTkW-.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DWTED5Ur.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-BeR7ttQy.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-Bn62eN7d.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-NEG0o-BI.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CnQcLXL_.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-CL-GLqTh.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-BlQ-Qj4E.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-bR1N5rV_.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-CHD7bgE9.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DbWP4585.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-68bOKgEb.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BqQL-OOf.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-IjhSv5XS.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-CixcLNDT.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CIMkpEhu.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-r46XfZGE.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-FLEWJtv8.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-B72np4ZO.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-CjcUGTjZ.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-S68x93Tj.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CacFOtKO.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-DT42c77H.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Bmv0HzuY.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 { i as concealmentToAvatar } from "./faceCaptureSetup-DkvGggEn.esm.js";
4
+ import { i as concealmentToAvatar } from "./faceCaptureSetup-DgPE6Y2i.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Bj_fyWtv.esm.js";
@@ -1,14 +1,14 @@
1
+ import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-B8SjRCo7.esm.js";
1
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-CfUra9Uf.esm.js";
4
- import "./sessionInitializer-BjaAWqrJ.esm.js";
4
+ import "./sessionInitializer-DRfVB5Az.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
7
7
  import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
8
8
  import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
10
10
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Bj_fyWtv.esm.js";
11
- import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-B6Tu0Jyt.esm.js";
11
+ import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
12
12
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
13
13
  import { a as flagFaceManualReview, i as imageFileToDataUrl, n as runProtectedAttempt, r as cameraCycleProvider, s as PROTECTED_CAPTURE_TARGET, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
14
14
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-B0oJ7gFE.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-Cmc8CPSi.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-w1_FfboJ.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-PDAuJ35w.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 resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-CO2sokSP.esm.js";
2
+ import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-tV_n-phH.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-CRih-2EQ.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DxY-aAvK.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-_qvfViI5.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CPl1GIjN.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-B-3Q-LUw.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-BDHNCQju.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-Bvig2fNZ.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,10 +1,10 @@
1
1
  import { n as getWasmStatus } from "./warmup-CUUnwYxe.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-w1_FfboJ.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-PDAuJ35w.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BjaAWqrJ.esm.js";
4
+ import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-DRfVB5Az.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-BDHNCQju.esm.js";
7
- import "./session-DG6MDEiP.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-Bvig2fNZ.esm.js";
7
+ import "./session-BQ4dCQCr.esm.js";
8
8
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
9
  //#region src/modules/flow/dashboardConfig.ts
10
10
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-CjcUGTjZ.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-CT-62aW7.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-S68x93Tj.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-rJY4ba6N.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-CT-62aW7.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-rJY4ba6N.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-B-3Q-LUw.esm.js";
3
3
  import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
4
- import { n as isConnectivityError } from "./apiError-BDHNCQju.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-Bvig2fNZ.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,19 +1,19 @@
1
- import { t as ensureWasmPipelines } from "./setup-BmvTIU-Z.esm.js";
2
1
  import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BUnRvSkr.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-CO2sokSP.esm.js";
4
+ import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-tV_n-phH.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 { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-B6Tu0Jyt.esm.js";
7
+ import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
8
8
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
11
11
  import { n as CameraCompositor } from "./multipartRecordingService-CuXLH4tK.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Be1W2-wR.esm.js";
13
- import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-CauHljHd.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-AySbfIxl.esm.js";
13
+ import { _ as validateUploadResponse, h as uploadIdImage, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-O1skRskw.esm.js";
14
14
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
15
- import { n as getFinishStatus } from "./flowCompletionService-CRih-2EQ.esm.js";
16
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CrqkHgFl.esm.js";
15
+ import { n as getFinishStatus } from "./flowCompletionService-_qvfViI5.esm.js";
16
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CY5YHgLl.esm.js";
17
17
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
18
18
  /** Default autocapture window for the selfie step. */
19
19
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
2
2
  import { i as assign, s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
4
- import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-BOS1E9wf.esm.js";
5
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DbWP4585.esm.js";
6
- import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-CauHljHd.esm.js";
4
+ import { a as createIdProtectedCaptureController, c as DIGITAL_ID_DOCUMENT_TYPES, d as resolveDigitalIdImplementation, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, h as resolveWalletPlatform, i as createIdCaptureOnlyDeliveryActor, l as DIGITAL_ID_REGISTRY, m as MANUAL_UPLOAD_MAX_RETRIES, n as provideIdProtectedCaptureController, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as attachIdProtectedCaptureController, t as idCaptureMachine, u as isRedirectFlowType } from "./idCaptureStateMachine-DXHBTn83.esm.js";
5
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BqQL-OOf.esm.js";
6
+ import { _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES } from "./idCaptureServices-O1skRskw.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
8
8
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
2
- import { p as getBarcodeEnhanceModelUrl } from "./setup-BmvTIU-Z.esm.js";
2
+ import { O as getBarcodeEnhanceModelUrl } from "./trueSightService-B8SjRCo7.esm.js";
3
3
  import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-CUUnwYxe.esm.js";
4
4
  import { i as BaseWasmProvider } from "./safeStorage-B-trhxg6.esm.js";
5
5
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-BmvTIU-Z.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.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-B2e8p268.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Bj_fyWtv.esm.js";
8
- import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BOS1E9wf.esm.js";
9
- import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-CauHljHd.esm.js";
8
+ import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DXHBTn83.esm.js";
9
+ import { b as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-O1skRskw.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) {
@@ -1,5 +1,5 @@
1
- import { t as ensureWasmPipelines } from "./setup-BmvTIU-Z.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-w1_FfboJ.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-BUnRvSkr.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-PDAuJ35w.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -9,7 +9,7 @@ import { s as queryCameraPermission } from "./permissionServices-Bj_fyWtv.esm.js
9
9
  import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
10
10
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
11
11
  import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-CuXLH4tK.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Be1W2-wR.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-AySbfIxl.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,16 +1,16 @@
1
- import { l as BrowserStorageProvider } from "./setup-BmvTIU-Z.esm.js";
1
+ import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-B8SjRCo7.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
3
+ import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.esm.js";
3
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { s as exposeExperimentOnce } from "./feature-management-w1_FfboJ.esm.js";
5
+ import { s as exposeExperimentOnce } from "./feature-management-PDAuJ35w.esm.js";
5
6
  import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
6
7
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
7
- import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-CfUra9Uf.esm.js";
8
8
  import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
9
- import { t as getDisableIpify } from "./sessionInitializer-BjaAWqrJ.esm.js";
9
+ import { t as getDisableIpify } from "./sessionInitializer-DRfVB5Az.esm.js";
10
10
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
12
12
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
13
- import "./session-DG6MDEiP.esm.js";
13
+ import "./session-BQ4dCQCr.esm.js";
14
14
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
16
16
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
@@ -24,8 +24,8 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
24
24
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
25
25
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
26
26
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-Cjab7FTI.esm.js";
27
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Be1W2-wR.esm.js";
28
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-CauHljHd.esm.js";
27
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-AySbfIxl.esm.js";
28
+ import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as validateUploadResponse, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as uploadManualIdFile, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, v as ID_ERROR_CODES, x as CAPTURE_OPTIMIZING } from "./idCaptureServices-O1skRskw.esm.js";
29
29
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
30
30
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
31
31
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1781,7 +1781,7 @@ fromPromise(async ({ input }) => {
1781
1781
  });
1782
1782
  fromPromise(async ({ input }) => {
1783
1783
  if (!input.dependencies) return;
1784
- const { loadDeepsightSession } = await import("./deepsightLoader-BM-MU9FF.esm.js");
1784
+ const { loadDeepsightSession } = await import("./deepsightLoader-n43qNbOw.esm.js");
1785
1785
  return loadDeepsightSession({
1786
1786
  ds: input.ds,
1787
1787
  storage: input.dependencies.storage,
@@ -2224,7 +2224,7 @@ function cleanup(service) {
2224
2224
  service.cleanup();
2225
2225
  } catch {}
2226
2226
  }
2227
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-BM-MU9FF.esm.js")).loadDeepsightSession(input)) {
2227
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-n43qNbOw.esm.js")).loadDeepsightSession(input)) {
2228
2228
  let disposed = false;
2229
2229
  let preparation;
2230
2230
  let service;
@@ -2473,7 +2473,7 @@ function createIdProtectedCaptureController(dependencies = {}) {
2473
2473
  };
2474
2474
  attemptContext = context;
2475
2475
  attemptSend = send;
2476
- provider = (dependencies.createProvider ?? createProtectedIdProvider)(context.config);
2476
+ provider = (dependencies.createProvider ?? createProtectedIdProvider)(context.config, context.currentMode);
2477
2477
  cycleOwnership = createCameraCycleOwnership(cameraCycleProvider);
2478
2478
  logDiagnostic("attempt-start", { aggregationMs: context.config?.thresholds?.framesAggregationInterval ?? DEFAULT_ID_CAPTURE_THRESHOLDS.framesAggregationInterval });
2479
2479
  },
@@ -2754,7 +2754,8 @@ function createIdCaptureOnlyDeliveryActor(ownedController) {
2754
2754
  });
2755
2755
  }
2756
2756
  let protectedIdAttemptSequence = 0;
2757
- function resolveProtectedIdWorkflow(config) {
2757
+ function resolveProtectedIdWorkflow(config, currentMode) {
2758
+ if (config.usSmartCapture === true && (currentMode === "back" || currentMode === "front" && config.modelVersion !== "v3")) return 0;
2758
2759
  if (config.modelVersion === "v3" || config.usSmartCapture === true) return 7;
2759
2760
  if (config.settings?.faceQualityCheckEnabled === true) return 8;
2760
2761
  if (config.settings?.faceQualityCheckEnabled === false) return 6;
@@ -2766,8 +2767,8 @@ function resolveProtectedIdTarget(config, currentMode) {
2766
2767
  if (config.isSecondId === true) return back ? PROTECTED_CAPTURE_TARGET.backSecondId : PROTECTED_CAPTURE_TARGET.frontSecondId;
2767
2768
  return back ? PROTECTED_CAPTURE_TARGET.backId : PROTECTED_CAPTURE_TARGET.frontId;
2768
2769
  }
2769
- function createProtectedIdProvider(config) {
2770
- const workflow = resolveProtectedIdWorkflow(config);
2770
+ function createProtectedIdProvider(config, currentMode) {
2771
+ const workflow = resolveProtectedIdWorkflow(config, currentMode);
2771
2772
  return workflow === 0 ? new IdCaptureProvider() : new IdCaptureProvider(workflow);
2772
2773
  }
2773
2774
  /**
@@ -3056,7 +3057,7 @@ function createProtectedIdAttemptInput(input) {
3056
3057
  const { context, controller } = input;
3057
3058
  const provider = controller.getProvider();
3058
3059
  if (!provider) throw new Error("Protected ID provider is unavailable");
3059
- const workflow = resolveProtectedIdWorkflow(context.config);
3060
+ const workflow = resolveProtectedIdWorkflow(context.config, context.currentMode);
3060
3061
  const target = resolveProtectedIdTarget(context.config, context.currentMode);
3061
3062
  const callbackSession = createProtectedIdCallbackSession(input);
3062
3063
  let wasmUtil;
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-v2TH5g7e.js";
1
+ import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BFDI7iFK.js";
2
2
  export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -108,14 +108,14 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
108
108
  type: "setError";
109
109
  params: NonReducibleUnknown;
110
110
  };
111
- clearError: {
112
- type: "clearError";
113
- params: NonReducibleUnknown;
114
- };
115
111
  setSelectedDocument: {
116
112
  type: "setSelectedDocument";
117
113
  params: NonReducibleUnknown;
118
114
  };
115
+ clearError: {
116
+ type: "clearError";
117
+ params: NonReducibleUnknown;
118
+ };
119
119
  }>, Values<{
120
120
  hasDocuments: {
121
121
  type: "hasDocuments";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-Cv-JM9QC.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-CLfBztP0.js";
2
2
  export { type SetupOptions, isConfigured, reset, setup };