@incodetech/core 0.0.0-dev-20261008-de196f04 → 0.0.0-dev-20261009-d72365d2

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 (66) hide show
  1. package/dist/{FaceDetectionProvider-bGfAxXes.esm.js → FaceDetectionProvider-D8dgKPKM.esm.js} +9 -6
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-BsnVjcuU.esm.js → apiError-u9dTs3yz.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-Boh0XbWH.esm.js → authenticationManager-BrwdcypC.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-C4A--7e5.esm.js → authenticationStateMachine-vDvoBxKy.esm.js} +2 -2
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-CTdFloVJ.d.ts → consentManager-Cv_0QKLD.d.ts} +1 -1
  9. package/dist/{deepsightLoader-CFxI2Jz1.esm.js → deepsightLoader-B3XvREjH.esm.js} +3 -3
  10. package/dist/dynamic-forms.d.ts +2 -2
  11. package/dist/dynamic-forms.esm.js +2 -2
  12. package/dist/{dynamicFormsManager-9kwY8Bf5.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +1 -1
  13. package/dist/{dynamicFormsManager-D7TJGtEv.esm.js → dynamicFormsManager-CI2oFIQZ.esm.js} +1 -1
  14. package/dist/{dynamicFormsStateMachine-_HxZ9WoS.esm.js → dynamicFormsStateMachine-Iv3Gf06r.esm.js} +1 -1
  15. package/dist/ekyb.esm.js +3 -3
  16. package/dist/{ekybManager-AnXKIQy5.esm.js → ekybManager-Ctu6eeUe.esm.js} +1 -1
  17. package/dist/{ekybStateMachine-CWvGRe0F.esm.js → ekybStateMachine-MIRx8CDG.esm.js} +1 -1
  18. package/dist/electronic-signature.esm.js +1 -1
  19. package/dist/{electronicSignatureManager-DV8-WOFn.esm.js → electronicSignatureManager-CMwBUzjd.esm.js} +1 -1
  20. package/dist/extensibility.d.ts +7 -7
  21. package/dist/extensibility.esm.js +10 -10
  22. package/dist/{faceCaptureManagerFactory-Jck7ehOP.esm.js → faceCaptureManagerFactory-XFy4BlWm.esm.js} +1 -1
  23. package/dist/{faceCaptureSetup-BDKwTw5e.esm.js → faceCaptureSetup-DApwHwry.esm.js} +9 -5
  24. package/dist/{feature-management-hOLWyGDG.esm.js → feature-management-DfaA22q3.esm.js} +1 -1
  25. package/dist/feature-management.esm.js +1 -1
  26. package/dist/flow.d.ts +2 -2
  27. package/dist/flow.esm.js +3 -3
  28. package/dist/{flowCompletionService-DlIIww1l.esm.js → flowCompletionService-YEU4sBj0.esm.js} +1 -1
  29. package/dist/{flowServices-C6I-5HAy.esm.js → flowServices-CxKB3XzQ.esm.js} +4 -4
  30. package/dist/geolocation.esm.js +2 -2
  31. package/dist/{geolocationManager-QCMPBQhO.esm.js → geolocationManager-BRwZw-mD.esm.js} +1 -1
  32. package/dist/{geolocationStateMachine-Dny_J4f2.esm.js → geolocationStateMachine-DKdeXPDG.esm.js} +1 -1
  33. package/dist/id-ocr.d.ts +1 -1
  34. package/dist/id-selfie-flow.esm.js +16 -14
  35. package/dist/id.d.ts +2 -2
  36. package/dist/id.esm.js +3 -3
  37. package/dist/{idCaptureDefaults-C-omKfMA.esm.js → idCaptureDefaults-CHC1KOX7.esm.js} +1 -1
  38. package/dist/{idCaptureManager-BufUN-y6.d.ts → idCaptureManager-CiX2pKuT.d.ts} +12 -2
  39. package/dist/{idCaptureManager-CD01DGy2.esm.js → idCaptureManager-DRUoARmv.esm.js} +3 -3
  40. package/dist/{idCaptureServices-DcJ6D7f9.esm.js → idCaptureServices-BdIgiXFs.esm.js} +5 -4
  41. package/dist/{idCaptureStateMachine-PBCQ6AmG.esm.js → idCaptureStateMachine-Dr91GlTZ.esm.js} +16 -17
  42. package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
  43. package/dist/identity-reuse.d.ts +1 -1
  44. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  45. package/dist/index.esm.js +1 -1
  46. package/dist/mandatory-consent.d.ts +1 -1
  47. package/dist/{mandatoryConsentManager-DQmeQyYN.d.ts → mandatoryConsentManager-B6glP66e.d.ts} +5 -5
  48. package/dist/qe-signature.esm.js +1 -1
  49. package/dist/{runChildModule-m2SUNmo2.esm.js → runChildModule-Bm8FGZjA.esm.js} +1 -1
  50. package/dist/{sdkVersion-BkwXe_v3.esm.js → sdkVersion-CM1ZBY2v.esm.js} +1 -1
  51. package/dist/selfie.esm.js +6 -6
  52. package/dist/{selfieErrorUtils-Ct2ODRef.esm.js → selfieErrorUtils-DbAkz2KT.esm.js} +1 -1
  53. package/dist/{selfieManager-DfeB0TDY.esm.js → selfieManager-BGmDARfU.esm.js} +3 -3
  54. package/dist/{selfieStateMachine-BGhhP7Rz.esm.js → selfieStateMachine-CGYfPRyv.esm.js} +3 -3
  55. package/dist/{session-DEV7eetE.esm.js → session-CFiyHLyV.esm.js} +3 -3
  56. package/dist/session.esm.js +4 -4
  57. package/dist/{sessionInitializer-C1WT-T7n.esm.js → sessionInitializer-BpwCn_l2.esm.js} +3 -3
  58. package/dist/{setup-nOVsrUGV.esm.js → setup-C1x4LKwy.esm.js} +4 -4
  59. package/dist/{trueSightService-aPMUJdc-.esm.js → trueSightService-BvHH7V-2.esm.js} +1 -1
  60. package/dist/video-selfie.esm.js +3 -3
  61. package/dist/{videoSelfieCameraWarmer-CKg-gktx.esm.js → videoSelfieCameraWarmer-Ej6R3qEu.esm.js} +6 -5
  62. package/dist/wasm.esm.js +2 -2
  63. package/dist/workflow.esm.js +14 -14
  64. package/package.json +1 -1
  65. /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
  66. /package/dist/{types-DBCRSabn2.d.ts → types-DBCRSabn.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-aPMUJdc-.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-BvHH7V-2.esm.js";
2
2
  import { s as wasmRuntime } from "./warmup-DMtbyb2l.esm.js";
3
3
  import { i as BaseWasmProvider } from "./safeStorage-DDAHV26l.esm.js";
4
- import { t as ensureWasmPipelines } from "./setup-nOVsrUGV.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-C1x4LKwy.esm.js";
5
5
  import { t as api } from "./api-Bx3gKW_y.esm.js";
6
- import "./sessionInitializer-C1WT-T7n.esm.js";
6
+ import "./sessionInitializer-BpwCn_l2.esm.js";
7
7
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
8
8
  import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
9
9
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -79,7 +79,7 @@ function getFaceUploadErrorCode(httpStatus, responseStatus) {
79
79
  /**
80
80
  * Uploads a selfie image to the backend.
81
81
  */
82
- async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", deepsightService }) {
82
+ async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", captureType, deepsightService }) {
83
83
  try {
84
84
  const payload = {
85
85
  base64Image: encryptedBase64Image,
@@ -88,7 +88,10 @@ async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, met
88
88
  clientInfo: { deviceClass: getDeviceClass() },
89
89
  metadata: metadata ?? void 0
90
90
  };
91
- const query = { imageType };
91
+ const query = {
92
+ imageType,
93
+ captureType
94
+ };
92
95
  if (recordingId) query.recordingId = recordingId;
93
96
  const res = await api.post(endpoints.selfie, payload, {
94
97
  signal,
@@ -268,7 +271,7 @@ function startDetection(params) {
268
271
  };
269
272
  }
270
273
  async function initializeDeepsightSession(options) {
271
- const { loadDeepsightSession } = await import("./deepsightLoader-CFxI2Jz1.esm.js");
274
+ const { loadDeepsightSession } = await import("./deepsightLoader-B3XvREjH.esm.js");
272
275
  return loadDeepsightSession({
273
276
  ds: options.ds,
274
277
  storage: options.storage
@@ -1,4 +1,4 @@
1
- import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DV8-WOFn.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CMwBUzjd.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-aPMUJdc-.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-BvHH7V-2.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-C4A--7e5.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Boh0XbWH.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-vDvoBxKy.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BrwdcypC.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-nOVsrUGV.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-C1x4LKwy.esm.js";
3
3
  import { n as eventModuleNames } from "./events-CfLLkAh7.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Jck7ehOP.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-C4A--7e5.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-XFy4BlWm.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-vDvoBxKy.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BDKwTw5e.esm.js";
4
- import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-bGfAxXes.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DApwHwry.esm.js";
4
+ import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-D8dgKPKM.esm.js";
5
5
  import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-BvOOxU85.esm.js";
6
6
  //#region src/modules/authentication/authenticationErrorUtils.ts
7
7
  const AUTH_ERROR_MAP = {
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-CTdFloVJ.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -96,7 +96,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
96
96
  }>, {
97
97
  type: "canSubmit";
98
98
  params: unknown;
99
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
99
+ }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
100
  readonly id: "consent";
101
101
  readonly initial: "idle";
102
102
  readonly context: ({ input }: {
@@ -1,7 +1,7 @@
1
- import { l as trueSightLog } from "./trueSightService-aPMUJdc-.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-BvHH7V-2.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-C1WT-T7n.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-BkwXe_v3.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-BpwCn_l2.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-CM1ZBY2v.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
7
7
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BWpBwxxe.esm.js";
@@ -1,3 +1,3 @@
1
- import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
2
- import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-9kwY8Bf5.js";
1
+ import { i as Screen, n as InputType, r as Question, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
2
+ import { c as DynamicFormsValidationErrors, n as DynamicFormsState, o as DynamicFormsResult, r as createDynamicFormsManager, s as dynamicFormsMachine, t as DynamicFormsManager } from "./dynamicFormsManager-C0dHs1ty.js";
3
3
  export { type DynamicFormsConfig, type DynamicFormsManager, type DynamicFormsResult, type DynamicFormsState, type DynamicFormsValidationErrors, type InputType, type Question, type Screen, createDynamicFormsManager, dynamicFormsMachine };
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-_HxZ9WoS.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-D7TJGtEv.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Iv3Gf06r.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-CI2oFIQZ.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { i as Screen, t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
4
+ import { i as Screen, t as DynamicFormsConfig } from "./types-BSBzhHRH2.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsFields.d.ts
6
6
  /** Map of `questionId` → currently-displayed i18n error key. */
7
7
  type DynamicFormsValidationErrors = Partial<Record<string, string>>;
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-_HxZ9WoS.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Iv3Gf06r.esm.js";
5
5
  //#region src/modules/dynamic-forms/dynamicFormsActor.ts
6
6
  function createDynamicFormsActor(options) {
7
7
  return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BsnVjcuU.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-u9dTs3yz.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
6
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
package/dist/ekyb.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-C6I-5HAy.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-CWvGRe0F.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-AnXKIQy5.esm.js";
1
+ import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-CxKB3XzQ.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-MIRx8CDG.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-Ctu6eeUe.esm.js";
4
4
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-CWvGRe0F.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-MIRx8CDG.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
3
- import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-C6I-5HAy.esm.js";
3
+ import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-CxKB3XzQ.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
6
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
@@ -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-DV8-WOFn.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-CMwBUzjd.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 { t as api } from "./api-Bx3gKW_y.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
5
- import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BsnVjcuU.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-u9dTs3yz.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
@@ -9,28 +9,28 @@ import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f
9
9
  import "./createFaceAvatar-DXgmQmQy.js";
10
10
  import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
11
11
  import "./StreamCanvasCapture-CeBBJ_RC.js";
12
+ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-CiX2pKuT.js";
12
13
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CkUiRI_u.js";
13
14
  import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
14
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-CTdFloVJ.js";
15
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
15
16
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
16
17
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-C7qzg_Cm.js";
17
18
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
18
19
  import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-DolUswyR.js";
19
20
  import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-CNenjdhx.js";
20
- import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-9kwY8Bf5.js";
21
+ import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C0dHs1ty.js";
21
22
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
22
23
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DW-ynodd.js";
23
24
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
24
25
  import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DqVFQ_8R.js";
25
- import { i as CaptureIdResponse } from "./types-DBCRSabn2.js";
26
- import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-BufUN-y6.js";
26
+ import { i as CaptureIdResponse } from "./types-DBCRSabn.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-B1birg5X.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.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-DQmeQyYN.js";
33
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BTdHlJ9D.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B6glP66e.js";
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";
36
36
  import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Dn24g1fl.js";
@@ -1,12 +1,12 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-nOVsrUGV.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-C1WT-T7n.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-C1x4LKwy.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-BpwCn_l2.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
6
- import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DV8-WOFn.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-CMwBUzjd.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-nkA1Xfm1.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BDKwTw5e.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Boh0XbWH.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DApwHwry.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BrwdcypC.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-B-qjOJde.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-BhGljt6D.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-hxUaa6y_.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-C5Vw3fdd.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-szjmQvYu.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-GzsSoXf6.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-D7TJGtEv.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-AnXKIQy5.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CI2oFIQZ.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-Ctu6eeUe.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-DsfBcNxs.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-ppIDOf_n.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-DfeB0TDY.esm.js";
22
- import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-CD01DGy2.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BGmDARfU.esm.js";
22
+ import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-DRUoARmv.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-B6Uu_237.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-F1bI2Ad4.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-cbMppk5K.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-124LjyWj.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-CQlyUyc8.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-CEYKCuO4.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-QCMPBQhO.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-BRwZw-mD.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-UuH2s-oi.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BYVW3pLG.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-BSR94HnV.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-CfLLkAh7.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
- import { r as concealmentToAvatar } from "./faceCaptureSetup-BDKwTw5e.esm.js";
4
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-DApwHwry.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BWpBwxxe.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CPwDYRp8.esm.js";
@@ -1,14 +1,14 @@
1
- import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-aPMUJdc-.esm.js";
1
+ import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-BvHH7V-2.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
- import "./sessionInitializer-C1WT-T7n.esm.js";
4
+ import "./sessionInitializer-BpwCn_l2.esm.js";
5
5
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-Dz3XWA64.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-Bg3FuvIs.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
10
10
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CPwDYRp8.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-bGfAxXes.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-D8dgKPKM.esm.js";
12
12
  import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-BvOOxU85.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";
@@ -631,7 +631,8 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
631
631
  faceResults: this.provider
632
632
  };
633
633
  }
634
- createUploadCommand(recordingId) {
634
+ /** `captureType` goes on the selfie upload only, never on authentication or face-results. */
635
+ createUploadCommand(recordingId, captureType) {
635
636
  const token = getToken();
636
637
  const config = {
637
638
  headers: token ? { "X-Incode-Hardware-Id": token } : void 0,
@@ -663,6 +664,7 @@ var ProtectedFaceAttemptRuntime = class ProtectedFaceAttemptRuntime {
663
664
  ...config,
664
665
  params: {
665
666
  imageType: "selfie",
667
+ captureType,
666
668
  ...validRecordingId ? { recordingId: validRecordingId } : {}
667
669
  }
668
670
  }
@@ -843,6 +845,7 @@ function createProtectedFaceControllerActor(options) {
843
845
  let lifecycleCleanup;
844
846
  let sendLifecycle;
845
847
  let committedPreview;
848
+ let manualCommitted = false;
846
849
  let pendingAutoPreview;
847
850
  let recording = {};
848
851
  let stepRecording;
@@ -1034,6 +1037,7 @@ function createProtectedFaceControllerActor(options) {
1034
1037
  case "PROTECTED_MANUAL_COMMITTED":
1035
1038
  logDiagnostic("capture-selected", { captureKind: event.type === "PROTECTED_AUTO_COMMITTED" ? "auto" : "manual" });
1036
1039
  committedPreview = event.preview;
1040
+ manualCommitted ||= event.type === "PROTECTED_MANUAL_COMMITTED";
1037
1041
  sendBack(event);
1038
1042
  return;
1039
1043
  case "PROTECTED_ATTEMPT_FINALIZED":
@@ -1149,7 +1153,7 @@ function createProtectedFaceControllerActor(options) {
1149
1153
  if (!owner) return;
1150
1154
  logDiagnostic("upload-start");
1151
1155
  if (options.delivery === "protected") {
1152
- sendLifecycle?.(owner.createUploadCommand(recording.recordingId));
1156
+ sendLifecycle?.(owner.createUploadCommand(recording.recordingId, manualCommitted ? "MANUAL" : "AUTO"));
1153
1157
  return;
1154
1158
  }
1155
1159
  finalizeLocalCapture(owner, generation).catch(() => {
@@ -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-BkwXe_v3.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-CM1ZBY2v.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-hOLWyGDG.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-DfaA22q3.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
@@ -6,9 +6,9 @@ import { t as EkycConfig } from "./types-BvLo3U4u.js";
6
6
  import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-D6Vvbiz9.js";
7
7
  import { t as AuthenticationConfig } from "./types-Be6MuAYF.js";
8
8
  import { r as DocumentCaptureConfig } from "./types-BjSly8cp.js";
9
- import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
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-DBCRSabn2.js";
11
+ import { u as IdCaptureConfig } from "./types-DBCRSabn.js";
12
12
  import { r as MandatoryConsentConfig } from "./types-DovOQmax.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-CfLLkAh7.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-C6I-5HAy.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-CxKB3XzQ.esm.js";
3
3
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
5
- import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DlIIww1l.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-m2SUNmo2.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-YEU4sBj0.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Bm8FGZjA.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-Bs3D8B_G.esm.js";
3
- import { i as toIncodeApiError } from "./apiError-BsnVjcuU.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-u9dTs3yz.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,10 +1,10 @@
1
1
  import { n as getWasmStatus } from "./warmup-DMtbyb2l.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-hOLWyGDG.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-DfaA22q3.esm.js";
3
3
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
- import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-C1WT-T7n.esm.js";
4
+ import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-BpwCn_l2.esm.js";
5
5
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-BsnVjcuU.esm.js";
7
- import "./session-DEV7eetE.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-u9dTs3yz.esm.js";
7
+ import "./session-CFiyHLyV.esm.js";
8
8
  import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
9
9
  //#region src/modules/flow/dashboardConfig.ts
10
10
  function isPlainObject(value) {
@@ -1,3 +1,3 @@
1
- import { t as createGeolocationManager } from "./geolocationManager-QCMPBQhO.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-Dny_J4f2.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-BRwZw-mD.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-DKdeXPDG.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-Dny_J4f2.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-DKdeXPDG.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-Bs3D8B_G.esm.js";
3
3
  import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
4
- import { n as isConnectivityError } from "./apiError-BsnVjcuU.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-u9dTs3yz.esm.js";
5
5
  import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
7
7
  //#region src/modules/geolocation/geolocationServices.ts
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-BTdHlJ9D.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -1,17 +1,17 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-DDAHV26l.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-nOVsrUGV.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-C1x4LKwy.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-C6I-5HAy.esm.js";
4
+ import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-CxKB3XzQ.esm.js";
5
5
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
6
6
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
7
- import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-bGfAxXes.esm.js";
7
+ import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-D8dgKPKM.esm.js";
8
8
  import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-CMjkhS2x.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-C-omKfMA.esm.js";
11
- import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-DcJ6D7f9.esm.js";
10
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CHC1KOX7.esm.js";
11
+ import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-BdIgiXFs.esm.js";
12
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
13
- import { n as getFinishStatus } from "./flowCompletionService-DlIIww1l.esm.js";
14
- import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-CKg-gktx.esm.js";
13
+ import { n as getFinishStatus } from "./flowCompletionService-YEU4sBj0.esm.js";
14
+ import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-Ej6R3qEu.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;
@@ -109,7 +109,7 @@ async function detectSelfie(params) {
109
109
  signal.removeEventListener("abort", onAbort);
110
110
  run();
111
111
  }
112
- const submit = (canvas, faceCoordinates) => {
112
+ const submit = (canvas, captureType, faceCoordinates) => {
113
113
  if (submitting || settled) return;
114
114
  submitting = true;
115
115
  onStatus?.("capturing");
@@ -123,7 +123,8 @@ async function detectSelfie(params) {
123
123
  await uploadSelfie({
124
124
  encryptedBase64Image,
125
125
  faceCoordinates,
126
- imageType: "selfie"
126
+ imageType: "selfie",
127
+ captureType
127
128
  });
128
129
  throwIfAborted(signal);
129
130
  await processFace("selfie");
@@ -142,13 +143,13 @@ async function detectSelfie(params) {
142
143
  provider,
143
144
  onUpdate: (status) => onStatus?.(status),
144
145
  onSuccess: (canvas, faceCoordinates) => {
145
- submit(canvas, faceCoordinates);
146
+ submit(canvas, "AUTO", faceCoordinates);
146
147
  }
147
148
  });
148
149
  registerManualCapture?.(() => {
149
150
  const canvas = capturer.getLatestCanvas();
150
151
  if (!canvas) return;
151
- submit(canvas);
152
+ submit(canvas, "MANUAL");
152
153
  });
153
154
  function onAbort() {
154
155
  detection.cleanup();
@@ -230,7 +231,7 @@ async function detectId(params) {
230
231
  function onAbort() {
231
232
  settle(() => reject(abortError()));
232
233
  }
233
- function uploadCaptured(base64Image) {
234
+ function uploadCaptured(base64Image, captureType) {
234
235
  validating = true;
235
236
  onStatus?.("capturing");
236
237
  (async () => {
@@ -240,6 +241,7 @@ async function detectId(params) {
240
241
  image: base64Image,
241
242
  glare: storedQuality.glare,
242
243
  sharpness: storedQuality.sharpness,
244
+ captureType,
243
245
  signal
244
246
  });
245
247
  throwIfAborted(signal);
@@ -310,7 +312,7 @@ async function detectId(params) {
310
312
  if (validating) return;
311
313
  const base64Image = bestCanvas?.getBase64Image() ?? capturer.getLatestCanvas()?.getBase64Image();
312
314
  if (!base64Image) return;
313
- uploadCaptured(base64Image);
315
+ uploadCaptured(base64Image, "AUTO");
314
316
  }
315
317
  });
316
318
  registerManualCapture?.(() => {
@@ -318,7 +320,7 @@ async function detectId(params) {
318
320
  const base64Image = capturer.getLatestCanvas()?.getBase64Image();
319
321
  if (!base64Image) return;
320
322
  storedQuality = {};
321
- uploadCaptured(base64Image);
323
+ uploadCaptured(base64Image, "MANUAL");
322
324
  });
323
325
  onStatus?.("detecting");
324
326
  signal.addEventListener("abort", onAbort, { once: true });
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-CiX2pKuT.js";
3
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
5
  import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
5
- 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-DBCRSabn2.js";
6
- 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-BufUN-y6.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-DBCRSabn.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