@incodetech/core 0.0.0-dev-20260513-bd7468a → 0.0.0-dev-20260513-01117ee

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 (53) hide show
  1. package/dist/{BaseWasmProvider-Bu4azcTX.esm.js → BaseWasmProvider-DH_gKrT1.esm.js} +34 -14
  2. package/dist/{WasmUtilProvider-SfxSRFia.esm.js → WasmUtilProvider-BUL0e3y3.esm.js} +1 -1
  3. package/dist/ae-signature.d.ts +1 -1
  4. package/dist/authentication.d.ts +4 -4
  5. package/dist/authentication.esm.js +6 -6
  6. package/dist/{authenticationManager-C4TXJ1ks.d.ts → authenticationManager-n522JIjj.d.ts} +1 -1
  7. package/dist/{authenticationManager-DKgCv3pF.esm.js → authenticationManager-nJYI5afZ.esm.js} +2 -2
  8. package/dist/{authenticationStateMachine-geSw_TiG.esm.js → authenticationStateMachine-CsSrQRE6.esm.js} +2 -2
  9. package/dist/consent.d.ts +50 -50
  10. package/dist/cpf-ocr.d.ts +20 -20
  11. package/dist/{deepsightLoader-x8uElw1j.esm.js → deepsightLoader-B5X9VDVQ.esm.js} +2 -2
  12. package/dist/{deepsightService-DcyA6veM.d.ts → deepsightService-iR5eUj-q.d.ts} +7 -2
  13. package/dist/document-capture.d.ts +77 -77
  14. package/dist/document-upload.d.ts +49 -49
  15. package/dist/ekyb.esm.js +3 -3
  16. package/dist/{ekybStateMachine--30al4Hn.esm.js → ekybStateMachine-F6ifg7iw.esm.js} +1 -1
  17. package/dist/electronic-signature.d.ts +1 -1
  18. package/dist/extensibility.d.ts +6 -6
  19. package/dist/extensibility.esm.js +11 -11
  20. package/dist/{faceCaptureManagerFactory-B5Y3FfoN.d.ts → faceCaptureManagerFactory-D_0unIOu.d.ts} +8 -3
  21. package/dist/{faceCaptureSetup-BOxJpspi.esm.js → faceCaptureSetup-B6C6c4VH.esm.js} +1 -1
  22. package/dist/flow.d.ts +3 -3
  23. package/dist/flow.esm.js +2 -2
  24. package/dist/{flowServices-Cz2NS6B7.esm.js → flowServices-BcHsmMgT.esm.js} +1 -1
  25. package/dist/home.d.ts +10 -10
  26. package/dist/id-ocr.d.ts +52 -52
  27. package/dist/id.d.ts +3 -3
  28. package/dist/id.esm.js +5 -5
  29. package/dist/{idCaptureManager-BVB7NT4-.esm.js → idCaptureManager-BmZ921SQ.esm.js} +1 -1
  30. package/dist/{idCaptureManager-xcvgBlVg.d.ts → idCaptureManager-D7ySt2kS.d.ts} +1 -1
  31. package/dist/{idCaptureStateMachine-CLmH30EO.esm.js → idCaptureStateMachine-Ci9rDeNr.esm.js} +4 -4
  32. package/dist/identity-reuse.d.ts +47 -47
  33. package/dist/{index-MR0onOVn.d.ts → index-BfVtDmIM.d.ts} +119 -119
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.esm.js +4 -4
  36. package/dist/mandatory-consent.d.ts +50 -50
  37. package/dist/qe-signature.d.ts +1 -1
  38. package/dist/{recordingService-nld1dmq3.esm.js → recordingService-CxkQ8qPN.esm.js} +2 -2
  39. package/dist/selfie.d.ts +4 -4
  40. package/dist/selfie.esm.js +6 -6
  41. package/dist/{selfieManager-WzciIiw1.esm.js → selfieManager-AbbQvMQi.esm.js} +2 -2
  42. package/dist/{selfieManager-Dybo0xhh.d.ts → selfieManager-D8hcowzr.d.ts} +1 -1
  43. package/dist/{selfieStateMachine-BvWPI1sO.esm.js → selfieStateMachine-ih4r0M5j.esm.js} +2 -2
  44. package/dist/{session-CbiZS-Qk.esm.js → session-t-6sejAl.esm.js} +1 -1
  45. package/dist/session.esm.js +1 -1
  46. package/dist/{setup-BY7BrECy.esm.js → setup-DEoimeck.esm.js} +19 -6
  47. package/dist/{setup-DilJvLUI.d.ts → setup-PbjtzVlX.d.ts} +7 -2
  48. package/dist/{warmup-Ci_Tv70s.d.ts → warmup-Odyc9Y28.d.ts} +5 -0
  49. package/dist/wasm.d.ts +3 -3
  50. package/dist/wasm.esm.js +4 -4
  51. package/dist/workflow.d.ts +84 -84
  52. package/dist/workflow.esm.js +9 -9
  53. package/package.json +3 -3
@@ -122,25 +122,34 @@ async function instantiate(factory, libPath) {
122
122
  return await factory();
123
123
  }
124
124
  /**
125
+ * Derive a sibling `.js` path from a `.wasm` path by replacing the trailing
126
+ * extension. Used as a last-resort default when callers pass a `wasmSimdPath`
127
+ * without an accompanying `glueCodeSimdPath` — matches the legacy CDN naming
128
+ * convention (`webLibSimd.wasm` <-> `webLibSimd.js`).
129
+ */
130
+ function deriveSiblingJsPath(wasmPath) {
131
+ return wasmPath.replace(/\.wasm($|\?)/, ".js$1");
132
+ }
133
+ /**
125
134
  * Load the WASM module, memoized. Subsequent calls return the same instance.
126
135
  *
127
136
  * SIMD-first with fallback: if `useSimd !== false` and a `wasmSimdPath` is
128
- * provided, the SIMD binary is tried first; on instantiation failure the
129
- * non-SIMD binary is used.
137
+ * provided, the SIMD binary + SIMD glue are tried first; on instantiation
138
+ * failure the non-SIMD binary + non-SIMD glue are used. Each `.wasm` is
139
+ * paired with its matching `.js` glue — they cannot be mixed.
130
140
  */
131
141
  async function loadWasmModule(config) {
132
142
  if (loadedResult) return loadedResult;
133
143
  if (loadPromise) return loadPromise;
134
144
  loadPromise = (async () => {
135
145
  try {
136
- window.Module = await importGlue(config.glueCodePath);
137
146
  const wantSimd = config.useSimd !== false;
138
- const simdPath = config.wasmSimdPath ?? config.wasmPath;
139
- const useSimd = wantSimd && simdPath !== config.wasmPath;
140
- const factory = window.Module;
141
- if (useSimd) try {
147
+ const simdBinary = config.wasmSimdPath ?? config.wasmPath;
148
+ if (wantSimd && simdBinary !== config.wasmPath) try {
149
+ const simdFactory = await importGlue(config.glueCodeSimdPath ?? deriveSiblingJsPath(simdBinary));
150
+ window.Module = simdFactory;
142
151
  const result$1 = {
143
- wasmModule: await instantiate(factory, simdPath),
152
+ wasmModule: await instantiate(simdFactory, simdBinary),
144
153
  simdUsed: true
145
154
  };
146
155
  loadedResult = result$1;
@@ -148,8 +157,10 @@ async function loadWasmModule(config) {
148
157
  } catch (simdError) {
149
158
  console.warn("[Incode SDK] SIMD WASM load failed, falling back to non-SIMD", simdError);
150
159
  }
160
+ const nonSimdFactory = await importGlue(config.glueCodePath);
161
+ window.Module = nonSimdFactory;
151
162
  const result = {
152
- wasmModule: await instantiate(factory, config.wasmPath),
163
+ wasmModule: await instantiate(nonSimdFactory, config.wasmPath),
153
164
  simdUsed: false
154
165
  };
155
166
  loadedResult = result;
@@ -255,8 +266,12 @@ const toStringRecord = (obj) => {
255
266
  /**
256
267
  * Loads the shared WASM module (if not already loaded) and instantiates the
257
268
  * C++ `WebClient`. Idempotent — repeated calls reuse the existing instance.
269
+ *
270
+ * `glueCodeSimdPath` is paired with `wasmSimdPath` (`webLibSimd.js` for
271
+ * `webLibSimd.wasm`). Pass `''` to derive it automatically from
272
+ * `wasmSimdPath` by replacing the `.wasm` extension with `.js`.
258
273
  */
259
- async function initializeWasmWebClient(wasmPath, wasmSimdPath, glueCodePath, useSimd) {
274
+ async function initializeWasmWebClient(wasmPath, wasmSimdPath, glueCodePath, glueCodeSimdPath, useSimd) {
260
275
  if (webClientApi) return;
261
276
  if (initPromise) return initPromise;
262
277
  initPromise = (async () => {
@@ -265,6 +280,7 @@ async function initializeWasmWebClient(wasmPath, wasmSimdPath, glueCodePath, use
265
280
  wasmPath,
266
281
  wasmSimdPath,
267
282
  glueCodePath,
283
+ glueCodeSimdPath: glueCodeSimdPath || void 0,
268
284
  useSimd
269
285
  });
270
286
  if (!isWebClientWasm(wasmModule)) throw new Error("WASM module does not expose a WebClient class. Update webLib.wasm to a build that includes WebClient.");
@@ -400,18 +416,21 @@ var MlWasmJSApi = class MlWasmJSApi {
400
416
  * TODO: this method can return the list of promises to be awaited together with other initialization code
401
417
  * @param {string} webLibPath - The path to the webassembly binary
402
418
  * @param {string} webLibPathSimd - The path to the SIMD version webassembly binary
419
+ * @param {string} glueCodePath - The path to the non-SIMD glue (`webLib.js`)
420
+ * @param {string} glueCodeSimdPath - The path to the SIMD-paired glue (`webLibSimd.js`); pass `''` to derive from `webLibPathSimd`
403
421
  * @param {boolean} useSimd - Indicates whether SIMD optimizations should be used
404
422
  * @param {string} versionsFile - The path to the file containing versioning information
405
423
  * @param {Map.<WasmPipelineType, Array<string>>} pipelines - pipelines for initialization and corresponding models paths
406
424
  * @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether SIMD is enabled once the initialization is complete.
407
425
  * @throws {Error} Throws an error if the initialization fails.
408
426
  */
409
- async initialize(webLibPath, webLibPathSimd, glueCodePath, useSimd, versionsFile, pipelines) {
427
+ async initialize(webLibPath, webLibPathSimd, glueCodePath, glueCodeSimdPath, useSimd, versionsFile, pipelines) {
410
428
  await this.freeResources();
411
429
  this.pipelines_ = pipelines;
412
430
  this.versionsFile = versionsFile;
413
431
  const { wasmModule, simdUsed } = await loadWasmModule({
414
432
  glueCodePath,
433
+ glueCodeSimdPath: glueCodeSimdPath || void 0,
415
434
  wasmPath: webLibPath,
416
435
  wasmSimdPath: webLibPathSimd,
417
436
  useSimd
@@ -904,14 +923,14 @@ async function warmupWasm(config) {
904
923
  if (state === "ready") {
905
924
  if (pipelines.filter((p) => !loadedPipelines.includes(p)).length === 0) return;
906
925
  if (!lastConfig) throw new Error("Cannot add pipelines: original warmup config not available");
907
- if (lastConfig.wasmPath !== config.wasmPath || lastConfig.glueCodePath !== config.glueCodePath || (lastConfig.wasmSimdPath ?? lastConfig.wasmPath) !== (config.wasmSimdPath ?? config.wasmPath) || (lastConfig.useSimd ?? true) !== (config.useSimd ?? true)) throw new Error("Cannot add pipelines: WASM config mismatch. Use same wasmPath, glueCodePath, and useSimd settings.");
926
+ if (lastConfig.wasmPath !== config.wasmPath || lastConfig.glueCodePath !== config.glueCodePath || (lastConfig.wasmSimdPath ?? lastConfig.wasmPath) !== (config.wasmSimdPath ?? config.wasmPath) || (lastConfig.glueCodeSimdPath ?? "") !== (config.glueCodeSimdPath ?? "") || (lastConfig.useSimd ?? true) !== (config.useSimd ?? true)) throw new Error("Cannot add pipelines: WASM config mismatch. Use same wasmPath, glueCodePath, and useSimd settings.");
908
927
  const combinedPipelines = [...new Set([...loadedPipelines, ...pipelines])];
909
928
  state = "loading";
910
929
  wasmError = null;
911
930
  loadingPromise = (async () => {
912
931
  try {
913
932
  const pipelinesMap = buildPipelinesMap(combinedPipelines, lastConfig.modelsBasePath ?? deriveModelsBasePath(lastConfig.wasmPath), lastConfig.pipelineModels);
914
- await mlWasmJSApi_default.initialize(lastConfig.wasmPath, lastConfig.wasmSimdPath ?? lastConfig.wasmPath, lastConfig.glueCodePath, lastConfig.useSimd ?? true, "", pipelinesMap);
933
+ await mlWasmJSApi_default.initialize(lastConfig.wasmPath, lastConfig.wasmSimdPath ?? lastConfig.wasmPath, lastConfig.glueCodePath, lastConfig.glueCodeSimdPath ?? "", lastConfig.useSimd ?? true, "", pipelinesMap);
915
934
  await mlWasmJSApi_default.loadModels();
916
935
  await mlWasmJSApi_default.initializePipelines();
917
936
  state = "ready";
@@ -935,7 +954,7 @@ async function warmupWasm(config) {
935
954
  loadingPromise = (async () => {
936
955
  try {
937
956
  const pipelinesMap = buildPipelinesMap(pipelines, modelsBasePath, config.pipelineModels);
938
- await mlWasmJSApi_default.initialize(config.wasmPath, config.wasmSimdPath ?? config.wasmPath, config.glueCodePath, config.useSimd ?? true, "", pipelinesMap);
957
+ await mlWasmJSApi_default.initialize(config.wasmPath, config.wasmSimdPath ?? config.wasmPath, config.glueCodePath, config.glueCodeSimdPath ?? "", config.useSimd ?? true, "", pipelinesMap);
939
958
  await mlWasmJSApi_default.loadModels();
940
959
  await mlWasmJSApi_default.initializePipelines();
941
960
  state = "ready";
@@ -1033,6 +1052,7 @@ var BaseWasmProvider = class {
1033
1052
  wasmPath: config.wasmPath,
1034
1053
  wasmSimdPath: config.wasmSimdPath,
1035
1054
  glueCodePath: config.glueCodePath,
1055
+ glueCodeSimdPath: config.glueCodeSimdPath,
1036
1056
  useSimd: config.useSimd,
1037
1057
  modelsBasePath: config.modelsBasePath,
1038
1058
  pipelines: [pipeline]
@@ -1,4 +1,4 @@
1
- import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-Bu4azcTX.esm.js";
1
+ import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-DH_gKrT1.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/wasm/WasmUtilProvider.ts
4
4
  var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
2
  import "./Actor-DEDRrMqL.js";
3
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-MR0onOVn.js";
3
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-BfVtDmIM.js";
4
4
 
5
5
  //#region src/modules/ae-signature/index.d.ts
6
6
 
@@ -1,12 +1,12 @@
1
- import "./warmup-Ci_Tv70s.js";
1
+ import "./warmup-Odyc9Y28.js";
2
2
  import "./Manager-BLXCBFdE.js";
3
3
  import "./Actor-DEDRrMqL.js";
4
4
  import "./StateMachine-DOWvg45_.js";
5
- import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-B5Y3FfoN.js";
5
+ import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-D_0unIOu.js";
6
6
  import "./camera-D6riBRoH.js";
7
7
  import "./types-BYcwln0v.js";
8
8
  import "./types-BzQNZOrU.js";
9
- import "./deepsightService-DcyA6veM.js";
9
+ import "./deepsightService-iR5eUj-q.js";
10
10
  import "./types-C5E_B9sN.js";
11
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C4TXJ1ks.js";
11
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-n522JIjj.js";
12
12
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,5 +1,5 @@
1
- import "./BaseWasmProvider-Bu4azcTX.esm.js";
2
- import "./WasmUtilProvider-SfxSRFia.esm.js";
1
+ import "./BaseWasmProvider-DH_gKrT1.esm.js";
2
+ import "./WasmUtilProvider-BUL0e3y3.esm.js";
3
3
  import "./api-YxPMtty2.esm.js";
4
4
  import "./events-6oja2Vp1.esm.js";
5
5
  import "./endpoints-B5r_jU0F.esm.js";
@@ -7,11 +7,11 @@ import "./browserSimulation-Dk7pccUx.esm.js";
7
7
  import "./xstate.esm-B1sGYom9.esm.js";
8
8
  import "./faceCaptureManagerFactory-D7Xn7UC-.esm.js";
9
9
  import "./BrowserStorageProvider-DZKAXWMk.esm.js";
10
- import "./faceCaptureSetup-BOxJpspi.esm.js";
10
+ import "./faceCaptureSetup-B6C6c4VH.esm.js";
11
11
  import "./ITimerCapability-CMihfBXX.esm.js";
12
12
  import "./camera-3XOyIO-y.esm.js";
13
13
  import "./deepsightService-ChMLz84Z.esm.js";
14
- import "./recordingService-nld1dmq3.esm.js";
14
+ import "./recordingService-CxkQ8qPN.esm.js";
15
15
  import "./platform--lIMUY2_.esm.js";
16
16
  import "./backCameraStream-CuJYw91G.esm.js";
17
17
  import "./getBrowser-C1HlAXLZ.esm.js";
@@ -19,7 +19,7 @@ import "./stats-DR3YOKUE.esm.js";
19
19
  import "./getDeviceClass-B8mq0rxr.esm.js";
20
20
  import "./MotionSensorProvider-BIapLrDS.esm.js";
21
21
  import "./permissionServices-SsJ4PlZ5.esm.js";
22
- import { t as authenticationMachine } from "./authenticationStateMachine-geSw_TiG.esm.js";
23
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DKgCv3pF.esm.js";
22
+ import { t as authenticationMachine } from "./authenticationStateMachine-CsSrQRE6.esm.js";
23
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-nJYI5afZ.esm.js";
24
24
 
25
25
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
- import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-B5Y3FfoN.js";
2
+ import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-D_0unIOu.js";
3
3
 
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-SfxSRFia.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BUL0e3y3.esm.js";
2
2
  import { n as eventModuleNames } from "./events-6oja2Vp1.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-B1sGYom9.esm.js";
4
4
  import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D7Xn7UC-.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DZKAXWMk.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-geSw_TiG.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-CsSrQRE6.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationActor.ts
9
9
  function createAuthenticationActor(options) {
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-B5r_jU0F.esm.js";
3
3
  import { a as fromPromise, r as assign } from "./xstate.esm-B1sGYom9.esm.js";
4
- import { a as prepareOnDeviceFaceUpload, i as postOnDeviceFaceResults, n as defaultPrepareFaceUpload, r as isOnDeviceMode, t as faceCaptureMachine } from "./faceCaptureSetup-BOxJpspi.esm.js";
5
- import { m as FACE_ERROR_CODES } from "./recordingService-nld1dmq3.esm.js";
4
+ import { a as prepareOnDeviceFaceUpload, i as postOnDeviceFaceResults, n as defaultPrepareFaceUpload, r as isOnDeviceMode, t as faceCaptureMachine } from "./faceCaptureSetup-B6C6c4VH.esm.js";
5
+ import { m as FACE_ERROR_CODES } from "./recordingService-CxkQ8qPN.esm.js";
6
6
  import { t as getDeviceClass } from "./getDeviceClass-B8mq0rxr.esm.js";
7
7
 
8
8
  //#region src/modules/authentication/authenticationErrorUtils.ts
package/dist/consent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
2
  import "./Actor-DEDRrMqL.js";
3
- import * as xstate440 from "xstate";
3
+ import * as xstate664 from "xstate";
4
4
 
5
5
  //#region src/modules/consent/types.d.ts
6
6
  type ConsentConfig = {
@@ -36,7 +36,7 @@ type ConsentContext = {
36
36
  type ConsentInput = {
37
37
  config: ConsentConfig;
38
38
  };
39
- declare const consentMachine: xstate440.StateMachine<ConsentContext, {
39
+ declare const consentMachine: xstate664.StateMachine<ConsentContext, {
40
40
  type: "LOAD";
41
41
  } | {
42
42
  type: "TOGGLE_CHECKBOX";
@@ -48,53 +48,53 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
48
48
  } | {
49
49
  type: "RESET";
50
50
  }, {
51
- [x: string]: xstate440.ActorRefFromLogic<xstate440.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate664.ActorRefFromLogic<xstate664.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate440.EventObject>> | xstate440.ActorRefFromLogic<xstate440.PromiseActorLogic<void, {
53
+ }, xstate664.EventObject>> | xstate664.ActorRefFromLogic<xstate664.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate440.EventObject>> | undefined;
57
- }, xstate440.Values<{
56
+ }, xstate664.EventObject>> | undefined;
57
+ }, xstate664.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate440.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate664.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate440.EventObject>;
62
+ }, xstate664.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate440.PromiseActorLogic<void, {
67
+ logic: xstate664.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate440.EventObject>;
70
+ }, xstate664.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate440.Values<{
74
- setError: {
75
- type: "setError";
76
- params: xstate440.NonReducibleUnknown;
77
- };
73
+ }>, xstate664.Values<{
78
74
  clearError: {
79
75
  type: "clearError";
80
- params: xstate440.NonReducibleUnknown;
76
+ params: xstate664.NonReducibleUnknown;
77
+ };
78
+ setError: {
79
+ type: "setError";
80
+ params: xstate664.NonReducibleUnknown;
81
81
  };
82
82
  setConsentData: {
83
83
  type: "setConsentData";
84
- params: xstate440.NonReducibleUnknown;
84
+ params: xstate664.NonReducibleUnknown;
85
85
  };
86
86
  toggleCheckbox: {
87
87
  type: "toggleCheckbox";
88
- params: xstate440.NonReducibleUnknown;
88
+ params: xstate664.NonReducibleUnknown;
89
89
  };
90
90
  resetContext: {
91
91
  type: "resetContext";
92
- params: xstate440.NonReducibleUnknown;
92
+ params: xstate664.NonReducibleUnknown;
93
93
  };
94
94
  }>, {
95
95
  type: "canSubmit";
96
96
  params: unknown;
97
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate440.NonReducibleUnknown, xstate440.EventObject, xstate440.MetaObject, {
97
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, xstate664.NonReducibleUnknown, xstate664.EventObject, xstate664.MetaObject, {
98
98
  readonly id: "consent";
99
99
  readonly initial: "idle";
100
100
  readonly context: ({
@@ -103,70 +103,70 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
103
103
  spawn: {
104
104
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
105
105
  src: "fetchConsent";
106
- logic: xstate440.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate664.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate440.EventObject>;
108
+ }, xstate664.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate440.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate664.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate440.EventObject>;
114
+ }, xstate664.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate440.ConditionalRequired<[options?: ({
118
+ } ? xstate664.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate440.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate664.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate440.RequiredActorOptions<T>]: unknown }) | undefined], xstate440.IsNotNever<xstate440.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate664.RequiredActorOptions<T>]: unknown }) | undefined], xstate664.IsNotNever<xstate664.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate440.PromiseActorLogic<void, {
125
+ logic: xstate664.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate440.EventObject>;
128
+ }, xstate664.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate440.PromiseActorLogic<void, {
132
+ logic: xstate664.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate440.EventObject>;
135
+ }, xstate664.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate440.ConditionalRequired<[options?: ({
139
+ } ? xstate664.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate440.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate664.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate440.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate440.IsNotNever<xstate440.RequiredActorOptions<T_1>>> : never : never : never)): xstate440.ActorRefFromLogic<xstate440.GetConcreteByKey<xstate440.Values<{
144
+ } & { [K_1 in xstate664.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate664.IsNotNever<xstate664.RequiredActorOptions<T_1>>> : never : never : never)): xstate664.ActorRefFromLogic<xstate664.GetConcreteByKey<xstate664.Values<{
145
145
  fetchConsent: {
146
146
  src: "fetchConsent";
147
- logic: xstate440.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate664.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate440.EventObject>;
149
+ }, xstate664.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate440.PromiseActorLogic<void, {
154
+ logic: xstate664.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate440.EventObject>;
157
+ }, xstate664.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate440.AnyActorLogic>(src: TLogic, ...[options]: xstate440.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate664.AnyActorLogic>(src: TLogic, ...[options]: xstate664.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate440.InputFrom<TLogic> | undefined;
164
+ input?: xstate664.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate440.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate440.IsNotNever<xstate440.RequiredLogicInput<TLogic>>>): xstate440.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate664.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate664.IsNotNever<xstate664.RequiredLogicInput<TLogic>>>): xstate664.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate440.ActorRef<xstate440.MachineSnapshot<ConsentContext, {
169
+ self: xstate664.ActorRef<xstate664.MachineSnapshot<ConsentContext, {
170
170
  type: "LOAD";
171
171
  } | {
172
172
  type: "TOGGLE_CHECKBOX";
@@ -177,7 +177,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
177
177
  type: "RETRY";
178
178
  } | {
179
179
  type: "RESET";
180
- }, Record<string, xstate440.AnyActorRef | undefined>, xstate440.StateValue, string, unknown, any, any>, {
180
+ }, Record<string, xstate664.AnyActorRef | undefined>, xstate664.StateValue, string, unknown, any, any>, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "TOGGLE_CHECKBOX";
@@ -188,7 +188,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
188
188
  type: "RETRY";
189
189
  } | {
190
190
  type: "RESET";
191
- }, xstate440.AnyEventObject>;
191
+ }, xstate664.AnyEventObject>;
192
192
  }) => {
193
193
  config: ConsentConfig;
194
194
  title: string;
@@ -226,7 +226,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
226
226
  } | {
227
227
  type: "RESET";
228
228
  };
229
- self: xstate440.ActorRef<xstate440.MachineSnapshot<ConsentContext, {
229
+ self: xstate664.ActorRef<xstate664.MachineSnapshot<ConsentContext, {
230
230
  type: "LOAD";
231
231
  } | {
232
232
  type: "TOGGLE_CHECKBOX";
@@ -237,7 +237,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "RESET";
240
- }, Record<string, xstate440.AnyActorRef>, xstate440.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate664.AnyActorRef>, xstate664.StateValue, string, unknown, any, any>, {
241
241
  type: "LOAD";
242
242
  } | {
243
243
  type: "TOGGLE_CHECKBOX";
@@ -248,7 +248,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate440.AnyEventObject>;
251
+ }, xstate664.AnyEventObject>;
252
252
  }) => {
253
253
  consentId: string;
254
254
  };
@@ -297,7 +297,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
297
297
  } | {
298
298
  type: "RESET";
299
299
  };
300
- self: xstate440.ActorRef<xstate440.MachineSnapshot<ConsentContext, {
300
+ self: xstate664.ActorRef<xstate664.MachineSnapshot<ConsentContext, {
301
301
  type: "LOAD";
302
302
  } | {
303
303
  type: "TOGGLE_CHECKBOX";
@@ -308,7 +308,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
308
308
  type: "RETRY";
309
309
  } | {
310
310
  type: "RESET";
311
- }, Record<string, xstate440.AnyActorRef>, xstate440.StateValue, string, unknown, any, any>, {
311
+ }, Record<string, xstate664.AnyActorRef>, xstate664.StateValue, string, unknown, any, any>, {
312
312
  type: "LOAD";
313
313
  } | {
314
314
  type: "TOGGLE_CHECKBOX";
@@ -319,7 +319,7 @@ declare const consentMachine: xstate440.StateMachine<ConsentContext, {
319
319
  type: "RETRY";
320
320
  } | {
321
321
  type: "RESET";
322
- }, xstate440.AnyEventObject>;
322
+ }, xstate664.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
package/dist/cpf-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-BLXCBFdE.js";
2
- import * as xstate89 from "xstate";
2
+ import * as xstate639 from "xstate";
3
3
 
4
4
  //#region src/modules/cpf-ocr/cpfOcrManager.d.ts
5
5
  type CpfOcrIdleState = {
@@ -47,7 +47,7 @@ type CpfOcrContext = {
47
47
  error: string | undefined;
48
48
  };
49
49
  type CpfOcrInput = Record<string, never>;
50
- declare const cpfOcrMachine: xstate89.StateMachine<CpfOcrContext, {
50
+ declare const cpfOcrMachine: xstate639.StateMachine<CpfOcrContext, {
51
51
  type: "LOAD";
52
52
  } | {
53
53
  type: "SET_CPF";
@@ -57,43 +57,43 @@ declare const cpfOcrMachine: xstate89.StateMachine<CpfOcrContext, {
57
57
  } | {
58
58
  type: "RETRY";
59
59
  }, {
60
- [x: string]: xstate89.ActorRefFromLogic<xstate89.PromiseActorLogic<CpfOcrDataResponse, void, xstate89.EventObject>> | xstate89.ActorRefFromLogic<xstate89.PromiseActorLogic<CpfOcrUpdateResponse, {
60
+ [x: string]: xstate639.ActorRefFromLogic<xstate639.PromiseActorLogic<CpfOcrDataResponse, void, xstate639.EventObject>> | xstate639.ActorRefFromLogic<xstate639.PromiseActorLogic<CpfOcrUpdateResponse, {
61
61
  cpf: string;
62
- }, xstate89.EventObject>> | undefined;
63
- }, xstate89.Values<{
62
+ }, xstate639.EventObject>> | undefined;
63
+ }, xstate639.Values<{
64
64
  fetchCpfOcrData: {
65
65
  src: "fetchCpfOcrData";
66
- logic: xstate89.PromiseActorLogic<CpfOcrDataResponse, void, xstate89.EventObject>;
66
+ logic: xstate639.PromiseActorLogic<CpfOcrDataResponse, void, xstate639.EventObject>;
67
67
  id: string | undefined;
68
68
  };
69
69
  submitCpfOcr: {
70
70
  src: "submitCpfOcr";
71
- logic: xstate89.PromiseActorLogic<CpfOcrUpdateResponse, {
71
+ logic: xstate639.PromiseActorLogic<CpfOcrUpdateResponse, {
72
72
  cpf: string;
73
- }, xstate89.EventObject>;
73
+ }, xstate639.EventObject>;
74
74
  id: string | undefined;
75
75
  };
76
- }>, xstate89.Values<{
77
- setError: {
78
- type: "setError";
79
- params: xstate89.NonReducibleUnknown;
80
- };
76
+ }>, xstate639.Values<{
81
77
  clearError: {
82
78
  type: "clearError";
83
- params: xstate89.NonReducibleUnknown;
79
+ params: xstate639.NonReducibleUnknown;
80
+ };
81
+ setError: {
82
+ type: "setError";
83
+ params: xstate639.NonReducibleUnknown;
84
84
  };
85
85
  setPrefill: {
86
86
  type: "setPrefill";
87
- params: xstate89.NonReducibleUnknown;
87
+ params: xstate639.NonReducibleUnknown;
88
88
  };
89
89
  setCpf: {
90
90
  type: "setCpf";
91
- params: xstate89.NonReducibleUnknown;
91
+ params: xstate639.NonReducibleUnknown;
92
92
  };
93
93
  }>, {
94
94
  type: "isValid";
95
95
  params: unknown;
96
- }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate89.NonReducibleUnknown, xstate89.EventObject, xstate89.MetaObject, {
96
+ }, never, "error" | "idle" | "finished" | "loading" | "inputting" | "submitting", string, CpfOcrInput, xstate639.NonReducibleUnknown, xstate639.EventObject, xstate639.MetaObject, {
97
97
  readonly id: "cpfOcr";
98
98
  readonly initial: "idle";
99
99
  readonly context: {
@@ -148,7 +148,7 @@ declare const cpfOcrMachine: xstate89.StateMachine<CpfOcrContext, {
148
148
  } | {
149
149
  type: "RETRY";
150
150
  };
151
- self: xstate89.ActorRef<xstate89.MachineSnapshot<CpfOcrContext, {
151
+ self: xstate639.ActorRef<xstate639.MachineSnapshot<CpfOcrContext, {
152
152
  type: "LOAD";
153
153
  } | {
154
154
  type: "SET_CPF";
@@ -157,7 +157,7 @@ declare const cpfOcrMachine: xstate89.StateMachine<CpfOcrContext, {
157
157
  type: "SUBMIT";
158
158
  } | {
159
159
  type: "RETRY";
160
- }, Record<string, xstate89.AnyActorRef>, xstate89.StateValue, string, unknown, any, any>, {
160
+ }, Record<string, xstate639.AnyActorRef>, xstate639.StateValue, string, unknown, any, any>, {
161
161
  type: "LOAD";
162
162
  } | {
163
163
  type: "SET_CPF";
@@ -166,7 +166,7 @@ declare const cpfOcrMachine: xstate89.StateMachine<CpfOcrContext, {
166
166
  type: "SUBMIT";
167
167
  } | {
168
168
  type: "RETRY";
169
- }, xstate89.AnyEventObject>;
169
+ }, xstate639.AnyEventObject>;
170
170
  }) => {
171
171
  cpf: string;
172
172
  };
@@ -1,5 +1,5 @@
1
- import "./BaseWasmProvider-Bu4azcTX.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-SfxSRFia.esm.js";
1
+ import "./BaseWasmProvider-DH_gKrT1.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BUL0e3y3.esm.js";
3
3
  import "./api-YxPMtty2.esm.js";
4
4
  import { r as BrowserEnvironmentProvider, t as IpifyProvider } from "./IpifyProvider-DwIJGl9E.esm.js";
5
5
  import "./browserSimulation-Dk7pccUx.esm.js";
@@ -1,4 +1,4 @@
1
- import { n as WasmPipeline } from "./warmup-Ci_Tv70s.js";
1
+ import { n as WasmPipeline } from "./warmup-Odyc9Y28.js";
2
2
  import { t as CameraStream } from "./camera-D6riBRoH.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IRecordingCapability.d.ts
@@ -81,8 +81,13 @@ interface MLProviderConfig {
81
81
  wasmPath?: string;
82
82
  /** Path to the SIMD-optimized WASM binary (optional) */
83
83
  wasmSimdPath?: string;
84
- /** Path to the WASM glue code */
84
+ /** Path to the WASM glue code (paired with `wasmPath`) */
85
85
  glueCodePath?: string;
86
+ /**
87
+ * Path to the SIMD-optimized WASM glue code (paired with `wasmSimdPath`).
88
+ * If omitted, defaults to a sibling `.js` derived from `wasmSimdPath`.
89
+ */
90
+ glueCodeSimdPath?: string;
86
91
  /** Whether to use SIMD optimizations (default: true) */
87
92
  useSimd?: boolean;
88
93
  /**