@incodetech/core 0.0.0-dev-20260909-14ef44cf → 0.0.0-dev-20260910-30fb659a

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 (66) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-BqvOagjI.esm.js → BrowserDiagnosticsCryptoProvider-BCbOmuXk.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-CE5YD5T0.esm.js → apiError-CaZfzHR5.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-BMqAIjH1.esm.js → authenticationManager-DGbFYQEa.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-BKMxS3yH.esm.js → authenticationStateMachine-ChM9tVwT.esm.js} +2 -2
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-uhDPdU6i.d.ts} +1 -1
  9. package/dist/{deepsightLoader-nTArZgT2.esm.js → deepsightLoader-CgAY2Xik.esm.js} +2 -2
  10. package/dist/device.esm.js +5 -2
  11. package/dist/dynamic-forms.esm.js +2 -2
  12. package/dist/{dynamicFormsManager-HVbJKaF8.esm.js → dynamicFormsManager-DbJ2sx60.esm.js} +1 -1
  13. package/dist/{dynamicFormsStateMachine-BGYqEGcO.esm.js → dynamicFormsStateMachine-DdOXUivK.esm.js} +1 -1
  14. package/dist/ekyb.esm.js +3 -3
  15. package/dist/{ekybManager-D080qI3d.esm.js → ekybManager-DQb_i9cC.esm.js} +1 -1
  16. package/dist/{ekybStateMachine-4Ac_gP-0.esm.js → ekybStateMachine-CbK8tAgd.esm.js} +1 -1
  17. package/dist/electronic-signature.esm.js +1 -1
  18. package/dist/{electronicSignatureManager-CuZp9R8p.esm.js → electronicSignatureManager-BO07Vfiv.esm.js} +1 -1
  19. package/dist/extensibility.d.ts +4 -4
  20. package/dist/extensibility.esm.js +10 -10
  21. package/dist/{faceCaptureManagerFactory-waLeHRj_.esm.js → faceCaptureManagerFactory-DgAdH1KT.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-JxQbmDt_.esm.js → faceCaptureSetup-DdCkYn9V.esm.js} +1 -1
  23. package/dist/{feature-management-DkbzJPHi.esm.js → feature-management-B1auhoHt.esm.js} +30 -5
  24. package/dist/feature-management.esm.js +1 -1
  25. package/dist/flow.d.ts +19 -0
  26. package/dist/flow.esm.js +106 -23
  27. package/dist/{flowCompletionService-1HFgv9BU.esm.js → flowCompletionService-DJNQBnYX.esm.js} +1 -1
  28. package/dist/{flowServices-C2pUbFWe.esm.js → flowServices-B6Dn_OP0.esm.js} +58 -14
  29. package/dist/geolocation.esm.js +2 -2
  30. package/dist/{geolocationManager-CeDChUNS.esm.js → geolocationManager-B9Fpz7LU.esm.js} +1 -1
  31. package/dist/{geolocationStateMachine-C1fxKLJP.esm.js → geolocationStateMachine-iLoEsywE.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.esm.js +4 -4
  35. package/dist/{idCaptureDefaults-CbCpNaoY.esm.js → idCaptureDefaults-R53rpPfW.esm.js} +1 -1
  36. package/dist/{idCaptureManager-Cpd9uT8z.esm.js → idCaptureManager-CvDHZ2YE.esm.js} +3 -3
  37. package/dist/{idCaptureServices-X5poMwbu.esm.js → idCaptureServices-D_mcjCtz.esm.js} +3 -3
  38. package/dist/{idCaptureStateMachine-BZPAUJzI.esm.js → idCaptureStateMachine-CL_f4BrG.esm.js} +7 -7
  39. package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  40. package/dist/identity-reuse.d.ts +1 -1
  41. package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-BFDI7iFK.d.ts} +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.esm.js +1 -1
  44. package/dist/mandatory-consent.d.ts +1 -1
  45. package/dist/{mandatoryConsentManager-eFC-htLS.d.ts → mandatoryConsentManager-CSh8HjSF.d.ts} +1 -1
  46. package/dist/{onDeviceFaceResults-BgIPrRr2.esm.js → onDeviceFaceResults-BtD_Dij3.esm.js} +4 -4
  47. package/dist/personhood.esm.js +4 -4
  48. package/dist/qe-signature.esm.js +1 -1
  49. package/dist/{runChildModule-Bq791c2t.esm.js → runChildModule-DL_BwJt5.esm.js} +1 -1
  50. package/dist/{sdkVersion-Bc55H50S.esm.js → sdkVersion-CeUGP0Pv.esm.js} +1 -1
  51. package/dist/selfie.esm.js +5 -5
  52. package/dist/{selfieManager-I_h3YE2X.esm.js → selfieManager-CiVA7398.esm.js} +3 -3
  53. package/dist/{selfieStateMachine-DJwDxPAT.esm.js → selfieStateMachine-BCbLR8OJ.esm.js} +2 -2
  54. package/dist/{session-CoY3St8F.esm.js → session-B-b1IjuR.esm.js} +3 -3
  55. package/dist/session.d.ts +16 -1
  56. package/dist/session.esm.js +5 -5
  57. package/dist/{sessionInitializer-BEjB0UVH.esm.js → sessionInitializer-Gw37lpQ_.esm.js} +92 -33
  58. package/dist/{setup-DLn1eHU9.esm.js → setup-CxO2a0J_.esm.js} +6 -5
  59. package/dist/{setup-B9s2jaZK.d.ts → setup-D6yz9se2.d.ts} +14 -0
  60. package/dist/{trueSightService-VUN8WK4N.esm.js → trueSightService-BTf2KSpq.esm.js} +2 -2
  61. package/dist/video-selfie.esm.js +4 -4
  62. package/dist/{videoSelfieCameraWarmer-Dkey7P7h.esm.js → videoSelfieCameraWarmer-C0GHxpmK.esm.js} +3 -3
  63. package/dist/wasm.d.ts +1 -1
  64. package/dist/wasm.esm.js +1 -1
  65. package/dist/workflow.esm.js +14 -14
  66. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-DkbzJPHi.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-B1auhoHt.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-BEjB0UVH.esm.js";
