@incodetech/core 2.5.0-rc.2 → 2.5.0-rc.4

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 (88) hide show
  1. package/dist/{CameraCompositor-ppyMYVoY.esm.js → CameraCompositor-BAP_KRUT.esm.js} +54 -0
  2. package/dist/{FaceDetectionProvider-YoIHxNx5.esm.js → FaceDetectionProvider-klK6EFg6.esm.js} +5 -5
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-Xv7JYZ3O.esm.js → apiError-DRsBE3CK.esm.js} +1 -1
  5. package/dist/authentication.d.ts +3 -3
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-d2xl-T17.esm.js → authenticationManager-CyvlBPdd.esm.js} +3 -3
  8. package/dist/{authenticationManager-CFHIObef.d.ts → authenticationManager-DWFnFadt.d.ts} +1 -1
  9. package/dist/{authenticationStateMachine-DGPj6Ulz.esm.js → authenticationStateMachine-DlzoWoU4.esm.js} +3 -3
  10. package/dist/{backCameraStream-DS1oDiUq.esm.js → backCameraStream-Bn9Z5wM5.esm.js} +1 -1
  11. package/dist/{camera-E_Kcre4O.esm.js → camera-wzsqfd3B.esm.js} +9 -1
  12. package/dist/camera.d.ts +2 -2
  13. package/dist/camera.esm.js +1 -1
  14. package/dist/{deepsightLoader-DntM8kzo.esm.js → deepsightLoader-JqZ_BHU4.esm.js} +3 -3
  15. package/dist/{desktopCameraElection-ByUXdW6A.esm.js → desktopCameraElection-q3cVTQ6a.esm.js} +19 -7
  16. package/dist/document-capture.d.ts +1 -1
  17. package/dist/document-capture.esm.js +2 -2
  18. package/dist/{documentCaptureManager-CoGcEiMK.d.ts → documentCaptureManager-BZBmcOKI.d.ts} +1 -1
  19. package/dist/{documentCaptureManager-C9g-btPN.esm.js → documentCaptureManager-D5oiXpwG.esm.js} +1 -1
  20. package/dist/{documentCaptureStateMachine-B0b1h_GT.esm.js → documentCaptureStateMachine-zyJcTCBx.esm.js} +4 -4
  21. package/dist/dynamic-forms.esm.js +2 -2
  22. package/dist/{dynamicFormsManager-CL92Vbti.esm.js → dynamicFormsManager-CrQe8JpB.esm.js} +1 -1
  23. package/dist/{dynamicFormsStateMachine-BmQ4sn39.esm.js → dynamicFormsStateMachine-BbQk7qGH.esm.js} +1 -1
  24. package/dist/ekyb.esm.js +2 -2
  25. package/dist/{ekybManager-BvXwvkPc.esm.js → ekybManager-CMr6x_1w.esm.js} +1 -1
  26. package/dist/{ekybStateMachine-DR5nY0Eq.esm.js → ekybStateMachine-CmrEOQpf.esm.js} +1 -1
  27. package/dist/ekyc-prefill.d.ts +1 -1
  28. package/dist/ekyc-prefill.esm.js +2 -2
  29. package/dist/{ekycPrefillManager-BQ_KKUv5.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +29 -29
  30. package/dist/{ekycPrefillManager-nWDA9LF6.esm.js → ekycPrefillManager-D4e5zKJO.esm.js} +1 -1
  31. package/dist/{ekycPrefillStateMachine-ZdRWr7rY.esm.js → ekycPrefillStateMachine-C5lP7aBp.esm.js} +1 -1
  32. package/dist/electronic-signature.esm.js +1 -1
  33. package/dist/{electronicSignatureManager-C6AccKC1.esm.js → electronicSignatureManager-BP-va382.esm.js} +1 -1
  34. package/dist/extensibility.d.ts +5 -5
  35. package/dist/extensibility.esm.js +14 -14
  36. package/dist/{faceCaptureManagerFactory-DqDNQb8X.d.ts → faceCaptureManagerFactory-DLFzd1nq.d.ts} +2 -2
  37. package/dist/{faceCaptureManagerFactory-Jd6ee8Tc.esm.js → faceCaptureManagerFactory-kFzpFeWi.esm.js} +2 -2
  38. package/dist/{faceCaptureSetup-Bj-gQdm4.esm.js → faceCaptureSetup-CpnjQFgi.esm.js} +21 -10
  39. package/dist/{feature-management-q3FudL5-.esm.js → feature-management-CxMEynqK.esm.js} +3 -2
  40. package/dist/feature-management.esm.js +1 -1
  41. package/dist/fiscal-qr.esm.js +1 -1
  42. package/dist/{fiscalQrManager-D4G-4xKE.esm.js → fiscalQrManager-2ZBUw08-.esm.js} +2 -2
  43. package/dist/flow.d.ts +1 -1
  44. package/dist/flow.esm.js +3 -3
  45. package/dist/{flowCompletionService-BBSNBh4t.esm.js → flowCompletionService-HyLrcPyI.esm.js} +1 -1
  46. package/dist/{flowServices-vTnxn4j6.esm.js → flowServices-DB-8bIC3.esm.js} +6 -5
  47. package/dist/geolocation.esm.js +2 -2
  48. package/dist/{geolocationManager-Bjn6updp.esm.js → geolocationManager-Bg_D9126.esm.js} +1 -1
  49. package/dist/{geolocationStateMachine-CbRzb7eI.esm.js → geolocationStateMachine-DYwyH9H5.esm.js} +1 -1
  50. package/dist/id-selfie-flow.d.ts +1 -1
  51. package/dist/id-selfie-flow.esm.js +7 -7
  52. package/dist/id.esm.js +3 -3
  53. package/dist/{idCaptureManager-wbzfGVKi.esm.js → idCaptureManager-B-r13aBN.esm.js} +5 -5
  54. package/dist/{idCaptureServices-CoqKecdG.esm.js → idCaptureServices-BUtcpwTU.esm.js} +6 -5
  55. package/dist/{idCaptureStateMachine-DcqkRLVj.esm.js → idCaptureStateMachine-qK87MsJV.esm.js} +22 -12
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.esm.js +1 -1
  58. package/dist/kyb-checks.esm.js +2 -2
  59. package/dist/{kybChecksManager-VCLYYSqj.esm.js → kybChecksManager-C-tMl9v-.esm.js} +1 -1
  60. package/dist/{kybChecksStateMachine-Bu_aDC8f.esm.js → kybChecksStateMachine-B8HBo4Sr.esm.js} +1 -1
  61. package/dist/{permissionGuards-DoAed6-z.esm.js → permissionGuards-CR0Z10rU.esm.js} +1 -1
  62. package/dist/{permissionServices-Ex5xc1h7.esm.js → permissionServices-BMQItC9y.esm.js} +6 -3
  63. package/dist/qe-signature.esm.js +1 -1
  64. package/dist/{recordingService-DxiwS8TV.esm.js → recordingService-yptkVJTO.esm.js} +3 -2
  65. package/dist/{runChildModule-DueLi8nh.esm.js → runChildModule-BfKUYITn.esm.js} +1 -1
  66. package/dist/{sdkVersion-BK9SMxvn.esm.js → sdkVersion-WUghPvAM.esm.js} +1 -1
  67. package/dist/selfie.d.ts +3 -3
  68. package/dist/selfie.esm.js +7 -7
  69. package/dist/{selfieErrorUtils-2Qy1MzfU.esm.js → selfieErrorUtils-CDEXv09U.esm.js} +1 -1
  70. package/dist/{selfieManager-Up8d42qB.esm.js → selfieManager-CESXppTr.esm.js} +3 -3
  71. package/dist/{selfieManager-Btqla0Id.d.ts → selfieManager-CvWeyYup.d.ts} +1 -1
  72. package/dist/{selfieStateMachine-DBLajsnI.esm.js → selfieStateMachine-DTgmC86l.esm.js} +3 -3
  73. package/dist/{session-B_MnhDlJ.esm.js → session-BsnIw7oQ.esm.js} +3 -3
  74. package/dist/session.esm.js +4 -4
  75. package/dist/{sessionInitializer-CYM32Wsm.esm.js → sessionInitializer-6OS932zX.esm.js} +3 -3
  76. package/dist/{setup-Cmyufbm0.esm.js → setup-DpNKrn3K.esm.js} +4 -4
  77. package/dist/{setup-DpOr8H_l.d.ts → setup-O-JVSYKa.d.ts} +4 -3
  78. package/dist/{trueSightService-DLp63zbA.esm.js → trueSightService-N_y4mTc3.esm.js} +1 -1
  79. package/dist/{types-CoAp9UmW.d.ts → types-BRmwbyAu.d.ts} +2 -0
  80. package/dist/{types-BxLFoqzR.d.ts → types-Bc1-m6MR.d.ts} +1 -1
  81. package/dist/video-selfie.d.ts +1 -1
  82. package/dist/video-selfie.esm.js +4 -4
  83. package/dist/{videoSelfieCameraWarmer-CMPUd3VM.esm.js → videoSelfieCameraWarmer-CsIqHijy.esm.js} +6 -6
  84. package/dist/{videoSelfieStepDetector-VJFqUQmL.d.ts → videoSelfieStepDetector-DStjqQQm.d.ts} +14 -1
  85. package/dist/wasm.d.ts +1 -1
  86. package/dist/wasm.esm.js +1 -1
  87. package/dist/workflow.esm.js +16 -16
  88. package/package.json +1 -1
@@ -5,25 +5,25 @@ import "./Actor-DqjOqDfU.js";
5
5
  import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
6
6
  import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-5tYz-a4o.js";
7
7
  import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BxfCsyA7.js";
8
- import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-DqDNQb8X.js";
8
+ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-DLFzd1nq.js";
9
9
  import "./createFaceAvatar-BimBTONm.js";
10
10
  import { a as IStorageCapability } from "./IWasmUtilCapability-XcOtT1TP.js";
11
11
  import "./StreamCanvasCapture-Y6cQ0Y4s.js";
12
12
  import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-DBVw9Etw.js";
13
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CFHIObef.js";
13
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DWFnFadt.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-BcYhxO63.js";
15
15
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Duzd8paN.js";
16
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
17
17
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Ci2iVuog.js";
18
18
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CdWTbsew.js";
19
19
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-lJrveDS4.js";
20
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CoGcEiMK.js";
20
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-BZBmcOKI.js";
21
21
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C45pTncO.js";
22
22
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BflWuTe4.js";
23
- import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-BQ_KKUv5.js";
23
+ import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-BcLhkpp8.js";
24
24
  import { i as createEkycManagerFromActor, n as EkycState, o as EkycActor, t as EkycManager } from "./ekycManager-BKVQazAb.js";
25
25
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-pM7ZPuMa.js";
26
- import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Btqla0Id.js";
26
+ import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CvWeyYup.js";
27
27
  import { i as CaptureIdResponse } from "./types-CYrtpEe5.js";
28
28
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-VO1HEoUZ.js";
29
29
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DQq4GxBO.js";
@@ -1,26 +1,26 @@
1
- import { u as BrowserStorageProvider } from "./setup-Cmyufbm0.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-DpNKrn3K.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
3
- import { x as getDeviceFingerprintInfo, y as getFingerprint } from "./sessionInitializer-CYM32Wsm.esm.js";
3
+ import { x as getDeviceFingerprintInfo, y as getFingerprint } from "./sessionInitializer-6OS932zX.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-C6AccKC1.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BP-va382.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-DKNOi9-z.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-Bj-gQdm4.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-d2xl-T17.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CpnjQFgi.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CyvlBPdd.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-DaUklfNj.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-BPocwpm2.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-BfA29Aji.esm.js";
13
13
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-CbvBDoE1.esm.js";
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BRqSCR9R.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-Bd1ooIDB.esm.js";
16
- import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-C9g-btPN.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CL92Vbti.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-BvXwvkPc.esm.js";
16
+ import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-D5oiXpwG.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CrQe8JpB.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-CMr6x_1w.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-nRT0rxei.esm.js";
20
- import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-nWDA9LF6.esm.js";
20
+ import { n as createEkycPrefillManagerFromActor } from "./ekycPrefillManager-D4e5zKJO.esm.js";
21
21
  import { n as createEmailManagerFromActor } from "./emailManager-Co4jarT1.esm.js";
22
- import { n as createSelfieManagerFromActor } from "./selfieManager-Up8d42qB.esm.js";
23
- import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-wbzfGVKi.esm.js";
22
+ import { n as createSelfieManagerFromActor } from "./selfieManager-CESXppTr.esm.js";
23
+ import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-B-r13aBN.esm.js";
24
24
  import { n as createPhoneManagerFromActor } from "./phoneManager-rA7updqF.esm.js";
25
25
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-BDaVjzLW.esm.js";
26
26
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-BH6M4kqA.esm.js";
@@ -30,10 +30,10 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
30
30
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-im7VfJQi.esm.js";
31
31
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DjsEtWLq.esm.js";
32
32
  import { n as createSignatureManagerFromActor } from "./signatureManager-BgAja97K.esm.js";
33
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-Bjn6updp.esm.js";
33
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-Bg_D9126.esm.js";
34
34
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-6JQQkzha.esm.js";
35
35
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-PMGM4hXY.esm.js";
36
36
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-CGmNGbov.esm.js";
37
- import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-D4G-4xKE.esm.js";
38
- import { n as createKybChecksManagerFromActor } from "./kybChecksManager-VCLYYSqj.esm.js";
37
+ import { n as createFiscalQrManagerFromActor } from "./fiscalQrManager-2ZBUw08-.esm.js";
38
+ import { n as createKybChecksManagerFromActor } from "./kybChecksManager-C-tMl9v-.esm.js";
39
39
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createCertificateIssuanceManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createCustomFieldsManagerFromActor, createCustomWatchlistManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEkycPrefillManagerFromActor, createElectronicSignatureManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createFiscalQrManagerFromActor, createGeolocationManagerFromActor, createGovernmentValidationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createKybChecksManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createSignatureManagerFromActor, createWatchlistForBusinessManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
@@ -8,8 +8,8 @@ import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDe
8
8
  import { i as FlowModuleConfig } from "./types-Ddc4Tr_f.js";
9
9
  import "./IWasmUtilCapability-XcOtT1TP.js";
10
10
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
11
- import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-CoAp9UmW.js";
12
- import { t as AuthenticationConfig } from "./types-BxLFoqzR.js";
11
+ import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-BRmwbyAu.js";
12
+ import { t as AuthenticationConfig } from "./types-Bc1-m6MR.js";
13
13
  import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
14
14
  import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-Y6cQ0Y4s.js";
15
15
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
@@ -3,10 +3,10 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
5
5
  import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
6
- import { r as concealmentToAvatar } from "./faceCaptureSetup-Bj-gQdm4.esm.js";
6
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-CpnjQFgi.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
8
8
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
9
- import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Ex5xc1h7.esm.js";
9
+ import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BMQItC9y.esm.js";
10
10
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
11
11
  function getPermissionStatus(snapshot) {
12
12
  if (!snapshot.matches("permissions")) return;
@@ -1,18 +1,18 @@
1
1
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  import { r as getToken } from "./api-CZpuJuZl.esm.js";
3
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-DLp63zbA.esm.js";
4
- import "./sessionInitializer-CYM32Wsm.esm.js";
3
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-N_y4mTc3.esm.js";
4
+ import "./sessionInitializer-6OS932zX.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
6
6
  import { c as isIPhone14OrHigher } from "./platform-aPh7gTWh.esm.js";
7
7
  import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
9
- import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
10
- import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Ex5xc1h7.esm.js";
11
- import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-YoIHxNx5.esm.js";
12
- import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-ByUXdW6A.esm.js";
9
+ import { c as isCameraDenialErrorName } from "./camera-wzsqfd3B.esm.js";
10
+ import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BMQItC9y.esm.js";
11
+ import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-klK6EFg6.esm.js";
12
+ import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-q3cVTQ6a.esm.js";
13
13
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
14
14
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
15
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DoAed6-z.esm.js";
15
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-CR0Z10rU.esm.js";
16
16
  import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
17
17
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
18
18
  //#region src/internal/avatar/concealment.ts
@@ -73,6 +73,15 @@ function logFaceCameraDiagnostic(event, fields) {
73
73
  //#region src/internal/faceCapture/protectedFaceAttempt.ts
74
74
  const ON_DEVICE_MANUAL_CAPTURE_TIMEOUT_MS = 2147483647;
75
75
  /**
76
+ * Merged session recordings carry sound, as in SDK 1. Only for the uploaded
77
+ * session recording (`createRecordingService`'s multipart branch): local and
78
+ * video-liveness recordings stay video-only. The permission step reads it too,
79
+ * so camera and mic are asked in one prompt.
80
+ */
81
+ function requestsFaceSessionAudio(config) {
82
+ return config.mergeSessionRecordings === true && config.enableFaceRecording === true && config.onDeviceFaceResultsSubmissionEnabled !== true && config.deepsightLiveness !== "VIDEOLIVENESS";
83
+ }
84
+ /**
76
85
  * Recorder hooks for one protected face attempt.
77
86
  *
78
87
  * The recording service comes from the owner of the capture step (the face
@@ -181,7 +190,7 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
181
190
  /** Per-attempt fallback when no step owner supplies the recording service. */
182
191
  async createAttemptRecordingService() {
183
192
  const wasmUtil = await this.options.dependencies.getWasmUtil();
184
- return (await import("./recordingService-DxiwS8TV.esm.js")).createRecordingService({
193
+ return (await import("./recordingService-yptkVJTO.esm.js")).createRecordingService({
185
194
  config: this.options.config,
186
195
  wasmUtil,
187
196
  sessionToken: getToken(),
@@ -236,6 +245,7 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
236
245
  },
237
246
  cycle: this.options.cycle,
238
247
  cycleOwnership: this.cycleOwnership,
248
+ recordAudio: this.options.delivery === "protected" && requestsFaceSessionAudio(this.options.config),
239
249
  recorder: this.recorder,
240
250
  afterReady: this.options.delivery === "protected" ? (displayStream) => this.attachProtectedCameraMetadata(displayStream) : void 0,
241
251
  configureWorkflow: () => this.configureWorkflow(),
@@ -479,7 +489,7 @@ function createProtectedFaceControllerActor(options) {
479
489
  const input = getControllerInput();
480
490
  const pending = (async () => {
481
491
  const wasmUtil = await input.dependencies.getWasmUtil();
482
- const recordingModule = await import("./recordingService-DxiwS8TV.esm.js");
492
+ const recordingModule = await import("./recordingService-yptkVJTO.esm.js");
483
493
  if (!active) return;
484
494
  stepRecording ??= recordingModule.createRecordingService({
485
495
  config: input.config,
@@ -1378,7 +1388,8 @@ const faceCaptureMachine = setup({
1378
1388
  src: "requestPermission",
1379
1389
  input: ({ context }) => ({
1380
1390
  permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
1381
- requestMotionPermission: context.config.ds === true
1391
+ requestMotionPermission: context.config.ds === true,
1392
+ requestAudio: requestsFaceSessionAudio(context.config)
1382
1393
  }),
1383
1394
  onDone: [
1384
1395
  {
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { t as SDK_VERSION } from "./sdkVersion-BK9SMxvn.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-WUghPvAM.esm.js";
3
3
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
4
4
  let currentEnvironment;
5
5
  /** Effective tier: the explicitly-set value, else the default (see note above). */
@@ -499,7 +499,8 @@ function buildInitializeOptions(options) {
499
499
  if (options.clientExperimentId) initializeOptions.customIDs = { client_experiment_id: options.clientExperimentId };
500
500
  initializeOptions.custom = {
501
501
  ...options.custom,
502
- sdkVersion: SDK_VERSION
502
+ sdk_name: "web_v2",
503
+ sdk_version: SDK_VERSION
503
504
  };
504
505
  if (options.appVersion) initializeOptions.appVersion = options.appVersion;
505
506
  if (options.redactedUserInfo) initializeOptions.redactedUserInfo = options.redactedUserInfo;
@@ -1,2 +1,2 @@
1
- import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-q3FudL5-.esm.js";
1
+ import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-CxMEynqK.esm.js";
2
2
  export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
@@ -1,2 +1,2 @@
1
- import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-D4G-4xKE.esm.js";
1
+ import { n as createFiscalQrManagerFromActor, r as fiscalQrMachine, t as createFiscalQrManager } from "./fiscalQrManager-2ZBUw08-.esm.js";
2
2
  export { createFiscalQrManager, createFiscalQrManagerFromActor, fiscalQrMachine };
@@ -5,8 +5,8 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
5
5
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
6
  import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
7
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
- import { a as stopCameraStream } from "./camera-E_Kcre4O.esm.js";
9
- import { n as getBackCameraStream } from "./backCameraStream-DS1oDiUq.esm.js";
8
+ import { a as stopCameraStream } from "./camera-wzsqfd3B.esm.js";
9
+ import { n as getBackCameraStream } from "./backCameraStream-Bn9Z5wM5.esm.js";
10
10
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
11
11
  import "./http.esm.js";
12
12
  //#region src/modules/fiscal-qr/fiscalQrConstants.ts
package/dist/flow.d.ts CHANGED
@@ -5,7 +5,7 @@ import { t as Manager } from "./Manager-DufwKlav.js";
5
5
  import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
6
6
  import { t as EkycConfig } from "./types-DEa3taWc.js";
7
7
  import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-Ddc4Tr_f.js";
8
- import { t as AuthenticationConfig } from "./types-BxLFoqzR.js";
8
+ import { t as AuthenticationConfig } from "./types-Bc1-m6MR.js";
9
9
  import { r as DocumentCaptureConfig } from "./types-CyNndVAT.js";
10
10
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
11
11
  import { t as EkybConfig } from "./types-BgRHw-dR.js";
package/dist/flow.esm.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-DYYMdAGv.esm.js";
2
2
  import "./events-CP3yOzAl.esm.js";
3
3
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
4
- import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-vTnxn4j6.esm.js";
4
+ import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-DB-8bIC3.esm.js";
5
5
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
6
  import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
- import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-BBSNBh4t.esm.js";
9
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DueLi8nh.esm.js";
8
+ import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-HyLrcPyI.esm.js";
9
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BfKUYITn.esm.js";
10
10
  import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
11
11
  //#region src/modules/flow/noOpFlowModuleMachine.ts
12
12
  const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
- import { i as toIncodeApiError } from "./apiError-Xv7JYZ3O.esm.js";
2
+ import { i as toIncodeApiError } from "./apiError-DRsBE3CK.esm.js";
3
3
  //#region src/modules/flow/flowCompletionService.ts
4
4
  const getFinishStatus = async (flowId, signal) => {
5
5
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,10 +1,10 @@
1
1
  import { r as getWasmStatus } from "./warmup-BZOMg303.esm.js";
2
2
  import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
3
3
  import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
4
- import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-CYM32Wsm.esm.js";
5
- import { E as updateFeatureManagementUser } from "./feature-management-q3FudL5-.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-Xv7JYZ3O.esm.js";
7
- import "./session-B_MnhDlJ.esm.js";
4
+ import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-6OS932zX.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-CxMEynqK.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-DRsBE3CK.esm.js";
7
+ import "./session-BsnIw7oQ.esm.js";
8
8
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
9
9
  import { a as prefetchStartInfo } from "./phoneServices-CFXcwCFr.esm.js";
10
10
  //#region src/modules/flow/dashboardConfig.ts
@@ -241,7 +241,8 @@ function enrichFlowModuleConfig(module, flow) {
241
241
  };
242
242
  if (module.key === "ID" || module.key === "TUTORIAL_ID" || module.key === "SECOND_ID" || module.key === "SELFIE") return {
243
243
  ...config,
244
- ageAssurance: config.ageAssurance ?? flow.ageAssurance
244
+ ageAssurance: config.ageAssurance ?? flow.ageAssurance,
245
+ mergeSessionRecordings: config.mergeSessionRecordings ?? flow.mergeSessionRecordings
245
246
  };
246
247
  return config;
247
248
  }
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-Bjn6updp.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-CbRzb7eI.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-Bg_D9126.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-DYwyH9H5.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
2
2
  import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
3
3
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
5
- import { t as geolocationMachine } from "./geolocationStateMachine-CbRzb7eI.esm.js";
5
+ import { t as geolocationMachine } from "./geolocationStateMachine-DYwyH9H5.esm.js";
6
6
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
7
7
  var BrowserGeolocationProvider = class {
8
8
  getCurrentPosition() {
@@ -1,6 +1,6 @@
1
1
  import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
2
  import { a as isIOS, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
3
- import { n as isConnectivityError } from "./apiError-Xv7JYZ3O.esm.js";
3
+ import { n as isConnectivityError } from "./apiError-DRsBE3CK.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
6
6
  import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
@@ -5,7 +5,7 @@ import "./Actor-DqjOqDfU.js";
5
5
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
6
6
  import { t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
7
7
  import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
8
- import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-VJFqUQmL.js";
8
+ import { a as FacingMode, c as VideoSelfieStep, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, t as StepDetector } from "./videoSelfieStepDetector-DStjqQQm.js";
9
9
  //#region src/modules/id-selfie-flow/types.d.ts
10
10
  /**
11
11
  * The capture steps an ID + Selfie flow session can run, in flow order. A
@@ -1,19 +1,19 @@
1
- import { t as ensureWasmPipelines } from "./setup-Cmyufbm0.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-DpNKrn3K.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-vTnxn4j6.esm.js";
4
+ import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-DB-8bIC3.esm.js";
5
5
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
6
6
  import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
7
7
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
8
- import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-YoIHxNx5.esm.js";
8
+ import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-klK6EFg6.esm.js";
9
9
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
10
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
11
11
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CRn9jT4K.esm.js";
12
- import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-CoqKecdG.esm.js";
12
+ import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-BUtcpwTU.esm.js";
13
13
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
14
- import { r as getFinishStatus } from "./flowCompletionService-BBSNBh4t.esm.js";
15
- import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CMPUd3VM.esm.js";
16
- import { t as CameraCompositor } from "./CameraCompositor-ppyMYVoY.esm.js";
14
+ import { r as getFinishStatus } from "./flowCompletionService-HyLrcPyI.esm.js";
15
+ import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CsIqHijy.esm.js";
16
+ import { t as CameraCompositor } from "./CameraCompositor-BAP_KRUT.esm.js";
17
17
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
18
18
  /** Default autocapture window for the selfie step. */
19
19
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-DcqkRLVj.esm.js";
2
- import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-wbzfGVKi.esm.js";
3
- import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-CoqKecdG.esm.js";
1
+ import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-qK87MsJV.esm.js";
2
+ import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B-r13aBN.esm.js";
3
+ import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-BUtcpwTU.esm.js";
4
4
  //#region src/modules/id/deviceWallet/deviceWalletErrors.ts
5
5
  /**
6
6
  * Fail reason → i18n key for the device-wallet error screen (same shape as
@@ -1,4 +1,4 @@
1
- import { u as BrowserStorageProvider } from "./setup-Cmyufbm0.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-DpNKrn3K.esm.js";
2
2
  import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
3
3
  import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
4
4
  import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
@@ -9,10 +9,10 @@ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
9
9
  import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
10
10
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
11
11
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
12
- import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Ex5xc1h7.esm.js";
12
+ import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BMQItC9y.esm.js";
13
13
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
14
- import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-DcqkRLVj.esm.js";
15
- import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-CoqKecdG.esm.js";
14
+ import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-qK87MsJV.esm.js";
15
+ import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BUtcpwTU.esm.js";
16
16
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-lXP41N7b.esm.js";
17
17
  //#region src/modules/id/digitalUpload/instrumentation.ts
18
18
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1133,7 +1133,7 @@ function createIdCaptureOnlyManager(options) {
1133
1133
  * (see `createIdCaptureOnlyManager`): no backend, images go to `onCapture`.
1134
1134
  */
1135
1135
  function createIdCaptureManager(options) {
1136
- import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t).catch(() => void 0);
1136
+ import("./backCameraStream-Bn9Z5wM5.esm.js").then((n) => n.t).catch(() => void 0);
1137
1137
  if (hasOnCaptureCallback(options.config)) return createIdCaptureOnlyManager({
1138
1138
  config: pickIdCaptureOnlyConfig(options.config),
1139
1139
  dependencies: options.dependencies
@@ -1,13 +1,13 @@
1
- import { t as ensureWasmPipelines } from "./setup-Cmyufbm0.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-DpNKrn3K.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
3
- import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-q3FudL5-.esm.js";
3
+ import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CxMEynqK.esm.js";
4
4
  import { i as isDesktop } from "./platform-aPh7gTWh.esm.js";
5
5
  import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
7
7
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CRn9jT4K.esm.js";
8
8
  //#region src/modules/id/idCameraStream.ts
9
9
  async function getIdCameraStream(deviceId) {
10
- return (await import("./backCameraStream-DS1oDiUq.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
10
+ return (await import("./backCameraStream-Bn9Z5wM5.esm.js").then((n) => n.t)).getBackCameraStream(deviceId);
11
11
  }
12
12
  //#endregion
13
13
  //#region src/modules/id/idCaptureExperiments.ts
@@ -422,7 +422,7 @@ async function startRecordingSession(params) {
422
422
  const multipartSession = multipartIdSessions.get(params.existing);
423
423
  if (multipartSession?.needsVideoSourceReplacement) {
424
424
  const recordingSource = params.stream.clone();
425
- recordingSource.getAudioTracks().forEach((track) => track.stop());
425
+ multipartSession.compositor.switchAudio(recordingSource);
426
426
  multipartSession.compositor.switchVideo(recordingSource);
427
427
  multipartSession.needsVideoSourceReplacement = false;
428
428
  multipartSession.recordingSource = recordingSource;
@@ -434,7 +434,7 @@ async function startRecordingSession(params) {
434
434
  return params.existing;
435
435
  }
436
436
  const [compositorModule, recorderModule, serviceModule] = await Promise.all([
437
- import("./CameraCompositor-ppyMYVoY.esm.js").then((n) => n.n),
437
+ import("./CameraCompositor-BAP_KRUT.esm.js").then((n) => n.n),
438
438
  import("./WorkerEncoderRecordingProvider-CsDED9UU.esm.js").then((n) => n.n),
439
439
  import("./multipartRecordingService-WgK8ieRI.esm.js").then((n) => n.n)
440
440
  ]);
@@ -501,6 +501,7 @@ function releaseCameraClone(multipartSession, options) {
501
501
  for (const track of tracks) try {
502
502
  track.stop();
503
503
  } catch {}
504
+ if (options.keepAudio) multipartSession.compositor.releaseAudio();
504
505
  }
505
506
  /**
506
507
  * Completes an ID recording: drains the multipart upload and releases the
@@ -1,25 +1,25 @@
1
1
  import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
- import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-Cmyufbm0.esm.js";
2
+ import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-DpNKrn3K.esm.js";
3
3
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
4
4
  import { n as eventModuleNames, v as addEvent } from "./types-DYYMdAGv.esm.js";
5
5
  import { r as getToken, t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
6
6
  import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
7
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-DLp63zbA.esm.js";
8
- import { n as getDisableIpify } from "./sessionInitializer-CYM32Wsm.esm.js";
7
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-N_y4mTc3.esm.js";
8
+ import { n as getDisableIpify } from "./sessionInitializer-6OS932zX.esm.js";
9
9
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
10
- import { s as exposeExperimentOnce } from "./feature-management-q3FudL5-.esm.js";
10
+ import { s as exposeExperimentOnce } from "./feature-management-CxMEynqK.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
12
12
  import { a as isIOS, c as isIPhone14OrHigher, f as isSamsungDevice, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-aPh7gTWh.esm.js";
13
- import "./session-B_MnhDlJ.esm.js";
13
+ import "./session-BsnIw7oQ.esm.js";
14
14
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
15
15
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
16
16
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
17
17
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-eYiyWjh0.esm.js";
18
- import { s as isCameraDenialErrorName } from "./camera-E_Kcre4O.esm.js";
19
- import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-Ex5xc1h7.esm.js";
20
- import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-ByUXdW6A.esm.js";
18
+ import { c as isCameraDenialErrorName } from "./camera-wzsqfd3B.esm.js";
19
+ import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-BMQItC9y.esm.js";
20
+ import { i as cameraCycleProvider, n as createCameraCycleOwnership, o as flagIdManualReview, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-q3cVTQ6a.esm.js";
21
21
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
22
- import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DoAed6-z.esm.js";
22
+ import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-CR0Z10rU.esm.js";
23
23
  import { t as carryAttempts } from "./attemptCarry-BecGGZK8.esm.js";
24
24
  import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
25
25
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
@@ -28,7 +28,7 @@ import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
28
28
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
29
29
  import { t as getDeviceClass } from "./getDeviceClass-DoIWuKI8.esm.js";
30
30
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CRn9jT4K.esm.js";
31
- import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-CoqKecdG.esm.js";
31
+ import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-BUtcpwTU.esm.js";
32
32
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
33
33
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
34
34
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
@@ -2046,7 +2046,7 @@ fromPromise(async ({ input }) => {
2046
2046
  });
2047
2047
  fromPromise(async ({ input }) => {
2048
2048
  if (!input.dependencies) return;
2049
- const { loadDeepsightSession } = await import("./deepsightLoader-DntM8kzo.esm.js");
2049
+ const { loadDeepsightSession } = await import("./deepsightLoader-JqZ_BHU4.esm.js");
2050
2050
  return loadDeepsightSession({
2051
2051
  ds: input.ds,
2052
2052
  storage: input.dependencies.storage,
@@ -2489,7 +2489,7 @@ function cleanup(service) {
2489
2489
  service.cleanup();
2490
2490
  } catch {}
2491
2491
  }
2492
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DntM8kzo.esm.js")).loadDeepsightSession(input)) {
2492
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-JqZ_BHU4.esm.js")).loadDeepsightSession(input)) {
2493
2493
  let disposed = false;
2494
2494
  let preparation;
2495
2495
  let service;
@@ -3409,6 +3409,14 @@ function createProtectedIdCallbackSession(input) {
3409
3409
  }
3410
3410
  };
3411
3411
  }
3412
+ /**
3413
+ * Merged session recordings carry sound, as in SDK 1. Only when the capture
3414
+ * uploads an ID recording. The permission step reads it too, so camera and mic
3415
+ * are asked in one prompt.
3416
+ */
3417
+ function requestsIdSessionAudio(config) {
3418
+ return !hasOnCaptureCallback(config) && config.enableIdRecording === true && config.mergeSessionRecordings === true;
3419
+ }
3412
3420
  function createProtectedIdAttemptInput(input) {
3413
3421
  const { context, controller } = input;
3414
3422
  const provider = controller.getProvider();
@@ -3451,6 +3459,7 @@ function createProtectedIdAttemptInput(input) {
3451
3459
  capturePresentationFrame: () => controller.takeAutoCaptureFrame(),
3452
3460
  cycle: cameraCycleProvider,
3453
3461
  cycleOwnership: controller.getCycleOwnership(),
3462
+ recordAudio: requestsIdSessionAudio(context.config),
3454
3463
  recorder: createProtectedIdRecorderHooks({
3455
3464
  config: context.config,
3456
3465
  currentMode: context.currentMode,
@@ -5144,6 +5153,7 @@ const idCaptureMachine = setup({
5144
5153
  input: ({ context, self }) => ({
5145
5154
  permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
5146
5155
  requestMotionPermission: context.config.ds === true,
5156
+ requestAudio: requestsIdSessionAudio(context.config),
5147
5157
  acceptStream: (value) => getIdProtectedCaptureController(self).storePreAcquiredStream(value)
5148
5158
  }),
5149
5159
  onDone: [
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-DpOr8H_l.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-O-JVSYKa.js";
2
2
  export { type SetupOptions, isConfigured, reset, setup };
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-Cmyufbm0.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-DpNKrn3K.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
- import { t as kybChecksMachine } from "./kybChecksStateMachine-Bu_aDC8f.esm.js";
2
- import { t as createKybChecksManager } from "./kybChecksManager-VCLYYSqj.esm.js";
1
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-B8HBo4Sr.esm.js";
2
+ import { t as createKybChecksManager } from "./kybChecksManager-C-tMl9v-.esm.js";
3
3
  export { createKybChecksManager, kybChecksMachine };
@@ -1,6 +1,6 @@
1
1
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
2
2
  import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
3
- import { t as kybChecksMachine } from "./kybChecksStateMachine-Bu_aDC8f.esm.js";
3
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-B8HBo4Sr.esm.js";
4
4
  //#region src/modules/kyb-checks/kybChecksActor.ts
5
5
  /** Creates and starts a KYB Checks actor, idle until `LOAD`. */
6
6
  function createKybChecksActor(options = {}) {
@@ -1,5 +1,5 @@
1
1
  import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
2
- import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-Xv7JYZ3O.esm.js";
2
+ import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-DRsBE3CK.esm.js";
3
3
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";