@incodetech/core 0.0.0-dev-20260928-d449de76 → 0.0.0-dev-20260928-85249f77

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 (84) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-BxLmnzbY.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
  2. package/dist/{FaceDetectionProvider-77zt0tCn.esm.js → FaceDetectionProvider-CSjiXOo7.esm.js} +7 -7
  3. package/dist/{MotionSensorProvider-Bti5f6op.esm.js → MotionSensorProvider-1Ul_1GPn.esm.js} +1 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-CVZFxc4X.esm.js → apiError-DmDlw1pl.esm.js} +1 -1
  6. package/dist/authentication.d.ts +2 -2
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-D35zv0qP.esm.js → authenticationManager-B9l6NeDe.esm.js} +4 -4
  9. package/dist/{authenticationManager-B-MR_-Si.d.ts → authenticationManager-DE40FMUU.d.ts} +1 -1
  10. package/dist/{authenticationStateMachine-DQbw3VYf.esm.js → authenticationStateMachine-BGme0djA.esm.js} +3 -3
  11. package/dist/camera.esm.js +1 -1
  12. package/dist/{createCameraCycleOwnership-BjoMVvya.esm.js → createCameraCycleOwnership-P1AtkhRJ.esm.js} +6 -1
  13. package/dist/{deepsightLoader-ClylxZuC.esm.js → deepsightLoader-BY2NIp7n.esm.js} +6 -6
  14. package/dist/document-capture.esm.js +2 -2
  15. package/dist/{documentCaptureManager-7e1RLKhG.esm.js → documentCaptureManager-DRAn04PI.esm.js} +1 -1
  16. package/dist/{documentCaptureStateMachine-DyJb_vDQ.esm.js → documentCaptureStateMachine-BS9VBtqN.esm.js} +2 -2
  17. package/dist/dynamic-forms.esm.js +2 -2
  18. package/dist/{dynamicFormsManager-BnRKBNqF.esm.js → dynamicFormsManager-CTJzsDqC.esm.js} +1 -1
  19. package/dist/{dynamicFormsStateMachine-DQh2tLEr.esm.js → dynamicFormsStateMachine-8oOTouxq.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-BJUHQsVR.esm.js → ekybManager-CKNCVYs7.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-Fhv6c1JX.esm.js → ekybStateMachine-BDQHv558.esm.js} +1 -1
  23. package/dist/electronic-signature.esm.js +1 -1
  24. package/dist/{electronicSignatureManager-BLdgwGKf.esm.js → electronicSignatureManager-BbgLJk1x.esm.js} +1 -1
  25. package/dist/extensibility.d.ts +6 -6
  26. package/dist/extensibility.esm.js +12 -12
  27. package/dist/{faceCaptureManagerFactory-CAkRa1Vu.esm.js → faceCaptureManagerFactory-DG4z3rkR.esm.js} +3 -3
  28. package/dist/{faceCaptureManagerFactory-BgbP5N1j.d.ts → faceCaptureManagerFactory-s0Vhw_wP.d.ts} +80 -40
  29. package/dist/{faceCaptureSetup-BOIbMZWB.esm.js → faceCaptureSetup-GzW2oNiM.esm.js} +261 -58
  30. package/dist/{feature-management-D-nhq6Q-.esm.js → feature-management-02JHuEhD.esm.js} +1 -1
  31. package/dist/feature-management.esm.js +1 -1
  32. package/dist/flow.esm.js +3 -3
  33. package/dist/{flowCompletionService-CfnSNZpx.esm.js → flowCompletionService-BAg6qc6d.esm.js} +1 -1
  34. package/dist/{flowServices-kv6AwJVI.esm.js → flowServices-Dc-EUuwB.esm.js} +5 -5
  35. package/dist/geolocation.esm.js +2 -2
  36. package/dist/{geolocationManager-FV2ACKQu.esm.js → geolocationManager-v0LZK1kW.esm.js} +1 -1
  37. package/dist/{geolocationStateMachine-BKJQDQCI.esm.js → geolocationStateMachine-DfdsEj7L.esm.js} +1 -1
  38. package/dist/id-selfie-flow.esm.js +9 -10
  39. package/dist/id.d.ts +2 -2
  40. package/dist/id.esm.js +4 -4
  41. package/dist/{idCaptureDefaults-rHijHG6W.esm.js → idCaptureDefaults-Ba-m1uO3.esm.js} +3 -3
  42. package/dist/{idCaptureManager-CxE8iY2e.esm.js → idCaptureManager-Bfrj7DvH.esm.js} +5 -5
  43. package/dist/{idCaptureManager-BwBffPUe.d.ts → idCaptureManager-DfHdJLmj.d.ts} +23 -5
  44. package/dist/{idCaptureServices-hjIxL5UQ.esm.js → idCaptureServices-DKeVf0Gu.esm.js} +59 -12
  45. package/dist/{idCaptureStateMachine-CboEYER9.esm.js → idCaptureStateMachine-BL3MnDOu.esm.js} +221 -76
  46. package/dist/identity-reuse.d.ts +1 -1
  47. package/dist/{identityReuseManager-D7EOLZ_p.d.ts → identityReuseManager-D0-4bAeK.d.ts} +4 -4
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.esm.js +1 -1
  50. package/dist/mandatory-consent.d.ts +1 -1
  51. package/dist/{mandatoryConsentManager-03Ni34bN.d.ts → mandatoryConsentManager-S94mjtTG.d.ts} +4 -4
  52. package/dist/{multipartRecordingService-Dw0scizg.esm.js → multipartRecordingService-mwKFTlhR.esm.js} +42 -1
  53. package/dist/{permissionGuards-DAyjPT2R.esm.js → permissionGuards-DS36X5Hh.esm.js} +1 -1
  54. package/dist/{permissionServices-DIaG8BlW.esm.js → permissionServices-B9IqVf3c.esm.js} +2 -2
  55. package/dist/qe-signature.esm.js +1 -1
  56. package/dist/{runChildModule-CQqEw9sd.esm.js → runChildModule-DQbERvPv.esm.js} +1 -1
  57. package/dist/{safeStorage-C511Hltw.esm.js → safeStorage-Q_iUpxa8.esm.js} +1 -1
  58. package/dist/{sdkVersion-BH-4qglw.esm.js → sdkVersion-kGZmwBhf.esm.js} +1 -1
  59. package/dist/selfie.d.ts +2 -2
  60. package/dist/selfie.esm.js +7 -7
  61. package/dist/{selfieManager-DWxNxmjQ.esm.js → selfieManager-B-F-lrAH.esm.js} +4 -4
  62. package/dist/{selfieManager-oSsnyvBl.d.ts → selfieManager-PVc2k2Oq.d.ts} +1 -1
  63. package/dist/{selfieStateMachine-Bk9bTMzN.esm.js → selfieStateMachine--KjoErrq.esm.js} +2 -2
  64. package/dist/{session-kzJNzFd9.esm.js → session-Bb5KuwEu.esm.js} +3 -3
  65. package/dist/session.esm.js +4 -4
  66. package/dist/{sessionInitializer-CVH-SfI7.esm.js → sessionInitializer-D-gzxDwN.esm.js} +4 -4
  67. package/dist/{setup-CHHZ8BBM.d.ts → setup-BdeKbA9K.d.ts} +4 -17
  68. package/dist/{setup-H1Je4Kt9.esm.js → setup-Cb7Ws1HA.esm.js} +8 -58
  69. package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
  70. package/dist/tri.esm.js +1 -1
  71. package/dist/{trueSightService-DbgU08hx.esm.js → trueSightService-D8dk4ZID.esm.js} +16 -554
  72. package/dist/video-selfie.esm.js +5 -5
  73. package/dist/{videoSelfieCameraWarmer-C9g_e9lx.esm.js → videoSelfieCameraWarmer-CkdLS8NK.esm.js} +5 -5
  74. package/dist/{warmup-REsua-sF.esm.js → warmup-DLq_t-Zu.esm.js} +5 -0
  75. package/dist/wasm.d.ts +1 -1
  76. package/dist/wasm.esm.js +3 -3
  77. package/dist/{wasmDsFlagSync-Czjlp68o.esm.js → wasmDsFlagSync-DyNj8RY_.esm.js} +1 -1
  78. package/dist/workflow.esm.js +15 -15
  79. package/package.json +3 -8
  80. package/dist/FaceDetectionProvider-Di1DmZu1.d.ts +0 -36
  81. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +0 -42
  82. package/dist/personhood.d.ts +0 -537
  83. package/dist/personhood.esm.js +0 -1574
  84. package/dist/types-CfuWgAi-.d.ts +0 -1
