@incodetech/core 0.0.0-dev-20260715-a93e8b97 → 0.0.0-dev-20260716-5050af5d

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 (42) hide show
  1. package/dist/authentication.esm.js +2 -2
  2. package/dist/{authenticationManager-BjnJUZ7F.esm.js → authenticationManager-hbFeWTah.esm.js} +2 -2
  3. package/dist/{authenticationStateMachine-BHDR91Bt.esm.js → authenticationStateMachine-BvaI9u5k.esm.js} +2 -2
  4. package/dist/consent.d.ts +1 -1
  5. package/dist/{consentManager-yCbkXL97.d.ts → consentManager-DLOyIZzt.d.ts} +9 -9
  6. package/dist/cpf-ocr.d.ts +1 -1
  7. package/dist/{cpfOcrManager-CQkUAeWO.d.ts → cpfOcrManager-DRye5wCj.d.ts} +5 -5
  8. package/dist/{deepsightLoader-BHZHj5YL.esm.js → deepsightLoader-Cw7akhz-.esm.js} +1 -1
  9. package/dist/ekyb.esm.js +2 -2
  10. package/dist/{ekybManager-Crvx8Zvi.esm.js → ekybManager-B-YDjrD3.esm.js} +1 -1
  11. package/dist/{ekybStateMachine-BS2Lk7wc.esm.js → ekybStateMachine-DgvXRzv4.esm.js} +1 -1
  12. package/dist/extensibility.d.ts +4 -4
  13. package/dist/extensibility.esm.js +6 -6
  14. package/dist/{faceCaptureManagerFactory-Dg2k8SHH.esm.js → faceCaptureManagerFactory-Cq78g5Tm.esm.js} +1 -1
  15. package/dist/{faceCaptureSetup-IySY5GWV.esm.js → faceCaptureSetup-80H-Ypj3.esm.js} +2 -2
  16. package/dist/flow.esm.js +1 -1
  17. package/dist/{flowServices-DsJYCiwe.esm.js → flowServices-B_vQAdNr.esm.js} +2 -2
  18. package/dist/id-ocr.d.ts +1 -1
  19. package/dist/id.esm.js +2 -2
  20. package/dist/{idCaptureManager-DCY4xeZq.esm.js → idCaptureManager-Bu2d3Faa.esm.js} +1 -1
  21. package/dist/{idCaptureStateMachine-BmWTK_71.esm.js → idCaptureStateMachine-B8SEdOB3.esm.js} +5 -5
  22. package/dist/{idOcrManager-vXa7GdRh.d.ts → idOcrManager-Bi80MQR4.d.ts} +1 -1
  23. package/dist/index.esm.js +1 -1
  24. package/dist/mandatory-consent.d.ts +1 -1
  25. package/dist/{mandatoryConsentManager-PO3w2Drz.d.ts → mandatoryConsentManager-BlB4bX6_.d.ts} +5 -5
  26. package/dist/{onDeviceFaceResults-bMkSjnEw.esm.js → onDeviceFaceResults-DtFYhiCI.esm.js} +1 -1
  27. package/dist/personhood.esm.js +2 -2
  28. package/dist/{recordingService-BkNxvoPo.esm.js → recordingService-CRkr18oy.esm.js} +1 -1
  29. package/dist/selfie.esm.js +4 -4
  30. package/dist/{selfieManager-DGAmtI6G.esm.js → selfieManager-DW2UOX6K.esm.js} +2 -2
  31. package/dist/{selfieStateMachine-n1wz3DyM.esm.js → selfieStateMachine-UkyBCYne.esm.js} +2 -2
  32. package/dist/session-CrhnsgB6.esm.js +1 -0
  33. package/dist/session.esm.js +2 -2
  34. package/dist/{sessionInitializer-bJXy8nBC.esm.js → sessionInitializer-CSKqpdKw.esm.js} +1 -1
  35. package/dist/{setup-Do9V2eMX.esm.js → setup-DoygBzUq.esm.js} +1 -1
  36. package/dist/video-selfie.d.ts +2 -0
  37. package/dist/video-selfie.esm.js +39 -5
  38. package/dist/wasm.esm.js +1 -1
  39. package/dist/workflow.d.ts +4 -4
  40. package/dist/workflow.esm.js +5 -5
  41. package/package.json +3 -3
  42. package/dist/session-Q6nnQjxf.esm.js +0 -1
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-BHDR91Bt.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BjnJUZ7F.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BvaI9u5k.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-hbFeWTah.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.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-Dg2k8SHH.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Cq78g5Tm.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BHDR91Bt.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BvaI9u5k.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-IySY5GWV.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-80H-Ypj3.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-yCbkXL97.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -74,14 +74,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
74
74
  id: string | undefined;
