@incodetech/core 0.0.0-dev-20260819-588cf821 → 0.0.0-dev-20260819-8e2b6120

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 (92) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-CYEBHxM-.esm.js → BrowserDiagnosticsCryptoProvider-CIFvfYjU.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-DjfnJEmY.esm.js → apiError-CmLuTu8c.esm.js} +1 -1
  4. package/dist/authentication.d.ts +3 -3
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-Bo5oW5Rh.d.ts → authenticationManager-CG7g38ad.d.ts} +1 -1
  7. package/dist/{authenticationManager-Djd5VRUN.esm.js → authenticationManager-DrtfRp1Z.esm.js} +2 -2
  8. package/dist/{authenticationStateMachine-CWI30EGE.esm.js → authenticationStateMachine-CmRwiE9P.esm.js} +2 -2
  9. package/dist/curp-validation.d.ts +1 -1
  10. package/dist/{curpValidationManager-BAE-uh7L.d.ts → curpValidationManager-DrMLHzVF.d.ts} +1 -1
  11. package/dist/{deepsightLoader-Cx7VIdZs.esm.js → deepsightLoader-BtPlGn0u.esm.js} +3 -3
  12. package/dist/document-capture.d.ts +1 -1
  13. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-BykkLCQD.d.ts} +1 -1
  14. package/dist/dynamic-forms.esm.js +2 -2
  15. package/dist/{dynamicFormsManager-7O0OYLKC.esm.js → dynamicFormsManager-K2fns0Ev.esm.js} +1 -1
  16. package/dist/{dynamicFormsStateMachine-BhxBhuUG.esm.js → dynamicFormsStateMachine-XXg2mOsk.esm.js} +1 -1
  17. package/dist/ekyb.d.ts +1 -1
  18. package/dist/ekyb.esm.js +3 -3
  19. package/dist/{ekybManager-DU3ehxwx.esm.js → ekybManager-CG4KreIp.esm.js} +1 -1
  20. package/dist/{ekybStateMachine-B5r4Ovj1.esm.js → ekybStateMachine-L-QYBjhK.esm.js} +1 -1
  21. package/dist/electronic-signature.esm.js +1 -1
  22. package/dist/{electronicSignatureManager-eINhsO8o.esm.js → electronicSignatureManager-DRIGL3o_.esm.js} +1 -1
  23. package/dist/extensibility.d.ts +10 -10
  24. package/dist/extensibility.esm.js +10 -10
  25. package/dist/{faceCaptureManagerFactory-C8MlI6-0.d.ts → faceCaptureManagerFactory-D6qnBVUw.d.ts} +3 -3
  26. package/dist/{faceCaptureManagerFactory-CE-6YvEi.esm.js → faceCaptureManagerFactory-PDJ6EyX8.esm.js} +1 -1
  27. package/dist/{faceCaptureSetup-DlttCnYM.esm.js → faceCaptureSetup-vjurLoly.esm.js} +2 -2
  28. package/dist/{feature-management-Cd9XIX1T.esm.js → feature-management-C1AcD5rd.esm.js} +1 -1
  29. package/dist/feature-management.esm.js +1 -1
  30. package/dist/flow-events.d.ts +1 -1
  31. package/dist/flow.d.ts +5 -5
  32. package/dist/flow.esm.js +3 -3
  33. package/dist/{flowCompletionService-CwmhqmA6.esm.js → flowCompletionService-oTn3ibc4.esm.js} +1 -1
  34. package/dist/{flowServices-BtS-fOVI.esm.js → flowServices-Dhk1DZqo.esm.js} +4 -4
  35. package/dist/geolocation.esm.js +2 -2
  36. package/dist/{geolocationManager-BqsxPcAd.esm.js → geolocationManager-DI8eqB0U.esm.js} +1 -1
  37. package/dist/{geolocationStateMachine-BxXAG2Et.esm.js → geolocationStateMachine-CdCv3jmy.esm.js} +1 -1
  38. package/dist/government-validation.d.ts +1 -1
  39. package/dist/government-validation.esm.js +2 -2
  40. package/dist/{governmentValidationManager-DUzWUMjT.d.ts → governmentValidationManager-D02vT4yY.d.ts} +11 -44
  41. package/dist/governmentValidationManager-DnVUyppQ.esm.js +79 -0
  42. package/dist/governmentValidationStateMachine-CNzJ5UQb.esm.js +54 -0
  43. package/dist/home.d.ts +1 -1
  44. package/dist/id-selfie-flow.d.ts +1 -1
  45. package/dist/id-selfie-flow.esm.js +6 -6
  46. package/dist/id.d.ts +2 -2
  47. package/dist/id.esm.js +3 -3
  48. package/dist/{idCaptureManager-Bn1CF1jN.esm.js → idCaptureManager-BBvsIuTk.esm.js} +2 -2
  49. package/dist/{idCaptureManager-BfgptftY.d.ts → idCaptureManager-CfE4iEi0.d.ts} +2 -2
  50. package/dist/{idCaptureServices-CZwsPLMG.esm.js → idCaptureServices-B8O7BWFE.esm.js} +3 -3
  51. package/dist/{idCaptureStateMachine-CUZyF8Bl.esm.js → idCaptureStateMachine-jQwNzDxH.esm.js} +8 -8
  52. package/dist/{index-LHJIYIKJ.d.ts → index-LA6R9BLR.d.ts} +1 -1
  53. package/dist/index.esm.js +1 -1
  54. package/dist/mandatory-consent.d.ts +2 -2
  55. package/dist/{mandatoryConsentManager-Cz98fh9O.d.ts → mandatoryConsentManager-CwDsLyCw.d.ts} +1 -1
  56. package/dist/{onDeviceFaceResults-B7628vP4.esm.js → onDeviceFaceResults-BEaYEAQR.esm.js} +3 -3
  57. package/dist/personhood.d.ts +1 -1
  58. package/dist/personhood.esm.js +3 -3
  59. package/dist/qe-signature.esm.js +1 -1
  60. package/dist/{recordingService-D8KodYem.esm.js → recordingService-BRONjqTm.esm.js} +1 -1
  61. package/dist/{runChildModule-CL2hhhUD.esm.js → runChildModule-D3A5YiBu.esm.js} +1 -1
  62. package/dist/{sdkVersion-BHGhwczw.esm.js → sdkVersion-CtvWM_fR.esm.js} +1 -1
  63. package/dist/selfie.d.ts +3 -3
  64. package/dist/selfie.esm.js +4 -4
  65. package/dist/{selfieManager-DDlagDor.esm.js → selfieManager-SsncUMZ7.esm.js} +2 -2
  66. package/dist/{selfieManager-yz6zt2t0.d.ts → selfieManager-dki4G9tK.d.ts} +1 -1
  67. package/dist/{selfieStateMachine-CEZ0hvCQ.esm.js → selfieStateMachine-C2sW_CdL.esm.js} +2 -2
  68. package/dist/{session-BDsfrJHD.esm.js → session-DMNhhabt.esm.js} +4 -4
  69. package/dist/session.d.ts +1 -1
  70. package/dist/session.esm.js +4 -4
  71. package/dist/{sessionInitializer-BMj0ulTi.esm.js → sessionInitializer-B6oG_vuC.esm.js} +4 -4
  72. package/dist/{setup-6Ab1eT8N.esm.js → setup-BeHCJ_bb.esm.js} +5 -5
  73. package/dist/trueSight-ChG3BEfd.esm.js +1 -0
  74. package/dist/{trueSightService-CFXnK5HX.esm.js → trueSightService-CyI6jCxv.esm.js} +2 -2
  75. package/dist/{types-DNNUCM_n.d.ts → types-BqezaTnP.d.ts} +0 -2
  76. package/dist/{types-BNs7Klh_.d.ts → types-C6pPfQxo.d.ts} +1 -1
  77. package/dist/{types-DqtyPNWa.d.ts → types-D10PIjOT.d.ts} +1 -1
  78. package/dist/types-DQpi7nkW.d.ts +6 -0
  79. package/dist/{types-CaqgEfzk.d.ts → types-KeV54Tt6.d.ts} +1 -1
  80. package/dist/{types-rpRSIpv4.d.ts → types-isCyg__O.d.ts} +1 -1
  81. package/dist/video-selfie.d.ts +1 -1
  82. package/dist/video-selfie.esm.js +3 -3
  83. package/dist/{videoSelfieCameraWarmer-CEFb7dCk.esm.js → videoSelfieCameraWarmer-1XBjf6Me.esm.js} +2 -2
  84. package/dist/{videoSelfieStepDetector-CcBSD8Gc.d.ts → videoSelfieStepDetector-tHovquP4.d.ts} +2 -2
  85. package/dist/wasm.esm.js +1 -1
  86. package/dist/workflow.d.ts +1 -1
  87. package/dist/workflow.esm.js +16 -16
  88. package/package.json +3 -3
  89. package/dist/governmentValidationManager-Dheo7fh_.esm.js +0 -123
  90. package/dist/governmentValidationStateMachine-BYKYUdza.esm.js +0 -226
  91. package/dist/trueSight-B-rervIk.esm.js +0 -1
  92. package/dist/types-Dm7dzIXw.d.ts +0 -6
