@incodetech/core 0.0.0-dev-20261014-e4db9c02 → 0.0.0-dev-20261014-82c6fd33

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 (67) hide show
  1. package/dist/{FaceDetectionProvider-9IwB7jcM.esm.js → FaceDetectionProvider-CjWCKcIu.esm.js} +5 -5
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-CFwIWUtz.esm.js → apiError-DgSftpa0.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-DHrqI5Le.esm.js → authenticationManager--1lefT83.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-CDsC16Jn.esm.js → authenticationStateMachine-AVH_s6--.esm.js} +2 -2
  7. package/dist/{deepsightLoader-CWjI76eb.esm.js → deepsightLoader-Drgk4Jv9.esm.js} +4 -4
  8. package/dist/{deepsightService-Dq_9MGNi.esm.js → deepsightService-xMDI8RDs.esm.js} +1 -1
  9. package/dist/dynamic-forms.esm.js +2 -2
  10. package/dist/{dynamicFormsManager-CCzxliyj.esm.js → dynamicFormsManager-D7wWeNGK.esm.js} +1 -1
  11. package/dist/{dynamicFormsStateMachine-DVbgcw96.esm.js → dynamicFormsStateMachine-9sqWyWLc.esm.js} +1 -1
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybManager-DtdNyCkV.esm.js → ekybManager-DLytGFSA.esm.js} +1 -1
  14. package/dist/{ekybStateMachine-Cd0nGdXM.esm.js → ekybStateMachine-fRzoh4AI.esm.js} +1 -1
  15. package/dist/ekyc.esm.js +3 -3
  16. package/dist/{ekycManager-DZH51PnN.esm.js → ekycManager-RaSSnmxD.esm.js} +1 -1
  17. package/dist/{ekycStateMachine-DnKlILfu.esm.js → ekycStateMachine-BqacNxVI.esm.js} +803 -1
  18. package/dist/{ekycUtils-3FIL6m1x.esm.js → ekycUtils-DrRSBMVL.esm.js} +28 -0
  19. package/dist/electronic-signature.esm.js +1 -1
  20. package/dist/{electronicSignatureManager-B_SHlY1L.esm.js → electronicSignatureManager-BR38Ogjf.esm.js} +1 -1
  21. package/dist/extensibility.d.ts +4 -4
  22. package/dist/extensibility.esm.js +11 -11
  23. package/dist/{faceCaptureManagerFactory-1uGiHaoF.esm.js → faceCaptureManagerFactory-B1BrC2K4.esm.js} +1 -1
  24. package/dist/{faceCaptureSetup-BYnZ3A8a.esm.js → faceCaptureSetup-Dmz6aiNH.esm.js} +3 -3
  25. package/dist/{feature-management-XxXkowCy.esm.js → feature-management-pS1G_jQ5.esm.js} +1 -1
  26. package/dist/feature-management.esm.js +1 -1
  27. package/dist/flow.d.ts +1 -1
  28. package/dist/flow.esm.js +3 -3
  29. package/dist/{flowCompletionService-OHsAMzl8.esm.js → flowCompletionService-CVBZUlWT.esm.js} +1 -1
  30. package/dist/{flowServices-D3b4BP89.esm.js → flowServices-CCPh3tqQ.esm.js} +5 -5
  31. package/dist/geolocation.esm.js +2 -2
  32. package/dist/{geolocationManager-DqI8ho5R.esm.js → geolocationManager-CG3nIRbs.esm.js} +1 -1
  33. package/dist/{geolocationStateMachine-Je2uPWor.esm.js → geolocationStateMachine-Z9o9iDIY.esm.js} +1 -1
  34. package/dist/id-selfie-flow.esm.js +7 -7
  35. package/dist/id.d.ts +2 -2
  36. package/dist/id.esm.js +3 -3
  37. package/dist/{idCaptureDefaults-BjP8SevF.esm.js → idCaptureDefaults-DlsyJMOW.esm.js} +1 -1
  38. package/dist/{idCaptureManager-DW3eER4t.d.ts → idCaptureManager-BY97SRCV.d.ts} +1 -1
  39. package/dist/{idCaptureManager-I5L_IVbR.esm.js → idCaptureManager-DmoOx0O5.esm.js} +3 -3
  40. package/dist/{idCaptureServices-t11U9Anc.esm.js → idCaptureServices-D55prH0r.esm.js} +3 -3
  41. package/dist/{idCaptureStateMachine-Dv1tDMKs.esm.js → idCaptureStateMachine-MV0CtrZ9.esm.js} +44 -21
  42. package/dist/identity-reuse.d.ts +1 -1
  43. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.esm.js +1 -1
  46. package/dist/mandatory-consent.d.ts +1 -1
  47. package/dist/{mandatoryConsentManager-BkaLkcA2.d.ts → mandatoryConsentManager-DDixKrq0.d.ts} +4 -4
  48. package/dist/qe-signature.esm.js +1 -1
  49. package/dist/{runChildModule-9q7BQwPd.esm.js → runChildModule-DXNgGwGn.esm.js} +1 -1
  50. package/dist/{sdkVersion-g8ehOQhP.esm.js → sdkVersion-DM8nidSt.esm.js} +1 -1
  51. package/dist/selfie.esm.js +6 -6
  52. package/dist/{selfieErrorUtils-zRAt9WeG.esm.js → selfieErrorUtils-B3Gdyvaf.esm.js} +1 -1
  53. package/dist/{selfieManager-BVcizHEI.esm.js → selfieManager-gLy-_nNC.esm.js} +3 -3
  54. package/dist/{selfieStateMachine-CBkLfNU3.esm.js → selfieStateMachine-BiYWExHE.esm.js} +3 -3
  55. package/dist/{session-XeaMJEO1.esm.js → session-CtVdey6m.esm.js} +3 -3
  56. package/dist/session.esm.js +4 -4
  57. package/dist/{sessionInitializer-LBbZHbPK.esm.js → sessionInitializer-V3iatb38.esm.js} +3 -3
  58. package/dist/{setup-CkMpP7pu.esm.js → setup-C-Nol_jL.esm.js} +22 -5
  59. package/dist/{setup-oKDzNC62.d.ts → setup-lgkQ8dJW.d.ts} +11 -0
  60. package/dist/{trueSightService-DtuHbL0_.esm.js → trueSightService-D7fIDGRl.esm.js} +1 -1
  61. package/dist/{types-CwCWyBEi.d.ts → types-CyPUIpzf.d.ts} +19 -5
  62. package/dist/video-selfie.esm.js +3 -3
  63. package/dist/{videoSelfieCameraWarmer-pt56Pcfi.esm.js → videoSelfieCameraWarmer-MXduX5t-.esm.js} +4 -4
  64. package/dist/wasm.d.ts +1 -1
  65. package/dist/wasm.esm.js +2 -2
  66. package/dist/workflow.esm.js +16 -16
  67. package/package.json +6 -4