@@ -1,31 +1,13 @@
1
1
  //#region ../infra/src/crypto/truesightKey.ts
2
- /** Interim P1 key id — the BE looks up the AES key by this label. */
3
- const TRUESIGHT_KID = "truesight-v1";
4
- const KEY_LENGTH_BYTES = 32;
5
- /** Recovers the key from its two obfuscated halves. Throws on malformed input. */
6
- function decodeTruesightKey(s0Base64, s1Base64) {
7
- const s0 = fromBase64(s0Base64);
8
- const s1 = fromBase64(s1Base64);
9
- if (s0.length !== s1.length || s0.length === 0) throw new Error("truesight key halves are malformed");
10
- const key = new Uint8Array(s0.length);
11
- for (let i = 0; i < key.length; i += 1) key[i] = s1[(i + 7) % s1.length] ^ s0[i];
12
- return key;
13
- }
14
2
  /**
15
- * The bundle's key, decoded lazily — `null` when this build carries no key
16
- * (defines absent → collect-only mode, uploads disabled). Returns a fresh
17
- * copy per call so callers may zero their copy after use.
3
+ * Legacy TrueSight key helpers. ENG-57951 disconnects the shared-key path;
4
+ * ENG-58122 tracks secure encryption and restoration.
18
5
  */
6
+ /** Interim P1 key id — the BE looks up the AES key by this label. */
7
+ const TRUESIGHT_KID = "truesight-v1";
8
+ /** No distributed shared key while TrueSight is disconnected (ENG-57951). */
19
9
  function getTruesightKey() {
20
- try {
21
- const key = decodeTruesightKey("oS4JjPEYLsgZOFEpThe/J4vF8Jq6JEoY78CzTUtaRfU=", "APJEGl0mywR1WWuYkvikYw0cyLPRGGz61RoeuYVI53I=");
22
- return key.length === KEY_LENGTH_BYTES ? key : null;
23
- } catch {
24
- return null;
25
- }
26
- }
27
- function fromBase64(value) {
28
- return Uint8Array.from(atob(value), (char) => char.charCodeAt(0));
10
+ return null;
29
11
  }
30
12
  //#endregion
31
13
  //#region ../infra/src/providers/browser/BrowserDiagnosticsCryptoProvider.ts
@@ -1,13 +1,13 @@
1
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DbgU08hx.esm.js";
2
- import { s as wasmRuntime } from "./warmup-REsua-sF.esm.js";
3
- import { i as BaseWasmProvider } from "./safeStorage-C511Hltw.esm.js";
4
- import { t as ensureWasmPipelines } from "./setup-H1Je4Kt9.esm.js";
5
- import "./sessionInitializer-CVH-SfI7.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-D8dk4ZID.esm.js";
2
+ import { s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
3
+ import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-Cb7Ws1HA.esm.js";
5
+ import "./sessionInitializer-D-gzxDwN.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";
9
9
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
10
- import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
+ import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-mwKFTlhR.esm.js";
11
11
  import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
12
12
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
13
13
  /**
@@ -156,7 +156,7 @@ function startDetection(params) {
156
156
  };
157
157
  }
158
158
  async function initializeDeepsightSession(options) {
159
- const { loadDeepsightSession } = await import("./deepsightLoader-ClylxZuC.esm.js");
159
+ const { loadDeepsightSession } = await import("./deepsightLoader-BY2NIp7n.esm.js");
160
160
  return loadDeepsightSession({
161
161
  ds: options.ds,
162
162
  storage: options.storage
@@ -1,4 +1,4 @@
1
- import { n as resolveSessionStorage } from "./safeStorage-C511Hltw.esm.js";
1
+ import { n as resolveSessionStorage } from "./safeStorage-Q_iUpxa8.esm.js";
2
2
  //#region ../infra/src/providers/browser/MotionSensorProvider.ts
3
3
  const MOTION_PERMISSION_GRANTED_KEY = "motionSensorsPermissionsGranted";
4
4
  const MOTION_PERMISSION_DENIED_KEY = "motionSensorsPermissionsDenied";
@@ -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-BLdgwGKf.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BbgLJk1x.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-DbgU08hx.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-D8dk4ZID.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BgbP5N1j.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-s0Vhw_wP.js";
2
2
  import { t as AuthenticationConfig } from "./types-a5xYna-T.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-B-MR_-Si.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DE40FMUU.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-DQbw3VYf.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-D35zv0qP.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BGme0djA.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B9l6NeDe.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-H1Je4Kt9.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-Cb7Ws1HA.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CAkRa1Vu.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DQbw3VYf.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DG4z3rkR.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BGme0djA.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C9T5amUN.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BgbP5N1j.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-s0Vhw_wP.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,9 @@
1
1
  import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BOIbMZWB.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-77zt0tCn.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-GzW2oNiM.esm.js";
4
+ import { c as isOnDeviceMode } from "./FaceDetectionProvider-CSjiXOo7.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
- import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-BjoMVvya.esm.js";
6
+ import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-P1AtkhRJ.esm.js";
7
7
  //#region src/modules/authentication/authenticationErrorUtils.ts
8
8
  const AUTH_ERROR_MAP = {
9
9
  SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
@@ -1,2 +1,2 @@
1
- import { a as requestPermission, t as checkPermission } from "./permissionServices-DIaG8BlW.esm.js";
1
+ import { a as requestPermission, t as checkPermission } from "./permissionServices-B9IqVf3c.esm.js";
2
2
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,4 +1,4 @@
1
- import { c as CAMERA_CYCLE_OWNERSHIP_DOMAIN, l as getCameraCycleOwnershipDomain, s as wasmRuntime } from "./warmup-REsua-sF.esm.js";
1
+ import { c as CAMERA_CYCLE_OWNERSHIP_DOMAIN, l as getCameraCycleOwnershipDomain, s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.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";
@@ -138,6 +138,11 @@ var CameraCycleProvider = class {
138
138
  captureProtectedFrame(target) {
139
139
  return this.runtime.captureProtectedFrame(target);
140
140
  }
141
+ /**
142
+ * @deprecated Unused by SDK 2 production flows.
143
+ * Retained for compatibility; avoid new uses.
144
+ * Candidate for removal after a compatibility review.
145
+ */
141
146
  paintFrameToCanvas(canvas, options) {
142
147
  return this.runtime.paintFrameToCanvas(canvas, options);
143
148
  }
@@ -1,11 +1,11 @@
1
- import { l as trueSightLog } from "./trueSightService-DbgU08hx.esm.js";
2
- import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-CVH-SfI7.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-BH-4qglw.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-D8dk4ZID.esm.js";
2
+ import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-D-gzxDwN.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-kGZmwBhf.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
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Czjlp68o.esm.js";
8
- import { t as MotionSensorProvider } from "./MotionSensorProvider-Bti5f6op.esm.js";
7
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
8
+ import { t as MotionSensorProvider } from "./MotionSensorProvider-1Ul_1GPn.esm.js";
9
9
  import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
10
10
  import { t as createHiddenVideoElement } from "./video-BtSWtHy1.esm.js";
11
11
  import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
@@ -1,3 +1,3 @@
1
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-DyJb_vDQ.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-7e1RLKhG.esm.js";
1
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BS9VBtqN.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DRAn04PI.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -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-Bg3FuvIs.esm.js";
4
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-DyJb_vDQ.esm.js";
4
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BS9VBtqN.esm.js";
5
5
  //#region src/modules/document-capture/documentCaptureActor.ts
6
6
  function createDocumentCaptureActor(options) {
7
7
  return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
5
5
  import { o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
6
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DIaG8BlW.esm.js";
7
- import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DAyjPT2R.esm.js";
6
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B9IqVf3c.esm.js";
7
+ import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DS36X5Hh.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DQh2tLEr.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-BnRKBNqF.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-8oOTouxq.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-CTJzsDqC.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-Bg3FuvIs.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DQh2tLEr.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-8oOTouxq.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-CVZFxc4X.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-DmDlw1pl.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.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-kv6AwJVI.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Fhv6c1JX.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-BJUHQsVR.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-Dc-EUuwB.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-BDQHv558.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-CKNCVYs7.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-Bg3FuvIs.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-Fhv6c1JX.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-BDQHv558.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-kv6AwJVI.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-Dc-EUuwB.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.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-Dnwc7dMx.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-BLdgwGKf.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-BbgLJk1x.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-CVZFxc4X.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-DmDlw1pl.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
@@ -5,11 +5,11 @@ import "./Actor-DpTj5PFb.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-DTSLOvKR.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DbGCvlJs.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-BgbP5N1j.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-s0Vhw_wP.js";
9
9
  import "./createFaceAvatar-DXgmQmQy.js";
10
10
  import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
11
11
  import "./StreamCanvasCapture-CeBBJ_RC.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B-MR_-Si.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DE40FMUU.js";
13
13
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
14
14
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-CTdFloVJ.js";
15
15
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
@@ -21,15 +21,15 @@ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as D
21
21
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BYrK7YlF.js";
22
22
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BeXat860.js";
23
23
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
24
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-oSsnyvBl.js";
24
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-PVc2k2Oq.js";
25
25
  import { i as CaptureIdResponse } from "./types-B2aRpKiG2.js";
26
- import { U as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-BwBffPUe.js";
26
+ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-DfHdJLmj.js";
27
27
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-D4FVaENS.js";
28
28
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
29
29
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
30
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D7EOLZ_p.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D0-4bAeK.js";
31
31
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DN9b5rtc.js";
32
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-03Ni34bN.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-S94mjtTG.js";
33
33
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BTdHlJ9D.js";
34
34
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
35
35
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
@@ -1,25 +1,25 @@
1
- import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-H1Je4Kt9.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-CVH-SfI7.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-Cb7Ws1HA.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-D-gzxDwN.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BLdgwGKf.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BbgLJk1x.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-BOC5WnCl.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BOIbMZWB.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-D35zv0qP.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-GzW2oNiM.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-B9l6NeDe.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-BVIPp-jE.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-D540g9UK.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-CO1EPIVX.esm.js";
13
13
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-BHocstXa.esm.js";
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-oXaVxn1f.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-B9H34yQM.esm.js";
16
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-7e1RLKhG.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BnRKBNqF.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-BJUHQsVR.esm.js";
16
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DRAn04PI.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CTJzsDqC.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-CKNCVYs7.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-DEbkqrHx.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-CeSfUjcz.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-DWxNxmjQ.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CxE8iY2e.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-B-F-lrAH.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Bfrj7DvH.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-Do-HaC6Z.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-Cg8pCUZL.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-BUWO4S6n.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-B_Au6v1F.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-Cr7n1jvL.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-CS217sC0.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-FV2ACKQu.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-v0LZK1kW.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-DFDSCXQm.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-D50nxSs8.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-DuaXgdd4.esm.js";
@@ -1,10 +1,10 @@
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-Bg3FuvIs.esm.js";
4
- import { r as concealmentToAvatar } from "./faceCaptureSetup-BOIbMZWB.esm.js";
5
- import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Czjlp68o.esm.js";
4
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-GzW2oNiM.esm.js";
5
+ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
- import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DIaG8BlW.esm.js";
7
+ import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B9IqVf3c.esm.js";
8
8
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
9
9
  function getPermissionStatus(snapshot) {
10
10
  if (!snapshot.matches("permissions")) return;
@@ -3,15 +3,14 @@ import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
4
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
5
5
  import "./index-DpTj5PFb.js";
6
- import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
6
+ import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
7
7
  import { i as FlowModuleConfig } from "./types-BuR0sro5.js";
8
8
  import "./IWasmUtilCapability-VC40Kx9N.js";
9
9
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
10
10
  import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Ch-wwRAh.js";
11
11
  import { t as AuthenticationConfig } from "./types-a5xYna-T.js";
12
- import "./types-CfuWgAi-.js";
12
+ import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
13
13
  import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-CeBBJ_RC.js";
14
- import { t as FaceDetectionProvider } from "./FaceDetectionProvider-Di1DmZu1.js";
15
14
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
16
15
  //#region src/modules/authentication/authenticationStateMachine.d.ts
17
16
  declare const _authenticationMachine: AnyStateMachine;
@@ -27,6 +26,84 @@ type CreateAuthenticationActorOptions = {
27
26
  type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
28
27
  declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
29
28
  //#endregion
29
+ //#region src/internal/faceCapture/recordingService.d.ts
30
+ type RecordingService = {
31
+ start(stream: MediaStream): Promise<void>;
32
+ /**
33
+ * Prepares the recording metadata needed by the face-image upload.
34
+ *
35
+ * Local video-liveness recordings must stop here because their upload id is
36
+ * sent with the image. Scoped face recordings return no legacy id, pause at
37
+ * the end of each attempt, and resume the same upload after a rejection; the
38
+ * state machine finalizes them only after the backend accepts the capture.
39
+ */
40
+ prepareUpload(): Promise<{
41
+ recordingId: string | null;
42
+ }>;
43
+ stop(): Promise<{
44
+ recordingId: string | null;
45
+ }>;
46
+ /** Best-effort page-background handling for protected camera cycles. */
47
+ pauseForBackground?(): void;
48
+ /** Resumes the same recorder after its protected presentation track recovers. */
49
+ resumeFromBackground?(stream: MediaStream): Promise<void>;
50
+ /**
51
+ * Present only on step-scoped services (one recording per capture step,
52
+ * ENG-56648). Ends the recorder's camera clone synchronously and pauses the
53
+ * container without completing the upload; the next `start(stream)` resumes
54
+ * it with a fresh clone and the step owner completes it with `stop()`.
55
+ * Idempotent, and a no-op once the recording is completing.
56
+ */
57
+ suspend?(): void;
58
+ /**
59
+ * Stops the recorder and returns the raw (un-encrypted, not uploaded)
60
+ * video as base64. Used by the captureOnly flow, which hands video bytes
61
+ * to the integrator via `onCapture` instead of uploading to Incode.
62
+ *
63
+ * Returns `{ videoBase64: undefined }` when video is not available for
64
+ * any reason, including:
65
+ * - the recorder was never started or is already stopped,
66
+ * - video assembly fails.
67
+ */
68
+ stopAndGetVideo(): Promise<{
69
+ videoBase64: string | undefined;
70
+ }>;
71
+ cleanup(): void;
72
+ };
73
+ //#endregion
74
+ //#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
75
+ declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
76
+ private defaultThresholds;
77
+ private currentThresholds;
78
+ private currentFrame;
79
+ private onFaceDataCallback;
80
+ constructor();
81
+ processFrame(image: ImageData): Promise<void>;
82
+ initialize(config: FaceDetectionConfig): Promise<void>;
83
+ /**
84
+ * Last-registered onCapture callback — captured into a private
85
+ * field so `forceCapture()` (called from outside the WASM-callback
86
+ * lifecycle) can re-fire the same wrapper. `setCallbacks` rebinds
87
+ * this on each invocation, so the field always reflects the
88
+ * current consumer.
89
+ */
90
+ private currentOnCaptureWrapper;
91
+ processPhoto(canvas: HTMLCanvasElement): void;
92
+ postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
93
+ setCallbacks(callbacks: FaceDetectionCallbacks): void;
94
+ setPositionConstraints(constraints: FacePositionConstraints): void;
95
+ applyDefaults(autocaptureInterval?: number): void;
96
+ setAutocaptureInterval(interval: number): void;
97
+ setThresholds(thresholds: FaceDetectionThresholds): void;
98
+ setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
99
+ setChecksEnabled(config: FaceChecksConfig): void;
100
+ setVideoSelfieMode(enabled: boolean): void;
101
+ forceCapture(): void;
102
+ reset(): void;
103
+ private createDefaultFaceCoordinates;
104
+ private formatFaceCoordinates;
105
+ }
106
+ //#endregion
30
107
  //#region src/modules/selfie/types.d.ts
31
108
  /**
32
109
  * Public selfie configuration.
@@ -78,43 +155,6 @@ type ProcessFaceResponse = {
78
155
  };
79
156
  declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
80
157
  //#endregion
81
- //#region src/internal/faceCapture/recordingService.d.ts
82
- type RecordingService = {
83
- start(stream: MediaStream): Promise<void>;
84
- /**
85
- * Prepares the recording metadata needed by the face-image upload.
86
- *
87
- * Local video-liveness recordings must stop here because their upload id is
88
- * sent with the image. Scoped face recordings return no legacy id, pause at
89
- * the end of each attempt, and resume the same upload after a rejection; the
90
- * state machine finalizes them only after the backend accepts the capture.
91
- */
92
- prepareUpload(): Promise<{
93
- recordingId: string | null;
94
- }>;
95
- stop(): Promise<{
96
- recordingId: string | null;
97
- }>;
98
- /** Best-effort page-background handling for protected camera cycles. */
99
- pauseForBackground?(): void;
100
- /** Resumes the same recorder after its protected presentation track recovers. */
101
- resumeFromBackground?(stream: MediaStream): Promise<void>;
102
- /**
103
- * Stops the recorder and returns the raw (un-encrypted, not uploaded)
104
- * video as base64. Used by the captureOnly flow, which hands video bytes
105
- * to the integrator via `onCapture` instead of uploading to Incode.
106
- *
107
- * Returns `{ videoBase64: undefined }` when video is not available for
108
- * any reason, including:
109
- * - the recorder was never started or is already stopped,
110
- * - video assembly fails.
111
- */
112
- stopAndGetVideo(): Promise<{
113
- videoBase64: string | undefined;
114
- }>;
115
- cleanup(): void;
116
- };
117
- //#endregion
118
158
  //#region src/internal/faceCapture/faceCaptureSetup.d.ts
119
159
  type FaceCaptureConfig = BaseFaceCaptureConfig;
120
160
  type FaceCaptureInput = {