@incodetech/core 2.4.1-agentic.8 → 2.4.1-agentic.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/{FaceDetectionProvider-sjGnopcG.esm.js → FaceDetectionProvider-CHpscouN.esm.js} +4 -4
  2. package/dist/{MultipartRecordingProvider-D9mauUdS.esm.js → MultipartRecordingProvider-BfQPSgSO.esm.js} +5 -0
  3. package/dist/{WorkerEncoderRecordingProvider-B1ODYtgN.esm.js → WorkerEncoderRecordingProvider-CyCrQnZR.esm.js} +1 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-cduF-t6Z.esm.js → apiError-BeWqIYu8.esm.js} +1 -1
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-CnDXQRD6.esm.js → authenticationManager-CTHFl6dl.esm.js} +3 -3
  8. package/dist/{authenticationStateMachine-BZ7ufcHb.esm.js → authenticationStateMachine-D-SOzH8C.esm.js} +2 -2
  9. package/dist/consent.d.ts +1 -1
  10. package/dist/{consentManager-DXetSxcx.d.ts → consentManager-7aHaehwF.d.ts} +4 -4
  11. package/dist/{deepsightLoader-eUHG0SfL.esm.js → deepsightLoader-je1YxHgT.esm.js} +3 -3
  12. package/dist/{definitionSource-1vPLtuXE.esm.js → definitionSource-BHNxbuiv.esm.js} +1 -0
  13. package/dist/document-capture.d.ts +1 -1
  14. package/dist/{documentCaptureManager-CD5iQiUI.d.ts → documentCaptureManager-DDfviFg0.d.ts} +1 -1
  15. package/dist/dynamic-forms.esm.js +2 -2
  16. package/dist/{dynamicFormsManager-HXJVR9NC.esm.js → dynamicFormsManager-BKWJZfkn.esm.js} +1 -1
  17. package/dist/{dynamicFormsStateMachine-D46vH_nU.esm.js → dynamicFormsStateMachine-CQN8p1ux.esm.js} +1 -1
  18. package/dist/ekyb.esm.js +2 -2
  19. package/dist/{ekybManager-CIZHXJHe.esm.js → ekybManager-BD6HTwFJ.esm.js} +1 -1
  20. package/dist/{ekybStateMachine-Dxq0iatr.esm.js → ekybStateMachine-3kceTymI.esm.js} +2 -2
  21. package/dist/ekyc-prefill.d.ts +1 -1
  22. package/dist/ekyc-prefill.esm.js +2 -2
  23. package/dist/ekyc.esm.js +3 -3
  24. package/dist/{ekycManager-Bwv-qYAZ.esm.js → ekycManager-DawJq3Jo.esm.js} +1 -1
  25. package/dist/{ekycPrefillManager-DHfC1T9s.d.ts → ekycPrefillManager-DLNmToWT.d.ts} +4 -4
  26. package/dist/{ekycPrefillManager-B2U7RK3q.esm.js → ekycPrefillManager-D_8NJzZf.esm.js} +1 -1
  27. package/dist/{ekycPrefillStateMachine-Qa6sV0zR.esm.js → ekycPrefillStateMachine-C-JAvkH3.esm.js} +3 -3
  28. package/dist/{ekycRules-B7vXnbdg.esm.js → ekycRules-BLX7Elcb.esm.js} +1 -1
  29. package/dist/{ekycStateMachine-DlN1RCob.esm.js → ekycStateMachine-qvQ-b4IY.esm.js} +155 -3
  30. package/dist/{ekycUtils-K6VJXnOg.esm.js → ekycUtils-Drx8ImpN.esm.js} +5 -0
  31. package/dist/electronic-signature.esm.js +1 -1
  32. package/dist/{electronicSignatureManager-QQSpto7J.esm.js → electronicSignatureManager-u3UBhWw_.esm.js} +1 -1
  33. package/dist/extensibility.d.ts +5 -5
  34. package/dist/extensibility.esm.js +14 -14
  35. package/dist/{faceCaptureManagerFactory-Bus-PtEJ.esm.js → faceCaptureManagerFactory-DKJUjsV2.esm.js} +1 -1
  36. package/dist/{faceCaptureSetup-Dqqyb80d.esm.js → faceCaptureSetup-CZzv26ip.esm.js} +5 -5
  37. package/dist/{feature-management-B3FoZKze.esm.js → feature-management-BMUPPAzI.esm.js} +1 -1
  38. package/dist/feature-management.esm.js +1 -1
  39. package/dist/flow.d.ts +20 -8
  40. package/dist/flow.esm.js +6 -4
  41. package/dist/{flowCompletionService-BpfYzvW_.esm.js → flowCompletionService-DgA2VEq4.esm.js} +1 -1
  42. package/dist/{flowServices-DB3zK0IG.esm.js → flowServices-aJ5kGxBd.esm.js} +25 -6
  43. package/dist/geolocation.esm.js +2 -2
  44. package/dist/{geolocationManager-CT9R0efO.esm.js → geolocationManager-BA57nCxj.esm.js} +1 -1
  45. package/dist/{geolocationStateMachine-BpS2xhlp.esm.js → geolocationStateMachine-3-d1ECCh.esm.js} +1 -1
  46. package/dist/id-selfie-flow.esm.js +6 -6
  47. package/dist/id.esm.js +3 -3
  48. package/dist/{idCaptureManager-CTS4rByi.esm.js → idCaptureManager-B_TyUA3w.esm.js} +3 -3
  49. package/dist/{idCaptureServices-k1wrDp9O.esm.js → idCaptureServices-C6FUQ76N.esm.js} +4 -4
  50. package/dist/{idCaptureStateMachine-zyVg41Gj.esm.js → idCaptureStateMachine-Cr8WdGyp.esm.js} +8 -8
  51. package/dist/identity-reuse.d.ts +1 -1
  52. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  53. package/dist/index.esm.js +1 -1
  54. package/dist/kyb-checks.esm.js +2 -2
  55. package/dist/{kybChecksManager-CsJyQTui.esm.js → kybChecksManager-x2nBdasv.esm.js} +1 -1
  56. package/dist/{kybChecksStateMachine-Cs476kNX.esm.js → kybChecksStateMachine-DdWSo3jQ.esm.js} +1 -1
  57. package/dist/mandatory-consent.d.ts +2 -2
  58. package/dist/mandatory-consent.esm.js +2 -2
  59. package/dist/{mandatoryConsentManager-BBeOo3Sz.esm.js → mandatoryConsentManager-C9JJGENL.esm.js} +1 -1
  60. package/dist/{mandatoryConsentManager-MhZYQg10.d.ts → mandatoryConsentManager-JNeVXgK8.d.ts} +19 -10
  61. package/dist/{mandatoryConsentStateMachine-BJEyS63E.esm.js → mandatoryConsentStateMachine-DLNIGElA.esm.js} +10 -4
  62. package/dist/{multipartRecordingService-2iVLb-2Y.esm.js → multipartRecordingService-OmSzHBqh.esm.js} +1 -1
  63. package/dist/qe-signature.esm.js +1 -1
  64. package/dist/{recordingService-DKXaaOHO.esm.js → recordingService-BUqAQd8F.esm.js} +2 -2
  65. package/dist/{runChildModule-BTK4WxCz.esm.js → runChildModule-BTMOZdMM.esm.js} +1 -1
  66. package/dist/{sdkVersion-BAShFkdq.esm.js → sdkVersion-CinXzhdk.esm.js} +1 -1
  67. package/dist/selfie.esm.js +6 -6
  68. package/dist/{selfieErrorUtils-mvKkJ0eD.esm.js → selfieErrorUtils-D92PpZGe.esm.js} +1 -1
  69. package/dist/{selfieManager-BLHaOMz3.esm.js → selfieManager-DX9Ejy4x.esm.js} +3 -3
  70. package/dist/{selfieStateMachine-DvgwU2TN.esm.js → selfieStateMachine-BfJ5mJ57.esm.js} +3 -3
  71. package/dist/{session-DOxSWaWq.esm.js → session-CswNE2eZ.esm.js} +3 -3
  72. package/dist/session.esm.js +4 -4
  73. package/dist/{sessionInitializer-BcmGT-EA.esm.js → sessionInitializer-DFtIRfDh.esm.js} +4 -4
  74. package/dist/{setup-DMpxmBra.esm.js → setup-Bl3CRduw.esm.js} +5 -5
  75. package/dist/{tri-B2yL1QzP.esm.js → tri-BUFivnaE.esm.js} +1 -1
  76. package/dist/tri.esm.js +1 -1
  77. package/dist/{trueSightService-9OzRzNLm.esm.js → trueSightService-CDbmG-Mi.esm.js} +1 -1
  78. package/dist/{types-NMBsvLIN.d.ts → types-LA74KylV.d.ts} +2 -1
  79. package/dist/video-selfie.d.ts +2 -1
  80. package/dist/video-selfie.esm.js +5 -5
  81. package/dist/{videoSelfieCameraWarmer-DkJ59_nt.esm.js → videoSelfieCameraWarmer-Dnkiqe0z.esm.js} +11 -9
  82. package/dist/wasm.esm.js +1 -1
  83. package/dist/workflow.esm.js +18 -18
  84. package/package.json +3 -3