75
75
  };
76
76
  }>, Values<{
77
- setConsentData: {
78
- type: "setConsentData";
79
- params: NonReducibleUnknown;
80
- };
81
- toggleCheckbox: {
82
- type: "toggleCheckbox";
83
- params: NonReducibleUnknown;
84
- };
85
77
  setError: {
86
78
  type: "setError";
87
79
  params: NonReducibleUnknown;
@@ -94,10 +86,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
86
  type: "resetContext";
95
87
  params: NonReducibleUnknown;
96
88
  };
89
+ setConsentData: {
90
+ type: "setConsentData";
91
+ params: NonReducibleUnknown;
92
+ };
93
+ toggleCheckbox: {
94
+ type: "toggleCheckbox";
95
+ params: NonReducibleUnknown;
96
+ };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CQkUAeWO.js";
1
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-DRye5wCj.js";
2
2
  //#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
3
3
  declare function formatCPF(value: string): string;
4
4
  declare function isValidCPF(value: string): boolean;
@@ -48,10 +48,6 @@ declare const cpfOcrMachine: StateMachine<CpfOcrContext, {
48
48
  type: "setError";
49
49
  params: NonReducibleUnknown;
50
50
  };
51
- clearError: {
52
- type: "clearError";
53
- params: NonReducibleUnknown;
54
- };
55
51
  setPrefill: {
56
52
  type: "setPrefill";
57
53
  params: NonReducibleUnknown;
@@ -60,10 +56,14 @@ declare const cpfOcrMachine: StateMachine<CpfOcrContext, {
60
56
  type: "setCpf";
61
57
  params: NonReducibleUnknown;
62
58
  };
59
+ clearError: {
60
+ type: "clearError";
61
+ params: NonReducibleUnknown;
62
+ };
63
63
  }>, {
64
64
  type: "isValid";
65
65
  params: unknown;
66
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
66
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
67
67
  readonly id: "cpfOcr";
68
68
  readonly initial: "idle";
69
69
  readonly context: {
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
4
- import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-bJXy8nBC.esm.js";
4
+ import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-CSKqpdKw.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
7
7
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BS2Lk7wc.esm.js";
2
- import { t as createEkybManager } from "./ekybManager-Crvx8Zvi.esm.js";
1
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-DgvXRzv4.esm.js";
2
+ import { t as createEkybManager } from "./ekybManager-B-YDjrD3.esm.js";
3
3
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-BS2Lk7wc.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-DgvXRzv4.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -3,7 +3,7 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DH-IPF-w.esm.js";
6
- import { t as getFlow } from "./flowServices-DsJYCiwe.esm.js";
6
+ import { t as getFlow } from "./flowServices-B_vQAdNr.esm.js";
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  /**
9
9
  * Countries available in all environments.
@@ -9,8 +9,8 @@ import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
9
9
  import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-ctqh-iS4.js";
10
10
  import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CN8wJ14s.js";
11
11
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-G-k-13Fe.js";
12
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-yCbkXL97.js";
13
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-CQkUAeWO.js";
12
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
13
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-DRye5wCj.js";
14
14
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
15
15
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager--HSBTwOy.js";
16
16
  import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-zMtVz5_U.js";
@@ -22,8 +22,8 @@ import { d as IdCaptureActor, h as CaptureIdResponse, i as createIdCaptureManage
22
22
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
23
23
  import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
24
24
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
25
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-PO3w2Drz.js";
26
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-vXa7GdRh.js";
25
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BlB4bX6_.js";
26
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-Bi80MQR4.js";
27
27
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-NVQM3o5P.js";
28
28
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-BWhRzBjk.js";
29
29
  import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
@@ -1,22 +1,22 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-bJXy8nBC.esm.js";
2
+ import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-CSKqpdKw.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-CL2YhiVX.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-IySY5GWV.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-80H-Ypj3.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BjnJUZ7F.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-hbFeWTah.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-D3GyyH5u.esm.js";
10
10
  import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Cwm0MesJ.esm.js";
11
11
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9rdIO8Qk.esm.js";
12
12
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-C2i9Lzx9.esm.js";
13
13
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DijbJFun.esm.js";
14
14
  import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-COik5bJ7.esm.js";
15
- import { n as createEkybManagerFromActor } from "./ekybManager-Crvx8Zvi.esm.js";
15
+ import { n as createEkybManagerFromActor } from "./ekybManager-B-YDjrD3.esm.js";
16
16
  import { n as createEkycManagerFromActor } from "./ekycManager-BSMlIpGA.esm.js";
17
17
  import { n as createEmailManagerFromActor } from "./emailManager-c-mDLieD.esm.js";
18
- import { n as createSelfieManagerFromActor } from "./selfieManager-DGAmtI6G.esm.js";
19
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DCY4xeZq.esm.js";
18
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DW2UOX6K.esm.js";
19
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Bu2d3Faa.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-KbcmjEeH.esm.js";
21
21
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-DHfJZTVo.esm.js";
22
22
  import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-5LlxYad-.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-IySY5GWV.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-80H-Ypj3.esm.js";
5
5
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
6
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
7
7
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
10
- import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-BkNxvoPo.esm.js";
10
+ import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CRkr18oy.esm.js";
11
11
  //#region src/internal/avatar/concealment.ts
12
12
  /**
13
13
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
package/dist/flow.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
2
2
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-DsJYCiwe.esm.js";
4
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-B_vQAdNr.esm.js";
5
5
  import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
6
6
  import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-bJXy8nBC.esm.js";
3
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CSKqpdKw.esm.js";
4
4
  import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
5
- import "./session-Q6nnQjxf.esm.js";
5
+ import "./session-CrhnsgB6.esm.js";
6
6
  import { r as videoSelfieWasmPipelines } from "./videoSelfieSteps-DHcibfYH.esm.js";
7
7
  //#region src/modules/flow/flowUtils.ts
8
8
  const WASM_MODULE_PIPELINES = {
package/dist/id-ocr.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-vXa7GdRh.js";
1
+ import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-Bi80MQR4.js";
2
2
  //#region src/modules/id-ocr/idOcrFields.d.ts
3
3
  declare const OCR_FIELDS: OcrFieldConfig[];
4
4
  declare const getOcrFields: (config: Pick<IdOcrConfig, "flowId">) => OcrFieldConfig[];
package/dist/id.esm.js CHANGED
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
5
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-BmWTK_71.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DCY4xeZq.esm.js";
5
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-B8SEdOB3.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-Bu2d3Faa.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
8
8
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
9
9
  function buildSubImage(canvas) {
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
4
4
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
5
5
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
6
6
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
7
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BmWTK_71.esm.js";
7
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-B8SEdOB3.esm.js";
8
8
  //#region src/modules/id/digitalUpload/instrumentation.ts
9
9
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
10
10
  function isHoldingState(value) {
@@ -3,20 +3,20 @@ import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
4
4
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
6
- import { t as getDisableIpify } from "./sessionInitializer-bJXy8nBC.esm.js";
6
+ import { t as getDisableIpify } from "./sessionInitializer-CSKqpdKw.esm.js";
7
7
  import { n as isDesktop } from "./platform-wmV7oTAJ.esm.js";
8
8
  import { a as and, n as sendTo, r as assign, s as not, 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 { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
11
- import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
11
+ import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
12
12
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
13
13
  import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
14
14
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
15
15
  import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
16
16
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
17
17
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
18
- import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-BkNxvoPo.esm.js";
19
- import "./session-Q6nnQjxf.esm.js";
18
+ import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-CRkr18oy.esm.js";
19
+ import "./session-CrhnsgB6.esm.js";
20
20
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-Dzfws4i0.esm.js";
21
21
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
22
22
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1522,7 +1522,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
1522
1522
  });
1523
1523
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1524
1524
  if (!input.dependencies) return;
1525
- const { loadDeepsightSession } = await import("./deepsightLoader-BHZHj5YL.esm.js");
1525
+ const { loadDeepsightSession } = await import("./deepsightLoader-Cw7akhz-.esm.js");
1526
1526
  return loadDeepsightSession({
1527
1527
  ds: input.ds,
1528
1528
  storage: input.dependencies.storage,
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
271
271
  type: "shouldProceedWithoutSubmitToSecondId";
272
272
  params: unknown;
273
273
  };
274
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({ input }: {
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, o as setup, r as isConfigured } from "./setup-Do9V2eMX.esm.js";
1
+ import { i as reset, o as setup, r as isConfigured } from "./setup-DoygBzUq.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,2 +1,2 @@
1
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-PO3w2Drz.js";
1
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-BlB4bX6_.js";
2
2
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -80,18 +80,18 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
80
80
  type: "clearError";
81
81
  params: NonReducibleUnknown;
82
82
  };
83
- resetContext: {
84
- type: "resetContext";
85
- params: NonReducibleUnknown;
86
- };
87
83
  toggleSigned: {
88
84
  type: "toggleSigned";
89
85
  params: NonReducibleUnknown;
90
86
  };
87
+ resetContext: {
88
+ type: "resetContext";
89
+ params: NonReducibleUnknown;
90
+ };
91
91
  }>, {
92
92
  type: "canSubmit";
93
93
  params: unknown;
94
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
94
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
95
95
  readonly id: "mandatoryConsent";
96
96
  readonly initial: "idle";
97
97
  readonly context: ({ input }: {
@@ -516,7 +516,7 @@ async function stopRecording(session) {
516
516
  }
517
517
  }
518
518
  async function initializeDeepsightSession(options) {
519
- const { loadDeepsightSession } = await import("./deepsightLoader-BHZHj5YL.esm.js");
519
+ const { loadDeepsightSession } = await import("./deepsightLoader-Cw7akhz-.esm.js");
520
520
  return loadDeepsightSession({
521
521
  ds: options.ds,
522
522
  storage: options.storage
@@ -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-DzT65Fvf.esm.js";
5
5
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
7
- import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-bJXy8nBC.esm.js";
7
+ import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-CSKqpdKw.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-DwNCUB2I.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-bMkSjnEw.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-DtFYhiCI.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-DLQ0g4-R.esm.js";
3
3
  import { t as isAndroid } from "./platform-wmV7oTAJ.esm.js";
4
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
4
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-BhSZDDNb.esm.js";
6
6
  //#region src/internal/manualReview/manualReviewService.ts
7
7
  async function flagFaceManualReview() {
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.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-IySY5GWV.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Dg2k8SHH.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-80H-Ypj3.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Cq78g5Tm.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
8
  import { t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-n1wz3DyM.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DGAmtI6G.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-UkyBCYne.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DW2UOX6K.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-DAshwHhX.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-Dg2k8SHH.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Cq78g5Tm.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-n1wz3DyM.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-UkyBCYne.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -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-IySY5GWV.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-80H-Ypj3.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
7
7
  Object.values(FACE_ERROR_CODES);
@@ -0,0 +1 @@
1
+ import "./sessionInitializer-CSKqpdKw.esm.js";
@@ -1,8 +1,8 @@
1
1
  import { n as getApi } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
- import { i as initializeSession } from "./sessionInitializer-bJXy8nBC.esm.js";
3
+ import { i as initializeSession } from "./sessionInitializer-CSKqpdKw.esm.js";
4
4
  import { n as toIncodeApiError, t as IncodeApiError } from "./apiError-COvIGYWe.esm.js";
5
- import "./session-Q6nnQjxf.esm.js";
5
+ import "./session-CrhnsgB6.esm.js";
6
6
  import { n as getFinishStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
@@ -1608,7 +1608,7 @@ function isBrowserSimulation(browserEnv) {
1608
1608
  }
1609
1609
  //#endregion
1610
1610
  //#region src/internal/version/sdkVersion.ts
1611
- const SDK_VERSION = "0.0.0-dev-20260715-a93e8b97";
1611
+ const SDK_VERSION = "0.0.0-dev-20260716-5050af5d";
1612
1612
  //#endregion
1613
1613
  //#region src/internal/fingerprint/fingerprintService.ts
1614
1614
  function formatOsVersion(os) {
@@ -5,7 +5,7 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
5
5
  import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
7
7
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
8
- import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-bJXy8nBC.esm.js";
8
+ import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-CSKqpdKw.esm.js";
9
9
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-N-xlKhZK.esm.js";
10
10
  //#region ../infra/src/wasm/wasmDefaults.ts
11
11
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
@@ -128,6 +128,8 @@ type VideoSelfieRecordingDependencies = {
128
128
  acquireCamera?: (facingMode: FacingMode, withAudio: boolean) => Promise<CameraStream>;
129
129
  /** Runs WASM detection + backend validation per step; resolves to advance. */
130
130
  detect?: StepDetector;
131
+ /** Minimum time to hold the switching-camera screen before resuming capture. */
132
+ switchingCameraMinDwellMs?: number;
131
133
  };
132
134
  //#endregion
133
135
  //#region src/modules/video-selfie/videoSelfieRecordingActor.d.ts
@@ -1,5 +1,5 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-Do9V2eMX.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-DoygBzUq.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-DLQ0g4-R.esm.js";
@@ -7,7 +7,7 @@ import { c as createManager, o as createActor, r as assign, t as setup } from ".
7
7
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
9
9
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
10
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-bMkSjnEw.esm.js";
10
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-DtFYhiCI.esm.js";
11
11
  import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
12
12
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
13
13
  import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
@@ -699,6 +699,22 @@ function detectionStatusFromEvent(event) {
699
699
  function detectionErrorFromEvent(event) {
700
700
  return event.error;
701
701
  }
702
+ const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
703
+ function waitForDwell(ms, signal) {
704
+ const timerProvider = BrowserTimerProvider.getInstance();
705
+ return new Promise((resolve) => {
706
+ const onAbort = () => {
707
+ timerProvider.clearTimeout(timer);
708
+ resolve(false);
709
+ };
710
+ const timer = timerProvider.setTimeout(() => {
711
+ signal.removeEventListener("abort", onAbort);
712
+ resolve(true);
713
+ }, ms);
714
+ signal.addEventListener("abort", onAbort, { once: true });
715
+ if (signal.aborted) onAbort();
716
+ });
717
+ }
702
718
  /**
703
719
  * Orchestrates a multi-step Video Selfie session as ONE continuous recording
704
720
  * that follows the camera between steps AND auto-advances per step:
@@ -733,6 +749,23 @@ const videoSelfieRecordingSetup = setup({
733
749
  }
734
750
  return stream;
735
751
  }),
752
+ switchCamera: fromPromise(async ({ input, signal }) => {
753
+ const dwellCompleted = waitForDwell(input.minDwellMs, signal);
754
+ const stream = await input.acquire(input.facingMode, false);
755
+ if (signal.aborted) {
756
+ stream.getTracks().forEach((track) => track.stop());
757
+ throw new Error("Camera switch cancelled");
758
+ }
759
+ if (!await dwellCompleted) {
760
+ stream.getTracks().forEach((track) => track.stop());
761
+ throw new Error("Camera switch cancelled");
762
+ }
763
+ if (signal.aborted) {
764
+ stream.getTracks().forEach((track) => track.stop());
765
+ throw new Error("Camera switch cancelled");
766
+ }
767
+ return stream;
768
+ }),
736
769
  startRecording: fromPromise(async ({ input }) => {
737
770
  await input.service.start(input.stream);
738
771
  }),
@@ -809,7 +842,8 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
809
842
  detectionStatus: void 0,
810
843
  detectionError: void 0,
811
844
  recordingId: null,
812
- error: void 0
845
+ error: void 0,
846
+ switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS
813
847
  }),
814
848
  on: { ABORT: { target: ".aborted" } },
815
849
  states: {
@@ -868,11 +902,11 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
868
902
  }
869
903
  },
870
904
  switchingCamera: { invoke: {
871
- src: "acquireCamera",
905
+ src: "switchCamera",
872
906
  input: ({ context }) => ({
873
907
  acquire: context.acquireCamera,
874
908
  facingMode: facingModeForStep(context.steps[context.stepIndex]),
875
- withAudio: false
909
+ minDwellMs: context.switchingCameraMinDwellMs
876
910
  }),
877
911
  onDone: {
878
912
  target: "recording",
package/dist/wasm.esm.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-Do9V2eMX.esm.js";
2
+ import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-DoygBzUq.esm.js";
3
3
  export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
@@ -320,10 +320,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
320
320
  id: string | undefined;
321
321
  };
322
322
  }>, Values<{
323
- setError: {
324
- type: "setError";
325
- params: NonReducibleUnknown;
326
- };
327
323
  setLoadingResult: {
328
324
  type: "setLoadingResult";
329
325
  params: NonReducibleUnknown;
@@ -352,6 +348,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
352
348
  type: "setFinishStatusFailed";
353
349
  params: NonReducibleUnknown;
354
350
  };
351
+ setError: {
352
+ type: "setError";
353
+ params: NonReducibleUnknown;
354
+ };
355
355
  setModuleError: {
356
356
  type: "setModuleError";
357
357
  params: NonReducibleUnknown;
@@ -1,25 +1,25 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
3
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
4
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-bJXy8nBC.esm.js";
4
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CSKqpdKw.esm.js";
5
5
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
8
8
  import { n as electronicSignatureMachine } from "./electronicSignatureManager-DSZu9OHT.esm.js";
9
9
  import "./ae-signature.esm.js";
10
10
  import { t as antifraudMachine } from "./antifraudStateMachine-Bf-IiCq7.esm.js";
11
- import { t as authenticationMachine } from "./authenticationStateMachine-BHDR91Bt.esm.js";
11
+ import { t as authenticationMachine } from "./authenticationStateMachine-BvaI9u5k.esm.js";
12
12
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Ce568YfR.esm.js";
13
13
  import { t as consentMachine } from "./consentStateMachine-Pc3Ez3mV.esm.js";
14
14
  import { t as curpValidationMachine } from "./curpValidationStateMachine-7i3TD8J2.esm.js";
15
15
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D23XTxl2.esm.js";
16
16
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
17
17
  import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
18
- import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-BS2Lk7wc.esm.js";
18
+ import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-DgvXRzv4.esm.js";
19
19
  import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
20
20
  import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
21
- import { t as selfieMachine } from "./selfieStateMachine-n1wz3DyM.esm.js";
22
- import { t as idCaptureMachine } from "./idCaptureStateMachine-BmWTK_71.esm.js";
21
+ import { t as selfieMachine } from "./selfieStateMachine-UkyBCYne.esm.js";
22
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-B8SEdOB3.esm.js";
23
23
  import { t as phoneMachine } from "./phoneStateMachine-wDQtaT38.esm.js";
24
24
  import { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
25
25
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BN4Obfl7.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260715-a93e8b97",
3
+ "version": "0.0.0-dev-20260716-5050af5d",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -272,10 +272,10 @@
272
272
  "@zxing/browser": "0.1.5"
273
273
  },
274
274
  "devDependencies": {
275
- "@vitest/coverage-v8": "^4.0.13",
275
+ "@vitest/coverage-v8": "4.1.4",
276
276
  "tsdown": "^0.22.8",
277
277
  "typescript": "^5.9.3",
278
- "vitest": "^4.0.13",
278
+ "vitest": "4.1.4",
279
279
  "@incodetech/config": "1.0.2",
280
280
  "@incodetech/infra": "1.2.0"
281
281
  },
@@ -1 +0,0 @@
1
- import "./sessionInitializer-bJXy8nBC.esm.js";