@incodetech/core 2.3.0-rc.1 → 2.3.0-rc.11

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 (90) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
  2. package/dist/{FaceDetectionProvider-BfhWkK90.esm.js → FaceDetectionProvider-D5FNNkoJ.esm.js} +8 -8
  3. package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-Budb6m6w.esm.js → apiError-BmktKO7R.esm.js} +1 -1
  6. package/dist/authentication.d.ts +2 -2
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-CjXBjC-c.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
  9. package/dist/{authenticationManager-cMXhG70r.esm.js → authenticationManager-CSCtXfWz.esm.js} +4 -4
  10. package/dist/{authenticationStateMachine-MOYz4HCf.esm.js → authenticationStateMachine-BBPaXbO0.esm.js} +3 -3
  11. package/dist/{backCameraStream-BOtyQowf.esm.js → backCameraStream-B0-YgP_y.esm.js} +1 -0
  12. package/dist/camera.esm.js +1 -1
  13. package/dist/consent.d.ts +1 -1
  14. package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
  15. package/dist/{createCameraCycleOwnership-CX3hJGKc.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +6 -1
  16. package/dist/{deepsightLoader-DDv3vhXU.esm.js → deepsightLoader-U24VrP2r.esm.js} +6 -6
  17. package/dist/document-capture.d.ts +1 -1
  18. package/dist/document-capture.esm.js +2 -2
  19. package/dist/{documentCaptureManager-CwAiM9WY.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
  20. package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-lEtCM320.d.ts} +14 -0
  21. package/dist/{documentCaptureStateMachine-DfGOBapD.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +13 -8
  22. package/dist/dynamic-forms.esm.js +2 -2
  23. package/dist/{dynamicFormsManager-BbS-XMFc.esm.js → dynamicFormsManager-DJ9GQ1HY.esm.js} +1 -1
  24. package/dist/{dynamicFormsStateMachine-D8zHBCh4.esm.js → dynamicFormsStateMachine-D6oLfWyM.esm.js} +1 -1
  25. package/dist/ekyb.esm.js +3 -3
  26. package/dist/{ekybManager-5aiac8wL.esm.js → ekybManager-BDtwhSrQ.esm.js} +1 -1
  27. package/dist/{ekybStateMachine-Bn2IE9rx.esm.js → ekybStateMachine-B4qbgC_I.esm.js} +1 -1
  28. package/dist/electronic-signature.esm.js +1 -1
  29. package/dist/{electronicSignatureManager-BJJH0Tvi.esm.js → electronicSignatureManager-i9KSHGcI.esm.js} +1 -1
  30. package/dist/extensibility.d.ts +7 -7
  31. package/dist/extensibility.esm.js +13 -13
  32. package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +80 -40
  33. package/dist/{faceCaptureManagerFactory-B7Ms6pSs.esm.js → faceCaptureManagerFactory-Df6oe5Zi.esm.js} +3 -3
  34. package/dist/{faceCaptureSetup-bkAlr5d8.esm.js → faceCaptureSetup-DrJvjpVf.esm.js} +267 -45
  35. package/dist/{feature-management-E0mq0pMs.esm.js → feature-management-CT71kF7K.esm.js} +1 -1
  36. package/dist/feature-management.esm.js +1 -1
  37. package/dist/fiscal-qr.esm.js +1 -1
  38. package/dist/{fiscalQrManager-BunLVFbd.esm.js → fiscalQrManager-DbCVMIBx.esm.js} +1 -1
  39. package/dist/flow.esm.js +3 -3
  40. package/dist/{flowCompletionService-DJp1odGN.esm.js → flowCompletionService-DbMQ7zEQ.esm.js} +1 -1
  41. package/dist/{flowServices-DjPFGs_D.esm.js → flowServices-ZXug3wzs.esm.js} +5 -5
  42. package/dist/geolocation.esm.js +2 -2
  43. package/dist/{geolocationManager-D5906YXx.esm.js → geolocationManager-DbfRyrLW.esm.js} +1 -1
  44. package/dist/{geolocationStateMachine-BVOduc3y.esm.js → geolocationStateMachine-CP8_KHBU.esm.js} +1 -1
  45. package/dist/id-selfie-flow.esm.js +9 -9
  46. package/dist/id.d.ts +2 -2
  47. package/dist/id.esm.js +4 -4
  48. package/dist/idCaptureDefaults-CqdpEg3N.esm.js +282 -0
  49. package/dist/{idCaptureManager-DKESug0R.d.ts → idCaptureManager-BaHEyQyr.d.ts} +23 -5
  50. package/dist/{idCaptureManager-rfV9dIXy.esm.js → idCaptureManager-Bs6p5LKF.esm.js} +5 -5
  51. package/dist/{idCaptureServices-i1KxugN7.esm.js → idCaptureServices-xi9Pthk2.esm.js} +60 -13
  52. package/dist/{idCaptureStateMachine-Ne_PXth_.esm.js → idCaptureStateMachine-BYgxfqHv.esm.js} +221 -76
  53. package/dist/index.d.ts +1 -1
  54. package/dist/index.esm.js +1 -1
  55. package/dist/mandatory-consent.d.ts +1 -1
  56. package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +4 -4
  57. package/dist/{multipartRecordingService-OEgIRvqC.esm.js → multipartRecordingService-YKu0Bd7S.esm.js} +490 -8
  58. package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
  59. package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
  60. package/dist/qe-signature.esm.js +1 -1
  61. package/dist/{runChildModule-CI1gGWN1.esm.js → runChildModule-BhK3islQ.esm.js} +1 -1
  62. package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
  63. package/dist/{sdkVersion-BZh6dj53.esm.js → sdkVersion-B8ok4TX0.esm.js} +1 -1
  64. package/dist/selfie.d.ts +2 -2
  65. package/dist/selfie.esm.js +7 -7
  66. package/dist/{selfieManager-4RRLi21P.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
  67. package/dist/{selfieManager-B-2c1n_x.esm.js → selfieManager-CGWnCp26.esm.js} +4 -4
  68. package/dist/{selfieStateMachine-Bzx41R8d.esm.js → selfieStateMachine-B27MSUWB.esm.js} +3 -3
  69. package/dist/{session-3LmvAU4S.esm.js → session-BRsgJ-Ek.esm.js} +3 -3
  70. package/dist/session.esm.js +4 -4
  71. package/dist/{sessionInitializer-BFk33E67.esm.js → sessionInitializer-NKOKaYzH.esm.js} +4 -4
  72. package/dist/{setup-BWG-hivt.esm.js → setup-BqZsYdcN.esm.js} +12 -200
  73. package/dist/{setup-Cv-JM9QC.d.ts → setup-Cyko6cAn.d.ts} +6 -18
  74. package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
  75. package/dist/tri.esm.js +1 -1
  76. package/dist/{trueSightService-BN-Hzw82.esm.js → trueSightService-CvCQ1O8I.esm.js} +189 -570
  77. package/dist/video-selfie.esm.js +57 -13
  78. package/dist/{videoSelfieCameraWarmer-B8PcYqmz.esm.js → videoSelfieCameraWarmer-DEwDuHEE.esm.js} +6 -6
  79. package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
  80. package/dist/wasm.d.ts +1 -1
  81. package/dist/wasm.esm.js +3 -2
  82. package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
  83. package/dist/workflow.esm.js +15 -15
  84. package/package.json +1 -6
  85. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
  86. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +0 -42
  87. package/dist/idCaptureDefaults-CbPA-Auz.esm.js +0 -727
  88. package/dist/personhood.d.ts +0 -538
  89. package/dist/personhood.esm.js +0 -1574
  90. package/dist/types-BT_Oalip.d.ts +0 -1
@@ -1,16 +1,15 @@
1
- import { t as ensureWasmPipelines } from "./setup-BWG-hivt.esm.js";
2
- import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-BdU9_m2E.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-Bx3gKW_y.esm.js";
5
5
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
6
- import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-DjPFGs_D.esm.js";
6
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-ZXug3wzs.esm.js";
7
7
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
8
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
9
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
10
- import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
11
- import { i as CameraCompositor } from "./idCaptureDefaults-CbPA-Auz.esm.js";
10
+ import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-YKu0Bd7S.esm.js";
12
11
  import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
13
- import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-B8PcYqmz.esm.js";
12
+ import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-DEwDuHEE.esm.js";
14
13
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
15
14
  //#region src/modules/video-selfie/videoSelfieWasm.ts
16
15
  function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
@@ -29,6 +28,17 @@ function recordingIdFromEvent(event) {
29
28
  function errorFromEvent(event) {
30
29
  return String(event.error);
31
30
  }
31
+ /**
32
+ * Chromium reports a camera the device cannot open right now as
33
+ * `NotReadableError` ("Could not start video source") or `AbortError`
34
+ * ("Starting videoinput failed") — the same pair the rear-camera acquire
35
+ * retries on. Anything else (permission, no device) will not clear by
36
+ * releasing our own camera.
37
+ */
38
+ function isCameraBusyError(error) {
39
+ const name = typeof error === "object" && error !== null && "name" in error ? error.name : void 0;
40
+ return name === "NotReadableError" || name === "AbortError";
41
+ }
32
42
  function detectionStatusFromEvent(event) {
33
43
  return event.status;
34
44
  }
@@ -48,6 +58,12 @@ function orientationFromEvent(event) {
48
58
  return event.orientation;
49
59
  }
50
60
  const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
61
+ /**
62
+ * How long a just-stopped camera gets to release before another one is
63
+ * opened (see `releasingCamera`). Same settle the rear-camera acquire uses
64
+ * on a busy device; a hardware knob, not a protocol value.
65
+ */
66
+ const CAMERA_RELEASE_SETTLE_MS = 300;
51
67
  const ID_FLIP_DWELL_MS = 4e3;
52
68
  const FINAL_SUCCESS_DWELL_MS = 3e3;
53
69
  const MAX_VIDEO_LENGTH_ERROR_DWELL_MS = 3e3;
@@ -87,6 +103,9 @@ function waitForDwell(ms, signal) {
87
103
  * │
88
104
  * ▼
89
105
  * recording ⇄ switchingCamera
106
+ * │ │ busy camera (ENG-57332)
107
+ * │ ▼
108
+ * │ releasingCamera ─settle▶ retry once
90
109
  * │ (capture validated → DETECTION_DONE,
91
110
  * │ or manual NEXT_STEP)
92
111
  * last step ─▶ finalizing ─▶ finished
@@ -111,7 +130,8 @@ const videoSelfieRecordingSetup = setup({
111
130
  ID_FLIP_DWELL: ID_FLIP_DWELL_MS,
112
131
  FINAL_SUCCESS_DWELL: FINAL_SUCCESS_DWELL_MS,
113
132
  MAX_VIDEO_LENGTH_ERROR_DWELL: MAX_VIDEO_LENGTH_ERROR_DWELL_MS,
114
- VALIDATION_FEEDBACK_DWELL: VALIDATION_FEEDBACK_DWELL_MS
133
+ VALIDATION_FEEDBACK_DWELL: VALIDATION_FEEDBACK_DWELL_MS,
134
+ CAMERA_RELEASE_SETTLE: CAMERA_RELEASE_SETTLE_MS
115
135
  },
116
136
  actors: {
117
137
  prepareWasm: fromPromise(async ({ input }) => input.ensure()),
@@ -220,7 +240,8 @@ const videoSelfieRecordingSetup = setup({
220
240
  advanceStep: assign({
221
241
  stepIndex: ({ context }) => context.stepIndex + 1,
222
242
  attemptsRemaining: ({ context }) => context.attemptsPerStep,
223
- validationFailure: () => void 0
243
+ validationFailure: () => void 0,
244
+ cameraSwitchRetried: () => false
224
245
  }),
225
246
  setDetectionStatus: assign({ detectionStatus: ({ event }) => detectionStatusFromEvent(event) }),
226
247
  setOrientation: assign({ orientation: ({ event }) => orientationFromEvent(event) }),
@@ -264,6 +285,7 @@ const videoSelfieRecordingSetup = setup({
264
285
  }),
265
286
  resetSession: assign(({ context }) => ({
266
287
  stepIndex: 0,
288
+ cameraSwitchRetried: false,
267
289
  stream: void 0,
268
290
  composite: void 0,
269
291
  detectionStatus: void 0,
@@ -300,7 +322,10 @@ const videoSelfieRecordingSetup = setup({
300
322
  setPauseError: assign({
301
323
  error: () => "Recording could not be paused before backgrounding",
302
324
  errorKind: () => "technical"
303
- })
325
+ }),
326
+ releaseCurrentVideo: ({ context }) => {
327
+ context.stream?.getVideoTracks().forEach((track) => track.stop());
328
+ }
304
329
  },
305
330
  guards: {
306
331
  shouldEnterWasmGate: ({ context }) => context.ensureWasmReady !== void 0 && context.errorKind !== "maxVideoLengthReached" && context.errorKind !== "validationAttemptsExhausted",
@@ -312,6 +337,7 @@ const videoSelfieRecordingSetup = setup({
312
337
  maxVideoLengthWasReached: ({ context }) => context.errorKind === "maxVideoLengthReached",
313
338
  validationAttemptsWereExhausted: ({ context }) => context.errorKind === "validationAttemptsExhausted",
314
339
  errorIsRetryable: ({ context }) => context.errorKind !== "maxVideoLengthReached" && context.errorKind !== "validationAttemptsExhausted",
340
+ canRetryCameraSwitchAfterRelease: ({ context, event }) => !context.cameraSwitchRetried && isCameraBusyError(event.error),
315
341
  pageIsHidden: ({ context }) => !context.isPageVisible,
316
342
  pauseFailed: ({ event }) => !event.output,
317
343
  pauseSucceededWhileVisible: ({ context, event }) => context.isPageVisible && event.output,
@@ -372,7 +398,8 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
372
398
  recordingId: null,
373
399
  error: void 0,
374
400
  errorKind: void 0,
375
- switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS
401
+ switchingCameraMinDwellMs: input.dependencies?.switchingCameraMinDwellMs ?? SWITCHING_CAMERA_MIN_DWELL_MS,
402
+ cameraSwitchRetried: false
376
403
  };
377
404
  },
378
405
  invoke: [{
@@ -543,12 +570,29 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
543
570
  context.compositor.switchVideo(eventOutputStream(event));
544
571
  }, assign({ stream: ({ event }) => eventOutputStream(event) })]
545
572
  },
546
- onError: {
573
+ onError: [{
574
+ target: "releasingCamera",
575
+ guard: "canRetryCameraSwitchAfterRelease"
576
+ }, {
547
577
  target: "error",
548
578
  actions: assign({ error: ({ event }) => errorFromEvent(event) })
549
- }
579
+ }]
550
580
  }
551
581
  },
582
+ releasingCamera: {
583
+ entry: ["releaseCurrentVideo", assign({ cameraSwitchRetried: () => true })],
584
+ on: {
585
+ BACKGROUND: {
586
+ target: "pausing",
587
+ actions: ["markPageHidden", assign({ resumeState: () => "switchingCamera" })]
588
+ },
589
+ MAX_VIDEO_LENGTH_REACHED: {
590
+ target: "finalizing",
591
+ actions: "setMaxVideoLengthReached"
592
+ }
593
+ },
594
+ after: { CAMERA_RELEASE_SETTLE: { target: "switchingCamera" } }
595
+ },
552
596
  pausing: {
553
597
  on: { MAX_VIDEO_LENGTH_REACHED: { actions: "setMaxVideoLengthReached" } },
554
598
  invoke: {
@@ -839,7 +883,7 @@ function createVideoSelfieRecordingActor(visibilityObserver, options = {}) {
839
883
  function mapState(snapshot) {
840
884
  const value = typeof snapshot.value === "string" ? snapshot.value : "idle";
841
885
  const { context } = snapshot;
842
- const status = value === "preparingWasm" || value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value;
886
+ const status = value === "preparingWasm" || value === "acquiringCamera" ? "starting" : value === "pausing" || value === "suspended" || value === "resumingCompositor" || value === "reacquiringCamera" || value === "validatingRecoveredCamera" || value === "resumingRecorder" ? "recording" : value === "releasingCamera" ? "switchingCamera" : value;
843
887
  const steps = context.steps;
844
888
  const stepIndex = context.stepIndex;
845
889
  return {
@@ -1,16 +1,16 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
3
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
4
- import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-DjPFGs_D.esm.js";
4
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-ZXug3wzs.esm.js";
5
5
  import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
6
- import { t as checkPermission } from "./permissionServices-Bj_fyWtv.esm.js";
7
- import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-BfhWkK90.esm.js";
6
+ import { t as checkPermission } from "./permissionServices-EY3_Vx6c.esm.js";
7
+ import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-D5FNNkoJ.esm.js";
8
8
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
9
- import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
10
- import { n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
9
+ import { i as StreamCanvasProcessingSession } from "./multipartRecordingService-YKu0Bd7S.esm.js";
10
+ import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
11
11
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
12
12
  import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-UiQ46EBa.esm.js";
13
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CbPA-Auz.esm.js";
13
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CqdpEg3N.esm.js";
14
14
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
15
15
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
16
16
  async function postVideoSelfieCompare(endpoint, base64Image) {
@@ -363,6 +363,11 @@ var WasmRuntime = class WasmRuntime {
363
363
  captureProtectedFrame(target) {
364
364
  return this.requireCameraCycleApi("Unable to capture protected frame, cpp API hasn't been initialized").mcp(target);
365
365
  }
366
+ /**
367
+ * @deprecated Unused by SDK 2 production flows.
368
+ * Retained for compatibility; avoid new uses.
369
+ * Candidate for removal after a compatibility review.
370
+ */
366
371
  paintFrameToCanvas(canvas, options) {
367
372
  return this.requireCameraCycleApi("Unable to paint frame, cpp API hasn't been initialized").pfc(canvas, options);
368
373
  }
package/dist/wasm.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-Cis2p6O0.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-Cv-JM9QC.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-Cyko6cAn.js";
3
3
  //#region ../infra/src/wasm/wasmDefaults.d.ts
4
4
  /** The WASM version bundled and tested with this SDK release. */
5
5
  declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
package/dist/wasm.esm.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
2
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, d as buildDefaultWasmConfig, f as buildWasmConfigFromBasePath, m as resolveWasmConfig, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines, u as DEFAULT_WASM_VERSION } from "./setup-BWG-hivt.esm.js";
3
- import { o as warmupWasm } from "./warmup-CUUnwYxe.esm.js";
2
+ import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-CvCQ1O8I.esm.js";
3
+ import { o as warmupWasm } from "./warmup-ChDwHSel.esm.js";
4
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BqZsYdcN.esm.js";
4
5
  //#region src/defineWasm.ts
5
6
  function requiredModels(pipelines) {
6
7
  const models = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { a as utilityWasmApi } from "./safeStorage-B-trhxg6.esm.js";
1
+ import { a as utilityWasmApi } from "./safeStorage-BdU9_m2E.esm.js";
2
2
  //#region ../infra/src/wasm/wasmDsFlagSync.ts
3
3
  /**
4
4
  * Sets the Deepsight (ds) flag that the WASM utility API receives on every
@@ -1,29 +1,29 @@
1
- import { E as updateFeatureManagementUser } from "./feature-management-E0mq0pMs.esm.js";
1
+ import { l as trueSightLog } from "./trueSightService-CvCQ1O8I.esm.js";
2
+ import { E as updateFeatureManagementUser } from "./feature-management-CT71kF7K.esm.js";
2
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-BN-Hzw82.esm.js";
4
4
  import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-ijlbX_Wx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BFk33E67.esm.js";
5
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-NKOKaYzH.esm.js";
6
6
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
7
- import { i as toIncodeApiError } from "./apiError-Budb6m6w.esm.js";
8
- import { v as toEkybConfig } from "./flowServices-DjPFGs_D.esm.js";
7
+ import { i as toIncodeApiError } from "./apiError-BmktKO7R.esm.js";
8
+ import { v as toEkybConfig } from "./flowServices-ZXug3wzs.esm.js";
9
9
  import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
10
10
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
11
11
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-BJJH0Tvi.esm.js";
12
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-i9KSHGcI.esm.js";
13
13
  import "./ae-signature.esm.js";
14
14
  import { t as antifraudMachine } from "./antifraudStateMachine-DBeq47D2.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-MOYz4HCf.esm.js";
15
+ import { t as authenticationMachine } from "./authenticationStateMachine-BBPaXbO0.esm.js";
16
16
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CxqS_nD-.esm.js";
17
17
  import { t as consentMachine } from "./consentStateMachine-DTSfdGiW.esm.js";
18
18
  import { t as curpValidationMachine } from "./curpValidationStateMachine-g5kMfuLj.esm.js";
19
19
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DOQou6TW.esm.js";
20
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-DfGOBapD.esm.js";
21
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D8zHBCh4.esm.js";
22
- import { t as ekybMachine } from "./ekybStateMachine-Bn2IE9rx.esm.js";
20
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-D312sSIu.esm.js";
21
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-D6oLfWyM.esm.js";
22
+ import { t as ekybMachine } from "./ekybStateMachine-B4qbgC_I.esm.js";
23
23
  import { t as ekycMachine } from "./ekycStateMachine-CshSNJhh.esm.js";
24
24
  import { t as emailMachine } from "./emailStateMachine-Bc_6oIYw.esm.js";
25
- import { t as selfieMachine } from "./selfieStateMachine-Bzx41R8d.esm.js";
26
- import { t as idCaptureMachine } from "./idCaptureStateMachine-Ne_PXth_.esm.js";
25
+ import { t as selfieMachine } from "./selfieStateMachine-B27MSUWB.esm.js";
26
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-BYgxfqHv.esm.js";
27
27
  import { t as phoneMachine } from "./phoneStateMachine-CXdXufKg.esm.js";
28
28
  import { t as watchlistMachine } from "./watchlistStateMachine-CBqk2w-h.esm.js";
29
29
  import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-CJ-MvUre.esm.js";
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DC5
32
32
  import { t as idOcrStateMachine } from "./idOcrStateMachine-ClDEP-VI.esm.js";
33
33
  import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CSWWgUTO.esm.js";
34
34
  import { t as signatureMachine } from "./signatureStateMachine-ce_XMA3l.esm.js";
35
- import { t as geolocationMachine } from "./geolocationStateMachine-BVOduc3y.esm.js";
35
+ import { t as geolocationMachine } from "./geolocationStateMachine-CP8_KHBU.esm.js";
36
36
  import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CoaZOSTP.esm.js";
37
37
  import { t as idVerificationMachine } from "./idVerificationStateMachine-DbDVIh9t.esm.js";
38
38
  import { t as faceMatchMachine } from "./faceMatchStateMachine-mRIHQ3dA.esm.js";
39
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DJp1odGN.esm.js";
40
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CI1gGWN1.esm.js";
39
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-DbMQ7zEQ.esm.js";
40
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BhK3islQ.esm.js";
41
41
  import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
42
42
  import "./qe-signature.esm.js";
43
43
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "2.3.0-rc.1",
3
+ "version": "2.3.0-rc.11",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,11 +50,6 @@
50
50
  "types": "./dist/id-selfie-flow.d.ts",
51
51
  "import": "./dist/id-selfie-flow.esm.js"
52
52
  },
53
- "./personhood": {
54
- "source": "./src/modules/personhood/index.ts",
55
- "types": "./dist/personhood.d.ts",
56
- "import": "./dist/personhood.esm.js"
57
- },
58
53
  "./authentication": {
59
54
  "source": "./src/modules/authentication/index.ts",
60
55
  "types": "./dist/authentication.d.ts",
@@ -1,36 +0,0 @@
1
- import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, v as WebApiHostRequestConfig } from "./createFaceAvatar-BlcTYgJv.js";
2
- import { t as BaseWasmProvider } from "./BaseWasmProvider-Dyi6dKp1.js";
3
- //#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
4
- declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
5
- private defaultThresholds;
6
- private currentThresholds;
7
- private currentFrame;
8
- private onFaceDataCallback;
9
- constructor();
10
- processFrame(image: ImageData): Promise<void>;
11
- initialize(config: FaceDetectionConfig): Promise<void>;
12
- /**
13
- * Last-registered onCapture callback — captured into a private
14
- * field so `forceCapture()` (called from outside the WASM-callback
15
- * lifecycle) can re-fire the same wrapper. `setCallbacks` rebinds
16
- * this on each invocation, so the field always reflects the
17
- * current consumer.
18
- */
19
- private currentOnCaptureWrapper;
20
- processPhoto(canvas: HTMLCanvasElement): void;
21
- postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
22
- setCallbacks(callbacks: FaceDetectionCallbacks): void;
23
- setPositionConstraints(constraints: FacePositionConstraints): void;
24
- applyDefaults(autocaptureInterval?: number): void;
25
- setAutocaptureInterval(interval: number): void;
26
- setThresholds(thresholds: FaceDetectionThresholds): void;
27
- setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
28
- setChecksEnabled(config: FaceChecksConfig): void;
29
- setVideoSelfieMode(enabled: boolean): void;
30
- forceCapture(): void;
31
- reset(): void;
32
- private createDefaultFaceCoordinates;
33
- private formatFaceCoordinates;
34
- }
35
- //#endregion
36
- export { FaceDetectionProvider as t };
@@ -1,42 +0,0 @@
1
- //#region ../infra/src/media/StreamCanvasProcessingSession.ts
2
- var StreamCanvasProcessingSession = class {
3
- /**
4
- * Creates a processing session that reacts to `StreamCanvasCapture` frame events
5
- * and drives a provider's `processFrame()` method with backpressure.
6
- */
7
- constructor(params) {
8
- this.disposed = false;
9
- this.isProcessing = false;
10
- this.onFrameEvent = () => {
11
- if (this.disposed || this.isProcessing) return;
12
- const frame = this.capturer.getLatestFrame();
13
- if (!frame) return;
14
- this.onFrame?.(frame);
15
- this.isProcessing = true;
16
- this.provider.processFrame(frame).catch(() => {}).finally(() => {
17
- this.isProcessing = false;
18
- });
19
- };
20
- this.capturer = params.capturer;
21
- this.provider = params.provider;
22
- this.onFrame = params.onFrame;
23
- this.capturer.addEventListener("frame", this.onFrameEvent);
24
- }
25
- /**
26
- * Unsubscribes from frame events and resets the provider.
27
- */
28
- dispose() {
29
- if (this.disposed) return;
30
- this.disposed = true;
31
- this.capturer.removeEventListener("frame", this.onFrameEvent);
32
- this.provider.reset();
33
- }
34
- /**
35
- * Returns whether the session has been disposed.
36
- */
37
- isDisposed() {
38
- return this.disposed;
39
- }
40
- };
41
- //#endregion
42
- export { StreamCanvasProcessingSession as t };