@@ -1,3 +1,14 @@
1
+ //#region ../form-definitions/generated/ekycIndex.ts
2
+ const EKYC_INDEX = [{
3
+ id: "ekyc/BR/BR_GOVT_1",
4
+ country: "BR",
5
+ source: "BR_GOVT_1"
6
+ }, {
7
+ id: "ekyc/US/US_CREDIT_TELCO",
8
+ country: "US",
9
+ source: "US_CREDIT_TELCO"
10
+ }];
11
+ //#endregion
1
12
  //#region src/modules/ekyc/ekycConsts.ts
2
13
  const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
3
14
  const STATE_CODE_HINTS = {
@@ -196,8 +207,25 @@ function getEKYCFields(config) {
196
207
  panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false
197
208
  };
198
209
  }
210
+ /**
211
+ * Source id (or alias) → country, from the form-definition selection index.
212
+ * A source with definitions for more than one country isn't listed, so it
213
+ * keeps today's mapping.
214
+ */
215
+ const INDEXED_COUNTRIES = (() => {
216
+ const countries = /* @__PURE__ */ new Map();
217
+ for (const entry of EKYC_INDEX) for (const id of [entry.source, ...entry.aliases ?? []]) {
218
+ if (!id || !entry.country) continue;
219
+ const known = countries.get(id);
220
+ countries.set(id, known === void 0 || known === entry.country ? entry.country : void 0);
221
+ }
222
+ return new Map([...countries].filter((pair) => pair[1] !== void 0));
223
+ })();
199
224
  /** Maps a verification source string to a country code */