@@ -40,7 +40,7 @@ const mandatoryConsentMachine = setup({
40
40
  })),
41
41
  setConsent: assign(({ event }) => {
42
42
  return {
43
- consent: event.output.consents[0],
43
+ consent: event.output.consents?.[0],
44
44
  isSigned: false,
45
45
  error: void 0,
46
46
  moduleErrorCode: void 0
@@ -63,7 +63,12 @@ const mandatoryConsentMachine = setup({
63
63
  moduleErrorCode: void 0
64
64
  }))
65
65
  },
66
- guards: { canSubmit: ({ context }) => Boolean(context.consent?.id) && context.isSigned }
66
+ guards: {
67
+ canSubmit: ({ context }) => Boolean(context.consent?.id) && context.isSigned,
68
+ hasConsent: ({ event }) => {
69
+ return event.output?.consents?.[0] !== void 0;
70
+ }
71
+ }
67
72
  }).createMachine({
68
73
  id: "mandatoryConsent",
69
74
  initial: "idle",
@@ -83,10 +88,11 @@ const mandatoryConsentMachine = setup({
83
88
  id: "fetchConsent",
84
89
  src: "fetchConsent",
85
90
  input: ({ context }) => ({ config: context.config }),
86
- onDone: {
91
+ onDone: [{
92
+ guard: "hasConsent",
87
93
  target: "display",
88
94
  actions: "setConsent"
89
- },
95
+ }, { target: "finished" }],
90
96
  onError: {
91
97
  target: "error",
92
98
  actions: "setLoadError"
@@ -2,7 +2,7 @@ import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as BrowserNetworkStatusProvider } from "./BrowserNetworkStatusProvider-BrDXBEDd.esm.js";
5
- import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-D9mauUdS.esm.js";
5
+ import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BfQPSgSO.esm.js";
6
6
  //#region src/internal/recordings/videoSelfieUploadService.ts
7
7
  /**
8
8
  * Opens a scoped multipart video upload session. Idempotent server-side: if
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-QQSpto7J.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-u3UBhWw_.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -2,8 +2,8 @@ import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
2
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
3
3
  import { r as createRecordingCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
4
4
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
5
- import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js";
6
- import { t as MultipartRecordingService } from "./multipartRecordingService-2iVLb-2Y.esm.js";
5
+ import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-CyCrQnZR.esm.js";
6
+ import { t as MultipartRecordingService } from "./multipartRecordingService-OmSzHBqh.esm.js";
7
7
  //#region ../infra/src/media/VideoTrimmer.ts
8
8
  /** A trim that runs longer than this uploads the full recording instead. */
9
9
  const TRIM_TIMEOUT_MS = 1e4;
@@ -1,6 +1,6 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { w as createEventBus } from "./events-kU5WJU4B.esm.js";
3
- import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-9OzRzNLm.esm.js";
3
+ import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CDbmG-Mi.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
6
  //#region src/internal/flow-events/flowEvents.ts
@@ -1,4 +1,4 @@
1
1
  //#region src/internal/version/sdkVersion.ts
2
- const SDK_VERSION = "2.4.1-agentic.8";
2
+ const SDK_VERSION = "2.4.1-agentic.9";
3
3
  //#endregion
4
4
  export { SDK_VERSION as t };
@@ -1,14 +1,14 @@
1
- import { u as BrowserStorageProvider } from "./setup-DMpxmBra.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
3
  import { n as eventModuleNames } from "./events-kU5WJU4B.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-Dqqyb80d.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bus-PtEJ.esm.js";
8
- import { s as processFace } from "./FaceDetectionProvider-sjGnopcG.esm.js";
6
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CZzv26ip.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKJUjsV2.esm.js";
8
+ import { s as processFace } from "./FaceDetectionProvider-CHpscouN.esm.js";
9
9
  import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-m2dAj6Zu.esm.js";
10
- import { t as selfieMachine } from "./selfieStateMachine-DvgwU2TN.esm.js";
11
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BLHaOMz3.esm.js";
10
+ import { t as selfieMachine } from "./selfieStateMachine-BfJ5mJ57.esm.js";
11
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DX9Ejy4x.esm.js";
12
12
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BkvXSZfa.esm.js";
13
13
  /**
14
14
  * Selfie state machine variant for the captureOnly flow. Shares the full base
@@ -1,4 +1,4 @@
1
- import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-sjGnopcG.esm.js";
1
+ import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CHpscouN.esm.js";
2
2
  //#region src/modules/selfie/selfieErrorUtils.ts
3
3
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
4
4
  const isFaceErrorCode = (value) => {
@@ -1,9 +1,9 @@
1
- import { u as BrowserStorageProvider } from "./setup-DMpxmBra.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
3
  import { n as eventModuleNames } from "./events-kU5WJU4B.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bus-PtEJ.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-DvgwU2TN.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DKJUjsV2.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-BfJ5mJ57.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,8 +1,8 @@
1
1
  import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-Dqqyb80d.esm.js";
4
- import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-sjGnopcG.esm.js";
5
- import { n as validateUploadResponse } from "./selfieErrorUtils-mvKkJ0eD.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CZzv26ip.esm.js";
4
+ import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CHpscouN.esm.js";
5
+ import { n as validateUploadResponse } from "./selfieErrorUtils-D92PpZGe.esm.js";
6
6
  /**
7
7
  * The selfie capture state machine.
8
8
  *
@@ -1,7 +1,7 @@
1
1
  import { n as getApi, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
- import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-9OzRzNLm.esm.js";
3
- import "./sessionInitializer-BcmGT-EA.esm.js";
4
- import { i as toIncodeApiError } from "./apiError-cduF-t6Z.esm.js";
2
+ import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-CDbmG-Mi.esm.js";
3
+ import "./sessionInitializer-DFtIRfDh.esm.js";
4
+ import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
5
5
  //#region src/internal/session/sessionService.ts
6
6
  /**
7
7
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
@@ -1,10 +1,10 @@
1
1
  import { r as getToken } from "./api-C_P9YXbL.esm.js";
2
2
  import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
3
- import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-BcmGT-EA.esm.js";
3
+ import { a as initializeSession, f as whenSessionFingerprintSettled } from "./sessionInitializer-DFtIRfDh.esm.js";
4
4
  import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
5
- import { t as IncodeApiError } from "./apiError-cduF-t6Z.esm.js";
6
- import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-DOxSWaWq.esm.js";
7
- import { n as getFinishStatus } from "./flowCompletionService-BpfYzvW_.esm.js";
5
+ import { t as IncodeApiError } from "./apiError-BeWqIYu8.esm.js";
6
+ import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-CswNE2eZ.esm.js";
7
+ import { n as getFinishStatus } from "./flowCompletionService-DgA2VEq4.esm.js";
8
8
  //#region src/internal/session/sessionExpired.ts
9
9
  var SessionExpiredError = class extends Error {
10
10
  constructor() {
@@ -2,15 +2,15 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
2
2
  import { n as setWasmMetadataV2Enabled } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
3
3
  import { C as subscribeEvent, b as getAnalyticsBatcher, y as addEvent } from "./events-kU5WJU4B.esm.js";
4
4
  import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
5
- import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-9OzRzNLm.esm.js";
6
- import { t as SDK_VERSION } from "./sdkVersion-BAShFkdq.esm.js";
5
+ import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-CDbmG-Mi.esm.js";
6
+ import { t as SDK_VERSION } from "./sdkVersion-CinXzhdk.esm.js";
7
7
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
8
- import { E as updateFeatureManagementUser } from "./feature-management-B3FoZKze.esm.js";
8
+ import { E as updateFeatureManagementUser } from "./feature-management-BMUPPAzI.esm.js";
9
9
  import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-Bv5PiWvo.esm.js";
10
10
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
11
11
  import { a as isIOS } from "./platform-aPh7gTWh.esm.js";
12
12
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
13
- import { a as isTRIStarted, o as linkSessionWithTRI, s as readTRIFpSignals } from "./tri-B2yL1QzP.esm.js";
13
+ import { a as isTRIStarted, o as linkSessionWithTRI, s as readTRIFpSignals } from "./tri-BUFivnaE.esm.js";
14
14
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
15
15
  //#region src/internal/version/sdkPlatform.ts
16
16
  /**
@@ -3,14 +3,14 @@ import { a as setWasmOnDeviceMode, f as drainWasmDiagnostics, m as rearmWasmDiag
3
3
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
4
4
  import { S as setAnalyticsBatcher, b as getAnalyticsBatcher, c as resetExperimentAssignments, v as createAnalyticsBatchingService, x as resetAnalyticsBatcher } from "./events-kU5WJU4B.esm.js";
5
5
  import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
6
- import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-9OzRzNLm.esm.js";
7
- import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig } from "./sessionInitializer-BcmGT-EA.esm.js";
6
+ import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-CDbmG-Mi.esm.js";
7
+ import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as setStandaloneFlowPolicy, a as initializeSession, c as setClientHostingApp, d as setClientWasmDisabled, g as resolveStandaloneFlowPolicy, h as resetStandaloneFlowPolicy, l as setClientIpLookupEnabled, m as registerFlowPreloader, o as resetSessionInit, s as setClientFingerprintEnabled, u as setClientWasmConfig } from "./sessionInitializer-DFtIRfDh.esm.js";
8
8
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
9
9
  import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
10
- import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-B3FoZKze.esm.js";
10
+ import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-BMUPPAzI.esm.js";
11
11
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Bv5PiWvo.esm.js";
12
- import { a as isTRIStarted, c as resetSdkOwnedTRI, i as initializeTRI, s as readTRIFpSignals, t as addTRIFpSignals } from "./tri-B2yL1QzP.esm.js";
13
- import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-DB3zK0IG.esm.js";
12
+ import { a as isTRIStarted, c as resetSdkOwnedTRI, i as initializeTRI, s as readTRIFpSignals, t as addTRIFpSignals } from "./tri-BUFivnaE.esm.js";
13
+ import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-aJ5kGxBd.esm.js";
14
14
  //#region ../infra/src/wasm/wasmRuntimeProfile.ts
15
15
  /**
16
16
  * The WASM facts TrueSight reports as `session.webProfile.wasm`
@@ -1,4 +1,4 @@
1
- import { t as SDK_VERSION } from "./sdkVersion-BAShFkdq.esm.js";
1
+ import { t as SDK_VERSION } from "./sdkVersion-CinXzhdk.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
3
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
4
4
  //#region ../infra/src/providers/browser/TransactionalRiskIntelligenceProvider.ts
package/dist/tri.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isTRIStarted, d as startTRI, f as stopTRI, l as resetTRI, n as createTRISession, r as getTRIActivityId, u as setupTRI } from "./tri-B2yL1QzP.esm.js";
1
+ import { a as isTRIStarted, d as startTRI, f as stopTRI, l as resetTRI, n as createTRISession, r as getTRIActivityId, u as setupTRI } from "./tri-BUFivnaE.esm.js";
2
2
  export { createTRISession, getTRIActivityId, isTRIStarted, resetTRI, setupTRI, startTRI, stopTRI };
@@ -2,7 +2,7 @@ import { T as resolveWasmConfig, _ as emitWasmDiagnostic, a as setWebApiHttpTran
2
2
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
3
3
  import { C as subscribeEvent, n as eventModuleNames } from "./events-kU5WJU4B.esm.js";
4
4
  import { i as isApiConfigured, l as withTiming, n as getApi, o as setClient, r as getToken, t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
5
- import { t as SDK_VERSION } from "./sdkVersion-BAShFkdq.esm.js";
5
+ import { t as SDK_VERSION } from "./sdkVersion-CinXzhdk.esm.js";
6
6
  import { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
7
7
  /** Dirty-timer half of the interrupted-snapshot rebuild debounce (module boundaries + timer). */
8
8
  const SNAPSHOT_DIRTY_INTERVAL_MS = 15e3;
@@ -15,7 +15,8 @@ type MandatoryConsent = {
15
15
  consentType: string;
16
16
  };
17
17
  type FetchMandatoryConsentResponse = {
18
- consents: MandatoryConsent[];
18
+ /** Can be empty or missing when there is no consent for the regulation type. */
19
+ consents?: MandatoryConsent[];
19
20
  };
20
21
  //#endregion
21
22
  export { MandatoryConsent as n, MandatoryConsentConfig as r, FetchMandatoryConsentResponse as t };
@@ -299,7 +299,8 @@ type VideoSelfieCameraWarmer = {
299
299
  /**
300
300
  * Stop a warmed-but-unused stream. Call on unmount when capture never started
301
301
  * so the camera light doesn't stay on. No-op once the stream has been consumed
302
- * by the recording machine.
302
+ * by the recording machine. After `dispose()`, `warm()` does nothing and
303
+ * `acquireCamera` always acquires a fresh stream.
303
304
  */
304
305
  dispose(): void;
305
306
  };
@@ -1,18 +1,18 @@
1
- import { t as ensureWasmPipelines } from "./setup-DMpxmBra.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
3
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
5
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
6
- import { f as facingModeForStep, m as videoSelfieWasmPipelines, p as resolveVideoSelfieSteps } from "./flowServices-DB3zK0IG.esm.js";
6
+ import { f as facingModeForStep, m as videoSelfieWasmPipelines, p as resolveVideoSelfieSteps } from "./flowServices-aJ5kGxBd.esm.js";
7
7
  import { i as assign, l as raise, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
9
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
10
  import { t as carryAttempts } from "./attemptCarry-BaAXPR_w.esm.js";
11
11
  import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-k-U-cL5m.esm.js";
12
- import { n as defaultAcquireCamera, r as createDefaultStepDetector, s as isConnectionError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-DkJ59_nt.esm.js";
12
+ import { n as defaultAcquireCamera, r as createDefaultStepDetector, s as isConnectionError, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-Dnkiqe0z.esm.js";
13
13
  import { r as createRecordingCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
14
- import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js";
15
- import { t as MultipartRecordingService } from "./multipartRecordingService-2iVLb-2Y.esm.js";
14
+ import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-CyCrQnZR.esm.js";
15
+ import { t as MultipartRecordingService } from "./multipartRecordingService-OmSzHBqh.esm.js";
16
16
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
17
17
  //#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
18
18
  var wave_encoder_default = () => {
@@ -1,13 +1,13 @@
1
1
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
- import { f as facingModeForStep, p as resolveVideoSelfieSteps } from "./flowServices-DB3zK0IG.esm.js";
3
+ import { f as facingModeForStep, p as resolveVideoSelfieSteps } from "./flowServices-aJ5kGxBd.esm.js";
4
4
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-E_Kcre4O.esm.js";
5
5
  import { t as checkPermission } from "./permissionServices-D190ATGD.esm.js";
6
- import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-sjGnopcG.esm.js";
6
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CHpscouN.esm.js";
7
7
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
8
8
  import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
- import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-mvKkJ0eD.esm.js";
10
+ import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-D92PpZGe.esm.js";
11
11
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dszuq9ng.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
13
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
@@ -470,10 +470,10 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
470
470
  const firstFacing = facingModeForStep(steps[0] ?? "selfie");
471
471
  let warming = null;
472
472
  let warmed = null;
473
- let consumed = false;
473
+ let handedOff = null;
474
474
  return {
475
475
  warm() {
476
- if (warming) return;
476
+ if (warming || handedOff) return;
477
477
  warming = (async () => {
478
478
  try {
479
479
  if (await checkPermission() !== "granted") return null;
@@ -485,8 +485,8 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
485
485
  })();
486
486
  },
487
487
  async acquireCamera(facingMode, withAudio) {
488
- if (!consumed && facingMode === firstFacing && withAudio) {
489
- consumed = true;
488
+ if (!handedOff && facingMode === firstFacing && withAudio) {
489
+ handedOff = "consumed";
490
490
  const stream = warmed ?? (warming ? await warming : null);
491
491
  warmed = null;
492
492
  if (stream) return stream;
@@ -494,12 +494,14 @@ function createVideoSelfieCameraWarmer(config, steps = resolveVideoSelfieSteps(c
494
494
  return defaultAcquireCamera(facingMode, withAudio);
495
495
  },
496
496
  dispose() {
497
- if (consumed) return;
497
+ if (handedOff) return;
498
+ handedOff = "disposed";
498
499
  if (warmed) {
499
500
  stopStream(warmed);
500
501
  warmed = null;
501
502
  } else if (warming) warming.then((stream) => {
502
- if (!consumed) stopStream(stream);
503
+ stopStream(stream);
504
+ warmed = null;
503
505
  });
504
506
  }
505
507
  };
package/dist/wasm.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-BDrax6Eu.esm.js";
2
2
  import { s as warmupWasm } from "./warmup-DtB0DJpl.esm.js";
3
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-DMpxmBra.esm.js";
3
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-Bl3CRduw.esm.js";
4
4
  //#region src/defineWasm.ts
5
5
  function requiredModels(pipelines) {
6
6
  const models = /* @__PURE__ */ new Set();
@@ -1,45 +1,45 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-kU5WJU4B.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-C_P9YXbL.esm.js";
3
- import { u as trueSightLog } from "./trueSightService-9OzRzNLm.esm.js";
4
- import { a as initializeSession, i as getSessionFingerprintResult } from "./sessionInitializer-BcmGT-EA.esm.js";
5
- import { E as updateFeatureManagementUser } from "./feature-management-B3FoZKze.esm.js";
3
+ import { u as trueSightLog } from "./trueSightService-CDbmG-Mi.esm.js";
4
+ import { a as initializeSession, i as getSessionFingerprintResult } from "./sessionInitializer-DFtIRfDh.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-BMUPPAzI.esm.js";
6
6
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-cduF-t6Z.esm.js";
7
+ import { i as toIncodeApiError } from "./apiError-BeWqIYu8.esm.js";
8
8
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
9
9
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
10
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-QQSpto7J.esm.js";
10
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-u3UBhWw_.esm.js";
11
11
  import "./ae-signature.esm.js";
12
12
  import { t as antifraudMachine } from "./antifraudStateMachine-qNNXrlsP.esm.js";
13
- import { t as authenticationMachine } from "./authenticationStateMachine-BZ7ufcHb.esm.js";
13
+ import { t as authenticationMachine } from "./authenticationStateMachine-D-SOzH8C.esm.js";
14
14
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-uSD9IkcV.esm.js";
15
15
  import { t as consentMachine } from "./consentStateMachine-BAiLDE3D.esm.js";
16
16
  import { t as curpValidationMachine } from "./curpValidationStateMachine-DyAEyScb.esm.js";
17
17
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-ZZoDGRAZ.esm.js";
18
18
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CgCtimSa.esm.js";
19
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D46vH_nU.esm.js";
19
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CQN8p1ux.esm.js";
20
20
  import { o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
21
- import { t as ekybMachine } from "./ekybStateMachine-Dxq0iatr.esm.js";
22
- import { t as ekycMachine } from "./ekycStateMachine-DlN1RCob.esm.js";
23
- import { l as toEkycConfig } from "./ekycUtils-K6VJXnOg.esm.js";
24
- import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Qa6sV0zR.esm.js";
21
+ import { t as ekybMachine } from "./ekybStateMachine-3kceTymI.esm.js";
22
+ import { t as ekycMachine } from "./ekycStateMachine-qvQ-b4IY.esm.js";
23
+ import { l as toEkycConfig } from "./ekycUtils-Drx8ImpN.esm.js";
24
+ import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-C-JAvkH3.esm.js";
25
25
  import { t as emailMachine } from "./emailStateMachine-CaoPZtZN.esm.js";
26
- import { t as selfieMachine } from "./selfieStateMachine-DvgwU2TN.esm.js";
27
- import { t as idCaptureMachine } from "./idCaptureStateMachine-zyVg41Gj.esm.js";
26
+ import { t as selfieMachine } from "./selfieStateMachine-BfJ5mJ57.esm.js";
27
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-Cr8WdGyp.esm.js";
28
28
  import { t as phoneMachine } from "./phoneStateMachine-CHnhCS-4.esm.js";
29
29
  import { t as watchlistMachine } from "./watchlistStateMachine-DeLfuGSl.esm.js";
30
30
  import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-D8qIyL8w.esm.js";
31
31
  import { n as identityReuseMachine } from "./identityReuseStateMachine-BtpkGpYZ.esm.js";
32
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BJEyS63E.esm.js";
32
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DLNIGElA.esm.js";
33
33
  import { t as idOcrStateMachine } from "./idOcrStateMachine-RjNycN07.esm.js";
34
34
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-D0DW4y-f.esm.js";
35
35
  import { t as signatureMachine } from "./signatureStateMachine-DFbbbFwg.esm.js";
36
- import { t as geolocationMachine } from "./geolocationStateMachine-BpS2xhlp.esm.js";
36
+ import { t as geolocationMachine } from "./geolocationStateMachine-3-d1ECCh.esm.js";
37
37
  import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BwMClTqC.esm.js";
38
38
  import { t as idVerificationMachine } from "./idVerificationStateMachine-Bj00uWvh.esm.js";
39
39
  import { t as faceMatchMachine } from "./faceMatchStateMachine-D90ZHY1r.esm.js";
40
- import { t as kybChecksMachine } from "./kybChecksStateMachine-Cs476kNX.esm.js";
41
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BpfYzvW_.esm.js";
42
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BTK4WxCz.esm.js";
40
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-DdWSo3jQ.esm.js";
41
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DgA2VEq4.esm.js";
42
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BTMOZdMM.esm.js";
43
43
  import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
44
44
  import "./qe-signature.esm.js";
45
45
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.4.1-agentic.8",
3
+ "version": "2.4.1-agentic.9",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -291,9 +291,9 @@
291
291
  "tsdown": "^0.22.8",
292
292
  "typescript": "^5.9.3",
293
293
  "vitest": "4.1.10",
294
- "@incodetech/config": "1.0.2",
295
294
  "@incodetech/form-definitions": "0.0.0",
296
- "@incodetech/infra": "1.5.0"
295
+ "@incodetech/infra": "1.5.0",
296
+ "@incodetech/config": "1.0.2"
297
297
  },
298
298
  "scripts": {
299
299
  "build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",