@incodetech/core 0.0.0-dev-20260806-08fd1f8c → 0.0.0-dev-20260807-9907417f

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 (76) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-BTj-Qc3z.esm.js → BrowserDiagnosticsCryptoProvider-BzByrg2n.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-BXM-cuaT.esm.js → apiError-GcTTQxue.esm.js} +1 -1
  4. package/dist/authentication.d.ts +2 -2
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-CiPSTRIN.d.ts → authenticationManager-BBMGTcwW.d.ts} +1 -1
  7. package/dist/{authenticationManager-Dwn-uiY6.esm.js → authenticationManager-DzaxaLf_.esm.js} +2 -2
  8. package/dist/{authenticationStateMachine-smHygK-q.esm.js → authenticationStateMachine-CH0yB1n5.esm.js} +2 -2
  9. package/dist/{backCameraStream-DvkELZlG.esm.js → backCameraStream-CUeYm5eu.esm.js} +7 -2
  10. package/dist/consent.d.ts +1 -1
  11. package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-3Pbtj-RV.d.ts} +5 -5
  12. package/dist/{deepsightLoader-D_5hBT0H.esm.js → deepsightLoader-BXNzqgjC.esm.js} +3 -3
  13. package/dist/document-capture.d.ts +2 -2
  14. package/dist/document-capture.esm.js +2 -2
  15. package/dist/document-upload.d.ts +4 -4
  16. package/dist/document-upload.esm.js +1 -1
  17. package/dist/{documentCaptureManager-CNZvT4f6.d.ts → documentCaptureManager-CIQSsmZe.d.ts} +2 -2
  18. package/dist/{documentCaptureManager-Ckt4gvE_.esm.js → documentCaptureManager-CPb1ooah.esm.js} +1 -1
  19. package/dist/{documentCaptureStateMachine-CaswhdE0.esm.js → documentCaptureStateMachine-D2jBwwVb.esm.js} +8 -3
  20. package/dist/dynamic-forms.esm.js +2 -2
  21. package/dist/{dynamicFormsManager-L6Q2GiH0.esm.js → dynamicFormsManager-DTYPCotP.esm.js} +1 -1
  22. package/dist/{dynamicFormsStateMachine-DY-AQouk.esm.js → dynamicFormsStateMachine-DqhIXSL0.esm.js} +1 -1
  23. package/dist/ekyb.esm.js +3 -3
  24. package/dist/{ekybManager-WYeXWEDj.esm.js → ekybManager-Dw-apOmj.esm.js} +1 -1
  25. package/dist/{ekybStateMachine-CblEWf6m.esm.js → ekybStateMachine-1np62ocf.esm.js} +1 -1
  26. package/dist/electronic-signature.esm.js +1 -1
  27. package/dist/{electronicSignatureManager-MrcDiMh8.esm.js → electronicSignatureManager-BjVKOU14.esm.js} +1 -1
  28. package/dist/extensibility.d.ts +8 -8
  29. package/dist/extensibility.esm.js +10 -10
  30. package/dist/{faceCaptureManagerFactory-BLW6CfOr.d.ts → faceCaptureManagerFactory-BxWPpxyd.d.ts} +11 -1
  31. package/dist/{faceCaptureManagerFactory-PtNQCFn1.esm.js → faceCaptureManagerFactory-C1fWhpb3.esm.js} +2 -1
  32. package/dist/{faceCaptureSetup-BiG0QeE1.esm.js → faceCaptureSetup-CWKYKKei.esm.js} +12 -4
  33. package/dist/fiscal-qr.esm.js +1 -1
  34. package/dist/flow.d.ts +1 -1
  35. package/dist/flow.esm.js +3 -3
  36. package/dist/{flowCompletionService-Dxr6AhsU.esm.js → flowCompletionService-DjQepG1I.esm.js} +1 -1
  37. package/dist/{flowServices-tErMZq05.esm.js → flowServices-DERjSTC9.esm.js} +3 -3
  38. package/dist/geolocation.esm.js +2 -2
  39. package/dist/{geolocationManager-BfgSQ7U0.esm.js → geolocationManager-JVFoIOGV.esm.js} +1 -1
  40. package/dist/{geolocationStateMachine-NHED38mV.esm.js → geolocationStateMachine-DcnyGm4v.esm.js} +1 -1
  41. package/dist/id-ocr.d.ts +1 -1
  42. package/dist/id-selfie-flow.esm.js +6 -6
  43. package/dist/id.esm.js +3 -3
  44. package/dist/{idCaptureManager-B_Pf20_4.esm.js → idCaptureManager-Dvg0GVpq.esm.js} +1 -1
  45. package/dist/{idCaptureServices-CIVVMNDg.esm.js → idCaptureServices-Cd8X5IYl.esm.js} +3 -3
  46. package/dist/{idCaptureStateMachine-D9spt_P-.esm.js → idCaptureStateMachine-LnEIroru.esm.js} +7 -7
  47. package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
  48. package/dist/identity-reuse.d.ts +1 -1
  49. package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
  50. package/dist/index.esm.js +1 -1
  51. package/dist/mandatory-consent.d.ts +1 -1
  52. package/dist/{mandatoryConsentManager-B7oBXoBB.d.ts → mandatoryConsentManager-DyPzUmsZ.d.ts} +5 -5
  53. package/dist/{onDeviceFaceResults-Cu0IbfJl.esm.js → onDeviceFaceResults-4V5CfwpH.esm.js} +8 -6
  54. package/dist/personhood.esm.js +3 -3
  55. package/dist/qe-signature.esm.js +1 -1
  56. package/dist/{recordingService-9k9cJ-Tn.esm.js → recordingService-XRbtK8sl.esm.js} +1 -1
  57. package/dist/{runChildModule-CFrSe2Ox.esm.js → runChildModule-BFB2AaPg.esm.js} +1 -1
  58. package/dist/selfie.d.ts +2 -2
  59. package/dist/selfie.esm.js +4 -4
  60. package/dist/{selfieManager-VR5wgFaA.esm.js → selfieManager-DPO3nuK4.esm.js} +2 -2
  61. package/dist/{selfieManager-RB6OH_Bi.d.ts → selfieManager-DwlCppg0.d.ts} +1 -1
  62. package/dist/{selfieStateMachine-AjnEx1qx.esm.js → selfieStateMachine-CqUlaar7.esm.js} +2 -2
  63. package/dist/{session-Z4BYX-_g.esm.js → session-BmUqn2Yv.esm.js} +4 -4
  64. package/dist/session.esm.js +4 -4
  65. package/dist/{sessionInitializer-Dk9lfcWS.esm.js → sessionInitializer-CHm90VzO.esm.js} +2 -2
  66. package/dist/{setup-B8oFqR-B.esm.js → setup-qV3Hq0Y2.esm.js} +4 -4
  67. package/dist/trueSight-DOaDX17m.esm.js +1 -0
  68. package/dist/{trueSightService-AQ6Xfdw-.esm.js → trueSightService-QAySpgvt.esm.js} +2 -2
  69. package/dist/{types-CxMdPvAy.d.ts → types-DelMqZLe.d.ts} +1 -1
  70. package/dist/video-selfie.esm.js +3 -3
  71. package/dist/{videoSelfieCameraWarmer-CAQLyQ4i.esm.js → videoSelfieCameraWarmer-LiiksurI.esm.js} +3 -3
  72. package/dist/wasm.esm.js +1 -1
  73. package/dist/workflow.d.ts +4 -4
  74. package/dist/workflow.esm.js +15 -15
  75. package/package.json +3 -3
  76. package/dist/trueSight-BIWtfMQr.esm.js +0 -1
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
18
18
  */