@@ -183,7 +183,6 @@ type FlowModuleConfig = {
183
183
  scrapingV3: boolean;
184
184
  failUnsupportedId: boolean;
185
185
  dataValidation: boolean;
186
- backgroundExecution: boolean;
187
186
  mockConnectionError: boolean;
188
187
  mockUserNotFoundError: boolean;
189
188
  mockOK: boolean;
@@ -194,7 +193,6 @@ type FlowModuleConfig = {
194
193
  dataValidation: boolean;
195
194
  faceAndDataValidation: boolean;
196
195
  addressValidation: boolean;
197
- backgroundExecution: boolean;
198
196
  faceMatchOverrideDataScore: boolean;
199
197
  useCroppedIdFacePhoto: boolean;
200
198
  };
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-DNNUCM_n.js";
1
+ import { a as RegulationTypes } from "./types-BqezaTnP.js";
2
2
  //#region src/internal/fingerprint/types.d.ts
3
3
  type DeviceFingerprintResult = {
4
4
  success: boolean;
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-DNNUCM_n.js";
1
+ import { a as RegulationTypes } from "./types-BqezaTnP.js";
2
2
  //#region src/modules/mandatory-consent/types.d.ts
3
3
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
4
4
  type MandatoryConsentConfig = {
@@ -0,0 +1,6 @@
1
+ import { i as FlowModuleConfig } from "./types-BqezaTnP.js";
2
+ import { t as BaseFaceCaptureConfig } from "./types-KeV54Tt6.js";
3
+ //#region src/modules/authentication/types.d.ts
4
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
+ //#endregion
6
+ export { AuthenticationConfig as t };
@@ -1,5 +1,5 @@
1
1
  import { a as AvatarAssetsOverrides } from "./createFaceAvatar-pUEkdk4X.js";
2
- import { n as Flow, s as SelfieConcealmentOption } from "./types-DNNUCM_n.js";
2
+ import { n as Flow, s as SelfieConcealmentOption } from "./types-BqezaTnP.js";
3
3
  import { a as IRecordingCapability, i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-5-Pncgma.js";
4
4
  //#region src/internal/faceCapture/types.d.ts
5
5
  type CameraResolution = {
@@ -1,6 +1,6 @@
1
1
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
2
  import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
3
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-DNNUCM_n.js";
3
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BqezaTnP.js";
4
4
  import { a as IRecordingCapability, i as IStorageCapability, o as RecordingConnection } from "./IWasmUtilCapability-5-Pncgma.js";
5
5
  import { t as PermissionResult } from "./types-BEwVKkLJ.js";
6
6
  import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
@@ -4,7 +4,7 @@ import "./StateMachine-EDpYWy0i.js";
4
4
  import "./Actor-iTq7YY48.js";
5
5
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
6
  import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
7
- import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-CcBSD8Gc.js";
7
+ import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-tHovquP4.js";
8
8
  //#region ../infra/src/capabilities/ITimerCapability.d.ts
9
9
  type TimerHandle = ReturnType<typeof setTimeout>;
10
10
  type ITimerCapability = {
@@ -1,13 +1,13 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
- import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-6Ab1eT8N.esm.js";
2
+ import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-BeHCJ_bb.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-Bx3gKW_y.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
6
- import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-BtS-fOVI.esm.js";
6
+ import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-Dhk1DZqo.esm.js";
7
7
  import { c as createManager, n as sendTo, 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 { n as getSupportedMediaRecorderMimeType } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
10
- import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-CEFb7dCk.esm.js";
10
+ import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-1XBjf6Me.esm.js";
11
11
  //#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
12
12
  /**
13
13
  * How often `MediaRecorder` hands us buffered data (incremental blobs).
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
- import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-BtS-fOVI.esm.js";
4
+ import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-Dhk1DZqo.esm.js";
5
5
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
6
6
  import { t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
7
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-B7628vP4.esm.js";
7
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BEaYEAQR.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-DtkmDQo7.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
10
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
- import { i as FlowModuleConfig } from "./types-DNNUCM_n.js";
2
+ import { i as FlowModuleConfig } from "./types-BqezaTnP.js";
3
3
  import "./IWasmUtilCapability-5-Pncgma.js";
4
- import { n as DetectionStatus } from "./types-CaqgEfzk.js";
4
+ import { n as DetectionStatus } from "./types-KeV54Tt6.js";
5
5
  import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
6
6
  //#region src/modules/video-selfie/types.d.ts
7
7
  /**
package/dist/wasm.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as WASM_MODEL_FILES, f as WASM_PIPELINE_LAZY_MODEL_NAMES, m as WASM_PIPELINE_MODEL_NAMES } from "./wasmWebClient-BzFsDjU6.esm.js";
2
2
  import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-BrwMccqW.esm.js";
3
3
  import { s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
4
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-6Ab1eT8N.esm.js";
4
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BeHCJ_bb.esm.js";
5
5
  //#region src/defineWasm.ts
6
6
  function requiredModels(pipelines) {
7
7
  const models = /* @__PURE__ */ new Set();
@@ -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-LHJIYIKJ.js";
6
+ import { o as FlowEventSubscribable } from "./index-LA6R9BLR.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. */
@@ -1,30 +1,30 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-Cd9XIX1T.esm.js";
1
+ import { E as updateFeatureManagementUser } from "./feature-management-C1AcD5rd.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-CFXnK5HX.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-CyI6jCxv.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-DYiyoSlx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BMj0ulTi.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-B6oG_vuC.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
7
- import "./trueSight-B-rervIk.esm.js";
8
- import { r as toIncodeApiError } from "./apiError-DjfnJEmY.esm.js";
9
- import { g as toEkybConfig } from "./flowServices-BtS-fOVI.esm.js";
7
+ import "./trueSight-ChG3BEfd.esm.js";
8
+ import { r as toIncodeApiError } from "./apiError-CmLuTu8c.esm.js";
9
+ import { g as toEkybConfig } from "./flowServices-Dhk1DZqo.esm.js";
10
10
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
11
11
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
12
12
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
13
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-eINhsO8o.esm.js";
13
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-DRIGL3o_.esm.js";
14
14
  import "./ae-signature.esm.js";
15
15
  import { t as antifraudMachine } from "./antifraudStateMachine-r4VxSBS4.esm.js";
16
- import { t as authenticationMachine } from "./authenticationStateMachine-CWI30EGE.esm.js";
16
+ import { t as authenticationMachine } from "./authenticationStateMachine-CmRwiE9P.esm.js";
17
17
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-COd7_l2T.esm.js";
18
18
  import { t as consentMachine } from "./consentStateMachine-WD-S-Yhs.esm.js";
19
19
  import { t as curpValidationMachine } from "./curpValidationStateMachine-9KwnqeoB.esm.js";
20
20
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-B_ey3TFj.esm.js";
21
21
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-DXfStru4.esm.js";
22
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BhxBhuUG.esm.js";
23
- import { t as ekybMachine } from "./ekybStateMachine-B5r4Ovj1.esm.js";
22
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-XXg2mOsk.esm.js";
23
+ import { t as ekybMachine } from "./ekybStateMachine-L-QYBjhK.esm.js";
24
24
  import { t as ekycMachine } from "./ekycStateMachine-DHvksnrr.esm.js";
25
25
  import { t as emailMachine } from "./emailStateMachine-Bm894MHB.esm.js";
26
- import { t as selfieMachine } from "./selfieStateMachine-CEZ0hvCQ.esm.js";
27
- import { t as idCaptureMachine } from "./idCaptureStateMachine-CUZyF8Bl.esm.js";
26
+ import { t as selfieMachine } from "./selfieStateMachine-C2sW_CdL.esm.js";
27
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-jQwNzDxH.esm.js";
28
28
  import { t as phoneMachine } from "./phoneStateMachine-E1fUUcNM.esm.js";
29
29
  import { t as watchlistMachine } from "./watchlistStateMachine-Bl7Wy9Cm.esm.js";
30
30
  import { n as identityReuseMachine } from "./identityReuseStateMachine-AubRPhIi.esm.js";
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-zro
32
32
  import { t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
33
33
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-C9SYCJcH.esm.js";
34
34
  import { t as signatureMachine } from "./signatureStateMachine-Cf73DGWO.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-BxXAG2Et.esm.js";
36
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
35
+ import { t as geolocationMachine } from "./geolocationStateMachine-CdCv3jmy.esm.js";
36
+ import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CNzJ5UQb.esm.js";
37
37
  import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
38
38
  import { t as faceMatchMachine } from "./faceMatchStateMachine-CJiO2yLO.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-CwmhqmA6.esm.js";
40
- import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CL2hhhUD.esm.js";
39
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-oTn3ibc4.esm.js";
40
+ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-D3A5YiBu.esm.js";
41
41
  import "./qe-signature.esm.js";
42
42
  import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BcBMkMvV.esm.js";
43
43
  //#region src/internal/orchestration/defaultModules.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260819-588cf821",
3
+ "version": "0.0.0-dev-20260819-8e2b6120",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -282,8 +282,8 @@
282
282
  "tsdown": "^0.22.8",
283
283
  "typescript": "^5.9.3",
284
284
  "vitest": "4.1.10",
285
- "@incodetech/config": "1.0.2",
286
- "@incodetech/infra": "1.2.1"
285
+ "@incodetech/infra": "1.2.1",
286
+ "@incodetech/config": "1.0.2"
287
287
  },
288
288
  "scripts": {
289
289
  "build": "tsdown -c tsdown.config.ts",
@@ -1,123 +0,0 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
- import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
5
- //#region src/modules/government-validation/governmentValidationActor.ts
6
- function createGovernmentValidationActor(options) {
7
- return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
8
- }
9
- //#endregion
10
- //#region src/modules/government-validation/governmentValidationManager.ts
11
- /**
12
- * Maps a Government Validation state-machine snapshot to the exact Figma
13
- * "Tracked Events" screen name. Source: Government Record Verification
14
- * Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
15
- * Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
16
- * Figma); spans the background record-lookup flow only. The mapper returns
17
- * Figma-verbatim spellings which the adapter emits as-is on `event.screen`
18
- * (e.g. `GovernmentRecordValidation.analyzing.default`). See
19
- * `docs/patterns/INSTRUMENTATION.md`.
20
- *
21
- * Figma sub-states the state machine does not surface as discrete states
22
- * (intentionally not mapped here):
23
- *
24
- * - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
25
- * INE_VALIDATION variant. Figma does not define screens for it under
26
- * this family; those states fall back to the generic
27
- * `<module>.<state>` default.
28
- * - `displayUnknown` reflects an unrecognised API status code. Figma does
29
- * not define a tracked-event surface for it.
30
- *
31
- * `idle` and `finished` are intentionally unmapped — Figma does not
32
- * define screens for them and `finished` collapses into `moduleClosed`.
33
- */
34
- function getGovernmentValidationScreenName(snapshot) {
35
- const stateName = topLevelStateName(snapshot.value);
36
- if (stateName === void 0) return void 0;
37
- switch (stateName) {
38
- case "loading":
39
- case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
40
- case "displaySuccess": return "GovernmentRecordValidation.success.default";
41
- case "displayError": return "GovernmentRecordValidation.error.usernotfound";
42
- default: return;
43
- }
44
- }
45
- function mapState(snapshot) {
46
- const typedSnapshot = snapshot;
47
- const { context } = typedSnapshot;
48
- if (typedSnapshot.matches("idle")) return { status: "idle" };
49
- if (typedSnapshot.matches("loading")) return { status: "loading" };
50
- if (typedSnapshot.matches("awaitingOtp")) return {
51
- status: "awaitingOtp",
52
- resendTimer: context.resendTimer,
53
- canResend: !context.resendTimerActive,
54
- attemptsRemaining: context.attemptsRemaining,
55
- otpError: context.otpError,
56
- otpCode: context.otpCode,
57
- otpLength: 6,
58
- otpValidationErrors: context.otpValidationErrors,
59
- isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
60
- };
61
- if (typedSnapshot.matches("verifyingOtp")) return {
62
- status: "verifyingOtp",
63
- otpCode: context.otpCode,
64
- otpLength: 6
65
- };
66
- if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
67
- if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
68
- if (typedSnapshot.matches("finished")) return { status: "finished" };
69
- if (typedSnapshot.matches("displayError")) return {
70
- status: "error",
71
- error: context.error ?? "An error occurred"
72
- };
73
- if (typedSnapshot.matches("displayUnknown")) return {
74
- status: "unknown",
75
- error: context.error ?? "Unknown validation status"
76
- };
77
- return { status: "idle" };
78
- }
79
- function createApi({ actor, trackElementClicked }) {
80
- return {
81
- load() {
82
- actor.send({ type: "LOAD" });
83
- },
84
- setOtpCode(code) {
85
- actor.send({
86
- type: "OTP_CHANGED",
87
- code
88
- });
89
- },
90
- validateOtp() {
91
- actor.send({ type: "VALIDATE_OTP" });
92
- },
93
- submitOtp(code) {
94
- trackElementClicked?.("submitOtp");
95
- actor.send({
96
- type: "OTP_CHANGED",
97
- code
98
- });
99
- actor.send({ type: "SUBMIT_OTP" });
100
- },
101
- resendOtp() {
102
- trackElementClicked?.("resendOtp");
103
- actor.send({ type: "RESEND_OTP" });
104
- },
105
- retry() {
106
- trackElementClicked?.("retry");
107
- actor.send({ type: "RETRY" });
108
- }
109
- };
110
- }
111
- function createGovernmentValidationManager(options) {
112
- return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
113
- }
114
- function createGovernmentValidationManagerFromActor(actor) {
115
- return createManager({
116
- actor,
117
- mapState,
118
- createApi,
119
- instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
120
- });
121
- }
122
- //#endregion
123
- export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
@@ -1,226 +0,0 @@
1
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
- import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
4
- import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
7
- //#region src/modules/government-validation/governmentValidationServices.ts
8
- async function processGovernmentValidation(signal) {
9
- const res = await api.post(endpoints.governmentValidation, {}, { signal });
10
- if (!res.ok) throw new Error(`POST ${endpoints.governmentValidation} failed: ${res.status} ${res.statusText}`);
11
- return res.data;
12
- }
13
- async function submitGovernmentValidationOtp(params, signal) {
14
- const res = await api.post(endpoints.governmentValidation, { otpCode: params.code }, { signal });
15
- if (!res.ok) throw new Error(`POST ${endpoints.governmentValidation} (OTP) failed: ${res.status} ${res.statusText}`);
16
- return res.data;
17
- }
18
- //#endregion
19
- //#region src/modules/government-validation/governmentValidationStateMachine.ts
20
- const RESEND_TIMER_SECONDS = 30;
21
- const governmentValidationMachine = setup({
22
- types: {
23
- context: {},
24
- events: {},
25
- input: {}
26
- },
27
- delays: { AUTO_PROCEED: 3e3 },
28
- actors: {
29
- processValidation: fromPromise(async ({ signal }) => {
30
- return processGovernmentValidation(signal);
31
- }),
32
- submitOtp: fromPromise(async ({ input, signal }) => {
33
- return submitGovernmentValidationOtp({ code: input.code }, signal);
34
- }),
35
- resendTimer: fromCallback(({ sendBack }) => {
36
- const timer = BrowserTimerProvider.getInstance();
37
- let seconds = RESEND_TIMER_SECONDS;
38
- const interval = timer.setInterval(() => {
39
- seconds -= 1;
40
- sendBack({ type: "TICK" });
41
- if (seconds <= 0) timer.clearInterval(interval);
42
- }, 1e3);
43
- return () => timer.clearInterval(interval);
44
- })
45
- },
46
- actions: {
47
- setError: assign(({ event }) => ({ error: String(event.error) })),
48
- setErrorFromResponse: assign({ error: () => "Government validation failed" }),
49
- setUnknownError: assign({ error: () => "Unknown validation status" }),
50
- clearError: assign({ error: () => void 0 }),
51
- setOtpCode: assign(({ event }) => ({
52
- otpCode: event.code,
53
- otpError: void 0,
54
- otpValidationErrors: void 0
55
- })),
56
- validateOtpField: assign(({ context }) => {
57
- const errors = computeOtpValidationErrors(context.otpCode);
58
- return { otpValidationErrors: errors.otp ? errors : void 0 };
59
- }),
60
- setOtpError: assign(({ context }) => ({
61
- otpError: "Invalid OTP code",
62
- attemptsRemaining: context.attemptsRemaining - 1
63
- })),
64
- clearOtpError: assign({
65
- otpError: () => void 0,
66
- otpCode: () => "",
67
- otpValidationErrors: () => void 0
68
- }),
69
- startResendTimer: assign({
70
- resendTimer: () => RESEND_TIMER_SECONDS,
71
- resendTimerActive: () => true
72
- }),
73
- tickResendTimer: assign(({ context }) => {
74
- const newTimer = Math.max(0, context.resendTimer - 1);
75
- return {
76
- resendTimer: newTimer,
77
- resendTimerActive: newTimer > 0
78
- };
79
- }),
80
- resetContext: assign(({ context }) => ({
81
- config: context.config,
82
- error: void 0,
83
- otpCode: "",
84
- otpError: void 0,
85
- otpValidationErrors: void 0,
86
- attemptsRemaining: context.config.maxOtpAttempts ?? 3,
87
- resendTimer: 0,
88
- resendTimerActive: false
89
- }))
90
- },
91
- guards: {
92
- isBackgroundExecution: ({ context }) => context.config.backgroundExecution,
93
- isProcessing: (_, params) => params.response.statusCode === -1,
94
- isSuccess: (_, params) => params.response.statusCode === 0 && params.response.governmentValidation?.validationStatus?.status === "OK",
95
- isError: (_, params) => params.response.statusCode > 0 || params.response.governmentValidation?.validationStatus?.status === "FAIL",
96
- isOtpRequested: (_, params) => params.response.otpResponse?.authBridge?.otpCodeRequested === true,
97
- isUnknown: (_, params) => params.response.governmentValidation?.validationStatus?.status === "UNKNOWN",
98
- hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
99
- hasCompleteOtp: ({ context }) => isOtpComplete(context.otpCode),
100
- canResend: ({ context }) => !context.resendTimerActive
101
- }
102
- }).createMachine({
103
- id: "governmentValidation",
104
- initial: "idle",
105
- context: ({ input }) => ({
106
- config: input.config,
107
- error: void 0,
108
- otpCode: "",
109
- otpError: void 0,
110
- otpValidationErrors: void 0,
111
- attemptsRemaining: input.config.maxOtpAttempts ?? 3,
112
- resendTimer: 0,
113
- resendTimerActive: false
114
- }),
115
- states: {
116
- idle: { on: { LOAD: { target: "loading" } } },
117
- loading: { invoke: {
118
- id: "processValidation",
119
- src: "processValidation",
120
- onDone: [
121
- {
122
- target: "finished",
123
- guard: "isBackgroundExecution"
124
- },
125
- {
126
- target: "awaitingOtp",
127
- guard: {
128
- type: "isOtpRequested",
129
- params: ({ event }) => ({ response: event.output })
130
- }
131
- },
132
- {
133
- target: "displaySuccess",
134
- guard: {
135
- type: "isSuccess",
136
- params: ({ event }) => ({ response: event.output })
137
- }
138
- },
139
- {
140
- target: "displayProcessing",
141
- guard: {
142
- type: "isProcessing",
143
- params: ({ event }) => ({ response: event.output })
144
- }
145
- },
146
- {
147
- target: "displayUnknown",
148
- guard: {
149
- type: "isUnknown",
150
- params: ({ event }) => ({ response: event.output })
151
- },
152
- actions: "setUnknownError"
153
- },
154
- {
155
- target: "displayError",
156
- actions: "setErrorFromResponse"
157
- }
158
- ],
159
- onError: [{
160
- target: "finished",
161
- guard: "isBackgroundExecution"
162
- }, {
163
- target: "displayError",
164
- actions: "setError"
165
- }]
166
- } },
167
- awaitingOtp: {
168
- entry: "startResendTimer",
169
- invoke: {
170
- id: "resendTimer",
171
- src: "resendTimer"
172
- },
173
- on: {
174
- TICK: { actions: "tickResendTimer" },
175
- OTP_CHANGED: { actions: "setOtpCode" },
176
- VALIDATE_OTP: { actions: "validateOtpField" },
177
- SUBMIT_OTP: [{
178
- guard: "hasCompleteOtp",
179
- target: "verifyingOtp"
180
- }, { actions: "validateOtpField" }],
181
- RESEND_OTP: {
182
- target: "loading",
183
- guard: "canResend"
184
- }
185
- }
186
- },
187
- verifyingOtp: { invoke: {
188
- id: "submitOtp",
189
- src: "submitOtp",
190
- input: ({ context }) => ({ code: context.otpCode }),
191
- onDone: [
192
- {
193
- target: "displaySuccess",
194
- guard: {
195
- type: "isSuccess",
196
- params: ({ event }) => ({ response: event.output })
197
- }
198
- },
199
- {
200
- target: "awaitingOtp",
201
- guard: "hasAttemptsRemaining",
202
- actions: "setOtpError"
203
- },
204
- {
205
- target: "displayError",
206
- actions: assign({ error: () => "Maximum OTP attempts exceeded" })
207
- }
208
- ],
209
- onError: [{
210
- target: "awaitingOtp",
211
- guard: "hasAttemptsRemaining",
212
- actions: "setOtpError"
213
- }, {
214
- target: "displayError",
215
- actions: "setError"
216
- }]
217
- } },
218
- displaySuccess: { after: { AUTO_PROCEED: { target: "finished" } } },
219
- displayProcessing: { after: { AUTO_PROCEED: { target: "finished" } } },
220
- displayError: { after: { AUTO_PROCEED: { target: "finished" } } },
221
- displayUnknown: { after: { AUTO_PROCEED: { target: "finished" } } },
222
- finished: { type: "final" }
223
- }
224
- });
225
- //#endregion
226
- export { governmentValidationMachine as t };
@@ -1 +0,0 @@
1
- import "./trueSightService-CFXnK5HX.esm.js";
@@ -1,6 +0,0 @@
1
- import { i as FlowModuleConfig } from "./types-DNNUCM_n.js";
2
- import { t as BaseFaceCaptureConfig } from "./types-CaqgEfzk.js";
3
- //#region src/modules/authentication/types.d.ts
4
- type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
- //#endregion
6
- export { AuthenticationConfig as t };