3
+ import { c as whenSessionFingerprintSettled, i as initializeSession, l as getStandaloneFlowPolicy, r as getSessionFingerprintResult } from "./sessionInitializer-Gw37lpQ_.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-CE5YD5T0.esm.js";
6
- import "./session-CoY3St8F.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-CaZfzHR5.esm.js";
6
+ import "./session-B-b1IjuR.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) {
@@ -491,16 +491,52 @@ function prependMandatoryConsent(flow) {
491
491
  flowModules: [mandatoryConsentModule, ...flow.flowModules]
492
492
  };
493
493
  }
494
+ /**
495
+ * Deferred counterpart of the activation steps `getFlow` performs when
496
+ * `deferActivation` is off: waits for session activation, sends the flow id to
497
+ * feature management, waits for the device fingerprint, then inserts
498
+ * MANDATORY_CONSENT where `getFlow` would have put it — first, or right after an
499
+ * injected REDIRECT_TO_MOBILE (normalization adds that one in front of
500
+ * everything). Returns the same object when nothing is injected.
501
+ */
502
+ async function completeDeferredActivation(flow, signal) {
503
+ await initializeSession({ signal }).catch(() => void 0);
504
+ throwIfAborted(signal);
505
+ await updateFeatureManagementUser({ customIDs: { flow_id: flow.flowId } });
506
+ throwIfAborted(signal);
507
+ await whenSessionFingerprintSettled();
508
+ throwIfAborted(signal);
509
+ const withConsent = prependMandatoryConsent(flow);
510
+ if (withConsent === flow) return flow;
511
+ const [consent, ...rest] = withConsent.flowModules;
512
+ if (rest[0]?.key !== "REDIRECT_TO_MOBILE") return withConsent;
513
+ return {
514
+ ...flow,
515
+ flowModules: [
516
+ rest[0],
517
+ consent,
518
+ ...rest.slice(1)
519
+ ]
520
+ };
521
+ }
494
522
  function requireActiveToken() {
495
523
  const token = getToken();
496
524
  if (!token) throw new Error("Standalone module configuration requires an active Flow session");
497
525
  return token;
498
526
  }