200
225
  function getEKYCCountry(source) {
226
+ return INDEXED_COUNTRIES.get(source) ?? legacyEkycCountry(source);
227
+ }
228
+ function legacyEkycCountry(source) {
201
229
  switch (source) {
202
230
  case "BR_GOVT_1":
203
231
  case "SERPRO": return "BR";
@@ -1,2 +1,2 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-B_SHlY1L.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BR38Ogjf.esm.js";
2
2
  export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-CFwIWUtz.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-DgSftpa0.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-DrR9xshk.esm.js";
@@ -9,7 +9,7 @@ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f
9
9
  import "./createFaceAvatar-DXgmQmQy.js";
10
10
  import { a as IStorageCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
11
11
  import "./StreamCanvasCapture-DVmzJux5.js";
12
- import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-DW3eER4t.js";
12
+ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-BY97SRCV.js";
13
13
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CANv5-W5.js";
14
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
15
15
  import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
@@ -23,13 +23,13 @@ import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as E
23
23
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DW-ynodd.js";
24
24
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
25
25
  import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-1J0IEyFq.js";
26
- import { i as CaptureIdResponse } from "./types-CwCWyBEi.js";
26
+ import { i as CaptureIdResponse } from "./types-CyPUIpzf.js";
27
27
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BO-LTih5.js";
28
28
  import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
29
29
  import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
30
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-B1birg5X.js";
31
31
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
32
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BkaLkcA2.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DDixKrq0.js";
33
33
  import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
34
34
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
35
35
  import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
@@ -1,12 +1,12 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-CkMpP7pu.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-LBbZHbPK.esm.js";
2
+ import { u as BrowserStorageProvider } from "./setup-C-Nol_jL.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-V3iatb38.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-B_SHlY1L.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BR38Ogjf.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-HL08jeDX.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BYnZ3A8a.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DHrqI5Le.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-Dmz6aiNH.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager--1lefT83.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-CMg4SgL4.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-CjrxY737.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-BHnGRsto.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BV6UyLFV.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DML0UPzf.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-C9XUnYU6.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CCzxliyj.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-DtdNyCkV.esm.js";
19
- import { n as createEkycManagerFromActor } from "./ekycManager-DZH51PnN.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-D7wWeNGK.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-DLytGFSA.esm.js";
19
+ import { n as createEkycManagerFromActor } from "./ekycManager-RaSSnmxD.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-CtlKRRaR.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-BVcizHEI.esm.js";
22
- import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-I5L_IVbR.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-gLy-_nNC.esm.js";
22
+ import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-DmoOx0O5.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-BGBcpqsk.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-CNWEOYSq.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-BvF4jK3S.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-DxoCesYP.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B1yQHFLu.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-qqXyH93e.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-DqI8ho5R.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-CG3nIRbs.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CP0SiOOe.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CDhRUU5n.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-9Nj9aPci.esm.js";
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScr
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
5
- import { r as concealmentToAvatar } from "./faceCaptureSetup-BYnZ3A8a.esm.js";
5
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-Dmz6aiNH.esm.js";
6
6
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
7
7
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
8
8
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
@@ -1,14 +1,14 @@
1
- import { l as trueSightLog, v as isTrueSightTesting } from "./trueSightService-DtuHbL0_.esm.js";
1
+ import { l as trueSightLog, v as isTrueSightTesting } from "./trueSightService-D7fIDGRl.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
5
- import "./sessionInitializer-LBbZHbPK.esm.js";
5
+ import "./sessionInitializer-V3iatb38.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
7
7
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
8
8
  import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
10
10
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
11
- import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-9IwB7jcM.esm.js";
11
+ import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
12
12
  import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-kdlhkmmY.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";
@@ -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-g8ehOQhP.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-DM8nidSt.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). */
@@ -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-XxXkowCy.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-pS1G_jQ5.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 };
package/dist/flow.d.ts CHANGED
@@ -8,7 +8,7 @@ import { t as AuthenticationConfig } from "./types-C71Zo6vl.js";
8
8
  import { r as DocumentCaptureConfig } from "./types-DUnFZ08M.js";
9
9
  import { t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
10
10
  import { t as EkybConfig } from "./types-0L-eFDmr.js";
11
- import { u as IdCaptureConfig } from "./types-CwCWyBEi.js";
11
+ import { u as IdCaptureConfig } from "./types-CyPUIpzf.js";
12
12
  import { r as MandatoryConsentConfig } from "./types-BvFmYX5c.js";
13
13
  import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
14
14
  import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-CAgFE-k3.esm.js";
2
- import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-D3b4BP89.esm.js";
2
+ import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-CCPh3tqQ.esm.js";
3
3
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-OHsAMzl8.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-9q7BQwPd.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-CVBZUlWT.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DXNgGwGn.esm.js";
7
7
  import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
8
8
  //#region src/modules/flow/noOpFlowModuleMachine.ts
9
9
  const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-CFwIWUtz.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-DgSftpa0.esm.js";
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
6
6
  const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
@@ -1,11 +1,11 @@
1
1
  import { n as getWasmStatus } from "./warmup-DMtbyb2l.esm.js";
2
2
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
4
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-LBbZHbPK.esm.js";
5
- import { E as updateFeatureManagementUser } from "./feature-management-XxXkowCy.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-CFwIWUtz.esm.js";
7
- import "./session-XeaMJEO1.esm.js";
8
- import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
4
+ import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-V3iatb38.esm.js";
5
+ import { E as updateFeatureManagementUser } from "./feature-management-pS1G_jQ5.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-DgSftpa0.esm.js";
7
+ import "./session-CtVdey6m.esm.js";
8
+ import { a as toEkycConfig } from "./ekycUtils-DrRSBMVL.esm.js";
9
9
  //#region src/modules/flow/dashboardConfig.ts
10
10
  function isPlainObject(value) {
11
11
  if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-DqI8ho5R.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-Je2uPWor.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-CG3nIRbs.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-Z9o9iDIY.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-Je2uPWor.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-Z9o9iDIY.esm.js";
4
4
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
5
5
  var BrowserGeolocationProvider = class {
6
6
  getCurrentPosition() {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
3
3
  import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
4
- import { n as isConnectivityError } from "./apiError-CFwIWUtz.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-DgSftpa0.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
@@ -1,17 +1,17 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-CkMpP7pu.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-C-Nol_jL.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-D3b4BP89.esm.js";
4
+ import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-CCPh3tqQ.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
7
- import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-9IwB7jcM.esm.js";
7
+ import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-CjWCKcIu.esm.js";
8
8
  import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-DbeQpXdU.esm.js";
9
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
10
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BjP8SevF.esm.js";
11
- import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-t11U9Anc.esm.js";
10
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DlsyJMOW.esm.js";
11
+ import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-D55prH0r.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-OHsAMzl8.esm.js";
14
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-pt56Pcfi.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-CVBZUlWT.esm.js";
14
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-MXduX5t-.esm.js";
15
15
  //#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
16
16
  /** Default autocapture window for the selfie step. */
17
17
  const SELFIE_AUTOCAPTURE_MS = 1e4;
package/dist/id.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
2
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
3
- import { A as barcodeToBase64, B as startRecordingSession, C as FinalizedIdRecording, D as UploadIdImageParams, E as StartRecordingParams, F as isSuspendableRecordingSession, H as stopStream, I as pauseRecordingForAttempt, L as prepareRecordingForCameraRetry, M as finalizeRecordingSession, N as getRealQualityValue, O as ValidationError, P as initializeIdCapture, R as processId, S as AddBarcodeParams, T as InitializeIdCaptureParams, U as uploadIdImage, V as stopRecording, W as validateUploadResponse, _ as CreateIdCaptureActorOptions, a as RenderWalletError, b as IdCaptureMachine, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as CreateIdCaptureOnlyActorOptions, g as idCaptureOnlyMachine, h as IdCaptureOnlyMachine, j as disposeRecordingSession, k as addBarcode, l as DeviceWalletState, m as createIdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as IdCaptureOnlyActor, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as IdCaptureActor, w as IdCaptureInitResult, x as idCaptureMachine, y as createIdCaptureActor, z as resumeRecordingAfterPause } from "./idCaptureManager-DW3eER4t.js";
3
+ import { A as barcodeToBase64, B as startRecordingSession, C as FinalizedIdRecording, D as UploadIdImageParams, E as StartRecordingParams, F as isSuspendableRecordingSession, H as stopStream, I as pauseRecordingForAttempt, L as prepareRecordingForCameraRetry, M as finalizeRecordingSession, N as getRealQualityValue, O as ValidationError, P as initializeIdCapture, R as processId, S as AddBarcodeParams, T as InitializeIdCaptureParams, U as uploadIdImage, V as stopRecording, W as validateUploadResponse, _ as CreateIdCaptureActorOptions, a as RenderWalletError, b as IdCaptureMachine, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as CreateIdCaptureOnlyActorOptions, g as idCaptureOnlyMachine, h as IdCaptureOnlyMachine, j as disposeRecordingSession, k as addBarcode, l as DeviceWalletState, m as createIdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as IdCaptureOnlyActor, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as IdCaptureActor, w as IdCaptureInitResult, x as idCaptureMachine, y as createIdCaptureActor, z as resumeRecordingAfterPause } from "./idCaptureManager-BY97SRCV.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
5
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
6
- import { A as DeviceWalletDecision, B as DigitalIdFunnelEntry, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, H as ResolvedDigitalIdRoute, L as DIGITAL_ID_DOCUMENT_TYPES, M as DeviceWalletFailReason, N as DeviceWalletOutput, O as UploadIdResponse, P as DeviceWalletPlatform, R as DIGITAL_ID_REGISTRY, S as IdCaptureThresholds, T as IdError, U as isRedirectFlowType, V as DigitalIdPlatformSupport, W as resolveDigitalIdImplementation, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as RedirectReturnParams, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DigitalIdDocumentType } from "./types-CwCWyBEi.js";
6
+ import { A as DeviceWalletDecision, B as DigitalIdFunnelEntry, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, H as ResolvedDigitalIdRoute, L as DIGITAL_ID_DOCUMENT_TYPES, M as DeviceWalletFailReason, N as DeviceWalletOutput, O as UploadIdResponse, P as DeviceWalletPlatform, R as DIGITAL_ID_REGISTRY, S as IdCaptureThresholds, T as IdError, U as isRedirectFlowType, V as DigitalIdPlatformSupport, W as resolveDigitalIdImplementation, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, q as RedirectReturnParams, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DigitalIdDocumentType } from "./types-CyPUIpzf.js";
7
7
  //#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
8
8
  /**
9
9
  * Fail reason → i18n key for the device-wallet error screen (same shape as
package/dist/id.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-Dv1tDMKs.esm.js";
2
- import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-I5L_IVbR.esm.js";
3
- import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-t11U9Anc.esm.js";
1
+ import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-MV0CtrZ9.esm.js";
2
+ import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DmoOx0O5.esm.js";
3
+ import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-D55prH0r.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,5 +1,5 @@
1
1
  import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
2
- import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-DtuHbL0_.esm.js";
2
+ import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-D7fIDGRl.esm.js";
3
3
  import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-DMtbyb2l.esm.js";
4
4
  import { r as BaseWasmProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
5
5
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -11,7 +11,7 @@ import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
11
11
  import { n as DeepsightService } from "./StreamCanvasCapture-DVmzJux5.js";
12
12
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
13
13
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
14
- import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-CwCWyBEi.js";
14
+ import { A as DeviceWalletDecision, E as IdErrorCode, F as DeviceWalletProvider, G as DigitalIdProviderId, I as DeviceWalletServices, J as IDigitalCredentialsCapability, K as FailureReason, M as DeviceWalletFailReason, O as UploadIdResponse, P as DeviceWalletPlatform, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DeviceWalletDecryptResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode } from "./types-CyPUIpzf.js";
15
15
  //#region src/internal/http/endpoints.d.ts
16
16
  /**
17
17
  * Backend `CaptureType` for the `captureType` query param on `add/front-id`,
@@ -1,5 +1,5 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-CkMpP7pu.esm.js";
2
+ import { u as BrowserStorageProvider } from "./setup-C-Nol_jL.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { i as assign, s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
@@ -8,8 +8,8 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
8
8
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
9
9
  import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
10
10
  import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
11
- import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-Dv1tDMKs.esm.js";
12
- import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-t11U9Anc.esm.js";
11
+ import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-MV0CtrZ9.esm.js";
12
+ import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-D55prH0r.esm.js";
13
13
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BW7V3vub.esm.js";
14
14
  //#region src/modules/id/digitalUpload/instrumentation.ts
15
15
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-CkMpP7pu.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-C-Nol_jL.esm.js";
3
3
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
4
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-XxXkowCy.esm.js";
4
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-pS1G_jQ5.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
6
6
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
@@ -9,7 +9,7 @@ import { l as queryCameraPermission } from "./permissionServices-d2UW0r_L.esm.js
9
9
  import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
10
10
  import { n as getBackCameraStream, o as isBackFacingTrack } from "./backCameraStream-CMvXj4X4.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BjP8SevF.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DlsyJMOW.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,16 +1,16 @@
1
- import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity, v as isTrueSightTesting } from "./trueSightService-DtuHbL0_.esm.js";
1
+ import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity, v as isTrueSightTesting } from "./trueSightService-D7fIDGRl.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
3
3
  import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, v as addEvent } from "./events-CAgFE-k3.esm.js";
5
5
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
6
- import { l as BrowserStorageProvider } from "./setup-CkMpP7pu.esm.js";
6
+ import { l as isGoogleWalletSignedRequestsEnabled, u as BrowserStorageProvider } from "./setup-C-Nol_jL.esm.js";
7
7
  import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
8
- import { t as getDisableIpify } from "./sessionInitializer-LBbZHbPK.esm.js";
8
+ import { t as getDisableIpify } from "./sessionInitializer-V3iatb38.esm.js";
9
9
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
10
- import { s as exposeExperimentOnce } from "./feature-management-XxXkowCy.esm.js";
10
+ import { s as exposeExperimentOnce } from "./feature-management-pS1G_jQ5.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
12
12
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
13
- import "./session-XeaMJEO1.esm.js";
13
+ import "./session-CtVdey6m.esm.js";
14
14
  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, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
16
16
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-6jsE6rKp.esm.js";
@@ -24,10 +24,10 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
24
24
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
25
25
  import { a as isBackCameraLabel } from "./backCameraStream-CMvXj4X4.esm.js";
26
26
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
27
- import { n as frameSources, r as runVirtualCameraCheck } from "./deepsightService-Dq_9MGNi.esm.js";
27
+ import { n as frameSources, r as runVirtualCameraCheck } from "./deepsightService-xMDI8RDs.esm.js";
28
28
  import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
29
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BjP8SevF.esm.js";
30
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-t11U9Anc.esm.js";
29
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DlsyJMOW.esm.js";
30
+ import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-D55prH0r.esm.js";
31
31
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
32
32
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
33
33
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -318,14 +318,39 @@ const digitalUploadMachine = setup({
318
318
  //#region src/modules/id/deviceWallet/deviceWalletServices.ts
319
319
  /** Both wallet endpoint families are versioned via header, not path. */
320
320
  const API_VERSION_HEADERS = { "api-version": "1.0" };
321
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
321
322
  /**
322
- * Fetches the wallet request payload for the platform and wraps it in the
323
- * Digital Credentials API request shape.
323
+ * Turns the Google request payload into DC API request options without ever
324
+ * touching the payload itself — a signed request's JWS is covered by its
325
+ * signature, so any edit makes the wallet reject it. The backend decides the
326
+ * protocol; the SDK never derives it.
327
+ *
328
+ * - `{ requests: [...] }` — full DC API envelope (signed-capable backend):
329
+ * passed through as-is.
330
+ * - `{ protocol, data }` — an already-enveloped single request: not re-wrapped,
331
+ * only placed in the `requests` array (defensive, for rollout shape drift).
332
+ * - anything else — legacy bare unsigned OIDC4VP/DCQL object: wrapped with
333
+ * `openid4vp-v1-unsigned`.
334
+ */
335
+ function toGoogleRequestOptions(payload) {
336
+ if (isRecord(payload) && Array.isArray(payload.requests)) return payload;
337
+ if (isRecord(payload) && typeof payload.protocol === "string") return { requests: [payload] };
338
+ return { requests: [{
339
+ protocol: "openid4vp-v1-unsigned",
340
+ data: payload
341
+ }] };
342
+ }
343
+ /**
344
+ * Fetches the wallet request payload for the platform as Digital Credentials
345
+ * API request options.
324
346
  *
325
347
  * Apple: POST with an empty body → `{ deviceRequest, encryptionInfo }`,
326
348
  * presented with protocol `org-iso-mdoc`.
327
- * Google: GET → the whole backend-built OIDC4VP/DCQL object (opaque here),
328
- * presented with protocol `openid4vp-v1-unsigned`.
349
+ * Google: GET with `signedSupported=true` → the backend-built DC API envelope
350
+ * (signed or unsigned, backend's choice), passed through verbatim — see
351
+ * {@link toGoogleRequestOptions}. With `setup({ deviceWallet: {
352
+ * googleSignedRequests: false } })` the SDK sends `signedSupported=false` and
353
+ * the backend answers with the legacy bare unsigned payload.
329
354
  */
330
355
  async function requestWalletData(platform, signal) {
331
356
  if (platform === "ios") {
@@ -335,23 +360,21 @@ async function requestWalletData(platform, signal) {
335
360
  });
336
361
  if (!res.ok) throw new Error(`POST ${endpoints.deviceWalletAppleRequest} failed: ${res.status}`);
337
362
  const data = res.data;
338
- return {
363
+ return { requests: [{
339
364
  protocol: "org-iso-mdoc",
340
365
  data: {
341
366
  deviceRequest: data.deviceRequest,
342
367
  encryptionInfo: data.encryptionInfo
343
368
  }
344
- };
369
+ }] };
345
370
  }
346
371
  const res = await api.get(endpoints.deviceWalletGoogleRequest, {
347
372
  headers: API_VERSION_HEADERS,
373
+ query: { signedSupported: isGoogleWalletSignedRequestsEnabled() },
348
374
  signal
349
375
  });
350
376
  if (!res.ok) throw new Error(`GET ${endpoints.deviceWalletGoogleRequest} failed: ${res.status}`);
351
- return {
352
- protocol: "openid4vp-v1-unsigned",
353
- data: res.data
354
- };
377
+ return toGoogleRequestOptions(res.data);
355
378
  }
356
379
  /**
357
380
  * Forwards the opaque wallet response for backend decryption. The body key
@@ -557,7 +580,7 @@ var BrowserDigitalCredentialsProvider = class {
557
580
  return { response: (await navigator.credentials.get({
558
581
  mediation: "required",
559
582
  signal: options?.signal,
560
- digital: { requests: [request] }
583
+ digital: request
561
584
  }))?.data?.response };
562
585
  }
563
586
  };
@@ -1398,7 +1421,7 @@ fromPromise(async ({ input }) => {
1398
1421
  });
1399
1422
  fromPromise(async ({ input }) => {
1400
1423
  if (!input.dependencies) return;
1401
- const { loadDeepsightSession } = await import("./deepsightLoader-CWjI76eb.esm.js");
1424
+ const { loadDeepsightSession } = await import("./deepsightLoader-Drgk4Jv9.esm.js");
1402
1425
  return loadDeepsightSession({
1403
1426
  ds: input.ds,
1404
1427
  storage: input.dependencies.storage,
@@ -1841,7 +1864,7 @@ function cleanup(service) {
1841
1864
  service.cleanup();
1842
1865
  } catch {}
1843
1866
  }
1844
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-CWjI76eb.esm.js")).loadDeepsightSession(input)) {
1867
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-Drgk4Jv9.esm.js")).loadDeepsightSession(input)) {
1845
1868
  let disposed = false;
1846
1869
  let preparation;
1847
1870
  let service;
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
1
+ import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-B1birg5X.js";
2
2
  export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -120,10 +120,6 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
120
120
  type: "setError";
121
121
  params: NonReducibleUnknown;
122
122
  };
123
- clearError: {
124
- type: "clearError";
125
- params: NonReducibleUnknown;
126
- };
127
123
  setSelectedDocument: {
128
124
  type: "setSelectedDocument";
129
125
  params: NonReducibleUnknown;
@@ -132,6 +128,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
132
128
  type: "setCompanyName";
133
129
  params: NonReducibleUnknown;
134
130
  };
131
+ clearError: {
132
+ type: "clearError";
133
+ params: NonReducibleUnknown;
134
+ };
135
135
  }>, Values<{
136
136
  hasDocuments: {
137
137
  type: "hasDocuments";
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-oKDzNC62.js";
1
+ import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-lgkQ8dJW.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-CkMpP7pu.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-C-Nol_jL.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-BvFmYX5c.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-BkaLkcA2.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-DDixKrq0.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -56,14 +56,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
56
56
  type: "setError";
57
57
  params: NonReducibleUnknown;
58
58
  };
59
- toggleSigned: {
60
- type: "toggleSigned";
61
- params: NonReducibleUnknown;
62
- };
63
59
  clearError: {
64
60
  type: "clearError";
65
61
  params: NonReducibleUnknown;
66
62
  };
63
+ toggleSigned: {
64
+ type: "toggleSigned";
65
+ params: NonReducibleUnknown;
66
+ };
67
67
  resetContext: {
68
68
  type: "resetContext";
69
69
  params: NonReducibleUnknown;
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-B_SHlY1L.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BR38Ogjf.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {