@incodetech/core 0.0.0-dev-20261002-be08227a → 0.0.0-dev-20261002-7e68ce7a

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 (61) hide show
  1. package/dist/{FaceDetectionProvider-DTEH2hRO.esm.js → FaceDetectionProvider-BIgdSkHs.esm.js} +85 -5
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-WxmpMFyE.esm.js → apiError-B7C2i04b.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-B3rrHM0R.esm.js → authenticationManager-BboXPVJ4.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-Ypuf362T.esm.js → authenticationStateMachine-DvPvONji.esm.js} +3 -3
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-DgzWQpAR.d.ts → consentManager-Cv_0QKLD.d.ts} +9 -9
  9. package/dist/{createCameraCycleOwnership-26-cuXnc.esm.js → createCameraCycleOwnership-CVNcIL95.esm.js} +23 -5
  10. package/dist/{deepsightLoader-Cp620xVt.esm.js → deepsightLoader-D9O6b45T.esm.js} +3 -3
  11. package/dist/dynamic-forms.esm.js +2 -2
  12. package/dist/{dynamicFormsManager-C3ZlUYMz.esm.js → dynamicFormsManager-DnCnvG1a.esm.js} +1 -1
  13. package/dist/{dynamicFormsStateMachine-DChQu8sG.esm.js → dynamicFormsStateMachine-CYXP2bWn.esm.js} +1 -1
  14. package/dist/ekyb.esm.js +3 -3
  15. package/dist/{ekybManager-D8yIc-An.esm.js → ekybManager-q-VSUBUQ.esm.js} +1 -1
  16. package/dist/{ekybStateMachine-Dfg9eimK.esm.js → ekybStateMachine-Dhio1vn7.esm.js} +1 -1
  17. package/dist/electronic-signature.esm.js +1 -1
  18. package/dist/{electronicSignatureManager-CEhXjbaR.esm.js → electronicSignatureManager-DydLFTCX.esm.js} +1 -1
  19. package/dist/extensibility.d.ts +4 -4
  20. package/dist/extensibility.esm.js +10 -10
  21. package/dist/{faceCaptureManagerFactory-uwKSRwvp.esm.js → faceCaptureManagerFactory-CHNVNEP_.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-DvN05Fik.esm.js → faceCaptureSetup-BzG44cuD.esm.js} +12 -9
  23. package/dist/{feature-management-Iccy3Pud.esm.js → feature-management-DClH0UkN.esm.js} +1 -1
  24. package/dist/feature-management.esm.js +1 -1
  25. package/dist/flow.esm.js +3 -3
  26. package/dist/{flowCompletionService-CnEzBkv0.esm.js → flowCompletionService-DRpB7aag.esm.js} +1 -1
  27. package/dist/{flowServices-BHt7yheb.esm.js → flowServices-BABr3Ov8.esm.js} +4 -4
  28. package/dist/geolocation.esm.js +2 -2
  29. package/dist/{geolocationManager-BRq_f7lG.esm.js → geolocationManager-DykhXCSG.esm.js} +1 -1
  30. package/dist/{geolocationStateMachine-CxRpGoq1.esm.js → geolocationStateMachine-DtQJPfbx.esm.js} +1 -1
  31. package/dist/id-ocr.d.ts +1 -1
  32. package/dist/id-selfie-flow.esm.js +7 -8
  33. package/dist/id.esm.js +3 -3
  34. package/dist/{idCaptureDefaults-Cwd4dOoi.esm.js → idCaptureDefaults-BmgACU-z.esm.js} +1 -1
  35. package/dist/{idCaptureManager-Bbcx53L_.esm.js → idCaptureManager-CQkzCUxv.esm.js} +3 -3
  36. package/dist/{idCaptureServices-Cuznp3D4.esm.js → idCaptureServices-BVTu_jJW.esm.js} +3 -3
  37. package/dist/{idCaptureStateMachine-Cw_F05UA.esm.js → idCaptureStateMachine-DfyGv-pZ.esm.js} +10 -10
  38. package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
  39. package/dist/identity-reuse.d.ts +1 -1
  40. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  41. package/dist/index.esm.js +1 -1
  42. package/dist/mandatory-consent.d.ts +1 -1
  43. package/dist/{mandatoryConsentManager-BWZbg1Hl.d.ts → mandatoryConsentManager-CdBVHXGB.d.ts} +5 -5
  44. package/dist/qe-signature.esm.js +1 -1
  45. package/dist/{runChildModule-DiBvktp5.esm.js → runChildModule-CZbSjlSO.esm.js} +1 -1
  46. package/dist/{sdkVersion-DnnSgaug.esm.js → sdkVersion-CEzq0bPr.esm.js} +1 -1
  47. package/dist/selfie.esm.js +7 -7
  48. package/dist/selfieErrorUtils-C9O4yx2t.esm.js +21 -0
  49. package/dist/{selfieManager-C0UDpaTP.esm.js → selfieManager-B331XzBJ.esm.js} +3 -3
  50. package/dist/{selfieStateMachine-CXEyjZ0q.esm.js → selfieStateMachine-DbCcOMzb.esm.js} +3 -3
  51. package/dist/{session-CoPYQelz.esm.js → session-DHMyVkCm.esm.js} +3 -3
  52. package/dist/session.esm.js +4 -4
  53. package/dist/{sessionInitializer-CjnAAND-.esm.js → sessionInitializer-Dkb386bz.esm.js} +3 -3
  54. package/dist/{setup-pvMooZFs.esm.js → setup-BIKgMZ9N.esm.js} +4 -4
  55. package/dist/{trueSightService-B4aCBXnZ.esm.js → trueSightService-DsHApmSr.esm.js} +1 -1
  56. package/dist/video-selfie.esm.js +3 -3
  57. package/dist/{videoSelfieCameraWarmer-Dc5ZDf7a.esm.js → videoSelfieCameraWarmer-Ds3B8RK_.esm.js} +4 -4
  58. package/dist/wasm.esm.js +2 -2
  59. package/dist/workflow.esm.js +14 -14
  60. package/package.json +1 -1
  61. package/dist/selfieErrorUtils-CLXOOKJT.esm.js +0 -90
@@ -1,14 +1,18 @@
1
- import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-B4aCBXnZ.esm.js";
1
+ import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DsHApmSr.esm.js";
2
2
  import { s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
3
3
  import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
4
- import { t as ensureWasmPipelines } from "./setup-pvMooZFs.esm.js";
5
- import "./sessionInitializer-CjnAAND-.esm.js";
4
+ import { t as ensureWasmPipelines } from "./setup-BIKgMZ9N.esm.js";
5
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
6
+ import "./sessionInitializer-Dkb386bz.esm.js";
7
+ import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
6
8
  import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
7
9
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
8
10
  import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
11
+ import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
9
12
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
10
13
  import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CMjkhS2x.esm.js";
11
14
  import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
15
+ import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
12
16
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
13
17
  /**
14
18
  * On-device still-face capture is owned by the protected camera-cycle actor.
@@ -17,6 +21,82 @@ import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStre
17
21
  */
18
22
  const isOnDeviceMode = (config) => config.onDeviceFaceResultsSubmissionEnabled === true;
19
23
  //#endregion
24
+ //#region src/internal/faceCapture/faceUploadErrorCode.ts
25
+ /** `status` values in the body of a 400 from a face upload (`/omni/add/face`). */
26
+ const FACE_UPLOAD_ERROR_CODES = {
27
+ 3004: FACE_ERROR_CODES.FACE_NOT_FOUND,
28
+ 3005: FACE_ERROR_CODES.FACE_NOT_FOUND,
29
+ 3006: FACE_ERROR_CODES.TOO_BLURRY,
30
+ 3007: FACE_ERROR_CODES.TOO_DARK,
31
+ 4010: FACE_ERROR_CODES.MULTIPLE_FACES,
32
+ 4019: FACE_ERROR_CODES.FACE_NOT_FOUND,
33
+ 4077: FACE_ERROR_CODES.BAD_PHOTO_QUALITY,
34
+ 4078: FACE_ERROR_CODES.FACE_OCCLUDED
35
+ };
36
+ /**
37
+ * Maps a rejected face upload to the error the capture screen shows. Only a
38
+ * 400 carries a verdict on the face; any other HTTP status is a server error.
39
+ */
40
+ function getFaceUploadErrorCode(httpStatus, responseStatus) {
41
+ if (httpStatus !== 400) return FACE_ERROR_CODES.SERVER;
42
+ if (responseStatus === void 0) return FACE_ERROR_CODES.BAD_REQUEST;
43
+ return FACE_UPLOAD_ERROR_CODES[responseStatus] ?? FACE_ERROR_CODES.BAD_REQUEST;
44
+ }
45
+ //#endregion
46
+ //#region src/modules/selfie/selfieUploadService.ts
47
+ /**
48
+ * Uploads a selfie image to the backend.
49
+ */
50
+ async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", deepsightService }) {
51
+ try {
52
+ const payload = {
53
+ base64Image: encryptedBase64Image,
54
+ faceCoordinates: faceCoordinates ?? void 0,
55
+ encrypted: true,
56
+ clientInfo: { deviceClass: getDeviceClass() },
57
+ metadata: metadata ?? void 0
58
+ };
59
+ const query = { imageType };
60
+ if (recordingId) query.recordingId = recordingId;
61
+ const res = await api.post(endpoints.selfie, payload, {
62
+ signal,
63
+ query
64
+ });
65
+ if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
66
+ if (deepsightService) addDeviceStats({
67
+ frontIdStatsAnalysisStatus: "",
68
+ backIdStatsAnalysisStatus: "",
69
+ selfieStatsAnalysisStatus: deepsightService.getAnalysisStatus(),
70
+ motionStatus: deepsightService.getMotionStatus()
71
+ });
72
+ return res.data;
73
+ } catch (error) {
74
+ const errorCode = getFaceErrorCodeFromHttpError(error);
75
+ throw withTransportStatus(new Error(errorCode ?? FACE_ERROR_CODES.SERVER), error);
76
+ }
77
+ }
78
+ /**
79
+ * Copies the HTTP status of `source` onto `target`. The code alone cannot say
80
+ * whether the request got a verdict or never reached the backend — a network
81
+ * failure and a 5xx both map to `SERVER_ERROR` — so a caller that retries
82
+ * transport failures needs the status to survive this mapping.
83
+ */
84
+ function withTransportStatus(target, source) {
85
+ if (typeof source === "object" && source !== null && "status" in source && typeof source.status === "number") return Object.assign(target, { status: source.status });
86
+ return target;
87
+ }
88
+ const getFaceErrorCodeFromHttpError = (error) => {
89
+ const err = error;
90
+ if (err.ok !== false || typeof err.status !== "number") return;
91
+ return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
92
+ };
93
+ async function processFace(imageType = "selfie", signal) {
94
+ return (await api.post(endpoints.processFace, {}, {
95
+ query: { imageType },
96
+ signal
97
+ })).data;
98
+ }
99
+ //#endregion
20
100
  //#region src/internal/faceCapture/faceCaptureServices.ts
21
101
  function sendLabelInspectionEvent() {
22
102
  return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
@@ -156,7 +236,7 @@ function startDetection(params) {
156
236
  };
157
237
  }
158
238
  async function initializeDeepsightSession(options) {
159
- const { loadDeepsightSession } = await import("./deepsightLoader-Cp620xVt.esm.js");
239
+ const { loadDeepsightSession } = await import("./deepsightLoader-D9O6b45T.esm.js");
160
240
  return loadDeepsightSession({
161
241
  ds: options.ds,
162
242
  storage: options.storage
@@ -428,4 +508,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
428
508
  }
429
509
  };
430
510
  //#endregion
431
- export { sendLabelInspectionEvent as a, isOnDeviceMode as c, initializeDeepsightSession as i, encryptSelfieImage as n, startDetection as o, initializeCamera as r, stopStream as s, FaceDetectionProvider as t };
511
+ export { sendLabelInspectionEvent as a, processFace as c, isOnDeviceMode as d, initializeDeepsightSession as i, uploadSelfie as l, encryptSelfieImage as n, startDetection as o, initializeCamera as r, stopStream as s, FaceDetectionProvider as t, getFaceUploadErrorCode as u };
@@ -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-CEhXjbaR.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DydLFTCX.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-B4aCBXnZ.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-DsHApmSr.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-Ypuf362T.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B3rrHM0R.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-DvPvONji.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BboXPVJ4.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-pvMooZFs.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BIKgMZ9N.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-uwKSRwvp.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-Ypuf362T.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CHNVNEP_.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-DvPvONji.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,9 +1,9 @@
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-DvN05Fik.esm.js";
4
- import { c as isOnDeviceMode } from "./FaceDetectionProvider-DTEH2hRO.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BzG44cuD.esm.js";
4
+ import { d as isOnDeviceMode } from "./FaceDetectionProvider-BIgdSkHs.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
- import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-26-cuXnc.esm.js";
6
+ import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
7
7
  //#region src/modules/authentication/authenticationErrorUtils.ts
8
8
  const AUTH_ERROR_MAP = {
9
9
  SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
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-DgzWQpAR.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 };
@@ -77,14 +77,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
77
77
  type: "setError";
78
78
  params: NonReducibleUnknown;
79
79
  };
80
- setConsentData: {
81
- type: "setConsentData";
82
- params: NonReducibleUnknown;
83
- };
84
- toggleCheckbox: {
85
- type: "toggleCheckbox";
86
- params: NonReducibleUnknown;
87
- };
88
80
  clearError: {
89
81
  type: "clearError";
90
82
  params: NonReducibleUnknown;
@@ -93,10 +85,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
93
85
  type: "resetContext";
94
86
  params: NonReducibleUnknown;
95
87
  };
88
+ setConsentData: {
89
+ type: "setConsentData";
90
+ params: NonReducibleUnknown;
91
+ };
92
+ toggleCheckbox: {
93
+ type: "toggleCheckbox";
94
+ params: NonReducibleUnknown;
95
+ };
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 }: {
@@ -163,6 +163,21 @@ const cameraCycleProvider = new CameraCycleProvider();
163
163
  //#endregion
164
164
  //#region src/internal/cameraCycle/protectedAttemptActor.ts
165
165
  /**
166
+ * Reads the HTTP status and the body's numeric `status` from a rejected
167
+ * protected upload, so the face flow can show why the backend rejected the
168
+ * capture. Only these two numbers leave the actor, never the response itself.
169
+ */
170
+ const getHttpFailureDetails = (error) => {
171
+ if (typeof error !== "object" || error === null) return {};
172
+ const { status, data } = error;
173
+ if (typeof status !== "number") return {};
174
+ const responseStatus = typeof data === "object" && data !== null ? data.status : void 0;
175
+ return typeof responseStatus === "number" ? {
176
+ httpStatus: status,
177
+ responseStatus
178
+ } : { httpStatus: status };
179
+ };
180
+ /**
166
181
  * Runs the protected lifecycle inside an owning callback actor. Keeping the
167
182
  * implementation callable lets domain controllers compose the exact same
168
183
  * lifecycle without placing its capability-bearing input in machine context.
@@ -228,14 +243,15 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
228
243
  input.releaseUnadoptedStream(stream);
229
244
  } catch {}
230
245
  };
231
- const reportFailure = (stage, code) => {
246
+ const reportFailure = (stage, code, http = {}) => {
232
247
  if (!active) return;
233
248
  sendParent({
234
249
  type: "PROTECTED_ATTEMPT_FAILED",
235
250
  attemptId: input.attemptId,
236
251
  failure: {
237
252
  stage,
238
- code
253
+ code,
254
+ ...http
239
255
  }
240
256
  });
241
257
  };
@@ -563,16 +579,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
563
579
  if (backgrounded) pendingDeliveryEvent = event;
564
580
  else sendParent(event);
565
581
  }
566
- } catch {
582
+ } catch (error) {
583
+ const http = getHttpFailureDetails(error);
567
584
  if (backgrounded) pendingDeliveryEvent = {
568
585
  type: "PROTECTED_ATTEMPT_FAILED",
569
586
  attemptId: input.attemptId,
570
587
  failure: {
571
588
  stage: "upload",
572
- code: "protected-attempt-upload-failed"
589
+ code: "protected-attempt-upload-failed",
590
+ ...http
573
591
  }
574
592
  };
575
- else reportFailure("upload", "protected-attempt-upload-failed");
593
+ else reportFailure("upload", "protected-attempt-upload-failed", http);
576
594
  } finally {
577
595
  deliveryInFlight = false;
578
596
  }
@@ -1,7 +1,7 @@
1
- import { l as trueSightLog } from "./trueSightService-B4aCBXnZ.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-DsHApmSr.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
3
- import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-CjnAAND-.esm.js";
4
- import { t as SDK_VERSION } from "./sdkVersion-DnnSgaug.esm.js";
3
+ import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-Dkb386bz.esm.js";
4
+ import { t as SDK_VERSION } from "./sdkVersion-CEzq0bPr.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-DyNj8RY_.esm.js";
@@ -1,3 +1,3 @@
1
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DChQu8sG.esm.js";
2
- import { t as createDynamicFormsManager } from "./dynamicFormsManager-C3ZlUYMz.esm.js";
1
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CYXP2bWn.esm.js";
2
+ import { t as createDynamicFormsManager } from "./dynamicFormsManager-DnCnvG1a.esm.js";
3
3
  export { createDynamicFormsManager, dynamicFormsMachine };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-DChQu8sG.esm.js";
4
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CYXP2bWn.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-WxmpMFyE.esm.js";
3
+ import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-B7C2i04b.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-BHt7yheb.esm.js";
2
- import { t as ekybMachine } from "./ekybStateMachine-Dfg9eimK.esm.js";
3
- import { t as createEkybManager } from "./ekybManager-D8yIc-An.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-BABr3Ov8.esm.js";
2
+ import { t as ekybMachine } from "./ekybStateMachine-Dhio1vn7.esm.js";
3
+ import { t as createEkybManager } from "./ekybManager-q-VSUBUQ.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-ijlbX_Wx.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-Dfg9eimK.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-Dhio1vn7.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-BHt7yheb.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-BABr3Ov8.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-CEhXjbaR.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-DydLFTCX.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-ijlbX_Wx.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-WxmpMFyE.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-B7C2i04b.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";
@@ -11,7 +11,7 @@ import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
11
11
  import "./StreamCanvasCapture-CeBBJ_RC.js";
12
12
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BtyZRAoe.js";
13
13
  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-DgzWQpAR.js";
14
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
15
15
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
16
16
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-C7qzg_Cm.js";
17
17
  import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
@@ -27,10 +27,10 @@ import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCap
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-BWZbg1Hl.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-CdBVHXGB.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-Q_iUpxa8.esm.js";
2
- import { l as BrowserStorageProvider } from "./setup-pvMooZFs.esm.js";
3
- import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-CjnAAND-.esm.js";
2
+ import { l as BrowserStorageProvider } from "./setup-BIKgMZ9N.esm.js";
3
+ import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-Dkb386bz.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-CEhXjbaR.esm.js";
6
+ import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DydLFTCX.esm.js";
7
7
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-GZ1hVKjb.esm.js";
8
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DvN05Fik.esm.js";
9
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-B3rrHM0R.esm.js";
8
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-BzG44cuD.esm.js";
9
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BboXPVJ4.esm.js";
10
10
  import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-J6v-R_BZ.esm.js";
11
11
  import { n as createConsentManagerFromActor } from "./consentManager-C-G9BmH0.esm.js";
12
12
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-De2pPrbH.esm.js";
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
14
14
  import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-Dv6q4FDh.esm.js";
15
15
  import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DEBrvDy2.esm.js";
16
16
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DLSjvJWz.esm.js";
17
- import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-C3ZlUYMz.esm.js";
18
- import { n as createEkybManagerFromActor } from "./ekybManager-D8yIc-An.esm.js";
17
+ import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DnCnvG1a.esm.js";
18
+ import { n as createEkybManagerFromActor } from "./ekybManager-q-VSUBUQ.esm.js";
19
19
  import { n as createEkycManagerFromActor } from "./ekycManager-qCfa2cno.esm.js";
20
20
  import { n as createEmailManagerFromActor } from "./emailManager-BG1i_Sg_.esm.js";
21
- import { n as createSelfieManagerFromActor } from "./selfieManager-C0UDpaTP.esm.js";
22
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Bbcx53L_.esm.js";
21
+ import { n as createSelfieManagerFromActor } from "./selfieManager-B331XzBJ.esm.js";
22
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-CQkzCUxv.esm.js";
23
23
  import { n as createPhoneManagerFromActor } from "./phoneManager-ZqgujdZa.esm.js";
24
24
  import { n as createWatchlistManagerFromActor } from "./watchlistManager-C2fFRjfx.esm.js";
25
25
  import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-Lcvy9ZUU.esm.js";
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
29
29
  import { n as createIdOcrManagerFromActor } from "./idOcrManager-rcTMBnAD.esm.js";
30
30
  import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-BV0CBEHA.esm.js";
31
31
  import { n as createSignatureManagerFromActor } from "./signatureManager-CmIjQ-cK.esm.js";
32
- import { n as createGeolocationManagerFromActor } from "./geolocationManager-BRq_f7lG.esm.js";
32
+ import { n as createGeolocationManagerFromActor } from "./geolocationManager-DykhXCSG.esm.js";
33
33
  import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-BLo9Ai_v.esm.js";
34
34
  import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BE5cnWcf.esm.js";
35
35
  import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-DmDy-g8s.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.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-DvN05Fik.esm.js";
4
+ import { r as concealmentToAvatar } from "./faceCaptureSetup-BzG44cuD.esm.js";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B9IqVf3c.esm.js";
@@ -1,16 +1,16 @@
1
- import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-B4aCBXnZ.esm.js";
1
+ import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-DsHApmSr.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-CjnAAND-.esm.js";
4
+ import "./sessionInitializer-Dkb386bz.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-B9IqVf3c.esm.js";
11
- import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-DTEH2hRO.esm.js";
11
+ import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-BIgdSkHs.esm.js";
12
12
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
13
- import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-26-cuXnc.esm.js";
13
+ import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
14
14
  import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
15
15
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
16
16
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DS36X5Hh.esm.js";
@@ -1370,10 +1370,13 @@ const faceCaptureMachine = setup({
1370
1370
  }),
1371
1371
  setUploadResponseFromEvent: assign({ uploadResponse: ({ event }) => event.output }),
1372
1372
  setProcessResponseFromEvent: assign({ processResponse: ({ event }) => event.output }),
1373
- setServerErrorAndDecrement: assign(({ context }) => ({
1374
- uploadError: FACE_ERROR_CODES.SERVER,
1375
- attemptsRemaining: context.attemptsRemaining - 1
1376
- })),
1373
+ setUploadFailureAndDecrement: assign(({ context, event }) => {
1374
+ const { httpStatus, responseStatus } = event.failure;
1375
+ return {
1376
+ uploadError: httpStatus === void 0 ? FACE_ERROR_CODES.SERVER : getFaceUploadErrorCode(httpStatus, responseStatus),
1377
+ attemptsRemaining: context.attemptsRemaining - 1
1378
+ };
1379
+ }),
1377
1380
  sendLabelInspection: () => {
1378
1381
  sendLabelInspectionEvent();
1379
1382
  },
@@ -1789,7 +1792,7 @@ const faceCaptureMachine = setup({
1789
1792
  {
1790
1793
  target: ".uploadError",
1791
1794
  guard: "isProtectedUploadFailure",
1792
- actions: "setServerErrorAndDecrement"
1795
+ actions: "setUploadFailureAndDecrement"
1793
1796
  },
1794
1797
  {
1795
1798
  target: "#faceCapture.error",
@@ -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-DnnSgaug.esm.js";
2
+ import { t as SDK_VERSION } from "./sdkVersion-CEzq0bPr.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-Iccy3Pud.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-DClH0UkN.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.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { v as addEvent } from "./events-ijlbX_Wx.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-BHt7yheb.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-BABr3Ov8.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-CnEzBkv0.esm.js";
6
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DiBvktp5.esm.js";
5
+ import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DRpB7aag.esm.js";
6
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CZbSjlSO.esm.js";
7
7
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
8
8
  //#region src/modules/flow/noOpFlowModuleMachine.ts
9
9
  const noOpFlowModuleMachine = 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-WxmpMFyE.esm.js";
3
+ import { i as toIncodeApiError } from "./apiError-B7C2i04b.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-DLq_t-Zu.esm.js";
2
- import { E as updateFeatureManagementUser } from "./feature-management-Iccy3Pud.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-DClH0UkN.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-CjnAAND-.esm.js";
4
+ import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-Dkb386bz.esm.js";
5
5
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
6
- import { i as toIncodeApiError } from "./apiError-WxmpMFyE.esm.js";
7
- import "./session-CoPYQelz.esm.js";
6
+ import { i as toIncodeApiError } from "./apiError-B7C2i04b.esm.js";
7
+ import "./session-DHMyVkCm.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-BRq_f7lG.esm.js";
2
- import { t as geolocationMachine } from "./geolocationStateMachine-CxRpGoq1.esm.js";
1
+ import { t as createGeolocationManager } from "./geolocationManager-DykhXCSG.esm.js";
2
+ import { t as geolocationMachine } from "./geolocationStateMachine-DtQJPfbx.esm.js";
3
3
  export { createGeolocationManager, geolocationMachine };
@@ -1,6 +1,6 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
3
- import { t as geolocationMachine } from "./geolocationStateMachine-CxRpGoq1.esm.js";
3
+ import { t as geolocationMachine } from "./geolocationStateMachine-DtQJPfbx.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-WxmpMFyE.esm.js";
4
+ import { n as isConnectivityError } from "./apiError-B7C2i04b.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[];