499
- async function assertSessionCanStart(flow, signal) {
527
+ function fetchOnboardingStatus(signal) {
528
+ return api.get(endpoints.onboardingStatus, { signal }).then((res) => res.data);
529
+ }
530
+ /**
531
+ * `statusPromise` is started alongside the flow fetch so the check does not
532
+ * add a round trip after it; the flow only decides whether the answer matters
533
+ * (`enableMultipleOnboardings`), so its failure is reported only when it does.
534
+ */
535
+ async function assertSessionCanStart(flow, statusPromise) {
500
536
  if (flow.enableMultipleOnboardings) return;
501
537
  let data;
502
538
  try {
503
- data = (await api.get(endpoints.onboardingStatus, { signal })).data;
539
+ data = await statusPromise;
504
540
  } catch (error) {
505
541
  toIncodeApiError(endpoints.onboardingStatus, error);
506
542
  }
@@ -562,11 +598,16 @@ function resetDashboardFlowCache() {
562
598
  }
563
599
  async function normalizeDashboardFlow(rawFlow, options, signal) {
564
600
  throwIfAborted(signal);
565
- await initializeSession({ signal }).catch(() => void 0);
566
- throwIfAborted(signal);
567
- await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
568
- throwIfAborted(signal);
569
- const flow = prependMandatoryConsent(rawFlow);
601
+ let flow = rawFlow;
602
+ if (options.deferActivation !== true) {
603
+ await initializeSession({ signal }).catch(() => void 0);
604
+ throwIfAborted(signal);
605
+ await updateFeatureManagementUser({ customIDs: { flow_id: rawFlow.flowId } });
606
+ throwIfAborted(signal);
607
+ await whenSessionFingerprintSettled();
608
+ throwIfAborted(signal);
609
+ flow = prependMandatoryConsent(rawFlow);
610
+ }
570
611
  const normalizedModules = normalizeFlowModules(flow, options);
571
612
  throwIfAborted(signal);
572
613
  return {
@@ -576,9 +617,12 @@ async function normalizeDashboardFlow(rawFlow, options, signal) {
576
617
  }
577
618
  const getFlow = async (signal, options = {}) => {
578
619
  throwIfAborted(signal);
579
- const rawFlow = await preloadDashboardFlow(signal);
620
+ const rawFlowPromise = preloadDashboardFlow(signal);
621
+ const statusPromise = fetchOnboardingStatus(signal);
622
+ statusPromise.catch(() => void 0);
623
+ const rawFlow = await rawFlowPromise;
580
624
  throwIfAborted(signal);
581
- await assertSessionCanStart(rawFlow, signal);
625
+ await assertSessionCanStart(rawFlow, statusPromise);
582
626
  throwIfAborted(signal);
583
627
  return normalizeDashboardFlow(rawFlow, options, signal);
584
628
  };
@@ -613,4 +657,4 @@ async function resolveDashboardModuleConfig(options) {
613
657
  return flowConfig;
614
658
  }
615
659
  //#endregion
616
- export { FIELD_NAME_MAPPING as C, UBO_FIELD_LABELS as D, SUPPORTED_COUNTRIES as E, isSupportedCountry as O, DEV_ONLY_COUNTRIES as S, INVALID_CNPJ_PATTERNS as T, ADDRESS_FIELDS as _, enrichFlowModuleConfig as a, CNPJ_SECOND_DIGIT_FACTORS as b, resolveFlowModuleConfig as c, videoSelfieWasmPipelines as d, hasAtLeastOneAddressField as f, toEkybConfig as g, sortModulesByOrder as h, resolveDashboardModuleConfig as i, mergeDashboardConfig as k, facingModeForStep as l, requiresAddressValidation as m, preloadDashboardFlow as n, getRequiredWasmPipelines as o, isFieldOptional as p, resetDashboardFlowCache as r, normalizeFlowModules as s, getFlow as t, resolveVideoSelfieSteps as u, ALL_COUNTRIES as v, FIELD_ORDER as w, COUNTRIES_WITH_CNPJ_VALIDATION as x, CNPJ_FIRST_DIGIT_FACTORS as y };
660
+ export { mergeDashboardConfig as A, DEV_ONLY_COUNTRIES as C, SUPPORTED_COUNTRIES as D, INVALID_CNPJ_PATTERNS as E, UBO_FIELD_LABELS as O, COUNTRIES_WITH_CNPJ_VALIDATION as S, FIELD_ORDER as T, toEkybConfig as _, resolveDashboardModuleConfig as a, CNPJ_FIRST_DIGIT_FACTORS as b, normalizeFlowModules as c, resolveVideoSelfieSteps as d, videoSelfieWasmPipelines as f, sortModulesByOrder as g, requiresAddressValidation as h, resetDashboardFlowCache as i, isSupportedCountry as k, resolveFlowModuleConfig as l, isFieldOptional as m, getFlow as n, enrichFlowModuleConfig as o, hasAtLeastOneAddressField as p, preloadDashboardFlow as r, getRequiredWasmPipelines as s, completeDeferredActivation as t, facingModeForStep as u, ADDRESS_FIELDS as v, FIELD_NAME_MAPPING as w, CNPJ_SECOND_DIGIT_FACTORS as x, ALL_COUNTRIES as y };
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-CeDChUNS.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-C1fxKLJP.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-B9Fpz7LU.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-iLoEsywE.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-C1fxKLJP.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-iLoEsywE.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-CE5YD5T0.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-CaZfzHR5.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-CFlDwUvN.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";
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-DLn1eHU9.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CxO2a0J_.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-C2pUbFWe.esm.js";
4
+ import { a as resolveDashboardModuleConfig, u as facingModeForStep } from "./flowServices-B6Dn_OP0.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-BgIPrRr2.esm.js";
7
+ import { a as encryptSelfieImage, l as startDetection, p as FaceDetectionProvider } from "./onDeviceFaceResults-BtD_Dij3.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-C6gC06J7.esm.js";
11
11
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
12
- import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CbCpNaoY.esm.js";
13
- import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-X5poMwbu.esm.js";
14
- import { n as getFinishStatus } from "./flowCompletionService-1HFgv9BU.esm.js";
15
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-Dkey7P7h.esm.js";
12
+ import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-R53rpPfW.esm.js";
13
+ import { d as uploadIdImage, m as ID_ERROR_CODES, p as validateUploadResponse, s as processId } from "./idCaptureServices-D_mcjCtz.esm.js";
14
+ import { n as getFinishStatus } from "./flowCompletionService-DJNQBnYX.esm.js";
15
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-C0GHxpmK.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.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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-BZPAUJzI.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-Cpd9uT8z.esm.js";
7
- import { a as preloadIdRecordingProvider, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, n as barcodeToBase64, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream } from "./idCaptureServices-X5poMwbu.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-CL_f4BrG.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CvDHZ2YE.esm.js";
7
+ import { a as preloadIdRecordingProvider, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, n as barcodeToBase64, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream } from "./idCaptureServices-D_mcjCtz.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-DLn1eHU9.esm.js";
2
+ import { p as getBarcodeEnhanceModelUrl } from "./setup-CxO2a0J_.esm.js";
3
3
  import { i as BaseWasmProvider, l as wasmRuntime, o as getResolvedModelSource } from "./safeStorage-0bZuUtSP.esm.js";
4
4
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
5
5
  //#region ../infra/src/media/CameraCompositor.ts
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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-BZPAUJzI.esm.js";
9
- import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-X5poMwbu.esm.js";
8
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-CL_f4BrG.esm.js";
9
+ import { g as resolveIdCaptureThresholds, h as resolveCaptureOptimizingTreatment } from "./idCaptureServices-D_mcjCtz.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-DLn1eHU9.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DkbzJPHi.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CxO2a0J_.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-B1auhoHt.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -10,7 +10,7 @@ import { n as startRecording, r as stopRecording$1, t as createRecordingSession
10
10
  import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-DE_5qY04.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
12
12
  import { t as MultipartRecordingService } from "./multipartRecordingService-B3C_zlev.esm.js";
13
- import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CbCpNaoY.esm.js";
13
+ import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-R53rpPfW.esm.js";
14
14
  //#region src/internal/camera/cameraServices.ts
15
15
  function createCameraServices(camera) {
16
16
  return {
@@ -1,15 +1,15 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { s as exposeExperimentOnce } from "./feature-management-DkbzJPHi.esm.js";
3
+ import { s as exposeExperimentOnce } from "./feature-management-B1auhoHt.esm.js";
4
4
  import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
5
5
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
6
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-VUN8WK4N.esm.js";
6
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-BTf2KSpq.esm.js";
7
7
  import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
8
- import { t as getDisableIpify } from "./sessionInitializer-BEjB0UVH.esm.js";
8
+ import { t as getDisableIpify } from "./sessionInitializer-Gw37lpQ_.esm.js";
9
9
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
10
10
  import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
11
11
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
12
- import "./session-CoY3St8F.esm.js";
12
+ import "./session-B-b1IjuR.esm.js";
13
13
  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";
14
14
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
15
15
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
@@ -22,7 +22,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
22
22
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
23
23
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BHw_SD3h.esm.js";
24
24
  import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-CLaua6xO.esm.js";
25
- import { _ as CAPTURE_OPTIMIZING, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream, v as OPTIMIZING_WATCHDOG_MARGIN_MS, y as getIdCameraStream } from "./idCaptureServices-X5poMwbu.esm.js";
25
+ import { _ as CAPTURE_OPTIMIZING, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as resolveIdCaptureThresholds, i as pauseRecordingForAttempt, l as stopRecording, m as ID_ERROR_CODES, o as prepareRecordingForCameraRetry, p as validateUploadResponse, r as initializeIdCapture, s as processId, t as addBarcode, u as stopStream, v as OPTIMIZING_WATCHDOG_MARGIN_MS, y as getIdCameraStream } from "./idCaptureServices-D_mcjCtz.esm.js";
26
26
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
27
27
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
28
28
  function isKnownFailReason(reason) {
@@ -2133,7 +2133,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
2133
2133
  });
2134
2134
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
2135
2135
  if (!input.dependencies) return;
2136
- const { loadDeepsightSession } = await import("./deepsightLoader-nTArZgT2.esm.js");
2136
+ const { loadDeepsightSession } = await import("./deepsightLoader-CgAY2Xik.esm.js");
2137
2137
  return loadDeepsightSession({
2138
2138
  ds: input.ds,
2139
2139
  storage: input.dependencies.storage,
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
110
110
  type: "shouldProceedWithoutSubmitToSecondId";
111
111
  params: unknown;
112
112
  };
113
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
113
+ }>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
114
114
  readonly id: "idOcr";
115
115
  readonly initial: "idle";
116
116
  readonly context: ({ input }: {
@@ -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-BXEBBI3N.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 };
@@ -125,7 +125,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
125
125
  type: "hasSelection";
126
126
  params: unknown;
127
127
  };
128
- }>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
128
+ }>, never, "error" | "idle" | "finished" | "submitting" | "loading" | "documentsFound", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
129
129
  readonly id: "identityReuse";
130
130
  readonly initial: "idle";
131
131
  readonly context: ({ input }: {
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-B9s2jaZK.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-D6yz9se2.js";
2
2
  export { type SetupOptions, isConfigured, reset, setup };
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-DLn1eHU9.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-CxO2a0J_.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-DJ2OM9rw.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-eFC-htLS.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CSh8HjSF.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -72,7 +72,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
72
72
  }>, {
73
73
  type: "canSubmit";
74
74
  params: unknown;
75
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
75
+ }, never, "error" | "idle" | "closed" | "finished" | "submitting" | "loading" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
76
76
  readonly id: "mandatoryConsent";
77
77
  readonly initial: "idle";
78
78
  readonly context: ({ input }: {
@@ -1,8 +1,8 @@
1
- import { t as ensureWasmPipelines } from "./setup-DLn1eHU9.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-CxO2a0J_.esm.js";
2
2
  import { i as BaseWasmProvider, l as wasmRuntime } from "./safeStorage-0bZuUtSP.esm.js";
3
3
  import { r as getToken } from "./api-Bx3gKW_y.esm.js";
4
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-VUN8WK4N.esm.js";
5
- import "./sessionInitializer-BEjB0UVH.esm.js";
4
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-BTf2KSpq.esm.js";
5
+ import "./sessionInitializer-Gw37lpQ_.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
7
7
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
8
8
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
@@ -516,7 +516,7 @@ async function stopRecording(session) {
516
516
  }
517
517
  }
518
518
  async function initializeDeepsightSession(options) {
519
- const { loadDeepsightSession } = await import("./deepsightLoader-nTArZgT2.esm.js");
519
+ const { loadDeepsightSession } = await import("./deepsightLoader-CgAY2Xik.esm.js");
520
520
  return loadDeepsightSession({
521
521
  ds: options.ds,
522
522
  storage: options.storage
@@ -1,16 +1,16 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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
4
  import { t as api } from "./api-Bx3gKW_y.esm.js";
5
- import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-VUN8WK4N.esm.js";
5
+ import { C as createApi$1, v as randomUUID, y as getStoredHttpConfig } from "./trueSightService-BTf2KSpq.esm.js";
6
6
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
7
- import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-BEjB0UVH.esm.js";
7
+ import { _ as getThumbmarkId, m as isBrowserSimulation, n as getFingerprintEnabled, v as getDeviceFingerprintInfo, y as BrowserEnvironmentProvider } from "./sessionInitializer-Gw37lpQ_.esm.js";
8
8
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
9
9
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
10
10
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
11
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
12
12
  import { i as requestPermission, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
13
- import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-BgIPrRr2.esm.js";
13
+ import { f as stopStream, l as startDetection, p as FaceDetectionProvider, s as initializeDeepsightSession } from "./onDeviceFaceResults-BtD_Dij3.esm.js";
14
14
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
15
15
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
16
16
  //#region src/modules/personhood/personhoodServices.ts
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CuZp9R8p.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BO07Vfiv.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,5 +1,5 @@
1
1
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-VUN8WK4N.esm.js";
2
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-BTf2KSpq.esm.js";
3
3
  import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "0.0.0-dev-20260909-14ef44cf";
2
+ const SDK_VERSION = "0.0.0-dev-20260910-30fb659a";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
@@ -1,13 +1,13 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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 { i as assign, s as createActor } 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-JxQbmDt_.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-waLeHRj_.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DdCkYn9V.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DgAdH1KT.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-C6gC06J7.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-DJwDxPAT.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-I_h3YE2X.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-BCbLR8OJ.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CiVA7398.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -1,9 +1,9 @@
1
- import { l as BrowserStorageProvider } from "./setup-DLn1eHU9.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-CxO2a0J_.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-waLeHRj_.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-DJwDxPAT.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DgAdH1KT.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-BCbLR8OJ.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(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 manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-JxQbmDt_.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BgIPrRr2.esm.js";
3
+ import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-DdCkYn9V.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BtD_Dij3.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-C6gC06J7.esm.js";
7
7
  //#region src/modules/selfie/selfieStateMachine.ts
@@ -1,8 +1,8 @@
1
1
  import { n as getApi } from "./api-Bx3gKW_y.esm.js";
2
- import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-VUN8WK4N.esm.js";
3
- import "./sessionInitializer-BEjB0UVH.esm.js";
2
+ import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-BTf2KSpq.esm.js";
3
+ import "./sessionInitializer-Gw37lpQ_.esm.js";
4
4
  import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
5
- import { i as toIncodeApiError } from "./apiError-CE5YD5T0.esm.js";
5
+ import { i as toIncodeApiError } from "./apiError-CaZfzHR5.esm.js";
6
6
  //#region src/internal/session/sessionService.ts
7
7
  /**
8
8
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
package/dist/session.d.ts CHANGED
@@ -188,6 +188,13 @@ type Features = {
188
188
  };
189
189
  //#endregion
190
190
  //#region src/internal/session/sessionInitializer.d.ts
191
+ /**
192
+ * Resolves once the device-fingerprint step of the current session
193
+ * activation has settled (submitted, failed, or skipped) — with the backend's
194
+ * result when there is one. Resolves immediately when no activation is in
195
+ * flight. Pairs with `initializeSession({ awaitFingerprint: false })`.
196
+ */
197
+ declare function whenSessionFingerprintSettled(): Promise<DeviceFingerprintResult | undefined>;
191
198
  type SessionInitOptions = {
192
199
  /**
193
200
  * Session token returned by `createSession`. Persisted on the HTTP client
@@ -205,6 +212,14 @@ type SessionInitOptions = {
205
212
  signal?: AbortSignal;
206
213
  /** Set to `true` to preload Flow configuration during session activation. */
207
214
  preloadFlow?: boolean;
215
+ /**
216
+ * `false` resolves as soon as the feature config is in, leaving the device
217
+ * fingerprint (thumbmark + IP lookup + submit) to finish in the background;
218
+ * `fingerprintSuccess`/`fingerprintResult` on the result are then not yet
219
+ * known — read them via `whenSessionFingerprintSettled()`. Default `true`
220
+ * keeps the historical contract: the promise settles after the fingerprint.
221
+ */
222
+ awaitFingerprint?: boolean;
208
223
  };
209
224
  type SessionInitResult = {
210
225
  features: Features;
@@ -243,4 +258,4 @@ type SessionInitResult = {
243
258
  */
244
259
  declare function initializeSession(options?: SessionInitOptions): Promise<SessionInitResult>;
245
260
  //#endregion
246
- export { type BootstrapSessionOptions, type CreateSessionOptions, type FinishStatus, type GetFinishStatusFn, IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, type QrValidationErrorCode, type QrValidationResult, type RefreshQrUrlUuidOptions, type Session, type SessionInitOptions, type SessionInitResult, type ValidateQrUuidOptions, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
261
+ export { type BootstrapSessionOptions, type CreateSessionOptions, type DeviceFingerprintResult, type FinishStatus, type GetFinishStatusFn, IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, type QrValidationErrorCode, type QrValidationResult, type RefreshQrUrlUuidOptions, type Session, type SessionInitOptions, type SessionInitResult, type ValidateQrUuidOptions, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid, whenSessionFingerprintSettled };
@@ -1,5 +1,5 @@
1
- import { i as initializeSession } from "./sessionInitializer-BEjB0UVH.esm.js";
2
- import { t as IncodeApiError } from "./apiError-CE5YD5T0.esm.js";
3
- import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-CoY3St8F.esm.js";
4
- import { n as getFinishStatus } from "./flowCompletionService-1HFgv9BU.esm.js";
5
- export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
1
+ import { c as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-Gw37lpQ_.esm.js";
2
+ import { t as IncodeApiError } from "./apiError-CaZfzHR5.esm.js";
3
+ import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-B-b1IjuR.esm.js";
4
+ import { n as getFinishStatus } from "./flowCompletionService-DJNQBnYX.esm.js";
5
+ export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid, whenSessionFingerprintSettled };