@incodetech/core 0.0.0-dev-20260728-dcd649b0 → 0.0.0-dev-20260728-ee28c8bd

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 (71) hide show
  1. package/dist/authentication.d.ts +3 -3
  2. package/dist/authentication.esm.js +2 -2
  3. package/dist/{authenticationManager-DqyCzK3H.d.ts → authenticationManager-B2KZQ9zw.d.ts} +1 -1
  4. package/dist/{authenticationManager-CXhA0lc5.esm.js → authenticationManager-DhKmbcZh.esm.js} +2 -2
  5. package/dist/{authenticationStateMachine-CwH4siI_.esm.js → authenticationStateMachine-DrOepYhJ.esm.js} +2 -2
  6. package/dist/curp-validation.d.ts +1 -1
  7. package/dist/{curpValidationManager-DRQrbEhj.d.ts → curpValidationManager-BEWD-Lvo.d.ts} +1 -1
  8. package/dist/{deepsightLoader-CXK44MVG.esm.js → deepsightLoader-ChJdVAcM.esm.js} +1 -1
  9. package/dist/ekyb.d.ts +1 -1
  10. package/dist/ekyb.esm.js +3 -3
  11. package/dist/{ekybManager-kWGFMAN5.esm.js → ekybManager-x5RT5Hit.esm.js} +1 -1
  12. package/dist/{ekybStateMachine-DmwnW772.esm.js → ekybStateMachine-D9KpHlgz.esm.js} +1 -1
  13. package/dist/ekyc.esm.js +2 -2
  14. package/dist/{ekycManager-DRrG5I6e.esm.js → ekycManager-Cl2e4Knv.esm.js} +1 -1
  15. package/dist/extensibility.d.ts +10 -11
  16. package/dist/extensibility.esm.js +9 -10
  17. package/dist/{faceCaptureManagerFactory-BpVpExwX.d.ts → faceCaptureManagerFactory-B2TUje5s.d.ts} +3 -3
  18. package/dist/{faceCaptureManagerFactory-DjcsAq8u.esm.js → faceCaptureManagerFactory-ysDDYfpc.esm.js} +1 -1
  19. package/dist/{faceCaptureSetup-8qt4c6tR.esm.js → faceCaptureSetup-BRMhr-XT.esm.js} +2 -2
  20. package/dist/flow-events.d.ts +1 -1
  21. package/dist/flow.d.ts +6 -6
  22. package/dist/flow.esm.js +1 -1
  23. package/dist/{flowServices-BcWQgzDl.esm.js → flowServices-DyZkh-5Q.esm.js} +13 -10
  24. package/dist/home.d.ts +1 -1
  25. package/dist/id-ocr.d.ts +8 -4
  26. package/dist/id-ocr.esm.js +20 -3
  27. package/dist/id.d.ts +2 -2
  28. package/dist/id.esm.js +2 -2
  29. package/dist/{idCaptureManager-Cb7aXt7D.esm.js → idCaptureManager-DrmMKLDi.esm.js} +1 -1
  30. package/dist/{idCaptureManager-DmVmaxd9.d.ts → idCaptureManager-Dxv7cHUT.d.ts} +2 -2
  31. package/dist/{idCaptureStateMachine-DuQgO4_L.esm.js → idCaptureStateMachine-CtqVhBjq.esm.js} +5 -5
  32. package/dist/{idOcrManager-5vi0uwLZ.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  33. package/dist/{idOcrManager-gscmFPxD.esm.js → idOcrManager-CnIWzuqU.esm.js} +1 -1
  34. package/dist/{idOcrStateMachine-jfAyK4Bb.esm.js → idOcrStateMachine-Cqi8173Y.esm.js} +2 -2
  35. package/dist/{index-Ci9wEPiD.d.ts → index-X9serOZT.d.ts} +1 -1
  36. package/dist/index.esm.js +1 -1
  37. package/dist/mandatory-consent.d.ts +2 -2
  38. package/dist/{mandatoryConsentManager-Ck2e2W4o.d.ts → mandatoryConsentManager-M6QI0nB0.d.ts} +1 -1
  39. package/dist/{onDeviceFaceResults-B7udIDIL.esm.js → onDeviceFaceResults-BbjULJyT.esm.js} +1 -1
  40. package/dist/personhood.d.ts +1 -1
  41. package/dist/personhood.esm.js +2 -2
  42. package/dist/{recordingService-DXircQgK.esm.js → recordingService-CqKPwPvN.esm.js} +1 -1
  43. package/dist/selfie.d.ts +3 -3
  44. package/dist/selfie.esm.js +4 -4
  45. package/dist/{selfieManager-5iJjQHdZ.esm.js → selfieManager-5QzVKTV3.esm.js} +2 -2
  46. package/dist/{selfieManager-DR-EIsRb.d.ts → selfieManager-BT7dmOHi.d.ts} +1 -1
  47. package/dist/{selfieStateMachine-DyoAe6Uh.esm.js → selfieStateMachine-6SSh-uFp.esm.js} +2 -2
  48. package/dist/session-BO17OfFa.esm.js +1 -0
  49. package/dist/session.d.ts +1 -1
  50. package/dist/session.esm.js +2 -2
  51. package/dist/{sessionInitializer-oAi9ICPo.esm.js → sessionInitializer-DuZWsy2u.esm.js} +1 -1
  52. package/dist/{setup-BpjU9IYU.esm.js → setup-ItZ5fsL_.esm.js} +2 -2
  53. package/dist/{types-DMMk51Ec.d.ts → types-BK-v1UYb.d.ts} +1 -1
  54. package/dist/{types-CBJI9n6h2.d.ts → types-CJ7Yl9K-.d.ts} +1 -0
  55. package/dist/{types-DByREvr1.d.ts → types-CfwPB1PL.d.ts} +1 -1
  56. package/dist/{types-BQgIv5p8.d.ts → types-DjHL5Wa9.d.ts} +1 -1
  57. package/dist/{types-BjTTkLmd.d.ts → types-NSJbROLr.d.ts} +1 -1
  58. package/dist/types-sK-eGomM.d.ts +6 -0
  59. package/dist/video-selfie.d.ts +2 -2
  60. package/dist/video-selfie.esm.js +3 -3
  61. package/dist/wasm.esm.js +1 -1
  62. package/dist/workflow.d.ts +1 -1
  63. package/dist/workflow.esm.js +8 -8
  64. package/package.json +3 -8
  65. package/dist/cpf-ocr.d.ts +0 -6
  66. package/dist/cpf-ocr.esm.js +0 -2
  67. package/dist/cpfOcrManager-Bu32le9u.esm.js +0 -185
  68. package/dist/cpfOcrManager-C-3PWS2h.d.ts +0 -214
  69. package/dist/session-BzSGKQL2.esm.js +0 -1
  70. package/dist/types-BAvkiv6L.d.ts +0 -6
  71. package/dist/{ekycStateMachine-DRbbavZy.esm.js → ekycStateMachine-9Mm7LBea.esm.js} +1 -1
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
2
2
  import "./StateMachine-EDpYWy0i.js";
3
3
  import { t as Manager } from "./Manager-CQQ99QOI.js";
4
4
  import "./Actor-iTq7YY48.js";
5
- import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-BQgIv5p8.js";
5
+ import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-DjHL5Wa9.js";
6
6
  //#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
7
7
  type MandatoryConsentContext = {
8
8
  config: MandatoryConsentConfig;
@@ -516,7 +516,7 @@ async function stopRecording(session) {
516
516
  }
517
517
  }
518
518
  async function initializeDeepsightSession(options) {
519
- const { loadDeepsightSession } = await import("./deepsightLoader-CXK44MVG.esm.js");
519
+ const { loadDeepsightSession } = await import("./deepsightLoader-ChJdVAcM.esm.js");
520
520
  return loadDeepsightSession({
521
521
  ds: options.ds,
522
522
  storage: options.storage
@@ -6,7 +6,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
6
  import { n as StreamCanvasCapture, r as IncodeCanvas, t as DeepsightService } from "./deepsightService-CR-CYdka.js";
7
7
  import { t as FaceDetectionProvider } from "./FaceDetectionProvider-BHweGBEM.js";
8
8
  import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
9
- import { n as DetectionStatus, s as IWasmUtilCapability } from "./types-DMMk51Ec.js";
9
+ import { n as DetectionStatus, s as IWasmUtilCapability } from "./types-BK-v1UYb.js";
10
10
  import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
11
11
  //#region src/modules/personhood/types.d.ts
12
12
  /**
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
4
4
  import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-BX83zwtT.esm.js";
5
5
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
7
- import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-oAi9ICPo.esm.js";
7
+ import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DuZWsy2u.esm.js";
8
8
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
10
10
  import { i as requestPermission, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
11
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
12
12
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
13
- import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-B7udIDIL.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-BbjULJyT.esm.js";
14
14
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
15
15
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
16
16
  //#region ../infra/src/crypto/randomUUID.ts
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
3
  import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
4
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-B7udIDIL.esm.js";
4
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-BbjULJyT.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.esm.js";
6
6
  //#region src/internal/manualReview/manualReviewService.ts
7
7
  async function flagFaceManualReview() {
package/dist/selfie.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
- import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-BpVpExwX.js";
2
+ import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-B2TUje5s.js";
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
4
  import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
5
- import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-DMMk51Ec.js";
5
+ import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-BK-v1UYb.js";
6
6
  import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
7
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DR-EIsRb.js";
7
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-BT7dmOHi.js";
8
8
  //#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
9
9
  type SelfieCaptureOnlyState = FaceCaptureManagerState;
10
10
  type SelfieCaptureOnlyManager = FaceCaptureManager;
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { t as faceCaptureMachine } from "./faceCaptureSetup-8qt4c6tR.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DjcsAq8u.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ysDDYfpc.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-DyoAe6Uh.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-5iJjQHdZ.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-5QzVKTV3.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DjcsAq8u.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ysDDYfpc.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-DyoAe6Uh.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -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 { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-BpVpExwX.js";
3
+ import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-B2TUje5s.js";
4
4
  //#region src/modules/selfie/selfieUploadService.d.ts
5
5
  type ProcessFaceImageType = 'selfie' | 'videoSelfie';
6
6
  type ProcessFaceResponse = {
@@ -1,7 +1,7 @@
1
1
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-8qt4c6tR.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-B7udIDIL.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BRMhr-XT.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-BbjULJyT.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
7
7
  /**
@@ -0,0 +1 @@
1
+ import "./sessionInitializer-DuZWsy2u.esm.js";
package/dist/session.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BjTTkLmd.js";
1
+ import { a as RegulationTypes } from "./types-NSJbROLr.js";
2
2
  import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
3
3
  //#region src/internal/fingerprint/types.d.ts
4
4
  type DeviceFingerprintResult = {
@@ -1,8 +1,8 @@
1
1
  import { n as getApi } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
- import { i as initializeSession } from "./sessionInitializer-oAi9ICPo.esm.js";
3
+ import { i as initializeSession } from "./sessionInitializer-DuZWsy2u.esm.js";
4
4
  import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B-PkYxln.esm.js";
5
- import "./session-BzSGKQL2.esm.js";
5
+ import "./session-BO17OfFa.esm.js";
6
6
  import { n as getFinishStatus } from "./flowCompletionService-D5oIlcza.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
@@ -1614,7 +1614,7 @@ function isBrowserSimulation(browserEnv) {
1614
1614
  }
1615
1615
  //#endregion
1616
1616
  //#region src/internal/version/sdkVersion.ts
1617
- const SDK_VERSION = "0.0.0-dev-20260728-dcd649b0";
1617
+ const SDK_VERSION = "0.0.0-dev-20260728-ee28c8bd";
1618
1618
  //#endregion
1619
1619
  //#region src/internal/fingerprint/fingerprintService.ts
1620
1620
  function formatOsVersion(os) {
@@ -7,9 +7,9 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
7
7
  import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
8
8
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
9
9
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
10
- import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-oAi9ICPo.esm.js";
10
+ import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-DuZWsy2u.esm.js";
11
11
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
12
- import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-BcWQgzDl.esm.js";
12
+ import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-DyZkh-5Q.esm.js";
13
13
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
14
14
  var BrowserPageLifecycleProvider = class {
15
15
  sendBeacon(url, body, contentType = "application/json") {
@@ -1,7 +1,7 @@
1
1
  import { n as WasmPipeline } from "./warmup-Dv2alr2-.js";
2
2
  import { a as MLProviderConfig, n as IRecordingCapability, t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
3
3
  import { t as AvatarAssetsOverrides } from "./IFaceAvatarCapability-BrL19G0s.js";
4
- import { n as Flow, s as SelfieConcealmentOption } from "./types-BjTTkLmd.js";
4
+ import { n as Flow, s as SelfieConcealmentOption } from "./types-NSJbROLr.js";
5
5
  //#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
6
6
  type WasmUtilConfig = MLProviderConfig & {
7
7
  pipelines?: WasmPipeline[];
@@ -2,6 +2,7 @@
2
2
  type IdOcrConfig = {
3
3
  /** Allows user to edit OCR information @default false */
4
4
  editableOcr?: boolean;
5
+ cpfOnly?: boolean;
5
6
  /**
6
7
  * When true (from flow/onboarding), after the first ID OCR step completes the
7
8
  * machine loads and optionally edits OCR for the second captured ID.
@@ -1,7 +1,7 @@
1
1
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
2
  import { n as StreamCanvasCapture, r as IncodeCanvas, t as DeepsightService } from "./deepsightService-CR-CYdka.js";
3
3
  import { a as MLProviderConfig, i as IMLProviderCapability, n as IRecordingCapability, r as RecordingConnection, t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
4
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BjTTkLmd.js";
4
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-NSJbROLr.js";
5
5
  import { t as PermissionResult } from "./types-BT-aiBYV.js";
6
6
  //#region ../infra/src/wasm/apiUtilities.d.ts
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BjTTkLmd.js";
1
+ import { a as RegulationTypes } from "./types-NSJbROLr.js";
2
2
  //#region src/modules/mandatory-consent/types.d.ts
3
3
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
4
4
  type MandatoryConsentConfig = {
@@ -204,6 +204,7 @@ type FlowModuleConfig = {
204
204
  THIRD_ID: DocumentUploadConfig;
205
205
  ID_OCR: {
206
206
  editableOcr: boolean;
207
+ cpfOnly?: boolean;
207
208
  /** When true, OCR is collected for the second captured ID after the first. */
208
209
  secondId?: boolean;
209
210
  /** Set by orchestrated flow UI from the active session (`flow.flowId`). */
@@ -327,7 +328,6 @@ type FlowModuleConfig = {
327
328
  ANTIFRAUD: EmptyConfig;
328
329
  CHECKBOX_SIGNATURE: EmptyConfig;
329
330
  CROSS_DOCUMENT_DATA_MATCH: EmptyConfig;
330
- CPF_OCR: EmptyConfig;
331
331
  DEVICE_FINGERPRINT: EmptyConfig;
332
332
  FACE_ONBOARDING: EmptyConfig;
333
333
  FIELD_COMPARISON: EmptyConfig;
@@ -0,0 +1,6 @@
1
+ import { i as FlowModuleConfig } from "./types-NSJbROLr.js";
2
+ import { t as BaseFaceCaptureConfig } from "./types-BK-v1UYb.js";
3
+ //#region src/modules/authentication/types.d.ts
4
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
+ //#endregion
6
+ export { AuthenticationConfig as t };
@@ -3,8 +3,8 @@ import { A as StateMachine, _ as MachineContext, c as AnyEventObject, p as Event
3
3
  import "./StateMachine-EDpYWy0i.js";
4
4
  import "./Actor-iTq7YY48.js";
5
5
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
- import { i as FlowModuleConfig } from "./types-BjTTkLmd.js";
7
- import { n as DetectionStatus } from "./types-DMMk51Ec.js";
6
+ import { i as FlowModuleConfig } from "./types-NSJbROLr.js";
7
+ import { n as DetectionStatus } from "./types-BK-v1UYb.js";
8
8
  //#region src/modules/video-selfie/types.d.ts
9
9
  /**
10
10
  * The capture steps a Video Selfie session can run, in flow order. Which steps
@@ -1,14 +1,14 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-BpjU9IYU.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-ItZ5fsL_.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-BDTZNnca.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
6
- import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-BcWQgzDl.esm.js";
6
+ import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-DyZkh-5Q.esm.js";
7
7
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
9
9
  import { t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
10
10
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
11
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-B7udIDIL.esm.js";
11
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BbjULJyT.esm.js";
12
12
  import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
13
13
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
14
14
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
package/dist/wasm.esm.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as warmupWasm } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
2
  import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-B4DUtYET.esm.js";
3
- import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-BpjU9IYU.esm.js";
3
+ import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-ItZ5fsL_.esm.js";
4
4
  export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
@@ -3,7 +3,7 @@ import { t as CallbackActorLogic } from "./callback-645_omgz.js";
3
3
  import "./StateMachine-EDpYWy0i.js";
4
4
  import { t as Manager } from "./Manager-CQQ99QOI.js";
5
5
  import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
6
- import { o as FlowEventSubscribable } from "./index-Ci9wEPiD.js";
6
+ import { o as FlowEventSubscribable } from "./index-X9serOZT.js";
7
7
  import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s7.js";
8
8
  //#region src/modules/workflow/types.d.ts
9
9
  /** Possible node types returned by the workflow server. */
@@ -2,31 +2,31 @@ import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-oAi9ICPo.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DuZWsy2u.esm.js";
6
6
  import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
7
- import { g as toEkybConfig } from "./flowServices-BcWQgzDl.esm.js";
7
+ import { g as toEkybConfig } from "./flowServices-DyZkh-5Q.esm.js";
8
8
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
9
9
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
10
10
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
11
11
  import { n as electronicSignatureMachine } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
12
12
  import "./ae-signature.esm.js";
13
13
  import { t as antifraudMachine } from "./antifraudStateMachine-VB-aXHct.esm.js";
14
- import { t as authenticationMachine } from "./authenticationStateMachine-CwH4siI_.esm.js";
14
+ import { t as authenticationMachine } from "./authenticationStateMachine-DrOepYhJ.esm.js";
15
15
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Di_bLlkP.esm.js";
16
16
  import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
17
17
  import { t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
18
18
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BuQML-pk.esm.js";
19
19
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BXgH9gGq.esm.js";
20
20
  import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BQqAwNQ-.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-DmwnW772.esm.js";
22
- import { t as ekycMachine } from "./ekycStateMachine-DRbbavZy.esm.js";
21
+ import { t as ekybMachine } from "./ekybStateMachine-D9KpHlgz.esm.js";
22
+ import { t as ekycMachine } from "./ekycStateMachine-9Mm7LBea.esm.js";
23
23
  import { t as emailMachine } from "./emailStateMachine-DQS-QMgQ.esm.js";
24
- import { t as selfieMachine } from "./selfieStateMachine-DyoAe6Uh.esm.js";
25
- import { t as idCaptureMachine } from "./idCaptureStateMachine-DuQgO4_L.esm.js";
24
+ import { t as selfieMachine } from "./selfieStateMachine-6SSh-uFp.esm.js";
25
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-CtqVhBjq.esm.js";
26
26
  import { t as phoneMachine } from "./phoneStateMachine-CLGcLA8t.esm.js";
27
27
  import { n as identityReuseMachine } from "./identityReuseStateMachine-B0IFF3R7.esm.js";
28
28
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BP3npRnI.esm.js";
29
- import { t as idOcrStateMachine } from "./idOcrStateMachine-jfAyK4Bb.esm.js";
29
+ import { t as idOcrStateMachine } from "./idOcrStateMachine-Cqi8173Y.esm.js";
30
30
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BQuhw8_L.esm.js";
31
31
  import { t as geolocationMachine } from "./geolocationStateMachine-DxSETS9_.esm.js";
32
32
  import { t as idVerificationMachine } from "./idVerificationStateMachine-7BSciEJk.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260728-dcd649b0",
3
+ "version": "0.0.0-dev-20260728-ee28c8bd",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -99,11 +99,6 @@
99
99
  "types": "./dist/curp-validation.d.ts",
100
100
  "import": "./dist/curp-validation.esm.js"
101
101
  },
102
- "./cpf-ocr": {
103
- "source": "./src/modules/cpf-ocr/index.ts",
104
- "types": "./dist/cpf-ocr.d.ts",
105
- "import": "./dist/cpf-ocr.esm.js"
106
- },
107
102
  "./government-validation": {
108
103
  "source": "./src/modules/government-validation/index.ts",
109
104
  "types": "./dist/government-validation.d.ts",
@@ -281,8 +276,8 @@
281
276
  "tsdown": "^0.22.8",
282
277
  "typescript": "^5.9.3",
283
278
  "vitest": "4.1.4",
284
- "@incodetech/infra": "1.2.0",
285
- "@incodetech/config": "1.0.2"
279
+ "@incodetech/config": "1.0.2",
280
+ "@incodetech/infra": "1.2.0"
286
281
  },
287
282
  "scripts": {
288
283
  "build": "tsdown -c tsdown.config.ts",
package/dist/cpf-ocr.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-C-3PWS2h.js";
2
- //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
3
- declare function formatCPF(value: string): string;
4
- declare function isValidCPF(value: string): boolean;
5
- //#endregion
6
- export { type CpfOcrActor, type CpfOcrManager, type CpfOcrState, cpfOcrMachine, createCpfOcrManager, createCpfOcrManagerFromActor, formatCPF, isValidCPF };
@@ -1,2 +0,0 @@
1
- import { a as isValidCPF, i as formatCPF, n as createCpfOcrManagerFromActor, r as cpfOcrMachine, t as createCpfOcrManager } from "./cpfOcrManager-Bu32le9u.esm.js";
2
- export { cpfOcrMachine, createCpfOcrManager, createCpfOcrManagerFromActor, formatCPF, isValidCPF };
@@ -1,185 +0,0 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
4
- import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
7
- //#region src/modules/cpf-ocr/cpfOcrServices.ts
8
- async function fetchCpfOcrData(signal) {
9
- const res = await api.get(endpoints.ocrData, { signal });
10
- if (!res.ok) throw new Error(`GET ${endpoints.ocrData} failed: ${res.status} ${res.statusText}`);
11
- return res.data;
12
- }
13
- async function submitCpfOcr(documentNumber, signal) {
14
- const res = await api.put(endpoints.updateSession, { documentNumber }, { signal });
15
- if (!res.ok) throw new Error(`PUT ${endpoints.updateSession} failed: ${res.status} ${res.statusText}`);
16
- return res.data;
17
- }
18
- //#endregion
19
- //#region src/modules/cpf-ocr/cpfOcrUtils.ts
20
- function formatCPF(value) {
21
- const digits = value.replace(/\D/g, "").slice(0, 11);
22
- const first = digits.slice(0, 3);
23
- const second = digits.slice(3, 6);
24
- const third = digits.slice(6, 9);
25
- const verifier = digits.slice(9, 11);
26
- if (digits.length > 9) return `${first}.${second}.${third}-${verifier}`;
27
- if (digits.length > 6) return `${first}.${second}.${third}`;
28
- if (digits.length > 3) return `${first}.${second}`;
29
- return first;
30
- }
31
- function isValidCPF(value) {
32
- return validateCPF(value);
33
- }
34
- //#endregion
35
- //#region src/modules/cpf-ocr/cpfOcrStateMachine.ts
36
- const cpfOcrMachine = setup({
37
- types: {
38
- context: {},
39
- events: {},
40
- input: {}
41
- },
42
- actors: {
43
- fetchCpfOcrData: fromPromise(async ({ signal }) => fetchCpfOcrData(signal)),
44
- submitCpfOcr: fromPromise(async ({ input, signal }) => submitCpfOcr(input.cpf, signal))
45
- },
46
- actions: {
47
- setPrefill: assign(({ event }) => {
48
- const output = event.output;
49
- const cpf = formatCPF(output.documentNumber ?? "");
50
- return {
51
- cpf,
52
- isValid: isValidCPF(cpf),
53
- error: void 0
54
- };
55
- }),
56
- setCpf: assign(({ event }) => {
57
- const cpf = formatCPF(event.cpf);
58
- return {
59
- cpf,
60
- isValid: isValidCPF(cpf),
61
- error: void 0
62
- };
63
- }),
64
- setError: assign(({ event }) => ({ error: String(event.error) })),
65
- clearError: assign({ error: () => void 0 })
66
- },
67
- guards: { isValid: ({ context }) => context.isValid }
68
- }).createMachine({
69
- id: "cpfOcr",
70
- initial: "idle",
71
- context: {
72
- cpf: "",
73
- isValid: false,
74
- error: void 0
75
- },
76
- states: {
77
- idle: { on: { LOAD: "loading" } },
78
- loading: { invoke: {
79
- src: "fetchCpfOcrData",
80
- onDone: {
81
- target: "inputting",
82
- actions: "setPrefill"
83
- },
84
- onError: {
85
- target: "error",
86
- actions: "setError"
87
- }
88
- } },
89
- inputting: { on: {
90
- SET_CPF: { actions: "setCpf" },
91
- SUBMIT: {
92
- guard: "isValid",
93
- target: "submitting"
94
- }
95
- } },
96
- submitting: { invoke: {
97
- src: "submitCpfOcr",
98
- input: ({ context }) => ({ cpf: context.cpf }),
99
- onDone: { target: "finished" },
100
- onError: {
101
- target: "error",
102
- actions: "setError"
103
- }
104
- } },
105
- error: { on: {
106
- RETRY: {
107
- target: "loading",
108
- actions: "clearError"
109
- },
110
- SET_CPF: {
111
- target: "inputting",
112
- actions: "setCpf"
113
- }
114
- } },
115
- finished: { type: "final" }
116
- }
117
- });
118
- //#endregion
119
- //#region src/modules/cpf-ocr/cpfOcrActor.ts
120
- function createCpfOcrActor() {
121
- return createActor(cpfOcrMachine, { input: {} }).start();
122
- }
123
- //#endregion
124
- //#region src/modules/cpf-ocr/cpfOcrManager.ts
125
- function mapState(snapshot) {
126
- const { context } = snapshot;
127
- if (snapshot.matches("idle")) return { status: "idle" };
128
- if (snapshot.matches("loading")) return { status: "loading" };
129
- if (snapshot.matches("inputting")) return {
130
- status: "inputting",
131
- cpf: context.cpf,
132
- isValid: context.isValid
133
- };
134
- if (snapshot.matches("submitting")) return { status: "submitting" };
135
- if (snapshot.matches("error")) return {
136
- status: "error",
137
- error: context.error ?? "Unknown error"
138
- };
139
- if (snapshot.matches("finished")) return { status: "finished" };
140
- return { status: "idle" };
141
- }
142
- function createApi({ actor, trackElementClicked }) {
143
- return {
144
- load() {
145
- actor.send({ type: "LOAD" });
146
- },
147
- setCpf(cpf) {
148
- actor.send({
149
- type: "SET_CPF",
150
- cpf
151
- });
152
- },
153
- submit() {
154
- trackElementClicked?.("continue");
155
- actor.send({ type: "SUBMIT" });
156
- },
157
- retry() {
158
- trackElementClicked?.("retry");
159
- actor.send({ type: "RETRY" });
160
- }
161
- };
162
- }
163
- function createCpfOcrManager() {
164
- return createManager({
165
- actor: createCpfOcrActor(),
166
- mapState,
167
- createApi,
168
- instrumentation: createManagerInstrumentation(eventModuleNames.idOcr)
169
- });
170
- }
171
- /**
172
- * Creates a CPF-OCR manager from a pre-built actor.
173
- * Use this when overriding the machine via `.provide()` for custom backends
174
- * or for story-isolation testing.
175
- */
176
- function createCpfOcrManagerFromActor(actor) {
177
- return createManager({
178
- actor,
179
- mapState,
180
- createApi,
181
- instrumentation: createManagerInstrumentation(eventModuleNames.idOcr)
182
- });
183
- }
184
- //#endregion
185
- export { isValidCPF as a, formatCPF as i, createCpfOcrManagerFromActor as n, cpfOcrMachine as r, createCpfOcrManager as t };