19
19
  function getTruesightKey() {
20
20
  try {
21
- const key = decodeTruesightKey("ZvwOpS2+uMftU+IZgSCOjHt18t0WZ9XLVoU8h3L2lq0=", "RX2OI/H1k8OnXkJENG6rl2av+HzmKccKZRhZFcbXNMs=");
21
+ const key = decodeTruesightKey("hPJ7FxHSMgpoHlnUdMkaBlz+ZU/VLVBx7mxqwN1iAjA=", "rCvJjGVhDiGpK/B4WORmEisUNYkPvU0t7o/L1oxSjnM=");
22
22
  return key.length === KEY_LENGTH_BYTES ? key : null;
23
23
  } catch {
24
24
  return null;
@@ -1,4 +1,4 @@
1
- import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-MrcDiMh8.esm.js";
1
+ import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-BjVKOU14.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-AQ6Xfdw-.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-QAySpgvt.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BLW6CfOr.js";
1
+ import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BxWPpxyd.js";
2
2
  import { t as AuthenticationConfig } from "./types-EELWyWpd.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CiPSTRIN.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BBMGTcwW.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-smHygK-q.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Dwn-uiY6.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-CH0yB1n5.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DzaxaLf_.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BLW6CfOr.js";
3
+ import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-BxWPpxyd.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-PtNQCFn1.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-smHygK-q.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-C1fWhpb3.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CH0yB1n5.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BiG0QeE1.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Cu0IbfJl.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CWKYKKei.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-4V5CfwpH.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-9y-kbVDw.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,4 +1,4 @@
1
- import { i as isIOS, o as isIPhone14OrHigher, s as isSafari, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
1
+ import { i as isIOS, o as isIPhone14OrHigher, r as isDesktop, s as isSafari, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
2
2
  import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-_2sXMXiF.esm.js";
3
3
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
4
4
  import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
@@ -70,6 +70,11 @@ async function getCameras() {
70
70
  }
71
71
  return cameras;
72
72
  }
73
+ async function hasBackCamera() {
74
+ const devices = await enumerateVideoDevices();
75
+ if (devices.some((d) => isBackCameraLabel(d.label))) return true;
76
+ return devices.length > 1 && !isDesktop();
77
+ }
73
78
  function selectBestBackCamera(backCameras) {
74
79
  if (backCameras.length === 0) return void 0;
75
80
  if (backCameras.length === 1) return backCameras[0];
@@ -434,4 +439,4 @@ async function getBackCameraStream(deviceId) {
434
439
  return { stream: await getDesktopBackCameraStream(deviceId) };
435
440
  }
436
441
  //#endregion
437
- export { getBackCameraStream as n, getDesktopCameraStream as r, ensureFrontCameraStream as t };
442
+ export { hasBackCamera as i, getBackCameraStream as n, getDesktopCameraStream as r, ensureFrontCameraStream as t };
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -82,10 +82,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
82
82
  type: "clearError";
83
83
  params: NonReducibleUnknown;
84
84
  };
85
- resetContext: {
86
- type: "resetContext";
87
- params: NonReducibleUnknown;
88
- };
89
85
  setConsentData: {
90
86
  type: "setConsentData";
91
87
  params: NonReducibleUnknown;
@@ -94,10 +90,14 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
90
  type: "toggleCheckbox";
95
91
  params: NonReducibleUnknown;
96
92
  };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: NonReducibleUnknown;
96
+ };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
@@ -1,8 +1,8 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-AQ6Xfdw-.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-Dk9lfcWS.esm.js";
5
- import "./trueSight-BIWtfMQr.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-QAySpgvt.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CHm90VzO.esm.js";
5
+ import "./trueSight-DOaDX17m.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
@@ -1,3 +1,3 @@
1
- import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-CxMdPvAy.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-CNZvT4f6.js";
1
+ import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-DelMqZLe.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-CIQSsmZe.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 };
@@ -1,3 +1,3 @@
1
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CaswhdE0.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-Ckt4gvE_.esm.js";
1
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D2jBwwVb.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-CPb1ooah.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -38,10 +38,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
- setError: {
42
- type: "setError";
43
- params: NonReducibleUnknown;
44
- };
45
41
  setStream: {
46
42
  type: "setStream";
47
43
  params: NonReducibleUnknown;
@@ -54,6 +50,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
54
50
  type: "setProgress";
55
51
  params: NonReducibleUnknown;
56
52
  };
53
+ setError: {
54
+ type: "setError";
55
+ params: NonReducibleUnknown;
56
+ };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
@@ -4,7 +4,7 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
4
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
7
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
7
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
8
8
  //#region src/modules/document-upload/documentUploadServices.ts
9
9
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
10
10
  const url = `${endpoints.addDocument}?type=${encodeURIComponent(documentType)}`;
@@ -3,7 +3,7 @@ import "./StateMachine-EDpYWy0i.js";
3
3
  import { t as Manager } from "./Manager-CQQ99QOI.js";
4
4
  import "./Actor-iTq7YY48.js";
5
5
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
6
- import { a as DocumentCaptureErrorCode, c as DocumentType, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as FinalizeDocumentResponse } from "./types-CxMdPvAy.js";
6
+ import { a as DocumentCaptureErrorCode, c as DocumentType, i as DocumentCaptureContext, l as DocumentUploadResponse, o as DocumentCaptureInput, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, t as CapturedDocument, u as FinalizeDocumentResponse } from "./types-DelMqZLe.js";
7
7
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
8
8
  declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
9
9
  type: "CAPTURE";
@@ -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" | "initCamera" | "capturing" | "failure" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
254
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "tutorial" | "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,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CaswhdE0.esm.js";
4
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-D2jBwwVb.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();
@@ -4,7 +4,7 @@ import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
6
6
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-UvUcOSRb.esm.js";
7
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
7
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
8
8
  import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KINpmKtI.esm.js";
9
9
  //#region src/modules/document-capture/types.ts
10
10
  const PROCESSING_TYPE_MAP = {
@@ -14,13 +14,17 @@ const PROCESSING_TYPE_MAP = {
14
14
  processCarInvoice: "carInvoice",
15
15
  asyncProcessCarInvoice: "carInvoice",
16
16
  asyncProcessCirculationCard: "circulationCard",
17
- capture: "addressStatement"
17
+ capture: "addressStatement",
18
+ processW8BenOcr: "w8Ben",
19
+ processW8BenEOcr: "w8BenE"
18
20
  };
19
21
  const MULTI_PAGE_TYPES = [
20
22
  "v5cMultiPageLogbook",
21
23
  "circulationCard",
22
- "financeSettlement"
24
+ "financeSettlement",
25
+ "w8BenE"
23
26
  ];
27
+ const V3_SINGLE_PAGE_TYPES = /* @__PURE__ */ new Set(["w8Ben"]);
24
28
  const DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024;
25
29
  const OTHER_DOCUMENT_TYPES = /* @__PURE__ */ new Set([
26
30
  "otherDocument1",
@@ -47,6 +51,7 @@ function resolveUploadUrl(processingType, fileFormat) {
47
51
  const format = fileFormat === "application/pdf" ? "pdf" : "image";
48
52
  const resolvedType = normalizeProcessingType(processingType);
49
53
  if (isMultiPageDocumentType(resolvedType)) return buildUrl(endpoints.documentV3, resolvedType, format);
54
+ if (V3_SINGLE_PAGE_TYPES.has(resolvedType)) return buildUrl(endpoints.documentV3, resolvedType, format);
50
55
  if (resolvedType === "carInvoice") return buildUrl(endpoints.cfdi, resolvedType, format);
51
56
  if (OTHER_DOCUMENT_TYPES.has(resolvedType)) return buildUrl(endpoints.addDocument, resolvedType, format);
52
57
  if (resolvedType === "addressStatement" || !resolvedType) return buildUrl(endpoints.addressStatement, resolvedType || "addressStatement", format);
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DY-AQouk.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-L6Q2GiH0.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DqhIXSL0.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-DTYPCotP.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DY-AQouk.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DqhIXSL0.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-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-BXM-cuaT.esm.js";
3
+ import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-GcTTQxue.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-tErMZq05.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-CblEWf6m.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-WYeXWEDj.esm.js";
1
+ import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-DERjSTC9.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-1np62ocf.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-Dw-apOmj.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-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-CblEWf6m.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-1np62ocf.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-CCzL3XD_.esm.js";
3
- import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-tErMZq05.esm.js";
3
+ import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-DERjSTC9.esm.js";
4
4
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.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-DQyrvDQj.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-MrcDiMh8.esm.js";
1
+ import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, n as createElectronicSignatureManagerFromActor, o as areAllConsented, r as electronicSignatureMachine, s as getConsentKeys, t as createElectronicSignatureManager } from "./electronicSignatureManager-BjVKOU14.esm.js";
2
2
  export { AE_CONSENT_KEYS, 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-ethtfu2b.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-BXM-cuaT.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-GcTTQxue.esm.js";
6
6
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
@@ -5,16 +5,16 @@ import "./Actor-iTq7YY48.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-DVmXIdzW.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-CcUXQZS7.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
8
- import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BLW6CfOr.js";
8
+ import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BxWPpxyd.js";
9
9
  import { t as IStorageCapability } from "./IStorageCapability-ORkQfK3F.js";
10
10
  import { n as BaseWasmProvider } from "./FaceDetectionProvider-Mh6q3EbA.js";
11
11
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-Hmd7U0JA.js";
12
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-RB6OH_Bi.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CiPSTRIN.js";
14
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
12
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DwlCppg0.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BBMGTcwW.js";
14
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-3Pbtj-RV.js";
15
15
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
16
16
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DVGr7Fq7.js";
17
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CNZvT4f6.js";
17
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CIQSsmZe.js";
18
18
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-fhK0yINk.js";
19
19
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
20
20
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
@@ -23,10 +23,10 @@ import { n as CaptureIdResponse } from "./types-DT9tqQtP2.js";
23
23
  import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-JWz-mYr-.js";
24
24
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
25
25
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
26
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
26
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
27
27
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
28
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B7oBXoBB.js";
29
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
28
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DyPzUmsZ.js";
29
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
30
30
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
31
31
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
32
32
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
@@ -1,22 +1,22 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
- import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-Dk9lfcWS.esm.js";
3
+ import { _ as getDeviceFingerprintInfo, m as getFingerprint } from "./sessionInitializer-CHm90VzO.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-MrcDiMh8.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BjVKOU14.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-C4_d-1a0.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BiG0QeE1.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Dwn-uiY6.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CWKYKKei.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DzaxaLf_.esm.js";
10
10
  import { n as createConsentManagerFromActor } from "./consentManager-lG6fCXOk.esm.js";
11
11
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-B5bnUpSo.esm.js";
12
12
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CYkSBXCF.esm.js";
13
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-Ckt4gvE_.esm.js";
14
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-L6Q2GiH0.esm.js";
15
- import { n as createEkybManagerFromActor } from "./ekybManager-WYeXWEDj.esm.js";
13
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-CPb1ooah.esm.js";
14
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DTYPCotP.esm.js";
15
+ import { n as createEkybManagerFromActor } from "./ekybManager-Dw-apOmj.esm.js";
16
16
  import { n as createEkycManagerFromActor } from "./ekycManager-BnPKaiV_.esm.js";
17
17
  import { n as createEmailManagerFromActor } from "./emailManager-D-3pYOas.esm.js";
18
- import { n as createSelfieManagerFromActor } from "./selfieManager-VR5wgFaA.esm.js";
19
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-B_Pf20_4.esm.js";
18
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DPO3nuK4.esm.js";
19
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Dvg0GVpq.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-SONkmpec.esm.js";
21
21
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-QakKGrF0.esm.js";
22
22
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-CUVKNTFa.esm.js";
@@ -25,7 +25,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
25
25
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DWGed-91.esm.js";
26
26
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B7EYFwY_.esm.js";
27
27
  import { n as createSignatureManagerFromActor } from "./signatureManager-BpstxH7R.esm.js";
28
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-BfgSQ7U0.esm.js";
28
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-JVFoIOGV.esm.js";
29
29
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-W8v-boCx.esm.js";
30
30
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Dnp-edw5.esm.js";
31
31
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -155,6 +155,7 @@ type FaceCaptureContext = {
155
155
  stream: CameraStream | undefined;
156
156
  provider: FaceDetectionProvider | undefined;
157
157
  frameCapturer: StreamCanvasCapture | undefined;
158
+ usingBackCamera: boolean;
158
159
  error: string | FaceErrorObject | undefined;
159
160
  detectionStatus: DetectionStatus;
160
161
  capturedImage: IncodeCanvas | undefined;
@@ -310,8 +311,17 @@ type FaceCaptureCaptureState = {
310
311
  attemptsRemaining: number;
311
312
  /** Error message from failed upload */
312
313
  uploadError: string | undefined;
313
- /** Whether assisted onboarding mode is active (back camera, no mirror) */
314
+ /**
315
+ * The requested config flag only — it does NOT say which camera is in use,
316
+ * since devices without a rear camera fall back to the front one. Use
317
+ * {@link usingBackCamera} for camera-dependent concerns like mirroring.
318
+ */
314
319
  assistedOnboarding: boolean;
320
+ /**
321
+ * Whether the active `stream` really came from a rear camera. Mirror the
322
+ * preview when this is `false` (selfie view), leave it as-is when `true`.
323
+ */
324
+ usingBackCamera: boolean;
315
325
  ageAssurance?: boolean;
316
326
  /**
317
327
  * Whether on-device face-results submission is enabled
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ethtfu2b.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-BiG0QeE1.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-CWKYKKei.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-UvUcOSRb.esm.js";
@@ -57,6 +57,7 @@ function mapState(snapshot) {
57
57
  attemptsRemaining: context.attemptsRemaining ?? 0,
58
58
  uploadError: context.uploadError,
59
59
  assistedOnboarding: context.config?.assistedOnboarding ?? false,
60
+ usingBackCamera: context.usingBackCamera ?? false,
60
61
  ageAssurance: context.config?.ageAssurance === true,
61
62
  onDeviceMode: context.config?.onDeviceFaceResultsSubmissionEnabled === true,
62
63
  obfuscateWithAvatar,
@@ -2,13 +2,13 @@ import { r as getToken } from "./api-Bx3gKW_y.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-UvUcOSRb.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-Cu0IbfJl.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-4V5CfwpH.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-DQKaRise.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KINpmKtI.esm.js";
10
10
  import { t as flagFaceManualReview } from "./manualReviewService-D4IkipnN.esm.js";
11
- import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-9k9cJ-Tn.esm.js";
11
+ import { n as preloadOpenViduProvider, t as createRecordingService } from "./recordingService-XRbtK8sl.esm.js";
12
12
  //#region src/internal/avatar/concealment.ts
13
13
  /**
14
14
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
@@ -172,7 +172,8 @@ const faceCaptureMachine = setup({
172
172
  stream: void 0,
173
173
  provider: void 0,
174
174
  frameCapturer: void 0,
175
- avatarCanvas: void 0
175
+ avatarCanvas: void 0,
176
+ usingBackCamera: false
176
177
  };
177
178
  }),
178
179
  setStreamAndCapturer: assign({
@@ -184,6 +185,10 @@ const faceCaptureMachine = setup({
184
185
  },
185
186
  frameCapturer: ({ event }) => {
186
187
  if ("output" in event) return new StreamCanvasCapture(event.output.stream);
188
+ },
189
+ usingBackCamera: ({ event }) => {
190
+ if ("output" in event) return event.output.usingBackCamera;
191
+ return false;
187
192
  }
188
193
  }),
189
194
  trackTutorial: () => void 0,
@@ -192,6 +197,7 @@ const faceCaptureMachine = setup({
192
197
  stream: void 0,
193
198
  provider: void 0,
194
199
  frameCapturer: void 0,
200
+ usingBackCamera: false,
195
201
  error: void 0,
196
202
  detectionStatus: "idle",
197
203
  capturedImage: void 0,
@@ -231,7 +237,8 @@ const faceCaptureMachine = setup({
231
237
  stream: void 0,
232
238
  provider: void 0,
233
239
  frameCapturer: void 0,
234
- avatarCanvas: void 0
240
+ avatarCanvas: void 0,
241
+ usingBackCamera: false
235
242
  };
236
243
  }),
237
244
  decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 })),
@@ -333,6 +340,7 @@ const faceCaptureMachine = setup({
333
340
  stream: void 0,
334
341
  provider: void 0,
335
342
  frameCapturer: void 0,
343
+ usingBackCamera: false,
336
344
  error: void 0,
337
345
  detectionStatus: "idle",
338
346
  capturedImage: void 0,
@@ -5,7 +5,7 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
5
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
8
- import { n as getBackCameraStream } from "./backCameraStream-DvkELZlG.esm.js";
8
+ import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
9
9
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
10
10
  import { BrowserQRCodeReader } from "@zxing/browser";
11
11
  //#region src/modules/fiscal-qr/fiscalQrConstants.ts
package/dist/flow.d.ts CHANGED
@@ -6,7 +6,7 @@ import { a as ElectronicSignatureConfig } from "./types-DVmXIdzW.js";
6
6
  import { t as EkycConfig } from "./types-Bk_6dmDa.js";
7
7
  import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-KPvmag_B.js";
8
8
  import { t as AuthenticationConfig } from "./types-EELWyWpd.js";
9
- import { r as DocumentCaptureConfig } from "./types-CxMdPvAy.js";
9
+ import { r as DocumentCaptureConfig } from "./types-DelMqZLe.js";
10
10
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
11
11
  import { t as EkybConfig } from "./types-BfHiko5D.js";
12
12
  import { c as IdCaptureConfig } from "./types-DT9tqQtP2.js";
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ethtfu2b.esm.js";
2
- import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-tErMZq05.esm.js";
2
+ import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-DERjSTC9.esm.js";
3
3
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-Dxr6AhsU.esm.js";
6
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CFrSe2Ox.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DjQepG1I.esm.js";
6
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BFB2AaPg.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
8
8
  const noOpFlowModuleMachine = setup({}).createMachine({
9
9
  id: "noOpFlowModule",
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
- import { r as toIncodeApiError } from "./apiError-BXM-cuaT.esm.js";
3
+ import { r as toIncodeApiError } from "./apiError-GcTTQxue.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,9 +1,9 @@
1
1
  import { _ as updateFeatureManagementUser } from "./feature-management-CFRmD8Nr.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-Dk9lfcWS.esm.js";
3
+ import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CHm90VzO.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-BXM-cuaT.esm.js";
6
- import "./session-Z4BYX-_g.esm.js";
5
+ import { r as toIncodeApiError } from "./apiError-GcTTQxue.esm.js";
6
+ import "./session-BmUqn2Yv.esm.js";
7
7
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
8
8
  //#region src/modules/flow/dashboardConfig.ts
9
9
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-BfgSQ7U0.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-NHED38mV.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-JVFoIOGV.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-DcnyGm4v.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };