@incodetech/core 0.0.0-dev-20260817-acfa6f73 → 0.0.0-dev-20260817-941e76d2

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 (115) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-Bm4ZX5t3.esm.js → BrowserDiagnosticsCryptoProvider-CPcF1K4D.esm.js} +1 -1
  2. package/dist/{BrowserStorageProvider-k-FDkC4W.esm.js → BrowserStorageProvider-C8847M9W.esm.js} +1 -1
  3. package/dist/FaceDetectionProvider-Cn1wS-sA.d.ts +95 -0
  4. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-DDWlQzhi.d.ts} +2 -32
  5. package/dist/IWasmUtilCapability-5-Pncgma.d.ts +149 -0
  6. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-CxTjgXe6.esm.js} +1 -1
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/{apiError-B3T64yxT.esm.js → apiError-B3TI9TK9.esm.js} +1 -1
  9. package/dist/authentication.d.ts +3 -3
  10. package/dist/authentication.esm.js +2 -2
  11. package/dist/{authenticationManager-CVURxKl7.esm.js → authenticationManager-BL7RvcC8.esm.js} +4 -4
  12. package/dist/{authenticationManager-D8DEugXP.d.ts → authenticationManager-Cb4b4dgt.d.ts} +1 -1
  13. package/dist/{authenticationStateMachine-B-0XBXp-.esm.js → authenticationStateMachine-D1XsBKTx.esm.js} +2 -2
  14. package/dist/avatar.d.ts +1 -2
  15. package/dist/camera.esm.js +1 -1
  16. package/dist/createFaceAvatar-pUEkdk4X.d.ts +489 -0
  17. package/dist/curp-validation.d.ts +1 -1
  18. package/dist/{curpValidationManager-BxWhpCLA.d.ts → curpValidationManager-C_TQjX2P.d.ts} +1 -1
  19. package/dist/{deepsightLoader-C9G0gmwl.esm.js → deepsightLoader-BnU_V6rk.esm.js} +6 -6
  20. package/dist/{deepsightService-DLVQS_RH.d.ts → deepsightService-Dr7sNZ5r.d.ts} +2 -1
  21. package/dist/document-capture.d.ts +2 -2
  22. package/dist/document-capture.esm.js +2 -2
  23. package/dist/document-upload.d.ts +4 -4
  24. package/dist/{documentCaptureManager-CaXWUo_N.esm.js → documentCaptureManager-D7A4k-GE.esm.js} +1 -1
  25. package/dist/{documentCaptureManager-Bvipl_tY.d.ts → documentCaptureManager-DlGYd-sJ.d.ts} +67 -67
  26. package/dist/{documentCaptureStateMachine-DpWiaUPB.esm.js → documentCaptureStateMachine-fk7MDfSZ.esm.js} +2 -2
  27. package/dist/dynamic-forms.d.ts +2 -2
  28. package/dist/dynamic-forms.esm.js +2 -2
  29. package/dist/{dynamicFormsManager-CIFvUb6Q.esm.js → dynamicFormsManager-CH1eSNvy.esm.js} +1 -1
  30. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-DhveFHPS.d.ts} +1 -1
  31. package/dist/{dynamicFormsStateMachine-C8_koaQ2.esm.js → dynamicFormsStateMachine-D144f-2m.esm.js} +1 -1
  32. package/dist/ekyb.d.ts +1 -1
  33. package/dist/ekyb.esm.js +3 -3
  34. package/dist/{ekybManager-DvHK24Ai.esm.js → ekybManager-BBJwCOsR.esm.js} +1 -1
  35. package/dist/{ekybStateMachine-Bd9SGUOZ.esm.js → ekybStateMachine-jym81TFF.esm.js} +1 -1
  36. package/dist/electronic-signature.esm.js +1 -1
  37. package/dist/{electronicSignatureManager-DdhVjAVe.esm.js → electronicSignatureManager-CWYfI4hO.esm.js} +1 -1
  38. package/dist/extensibility.d.ts +14 -12
  39. package/dist/extensibility.esm.js +12 -12
  40. package/dist/{faceCaptureManagerFactory-fq0Rl3ik.d.ts → faceCaptureManagerFactory-CKyaVKsu.d.ts} +17 -45
  41. package/dist/{faceCaptureManagerFactory-9X4WspD-.esm.js → faceCaptureManagerFactory-DysNuSGO.esm.js} +3 -3
  42. package/dist/{faceCaptureSetup-D1xDWdEi.esm.js → faceCaptureSetup-DXCPmEv2.esm.js} +4 -4
  43. package/dist/flow-events.d.ts +1 -1
  44. package/dist/flow.d.ts +8 -8
  45. package/dist/flow.esm.js +3 -3
  46. package/dist/{flowCompletionService-CBCd4sTT.esm.js → flowCompletionService-DvWL2nH-.esm.js} +1 -1
  47. package/dist/{flowServices-Clyz_AFS.esm.js → flowServices-CAz3XO92.esm.js} +3 -3
  48. package/dist/geolocation.esm.js +2 -2
  49. package/dist/{geolocationManager-Dnp8XTcy.esm.js → geolocationManager-CPwKn86Q.esm.js} +1 -1
  50. package/dist/{geolocationStateMachine-BBMCEfv9.esm.js → geolocationStateMachine-Cm28EW1O.esm.js} +1 -1
  51. package/dist/home.d.ts +1 -1
  52. package/dist/id-selfie-flow.d.ts +3 -2
  53. package/dist/id-selfie-flow.esm.js +8 -8
  54. package/dist/id.d.ts +3 -3
  55. package/dist/id.esm.js +4 -4
  56. package/dist/{idCaptureDefaults-WeHbQM7W.esm.js → idCaptureDefaults-Dowxd3J3.esm.js} +4 -3
  57. package/dist/{idCaptureManager-BG07OgVe.esm.js → idCaptureManager-BuFn4xQl.esm.js} +5 -5
  58. package/dist/{idCaptureManager-DVWM-L4V.d.ts → idCaptureManager-DlCqj6R1.d.ts} +4 -4
  59. package/dist/{idCaptureServices-CqRJOcig.esm.js → idCaptureServices-Bn656NFx.esm.js} +3 -3
  60. package/dist/{idCaptureStateMachine-DhnmhN0s.esm.js → idCaptureStateMachine-CBpdXe7D.esm.js} +9 -9
  61. package/dist/{index-Bivs6yJF.d.ts → index-BwudEtre.d.ts} +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.esm.js +1 -1
  64. package/dist/mandatory-consent.d.ts +2 -2
  65. package/dist/{mandatoryConsentManager-CVxw-noP.d.ts → mandatoryConsentManager-BZpKPJ1b.d.ts} +1 -1
  66. package/dist/{onDeviceFaceResults-DnxtQAz3.esm.js → onDeviceFaceResults-DT9SoUq7.esm.js} +4 -4
  67. package/dist/{permissionGuards-D2OgV9XX.esm.js → permissionGuards-BEgOUwwQ.esm.js} +1 -1
  68. package/dist/{permissionServices-B7sMtZ8f.esm.js → permissionServices-BPUkbztJ.esm.js} +2 -2
  69. package/dist/personhood.d.ts +5 -4
  70. package/dist/personhood.esm.js +6 -6
  71. package/dist/qe-signature.esm.js +1 -1
  72. package/dist/{recordingService-0VWL71An.esm.js → recordingService-DgwNVrR4.esm.js} +1 -1
  73. package/dist/{runChildModule-Dlr2Kwvn.esm.js → runChildModule-BCd-d039.esm.js} +1 -1
  74. package/dist/{safeStorage-Ep56I-f_.esm.js → safeStorage-2nOSCCnG.esm.js} +43 -70
  75. package/dist/selfie.d.ts +4 -4
  76. package/dist/selfie.esm.js +6 -6
  77. package/dist/{selfieManager-CsFpBfry.esm.js → selfieManager-DfeUZfgL.esm.js} +4 -4
  78. package/dist/{selfieManager-DlAKn0rp.d.ts → selfieManager-Dxj984_L.d.ts} +2 -11
  79. package/dist/{selfieStateMachine-DWDmcet8.esm.js → selfieStateMachine-CHSNxzhO.esm.js} +2 -2
  80. package/dist/{session-BuGZN95Y.esm.js → session-CuM9od2S.esm.js} +4 -4
  81. package/dist/session.d.ts +1 -9
  82. package/dist/session.esm.js +4 -4
  83. package/dist/{sessionInitializer-ShclX9vD.esm.js → sessionInitializer-D_B-8Ujt.esm.js} +2 -2
  84. package/dist/{setup-DywQeePQ.d.ts → setup-BwA7zG5D.d.ts} +19 -31
  85. package/dist/{setup-1lLa3WHQ.esm.js → setup-y1bXyMoz.esm.js} +14 -8
  86. package/dist/trueSight-lNCajJAf.esm.js +1 -0
  87. package/dist/{trueSightService-CNuiVjvN.esm.js → trueSightService-zTWODJoh.esm.js} +4 -4
  88. package/dist/{types-GqIocZi-.d.ts → types-BUdX2CB-.d.ts} +5 -4
  89. package/dist/{types-8LPRL1Ni2.d.ts → types-BlrYfFj3.d.ts} +1 -1
  90. package/dist/types-OehE3PKn.d.ts +6 -0
  91. package/dist/{types-Cyiwbg-r.d.ts → types-RMhiEIm9.d.ts} +4 -80
  92. package/dist/types-W5OCjqmi.d.ts +10 -0
  93. package/dist/{types-CRw2IBPn.d.ts → types-s0fF3TpX.d.ts} +1 -0
  94. package/dist/video-selfie.d.ts +3 -3
  95. package/dist/video-selfie.esm.js +4 -4
  96. package/dist/{videoSelfieCameraWarmer-C95ZbuSU.esm.js → videoSelfieCameraWarmer-Da9lJmK8.esm.js} +4 -4
  97. package/dist/{videoSelfieStepDetector-TyrYWahm.d.ts → videoSelfieStepDetector-Bw5t6XCU.d.ts} +4 -3
  98. package/dist/warmup-CXHBgvFC.d.ts +117 -0
  99. package/dist/wasm.d.ts +23 -5
  100. package/dist/wasm.esm.js +31 -4
  101. package/dist/{wasmDefaults-DTUrftxR.esm.js → wasmDefaults-BrwMccqW.esm.js} +27 -12
  102. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-Dd7Yj25O.esm.js} +1 -1
  103. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-BzFsDjU6.esm.js} +82 -22
  104. package/dist/workflow.d.ts +5 -5
  105. package/dist/workflow.esm.js +15 -15
  106. package/package.json +1 -1
  107. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  108. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  109. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  110. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  111. package/dist/trueSight-BxA2W2OB.esm.js +0 -1
  112. package/dist/types-C2JzKH_L.d.ts +0 -6
  113. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  114. /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
  115. /package/dist/{types-DelMqZLe2.d.ts → types-DelMqZLe.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { c as loadWasmModule, l as SemaphoreProvider, n as createWebApiHostAdapter, s as wasmCallWrapper } from "./wasmWebClient-DM8lkb0z.esm.js";
1
+ import { c as loadWasmModule, g as resolveWasmSource, h as missingWasmModelError, l as SemaphoreProvider, n as createWebApiHostAdapter, p as WASM_PIPELINE_MODELS, s as wasmCallWrapper } from "./wasmWebClient-BzFsDjU6.esm.js";
2
2
  var mlWasmJSApi_default = class MlWasmJSApi {
3
3
  constructor() {
4
4
  this.versionsFile = null;
@@ -20,30 +20,11 @@ var mlWasmJSApi_default = class MlWasmJSApi {
20
20
  this.wasmCallSemaphore = new SemaphoreProvider();
21
21
  this.Module = null;
22
22
  }
23
- /**
24
- * Initiallization method, use it when the application starts
25
- * TODO: this method can return the list of promises to be awaited together with other initialization code
26
- * @param {string} webLibPath - The path to the webassembly binary
27
- * @param {string} webLibPathSimd - The path to the SIMD version webassembly binary
28
- * @param {string} glueCodePath - The path to the non-SIMD glue (`webLib.js`)
29
- * @param {string} glueCodeSimdPath - The path to the SIMD-paired glue (`webLibSimd.js`); pass `''` to derive from `webLibPathSimd`
30
- * @param {boolean} useSimd - Indicates whether SIMD optimizations should be used
31
- * @param {string} versionsFile - The path to the file containing versioning information
32
- * @param {Map.<WasmPipelineType, Array<string>>} pipelines - pipelines for initialization and corresponding models paths
33
- * @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether SIMD is enabled once the initialization is complete.
34
- * @throws {Error} Throws an error if the initialization fails.
35
- */
36
- async initialize(webLibPath, webLibPathSimd, glueCodePath, glueCodeSimdPath, useSimd, versionsFile, pipelines) {
23
+ async initialize({ module, versionsFile, pipelines }) {
37
24
  await this.freeResources();
38
25
  this.pipelines_ = pipelines;
39
26
  this.versionsFile = versionsFile;
40
- const { wasmModule, simdUsed } = await loadWasmModule({
41
- glueCodePath,
42
- glueCodeSimdPath: glueCodeSimdPath || void 0,
43
- wasmPath: webLibPath,
44
- wasmSimdPath: webLibPathSimd,
45
- useSimd
46
- });
27
+ const { wasmModule, simdUsed } = await loadWasmModule(module);
47
28
  this.wasmModule = wasmModule;
48
29
  this.Module = window.Module;
49
30
  this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
@@ -252,7 +233,7 @@ var mlWasmJSApi_default = class MlWasmJSApi {
252
233
  }
253
234
  async setIdBarcodeEnhancementModel(pipelineType, modelPath) {
254
235
  this.checkWasmInitialization("Unable to set barcode enhancement model, cpp API hasn't been initialized");
255
- const buffer = await fetch(modelPath).then((response) => response.arrayBuffer()).then((buf) => new Uint8Array(buf));
236
+ const buffer = await resolveWasmSource(modelPath, "barcode model");
256
237
  return this.idCaptureWasmApi.setBarcodeEnhancementModel(this.pipelineTypeToWasmEnum(pipelineType), buffer);
257
238
  }
258
239
  IdPerspectiveTransform(image, frameRect) {
@@ -274,7 +255,7 @@ var mlWasmJSApi_default = class MlWasmJSApi {
274
255
  const sizes = new this.wasmModule.VectorInt();
275
256
  for (const path of modelsPaths) {
276
257
  if (!loadedModels.has(path)) {
277
- const model = await fetch(path).then((response) => response.arrayBuffer()).then((buffer) => new Uint8Array(buffer));
258
+ const model = await resolveWasmSource(path, "model");
278
259
  loadedModels.set(path, model);
279
260
  }
280
261
  const model = loadedModels.get(path);
@@ -489,34 +470,6 @@ var mlWasmJSApi_default = class MlWasmJSApi {
489
470
  * it is intentionally excluded here to keep the default warmup small.
490
471
  */
491
472
  const WASM_PIPELINES = ["selfie", "idCapture"];
492
- /**
493
- * Default model files for each pipeline.
494
- * These are the ONNX model files required by each ML pipeline.
495
- */
496
- const DEFAULT_PIPELINE_MODELS = {
497
- selfie: [
498
- "selfie_bf_angles_192x192_opset9_fp16.ortmodelv2",
499
- "face_attributes_v1_3_fp16.ortmodelv2",
500
- "mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2",
501
- "face_occlusion_v0_2_fp16.ortmodelv2"
502
- ],
503
- onDeviceSelfie: [
504
- "selfie_bf_angles_192x192_opset9_fp16.ortmodelv2",
505
- "face_attributes_v1_3_fp16.ortmodelv2",
506
- "mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2",
507
- "face_occlusion_v0_2_fp16.ortmodelv2",
508
- "ondevice_physical_liveness_v2_1_fp16.ortmodelv2",
509
- "age_estimation_v2_2_2_fp16.ortmodelv2"
510
- ],
511
- idCapture: ["id_capture_2_01_fp16.ortmodelv2", "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2"],
512
- videoSelfie: [
513
- "selfie_bf_angles_192x192_opset9_fp16.ortmodelv2",
514
- "face_attributes_v1_3_fp16.ortmodelv2",
515
- "mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2",
516
- "face_occlusion_v0_2_fp16.ortmodelv2"
517
- ],
518
- videoSelfieId: ["id_capture_2_01_fp16.ortmodelv2"]
519
- };
520
473
  let state = "idle";
521
474
  let loadingPromise = null;
522
475
  let wasmError = null;
@@ -552,20 +505,36 @@ function deriveModelsBasePath(wasmPath) {
552
505
  */
553
506
  function getResolvedModelsBasePath() {
554
507
  if (!lastConfig) return;
555
- return lastConfig.modelsBasePath ?? deriveModelsBasePath(lastConfig.wasmPath);
508
+ if (lastConfig.modelsBasePath) return lastConfig.modelsBasePath;
509
+ return typeof lastConfig.wasmPath === "string" ? deriveModelsBasePath(lastConfig.wasmPath) : void 0;
510
+ }
511
+ function getResolvedModelSource(fileName, pipeline) {
512
+ if (!lastConfig) return;
513
+ const explicit = lastConfig.modelUrls?.[fileName];
514
+ if (explicit !== void 0) return explicit;
515
+ if (lastConfig.selfHosted) throw missingWasmModelError(fileName, pipeline);
516
+ const basePath = getResolvedModelsBasePath();
517
+ if (!basePath) return;
518
+ return `${basePath.replace(/\/$/, "")}/${fileName}`;
556
519
  }
557
520
  /**
558
521
  * Builds the pipelines map with model paths for WASM initialization.
559
522
  * @param pipelines - Array of pipeline types to initialize
560
- * @param modelsBasePath - Base path where model files are located
561
- * @param customModels - Optional custom model files per pipeline
523
+ * @param config - Module and model resolution configuration
562
524
  */
563
- function buildPipelinesMap(pipelines, modelsBasePath, customModels) {
525
+ function buildPipelinesMap(pipelines, config) {
564
526
  const pipelinesMap = /* @__PURE__ */ new Map();
527
+ const modelsBasePath = config.modelsBasePath ?? (typeof config.wasmPath === "string" ? deriveModelsBasePath(config.wasmPath) : void 0);
565
528
  for (const pipeline of pipelines) {
566
529
  const wasmType = mapPipelineToWasmType(pipeline);
567
530
  if (!pipelinesMap.has(wasmType)) {
568
- const modelPaths = (customModels?.[pipeline] ?? DEFAULT_PIPELINE_MODELS[pipeline]).map((modelFile) => `${modelsBasePath}/${modelFile}`);
531
+ const modelPaths = (config.pipelineModels?.[pipeline] ?? WASM_PIPELINE_MODELS[pipeline]).map((modelFile) => {
532
+ const explicit = config.modelUrls?.[modelFile];
533
+ if (explicit !== void 0) return explicit;
534
+ if (config.selfHosted) throw missingWasmModelError(modelFile, pipeline);
535
+ if (!modelsBasePath) throw new Error("[Incode SDK] modelsBasePath is required when wasmPath is a byte source.");
536
+ return `${modelsBasePath}/${modelFile}`;
537
+ });
569
538
  pipelinesMap.set(wasmType, modelPaths);
570
539
  }
571
540
  }
@@ -601,7 +570,6 @@ function buildPipelinesMap(pipelines, modelsBasePath, customModels) {
601
570
  */
602
571
  async function warmupWasm(config) {
603
572
  const pipelines = config.pipelines ?? [...WASM_PIPELINES];
604
- const modelsBasePath = config.modelsBasePath ?? deriveModelsBasePath(config.wasmPath);
605
573
  if (state === "loading" && loadingPromise) {
606
574
  const inFlight = loadingPromise;
607
575
  if (pipelines.filter((p) => !pipelinesInFlight.includes(p)).length === 0) return inFlight;
@@ -610,15 +578,19 @@ async function warmupWasm(config) {
610
578
  if (state === "ready") {
611
579
  if (pipelines.filter((p) => !loadedPipelines.includes(p)).length === 0) return;
612
580
  if (!lastConfig) throw new Error("Cannot add pipelines: original warmup config not available");
613
- 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.");
581
+ if (lastConfig.wasmPath !== config.wasmPath || lastConfig.glueCodePath !== config.glueCodePath || (lastConfig.wasmSimdPath ?? lastConfig.wasmPath) !== (config.wasmSimdPath ?? config.wasmPath) || (lastConfig.glueCodeSimdPath ?? "") !== (config.glueCodeSimdPath ?? "") || lastConfig.loadGlue !== config.loadGlue || lastConfig.loadGlueSimd !== config.loadGlueSimd || (lastConfig.useSimd ?? true) !== (config.useSimd ?? true)) throw new Error("Cannot add pipelines: WASM config mismatch. Use same wasmPath, glueCodePath, and useSimd settings.");
614
582
  const combinedPipelines = [.../* @__PURE__ */ new Set([...loadedPipelines, ...pipelines])];
615
583
  state = "loading";
616
584
  pipelinesInFlight = combinedPipelines;
617
585
  wasmError = null;
618
586
  loadingPromise = (async () => {
619
587
  try {
620
- const pipelinesMap = buildPipelinesMap(combinedPipelines, lastConfig.modelsBasePath ?? deriveModelsBasePath(lastConfig.wasmPath), lastConfig.pipelineModels);
621
- await mlWasmJSApi_default.initialize(lastConfig.wasmPath, lastConfig.wasmSimdPath ?? lastConfig.wasmPath, lastConfig.glueCodePath, lastConfig.glueCodeSimdPath ?? "", lastConfig.useSimd ?? true, "", pipelinesMap);
588
+ const pipelinesMap = buildPipelinesMap(combinedPipelines, lastConfig);
589
+ await mlWasmJSApi_default.initialize({
590
+ module: lastConfig,
591
+ versionsFile: "",
592
+ pipelines: pipelinesMap
593
+ });
622
594
  await mlWasmJSApi_default.loadModels();
623
595
  await mlWasmJSApi_default.initializePipelines();
624
596
  state = "ready";
@@ -643,9 +615,13 @@ async function warmupWasm(config) {
643
615
  wasmError = null;
644
616
  loadingPromise = (async () => {
645
617
  try {
646
- const pipelinesMap = buildPipelinesMap(pipelines, modelsBasePath, config.pipelineModels);
618
+ const pipelinesMap = buildPipelinesMap(pipelines, config);
647
619
  if (config.onDeviceMode !== void 0) mlWasmJSApi_default.setOnDeviceMode(config.onDeviceMode);
648
- await mlWasmJSApi_default.initialize(config.wasmPath, config.wasmSimdPath ?? config.wasmPath, config.glueCodePath, config.glueCodeSimdPath ?? "", config.useSimd ?? true, "", pipelinesMap);
620
+ await mlWasmJSApi_default.initialize({
621
+ module: config,
622
+ versionsFile: "",
623
+ pipelines: pipelinesMap
624
+ });
649
625
  await mlWasmJSApi_default.loadModels();
650
626
  await mlWasmJSApi_default.initializePipelines();
651
627
  state = "ready";
@@ -747,14 +723,11 @@ var BaseWasmProvider = class {
747
723
  const status = getWasmStatus();
748
724
  if (status.isLoading || isWasmReady() || status.error) await waitForWasm();
749
725
  else {
750
- if (!config.wasmPath || !config.glueCodePath) throw new Error("WASM path and glue code path are required. Call warmupWasm() first.");
726
+ if (!config.wasmPath || !config.glueCodePath && !config.loadGlue) throw new Error("WASM path and glue code path are required. Call warmupWasm() first.");
751
727
  await warmupWasm({
728
+ ...config,
752
729
  wasmPath: config.wasmPath,
753
- wasmSimdPath: config.wasmSimdPath,
754
- glueCodePath: config.glueCodePath,
755
- glueCodeSimdPath: config.glueCodeSimdPath,
756
- useSimd: config.useSimd,
757
- modelsBasePath: config.modelsBasePath,
730
+ glueCodePath: config.glueCodePath ?? "",
758
731
  pipelines: [pipeline]
759
732
  });
760
733
  }
@@ -979,4 +952,4 @@ function resolveSessionStorage() {
979
952
  }
980
953
  }
981
954
  //#endregion
982
- export { getResolvedModelsBasePath as a, mlWasmJSApi_default as c, BaseWasmProvider as i, resolveSessionStorage as n, setWasmOnDeviceMode as o, WasmUtilProvider as r, warmupWasm as s, resolveLocalStorage as t };
955
+ export { getResolvedModelSource as a, mlWasmJSApi_default as c, BaseWasmProvider as i, resolveSessionStorage as n, setWasmOnDeviceMode as o, WasmUtilProvider as r, warmupWasm as s, resolveLocalStorage as t };
package/dist/selfie.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
2
- import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-fq0Rl3ik.js";
2
+ import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-CKyaVKsu.js";
3
3
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
- import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-Cyiwbg-r.js";
5
4
  import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
6
- import { t as DeepsightService } from "./deepsightService-DLVQS_RH.js";
7
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-DlAKn0rp.js";
5
+ import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-RMhiEIm9.js";
6
+ import { t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
7
+ import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-Dxj984_L.js";
8
8
  //#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
9
9
  type SelfieCaptureOnlyState = FaceCaptureManagerState;
10
10
  type SelfieCaptureOnlyManager = FaceCaptureManager;
@@ -1,13 +1,13 @@
1
- import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
4
4
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-D1xDWdEi.esm.js";
7
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-9X4WspD-.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DXCPmEv2.esm.js";
7
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DysNuSGO.esm.js";
8
8
  import { r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-DWDmcet8.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-CsFpBfry.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-CHSNxzhO.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DfeUZfgL.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-1m1VJ3Q4.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -1,9 +1,9 @@
1
- import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
1
+ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
2
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-9X4WspD-.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-DWDmcet8.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DysNuSGO.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-CHSNxzhO.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,15 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-fq0Rl3ik.js";
4
- //#region src/modules/selfie/selfieUploadService.d.ts
5
- type ProcessFaceImageType = 'selfie' | 'videoSelfie';
6
- type ProcessFaceResponse = {
7
- faceMatch: boolean;
8
- confidence: number;
9
- existingUser: boolean;
10
- };
11
- declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
12
- //#endregion
3
+ import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CKyaVKsu.js";
13
4
  //#region src/modules/selfie/selfieManager.d.ts
14
5
  type SelfieState = FaceCaptureManagerState;
15
6
  /**
@@ -80,4 +71,4 @@ declare function createSelfieManager(options: CreateSelfieActorOptions): Manager
80
71
  };
81
72
  type SelfieManager = FaceCaptureManager;
82
73
  //#endregion
83
- export { ProcessFaceResponse as a, createSelfieManagerFromActor as i, SelfieState as n, processFace as o, createSelfieManager as r, SelfieManager as t };
74
+ export { createSelfieManagerFromActor as i, SelfieState as n, createSelfieManager as r, SelfieManager as t };
@@ -1,7 +1,7 @@
1
1
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
- import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-D1xDWdEi.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DnxtQAz3.esm.js";
3
+ import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-DXCPmEv2.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DT9SoUq7.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
7
7
  //#region src/modules/selfie/selfieStateMachine.ts
@@ -1,9 +1,9 @@
1
1
  import { n as getApi } from "./api-Bx3gKW_y.esm.js";
2
- import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-CNuiVjvN.esm.js";
3
- import "./sessionInitializer-ShclX9vD.esm.js";
2
+ import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-zTWODJoh.esm.js";
3
+ import "./sessionInitializer-D_B-8Ujt.esm.js";
4
4
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import "./trueSight-BxA2W2OB.esm.js";
6
- import { r as toIncodeApiError } from "./apiError-B3T64yxT.esm.js";
5
+ import "./trueSight-lNCajJAf.esm.js";
6
+ import { r as toIncodeApiError } from "./apiError-B3TI9TK9.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
9
9
  * HTTP status codes the QR validation endpoint emits, keyed by their semantic
package/dist/session.d.ts CHANGED
@@ -1,13 +1,5 @@
1
- import { a as RegulationTypes } from "./types-CRw2IBPn.js";
1
+ import { t as DeviceFingerprintResult } from "./types-W5OCjqmi.js";
2
2
  import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
3
- //#region src/internal/fingerprint/types.d.ts
4
- type DeviceFingerprintResult = {
5
- success: boolean;
6
- sessionStatus: string;
7
- showMandatoryConsent?: boolean;
8
- regulationType?: RegulationTypes;
9
- };
10
- //#endregion
11
3
  //#region src/internal/session/sessionService.d.ts
12
4
  type CreateSessionOptions = {
13
5
  /** The configuration/flow ID from the Incode dashboard */
@@ -1,5 +1,5 @@
1
- import { i as initializeSession } from "./sessionInitializer-ShclX9vD.esm.js";
2
- import { t as IncodeApiError } from "./apiError-B3T64yxT.esm.js";
3
- import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BuGZN95Y.esm.js";
4
- import { n as getFinishStatus } from "./flowCompletionService-CBCd4sTT.esm.js";
1
+ import { i as initializeSession } from "./sessionInitializer-D_B-8Ujt.esm.js";
2
+ import { t as IncodeApiError } from "./apiError-B3TI9TK9.esm.js";
3
+ import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-CuM9od2S.esm.js";
4
+ import { n as getFinishStatus } from "./flowCompletionService-DvWL2nH-.esm.js";
5
5
  export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
@@ -1,9 +1,9 @@
1
1
  import { E as updateFeatureManagementUser } from "./feature-management-DS_Nj5Gg.esm.js";
2
2
  import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-CNuiVjvN.esm.js";
3
+ import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-zTWODJoh.esm.js";
4
4
  import { v as addEvent, y as getAnalyticsBatcher } from "./events-CxfNJVZW.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
6
- import "./trueSight-BxA2W2OB.esm.js";
6
+ import "./trueSight-lNCajJAf.esm.js";
7
7
  import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
8
8
  import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
9
9
  import { a as isIOS } from "./platform-Q4r1nvWX.esm.js";
@@ -1,4 +1,4 @@
1
- import { n as WasmPipeline } from "./warmup-Dv2alr2-.js";
1
+ import { c as WasmPipeline, i as WasmModuleConfig, n as WasmModelsConfig, t as WarmupConfig } from "./warmup-CXHBgvFC.js";
2
2
  import { s as TransactionalRiskIntelligenceSetupConfig } from "./index-BKOWUhxG.js";
3
3
  import { c as FeatureManagementRedactedUserInfo } from "./IFeatureManagementCapability-DdEUp6tB.js";
4
4
  //#region src/internal/environment/environment.d.ts
@@ -11,46 +11,33 @@ type EnvironmentTier = 'development' | 'staging' | 'production';
11
11
  //#endregion
12
12
  //#region src/setup.d.ts
13
13
  /**
14
- * WASM warmup configuration. Path fields are optional; omitted values resolve to the Incode CDN defaults.
14
+ * WASM setup and warmup configuration.
15
+ *
16
+ * Binary and glue fields are optional here. Omitted fields resolve to the
17
+ * pinned Incode CDN release.
15
18
  */
16
- type WasmConfig = {
19
+ type WasmConfig = Partial<WasmModuleConfig> & WasmModelsConfig & {
17
20
  /**
18
- * Self-hosted WASM root directory. Resolves standard ml-wasm-kit filenames
19
- * under this path (`webLib.wasm`, `webLib.js`, `models/`, etc.). Pin a
20
- * specific version folder when self-hosting so SDK updates do not change
21
- * which binaries your app loads until you update this path.
21
+ * Root URL of a self-hosted directory that mirrors the ml-wasm-kit layout.
22
22
  *
23
- * Example: `https://my-cdn.example.com/ml-wasm-kit-release/v2.13.21`
23
+ * The SDK resolves both binaries, both glue files, and the `models`
24
+ * directory under this URL. Individual paths override derived values.
24
25
  *
25
- * Individual path fields override values derived from `basePath`.
26
+ * Use a versioned directory when the hosting system retains old releases.
26
27
  */
27
28
  basePath?: string;
28
- /** Path to the WASM binary */
29
- wasmPath?: string;
30
- /** Path to the SIMD-optimized WASM binary (optional) */
31
- wasmSimdPath?: string;
32
- /** Path to the WASM glue code (paired with `wasmPath`) */
33
- glueCodePath?: string;
34
29
  /**
35
- * Path to the SIMD-optimized WASM glue code (paired with `wasmSimdPath`).
36
- * If omitted, defaults to a sibling `.js` derived from `wasmSimdPath`.
30
+ * Pipelines to preload during `setup()`.
31
+ *
32
+ * The default preloads the standard selfie and ID capture pipelines.
33
+ * Pipelines that are not listed can still load later when a module needs
34
+ * them.
37
35
  */
38
- glueCodeSimdPath?: string;
39
- /** Whether to use SIMD optimizations (default: true) */
40
- useSimd?: boolean;
41
- /** Which pipelines to preload models for */
42
36
  pipelines?: WasmPipeline[];
43
37
  /**
44
- * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
45
- * If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
46
- */
47
- modelsBasePath?: string;
48
- /**
49
- * Enables the WASM module's verbose debug logging/console output.
38
+ * Enables verbose output from the native WASM module.
50
39
  *
51
- * Defaults to `false` — the SDK forces WASM into production mode, so the
52
- * native module stays quiet. Set to `true` only when you need the WASM
53
- * diagnostics while debugging.
40
+ * Defaults to `false`. Enable it only while diagnosing WASM behavior.
54
41
  */
55
42
  showLogs?: boolean;
56
43
  };
@@ -567,6 +554,7 @@ declare function initializeWasmUtil(config?: WasmConfig): Promise<void>;
567
554
  * @param pipelines - The pipelines to ensure are loaded.
568
555
  */
569
556
  declare function ensureWasmPipelines(pipelines: readonly WasmPipeline[]): Promise<void>;
557
+ declare function resolveWasmConfigForPipelines(pipelines: readonly WasmPipeline[], override?: WasmConfig): WarmupConfig;
570
558
  /**
571
559
  * Replaces the active HTTP client with the WASM-backed one. Used internally
572
560
  * by lazy-loading UI components (`<incode-flow>`, `<incode-workflow>`) when
@@ -593,4 +581,4 @@ declare function isConfigured(): boolean;
593
581
  */
594
582
  declare function reset(): void;
595
583
  //#endregion
596
- export { isConfigured as a, setup as c, initializeWasmUtil as i, upgradeToWasmHttpClient as l, WasmConfig as n, reset as o, ensureWasmPipelines as r, setWasmConfig as s, SetupOptions as t };
584
+ export { isConfigured as a, setWasmConfig as c, initializeWasmUtil as i, setup as l, WasmConfig as n, reset as o, ensureWasmPipelines as r, resolveWasmConfigForPipelines as s, SetupOptions as t, upgradeToWasmHttpClient as u };
@@ -1,18 +1,18 @@
1
- import { a as resolveWasmConfig } from "./wasmDefaults-DTUrftxR.esm.js";
2
- import { o as setWasmOnDeviceMode, r as WasmUtilProvider, s as warmupWasm } from "./safeStorage-Ep56I-f_.esm.js";
3
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
1
+ import { a as resolveWasmConfig } from "./wasmDefaults-BrwMccqW.esm.js";
2
+ import { o as setWasmOnDeviceMode, r as WasmUtilProvider, s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
3
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
5
  import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-DS_Nj5Gg.esm.js";
6
6
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
8
- import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, b as getStoredHttpConfig, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-CNuiVjvN.esm.js";
8
+ import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, b as getStoredHttpConfig, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-zTWODJoh.esm.js";
9
9
  import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CxfNJVZW.esm.js";
10
- import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-ShclX9vD.esm.js";
10
+ import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-D_B-8Ujt.esm.js";
11
11
  import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
12
- import "./trueSight-BxA2W2OB.esm.js";
12
+ import "./trueSight-lNCajJAf.esm.js";
13
13
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
14
14
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
15
- import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-Clyz_AFS.esm.js";
15
+ import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-CAz3XO92.esm.js";
16
16
  //#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
17
17
  var BrowserPageLifecycleProvider = class {
18
18
  sendBeacon(url, body, contentType = "application/json") {
@@ -690,6 +690,12 @@ async function ensureWasmPipelines(pipelines) {
690
690
  pipelines: [...pipelines]
691
691
  });
692
692
  }
693
+ function resolveWasmConfigForPipelines(pipelines, override) {
694
+ return resolveWasmConfig({
695
+ ...override ?? wasmConfig ?? {},
696
+ pipelines: [...pipelines]
697
+ });
698
+ }
693
699
  /**
694
700
  * Replaces the active HTTP client with the WASM-backed one. Used internally
695
701
  * by lazy-loading UI components (`<incode-flow>`, `<incode-workflow>`) when
@@ -747,4 +753,4 @@ function reset() {
747
753
  resetTrueSight();
748
754
  }
749
755
  //#endregion
750
- export { setWasmConfig as a, abortVideoSelfieUpload as c, uploadVideoSelfiePart as d, reset as i, completeVideoSelfieUpload as l, initializeWasmUtil as n, setup as o, isConfigured as r, upgradeToWasmHttpClient as s, ensureWasmPipelines as t, initiateVideoSelfieUpload as u };
756
+ export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, initiateVideoSelfieUpload as d, uploadVideoSelfiePart as f, reset as i, abortVideoSelfieUpload as l, initializeWasmUtil as n, setWasmConfig as o, isConfigured as r, setup as s, ensureWasmPipelines as t, completeVideoSelfieUpload as u };
@@ -0,0 +1 @@
1
+ import "./trueSightService-zTWODJoh.esm.js";
@@ -1,4 +1,4 @@
1
- import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError } from "./wasmWebClient-DM8lkb0z.esm.js";
1
+ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError } from "./wasmWebClient-BzFsDjU6.esm.js";
2
2
  import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
3
3
  import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { S as subscribeEvent, n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
@@ -322,7 +322,7 @@ const createWasmApi = async (config) => {
322
322
  const headers = buildWasmDefaultHeaders(config.customHeaders);
323
323
  const isEncryptionEnabled = config.isEncryptionEnabled ?? (() => false);
324
324
  const useSha256 = config.mgf1 === "sha256";
325
- await initializeWasmWebClient(config.wasm.wasmPath, config.wasm.wasmSimdPath ?? config.wasm.wasmPath, config.wasm.glueCodePath, config.wasm.glueCodeSimdPath ?? "", config.wasm.useSimd ?? true);
325
+ await initializeWasmWebClient(config.wasm);
326
326
  await setupWasmConnection(config.apiURL, "", config.encryptionEnabled ?? false, headers, useSha256);
327
327
  const defaults = {
328
328
  baseURL: config.apiURL,
@@ -727,7 +727,7 @@ function epochMsToIsoString(epochMs) {
727
727
  }
728
728
  //#endregion
729
729
  //#region src/internal/version/sdkVersion.ts
730
- const SDK_VERSION = "0.0.0-dev-20260817-acfa6f73";
730
+ const SDK_VERSION = "0.0.0-dev-20260817-941e76d2";
731
731
  //#endregion
732
732
  //#region src/internal/trueSight/recordBuilder.ts
733
733
  /**
@@ -1322,7 +1322,7 @@ let cryptoProviderPromise = null;
1322
1322
  * the service's prewarm).
1323
1323
  */
1324
1324
  function loadDiagnosticsCryptoProvider() {
1325
- cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-Bm4ZX5t3.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1325
+ cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-CPcF1K4D.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
1326
1326
  return cryptoProviderPromise;
1327
1327
  }
1328
1328
  /**
@@ -1,9 +1,10 @@
1
1
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
- import { n as IRecordingCapability, o as IncodeCanvas, r as RecordingConnection, t as IStorageCapability } from "./IStorageCapability-ORkQfK3F.js";
3
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-CRw2IBPn.js";
2
+ import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
3
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-s0fF3TpX.js";
4
+ import { a as IRecordingCapability, i as IStorageCapability, o as RecordingConnection } from "./IWasmUtilCapability-5-Pncgma.js";
4
5
  import { t as PermissionResult } from "./types-BEwVKkLJ.js";
5
- import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-DLVQS_RH.js";
6
- import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DHTT3FC2.js";
6
+ import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
7
+ import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
7
8
  //#region src/modules/id/manualUpload/types.d.ts
8
9
  type ManualUploadTab = 'id' | 'passport';
9
10
  type ManualUploadSide = 'front' | 'back' | 'passport';
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-CRw2IBPn.js";
1
+ import { a as RegulationTypes } from "./types-s0fF3TpX.js";
2
2
  //#region src/modules/mandatory-consent/types.d.ts
3
3
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
4
4
  type MandatoryConsentConfig = {
@@ -0,0 +1,6 @@
1
+ import { i as FlowModuleConfig } from "./types-s0fF3TpX.js";
2
+ import { t as BaseFaceCaptureConfig } from "./types-RMhiEIm9.js";
3
+ //#region src/modules/authentication/types.d.ts
4
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
+ //#endregion
6
+ export { AuthenticationConfig as t };