@incodetech/core 0.0.0-dev-20261119-6e95a3e4 → 0.0.0-dev-20261120-8911ea46

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 (123) hide show
  1. package/dist/{BaseWasmProvider-bBNquvYn.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
  2. package/dist/{FaceDetectionProvider-Zcq9To38.esm.js → FaceDetectionProvider-j6gNUeBW.esm.js} +11 -8
  3. package/dist/{IIdCaptureCapability-C-5M8pP1.d.ts → IIdCaptureCapability-CAxToGns.d.ts} +3 -3
  4. package/dist/{IWasmUtilCapability-XcOtT1TP.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +2 -2
  5. package/dist/{StreamCanvasCapture-BnBfA6fb.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +2 -2
  6. package/dist/{WasmUtilProvider-BW_4YKrg.esm.js → WasmUtilProvider-ZXMogz8z.esm.js} +20 -4
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/{apiError-Dp-Zxhsu.esm.js → apiError-T18Ndgre.esm.js} +1 -1
  9. package/dist/authentication.d.ts +3 -3
  10. package/dist/authentication.esm.js +2 -2
  11. package/dist/{authenticationManager-BLpMDZnm.esm.js → authenticationManager-CBmy-j7Y.esm.js} +4 -4
  12. package/dist/{authenticationManager-DeN8mraQ.d.ts → authenticationManager-DFAnYVFV.d.ts} +1 -1
  13. package/dist/{authenticationStateMachine-D-fJiVP5.esm.js → authenticationStateMachine-CzP0YKNH.esm.js} +3 -3
  14. package/dist/avatar.d.ts +1 -1
  15. package/dist/camera.esm.js +1 -1
  16. package/dist/consent.d.ts +1 -1
  17. package/dist/{consentManager-Duzd8paN.d.ts → consentManager-DlvhoJYc.d.ts} +4 -4
  18. package/dist/{createFaceAvatar-BimBTONm.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
  19. package/dist/curp-validation.d.ts +1 -1
  20. package/dist/{curpValidationManager-DgUZySoq.d.ts → curpValidationManager-DsDvoViA.d.ts} +1 -1
  21. package/dist/deepsightCaptureConfig-BYx9pyCH.esm.js +70 -0
  22. package/dist/{deepsightLoader-DFTvhrkj.esm.js → deepsightLoader-azWKSF0y.esm.js} +6 -5
  23. package/dist/{desktopCameraElection-DziKgEad.esm.js → desktopCameraElection-Ci8BwEA7.esm.js} +88 -5
  24. package/dist/device.esm.js +1 -1
  25. package/dist/document-capture.d.ts +1 -1
  26. package/dist/document-capture.esm.js +2 -2
  27. package/dist/document-signature.esm.js +1 -1
  28. package/dist/{documentCaptureManager-DWFEWV4d.esm.js → documentCaptureManager-YXwSaquq.esm.js} +1 -1
  29. package/dist/{documentCaptureManager-DLWTqjUr.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +1 -1
  30. package/dist/{documentCaptureStateMachine-C9wBJ8Y5.esm.js → documentCaptureStateMachine-DKG_aAPi.esm.js} +2 -2
  31. package/dist/{documentSignatureStateMachine-DymuSDQt.esm.js → documentSignatureStateMachine-DxfJs-C0.esm.js} +1 -1
  32. package/dist/dynamic-forms.esm.js +2 -2
  33. package/dist/{dynamicFormsManager-DUzUQD4C.esm.js → dynamicFormsManager-kHXGaVVA.esm.js} +1 -1
  34. package/dist/{dynamicFormsStateMachine-BSgwYu_b.esm.js → dynamicFormsStateMachine-CkNn0K-p.esm.js} +1 -1
  35. package/dist/ekyb.d.ts +1 -1
  36. package/dist/ekyb.esm.js +2 -2
  37. package/dist/{ekybManager-DnepVWmg.esm.js → ekybManager-BQxmewHe.esm.js} +1 -1
  38. package/dist/{ekybStateMachine-BsHIcOeh.esm.js → ekybStateMachine-CN8GuppY.esm.js} +1 -1
  39. package/dist/ekyc-prefill.esm.js +2 -2
  40. package/dist/{ekycPrefillManager-C2zRQsfS.esm.js → ekycPrefillManager-CKLJBjkM.esm.js} +1 -1
  41. package/dist/{ekycPrefillStateMachine-DSjkcGnU.esm.js → ekycPrefillStateMachine-jVrEkX29.esm.js} +1 -1
  42. package/dist/electronic-signature.esm.js +1 -1
  43. package/dist/{electronicSignatureManager-Dc1mrzK6.esm.js → electronicSignatureManager-DkwMjvss.esm.js} +1 -1
  44. package/dist/extensibility.d.ts +14 -14
  45. package/dist/extensibility.esm.js +15 -15
  46. package/dist/{faceCaptureManagerFactory-D0pyWORs.d.ts → faceCaptureManagerFactory-CkhNR70A.d.ts} +7 -7
  47. package/dist/{faceCaptureManagerFactory-D-jyAayV.esm.js → faceCaptureManagerFactory-DKVQS4YB.esm.js} +5 -4
  48. package/dist/{faceCaptureSetup-CsHOVX87.esm.js → faceCaptureSetup-CjvHMU4G.esm.js} +27 -19
  49. package/dist/{feature-management-BMopZ94t.esm.js → feature-management-DrkQHH45.esm.js} +1 -1
  50. package/dist/feature-management.esm.js +1 -1
  51. package/dist/flow-events.d.ts +1 -1
  52. package/dist/flow.d.ts +6 -6
  53. package/dist/flow.esm.js +3 -3
  54. package/dist/{flowCompletionService-COesuoKj.esm.js → flowCompletionService-BrU3zRCa.esm.js} +1 -1
  55. package/dist/{flowServices-BlBapbtQ.esm.js → flowServices-DrhzisMl.esm.js} +5 -5
  56. package/dist/geolocation.esm.js +2 -2
  57. package/dist/{geolocationManager-D09RtKVk.esm.js → geolocationManager-Cnkm0i6c.esm.js} +1 -1
  58. package/dist/{geolocationStateMachine-Co_EtS-E.esm.js → geolocationStateMachine-DPX0DZTc.esm.js} +1 -1
  59. package/dist/home.d.ts +1 -1
  60. package/dist/id-selfie-flow.d.ts +3 -3
  61. package/dist/id-selfie-flow.esm.js +9 -9
  62. package/dist/id.d.ts +3 -3
  63. package/dist/id.esm.js +3 -3
  64. package/dist/{idCaptureDefaults-CRn9jT4K.esm.js → idCaptureDefaults-D74C8SAy.esm.js} +4 -4
  65. package/dist/{idCaptureManager-kmR_AuiW.d.ts → idCaptureManager-BMspT5GM.d.ts} +7 -7
  66. package/dist/{idCaptureManager-DGK6_0Ny.esm.js → idCaptureManager-CgrjoGxG.esm.js} +12 -10
  67. package/dist/{idCaptureServices-1K5FUU9A.esm.js → idCaptureServices-BkR59dm2.esm.js} +4 -4
  68. package/dist/{idCaptureStateMachine-6jXPguZA.esm.js → idCaptureStateMachine-iwDI7g7A.esm.js} +32 -26
  69. package/dist/{index-C0WIMlJE.d.ts → index-DP-EPRCW.d.ts} +1 -1
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.esm.js +1 -1
  72. package/dist/kyb-checks.esm.js +2 -2
  73. package/dist/{kybChecksManager-D9-DzcKo.esm.js → kybChecksManager-DE4gEFC5.esm.js} +1 -1
  74. package/dist/{kybChecksStateMachine-BSgEOmZs.esm.js → kybChecksStateMachine-KubwqxTh.esm.js} +1 -1
  75. package/dist/mandatory-consent.d.ts +2 -2
  76. package/dist/{mandatoryConsentManager-CpriEr0q.d.ts → mandatoryConsentManager-Cebwze5A.d.ts} +5 -5
  77. package/dist/{permissionGuards-BN_Tyjgt.esm.js → permissionGuards-BymkaEBe.esm.js} +1 -1
  78. package/dist/{permissionServices-DB7ckY8v.esm.js → permissionServices-CrrStkAz.esm.js} +1 -1
  79. package/dist/qe-signature.esm.js +1 -1
  80. package/dist/{recordingService-bmaVeo9d.esm.js → recordingService-CjhVv0Md.esm.js} +10 -4
  81. package/dist/redirect-to-mobile.d.ts +1 -1
  82. package/dist/redirect-to-mobile.esm.js +2 -2
  83. package/dist/{redirectToMobileManager-DHuFklFc.esm.js → redirectToMobileManager-9c233-vw.esm.js} +2 -1
  84. package/dist/{redirectToMobileManager-pT6FiPE7.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +1 -0
  85. package/dist/{redirectToMobileStateMachine-CIcTgOJd.esm.js → redirectToMobileStateMachine-o-X0kapc.esm.js} +9 -2
  86. package/dist/{runChildModule-CDTuNUcR.esm.js → runChildModule-BeiOmUu5.esm.js} +1 -1
  87. package/dist/{sdkVersion-BIDVzFgg.esm.js → sdkVersion-DxhcAXUS.esm.js} +1 -1
  88. package/dist/selfie.d.ts +4 -4
  89. package/dist/selfie.esm.js +10 -9
  90. package/dist/{selfieErrorUtils-DhIF8BEd.esm.js → selfieErrorUtils-BoJsMhmW.esm.js} +1 -1
  91. package/dist/{selfieManager-CAaZRbem.d.ts → selfieManager-D6KJWT4p.d.ts} +1 -1
  92. package/dist/{selfieManager-CqB5Cobk.esm.js → selfieManager-D7ttFZTJ.esm.js} +4 -4
  93. package/dist/{selfieStateMachine-CcY8XCq_.esm.js → selfieStateMachine-BghuY135.esm.js} +3 -3
  94. package/dist/{session-Bk5X05oz.esm.js → session-DUZQd1Cr.esm.js} +4 -3
  95. package/dist/session.d.ts +3 -13
  96. package/dist/session.esm.js +4 -4
  97. package/dist/{sessionInitializer-Be57jtWP.esm.js → sessionInitializer-CRXargXI.esm.js} +12 -14
  98. package/dist/{setup-BsC4fyKm.esm.js → setup-BYYbcIPG.esm.js} +8 -7
  99. package/dist/{setup-O-JVSYKa.d.ts → setup-CcOBfuP_.d.ts} +1 -1
  100. package/dist/trueSight-Lly6jROP.esm.js +1 -0
  101. package/dist/{trueSightService-CRHQyUpx.esm.js → trueSightService-DNHK2Cap.esm.js} +3 -3
  102. package/dist/{types-B2DGXHe6.d.ts → types-BFPsOz4D.d.ts} +32 -2
  103. package/dist/{types-x5MQKskR.d.ts → types-CTCB59Ik.d.ts} +14 -3
  104. package/dist/{types-Crg7oL-l.d.ts → types-D5a04Wk2.d.ts} +1 -1
  105. package/dist/types-DbVeVsR2.d.ts +6 -0
  106. package/dist/{types-BkWUNheX.d.ts → types-J8DeVSAo.d.ts} +1 -1
  107. package/dist/{types-Bybof0yq.d.ts → types-XcOG5hmy.d.ts} +5 -5
  108. package/dist/video-selfie.d.ts +3 -3
  109. package/dist/video-selfie.esm.js +4 -4
  110. package/dist/{videoSelfieCameraWarmer-14WBoJRb.esm.js → videoSelfieCameraWarmer-CsO36BMq.esm.js} +6 -6
  111. package/dist/{videoSelfieStepDetector-DGXi_TXk.d.ts → videoSelfieStepDetector-04BM3Mu1.d.ts} +4 -4
  112. package/dist/{warmup-BZOMg303.esm.js → warmup-BszvWzNo.esm.js} +137 -39
  113. package/dist/{warmup-BNhIuURi.d.ts → warmup-SWu5L7cW.d.ts} +1 -0
  114. package/dist/wasm.d.ts +3 -3
  115. package/dist/wasm.esm.js +3 -3
  116. package/dist/wasmDeepsightConfigSync-Cy2tPW0i.esm.js +79 -0
  117. package/dist/{wasmDsFlagSync-BHm1d2gA.esm.js → wasmDsFlagSync-99aL8DGv.esm.js} +1 -1
  118. package/dist/{wasmWebClient-CyLCM31e.esm.js → wasmWebClient-IwBSS51s.esm.js} +19 -12
  119. package/dist/workflow.d.ts +1 -1
  120. package/dist/workflow.esm.js +19 -18
  121. package/package.json +3 -3
  122. package/dist/types-C2uJrJrS.d.ts +0 -6
  123. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +0 -27
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { A as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, E as WASM_MODEL_FILES, M as missingWasmModelError, N as resolveWasmSource, O as WASM_PIPELINE_MODELS, P as reportWasmIntegritySummary, _ as emitWasmDiagnostic, b as DEFAULT_WASM_VERSION, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, g as acquireWasmStorageFallback, h as onWasmModuleReset, j as buildModelVariantSources, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, w as isDefaultCdnWasmConfig, y as SemaphoreProvider } from "./wasmWebClient-CyLCM31e.esm.js";
2
+ import { A as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, E as WASM_MODEL_FILES, M as missingWasmModelError, N as resolveWasmSource, O as WASM_PIPELINE_MODELS, P as reportWasmIntegritySummary, _ as emitWasmDiagnostic, b as DEFAULT_WASM_VERSION, c as wasmCallWrapper, f as rearmWasmCallDiagnostics, g as acquireWasmStorageFallback, h as onWasmModuleReset, j as buildModelVariantSources, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, w as isDefaultCdnWasmConfig, y as SemaphoreProvider } from "./wasmWebClient-IwBSS51s.esm.js";
3
3
  import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
4
- import { t as bindWasmMetadataV2Applier } from "./wasmMetadataVersionSync-U8EFUr1T.esm.js";
4
+ import { i as bindWasmMetadataV2Applier, t as bindWasmDeepsightConfigApplier } from "./wasmDeepsightConfigSync-Cy2tPW0i.esm.js";
5
5
  //#region ../infra/src/wasm/wasmEnumMaps.ts
6
6
  function pipelineTypeToWasmEnum(wasmModule, type) {
7
7
  switch (type) {
@@ -11,9 +11,7 @@ function pipelineTypeToWasmEnum(wasmModule, type) {
11
11
  case 3: return wasmModule.WorkflowType.SelfieWithAggregationMetrics;
12
12
  case 4: return wasmModule.WorkflowType.SelfieWithQualityMetrics;
13
13
  case 5: return wasmModule.WorkflowType.OnDeviceSelfieWorkflow;
14
- case 6: return wasmModule.WorkflowType.IdBlurGlareCoreWorkflow;
15
- case 7: return wasmModule.WorkflowType.IdBarcodeAndTextQualityCoreWorkflow;
16
- case 8: return wasmModule.WorkflowType.IdFaceQualityCoreWorkflow;
14
+ case 6: return wasmModule.WorkflowType.IdFaceQualityWorkflow;
17
15
  default: throw new Error("Unknown pipeline type");
18
16
  }
19
17
  }
@@ -25,9 +23,7 @@ function pipelineTypeFromWasmEnum(wasmModule, type) {
25
23
  case wasmModule.WorkflowType.SelfieWithAggregationMetrics: return 3;
26
24
  case wasmModule.WorkflowType.SelfieWithQualityMetrics: return 4;
27
25
  case wasmModule.WorkflowType.OnDeviceSelfieWorkflow: return 5;
28
- case wasmModule.WorkflowType.IdBlurGlareCoreWorkflow: return 6;
29
- case wasmModule.WorkflowType.IdBarcodeAndTextQualityCoreWorkflow: return 7;
30
- case wasmModule.WorkflowType.IdFaceQualityCoreWorkflow: return 8;
26
+ case wasmModule.WorkflowType.IdFaceQualityWorkflow: return 6;
31
27
  default: throw new Error("Unknown pipeline type");
32
28
  }
33
29
  }
@@ -365,6 +361,29 @@ function getCameraCycleOwnershipDomain(owner) {
365
361
  return domain;
366
362
  }
367
363
  //#endregion
364
+ //#region ../infra/src/wasm/wasmResetOtherSync.ts
365
+ let runResetOther;
366
+ /**
367
+ * Clears the kit's results that are not pipeline state (ml-wasm-kit
368
+ * `resetOther()`), so a module does not upload what an earlier module left:
369
+ * a challenge this module's config turns off keeps the earlier module's
370
+ * FrontBack, Exposure or frame-duplication result otherwise. The runtime
371
+ * queues the call behind the ML lock, so it runs after any earlier camera step
372
+ * and post-capture work has settled, and before any camera step or `rsp`
373
+ * queued later.
374
+ *
375
+ * Best-effort and never rejects. Not replayed: before the runtime loads, or
376
+ * while it is not initialized, no capture has run on the module instance, so
377
+ * there is nothing to clear. Resolves once the reset ran or was skipped.
378
+ */
379
+ function resetWasmOtherStateSync() {
380
+ return runResetOther?.() ?? Promise.resolve();
381
+ }
382
+ /** For the `WasmRuntime` singleton, once, when its module loads. */
383
+ function bindWasmResetOtherRunner(runner) {
384
+ runResetOther = runner;
385
+ }
386
+ //#endregion
368
387
  //#region ../infra/src/wasm/WasmRuntime.ts
369
388
  function attemptCleanup(firstFailure, cleanup) {
370
389
  try {
@@ -436,6 +455,14 @@ function reportCameraCycleReleaseFailure(error) {
436
455
  message: `camera cycle release failed: ${error instanceof Error ? error.message : String(error)}`
437
456
  });
438
457
  }
458
+ function reportResetOtherFailure(error) {
459
+ emitWasmDiagnostic({
460
+ level: "warning",
461
+ subsystem: "deepsight",
462
+ category: "other",
463
+ message: `resetOther failed: ${error instanceof Error ? error.message : String(error)}`
464
+ });
465
+ }
439
466
  function isWasmModelEntry(source) {
440
467
  return typeof source === "object" && !(source instanceof ArrayBuffer) && !(source instanceof Uint8Array) && "file" in source;
441
468
  }
@@ -455,6 +482,7 @@ var WasmRuntime = class WasmRuntime {
455
482
  this.cameraCycleApi = null;
456
483
  this.webApi = null;
457
484
  this.metadataV2Enabled_ = false;
485
+ this.deepsightConfig_ = "";
458
486
  this.storageFallbackLease = null;
459
487
  this.unprotectedStream = null;
460
488
  this.queuedCameraSteps = /* @__PURE__ */ new Set();
@@ -476,7 +504,8 @@ var WasmRuntime = class WasmRuntime {
476
504
  this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
477
505
  this.utilityApi = this.takeUtilityApi(this.wasmModule);
478
506
  this.utilityApi.setProductionMode(module.showLogs !== true);
479
- this.utilityApi.smv(this.metadataV2Enabled_);
507
+ this.utilityApi.smv(this.metadataV2For(this.utilityApi));
508
+ this.utilityApi.sdsc?.(this.deepsightConfig_);
480
509
  installWasmDiagnosticsSink(this.utilityApi);
481
510
  this.idCaptureWasmApi = new this.wasmModule.IdCaptureApi();
482
511
  this.faceProcessingWasmApi = new this.wasmModule.FaceProcessingApi();
@@ -632,18 +661,39 @@ var WasmRuntime = class WasmRuntime {
632
661
  }
633
662
  /**
634
663
  * Selects the capture-metadata document the kit emits (`smv`, ADR 0009):
635
- * `true` = v2, `false` = v1 (the default). Unguarded on purpose: the SDK
636
- * resolves the provisioning flag at session initialization, which may run
637
- * before WASM is up, so the value is latched here, applied at once when a
638
- * module is live and replayed by every `initialize()`. The session sets it
639
- * through `wasmMetadataVersionSync.ts`, which the singleton binds to when
640
- * this module loads. Never toggle it mid-session — `getMetadata`,
641
- * `postFaceResults` and the protected upload each read the selection when
642
- * they run, so uploads would mix formats.
664
+ * `true` = v2, `false` = v1 (the default). Unguarded on purpose: a capture
665
+ * module selects it when it starts, which may be before WASM is up, so the
666
+ * value is latched here, applied at once when a module is live and replayed
667
+ * by every `initialize()`. Each module selects v2 exactly while it holds a
668
+ * Deepsight 2.0 config, through `wasmDeepsightConfigSync.ts` and
669
+ * `wasmMetadataVersionSync.ts`, which the singleton binds to when this
670
+ * module loads. `getMetadata`, `postFaceResults` and the protected upload
671
+ * each read the selection when they run, so it never changes inside a
672
+ * module. The kit gets v2 only from a binary with `sdsc`, here and on every
673
+ * replay: without it (a binary older than v2.14.55) a module's config cannot reach
674
+ * the kit, so a v2 document would carry no config echo (`cfg.sg`) and no
675
+ * narrowing, and the module stays on v1, as SDK 1 does.
643
676
  */
644
677
  setMetadataV2Enabled(enabled) {
645
678
  this.metadataV2Enabled_ = enabled;
646
- this.utilityApi?.smv(enabled);
679
+ if (this.utilityApi) this.utilityApi.smv(this.metadataV2For(this.utilityApi));
680
+ }
681
+ metadataV2For(utilityApi) {
682
+ return this.metadataV2Enabled_ && typeof utilityApi.sdsc === "function";
683
+ }
684
+ /**
685
+ * Hands the kit the current module's Deepsight 2.0 signal config (`sdsc`):
686
+ * its `deepsightCaptureConfig` as JSON text, or `""` for none. Unguarded on
687
+ * purpose, like {@link setMetadataV2Enabled}: a module sets it when it
688
+ * starts, which may be before WASM is up, so the value is latched here,
689
+ * sent at once when a module is live and replayed by every `initialize()`
690
+ * before any camera step can run. The modules set it through
691
+ * `wasmDeepsightConfigSync.ts`, which the singleton binds to when this
692
+ * module loads. A binary without `sdsc` (older than v2.14.55) skips the call.
693
+ */
694
+ setDeepsightConfig(config) {
695
+ this.deepsightConfig_ = config;
696
+ this.utilityApi?.sdsc?.(config);
647
697
  }
648
698
  async process(typeOrImage, imageOrType) {
649
699
  const legacyOrder = typeof typeOrImage !== "number";
@@ -659,9 +709,7 @@ var WasmRuntime = class WasmRuntime {
659
709
  switch (type) {
660
710
  case 0:
661
711
  case 1:
662
- case 6:
663
- case 7:
664
- case 8: return idCaptureWasmApi.runIdCaptureWorkflow(this.pipelineTypeToWasmEnum(type));
712
+ case 6: return idCaptureWasmApi.runIdCaptureWorkflow(this.pipelineTypeToWasmEnum(type));
665
713
  case 2: return idCaptureWasmApi.runIdVideoSelfieWorkflow();
666
714
  case 3:
667
715
  case 4:
@@ -864,6 +912,32 @@ var WasmRuntime = class WasmRuntime {
864
912
  const failure = stopStreamTracks(stream);
865
913
  if (failure) throw failure.error;
866
914
  }
915
+ /**
916
+ * Clears the kit's state that is not pipeline state (`resetOther()`):
917
+ * behavioral results, motion samples, frame duplication, the FrontBack and
918
+ * Exposure results, and the kit's diagnostics log. It queues behind the ML
919
+ * lock like {@link releaseCameraCycle}, so it lands only after whatever holds
920
+ * the lock settles: a camera step that already reached the kit, a `poc`, or
921
+ * a queued `rcc`. The kit clears results there; it does not cancel a running
922
+ * challenge, so it must not land inside one.
923
+ *
924
+ * Reads the handle when the lock is taken: a runtime that is not initialized
925
+ * then has run no capture on this module instance, so there is nothing to
926
+ * clear and the call is skipped, not replayed. The kit's diagnostics log is
927
+ * drained into TrueSight first, because the reset drops the entries it has
928
+ * not delivered yet.
929
+ *
930
+ * Resolves once it ran or was skipped. Never rejects: a throw is reported as
931
+ * a diagnostic, because no caller can act on it.
932
+ */
933
+ resetOtherAfterLock() {
934
+ return wasmCallWrapper(this.mlCallSemaphore, () => {
935
+ if (!this.isInitialized() || this.utilityApi === null) return true;
936
+ drainWasmDiagnostics();
937
+ this.utilityApi.resetOther();
938
+ return true;
939
+ }, true, { label: "resetOther" }).catch(reportResetOtherFailure);
940
+ }
867
941
  cancelQueuedCameraSteps() {
868
942
  for (const queued of this.queuedCameraSteps) queued.cancelled = true;
869
943
  this.queuedCameraSteps.clear();
@@ -937,6 +1011,8 @@ WasmRuntime.UNINITIALIZED_ENUM_MAP_MESSAGE = "Unable to map pipeline type, cpp A
937
1011
  /** Process-wide runtime. One binary, one heap, one owner. */
938
1012
  const wasmRuntime = new WasmRuntime();
939
1013
  bindWasmMetadataV2Applier((enabled) => wasmRuntime.setMetadataV2Enabled(enabled));
1014
+ bindWasmDeepsightConfigApplier((config) => wasmRuntime.setDeepsightConfig(config));
1015
+ bindWasmResetOtherRunner(() => wasmRuntime.resetOtherAfterLock());
940
1016
  onWasmModuleReset(() => wasmRuntime.releaseParkedUtilityApi());
941
1017
  //#endregion
942
1018
  //#region ../infra/src/wasm/warmup.ts
@@ -1031,12 +1107,45 @@ function resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePat
1031
1107
  };
1032
1108
  }
1033
1109
  /**
1034
- * When logging is enabled, warns once per warmup that an optional model listed in
1035
- * {@link WASM_PIPELINE_OPTIONAL_MODEL_NAMES} was not supplied, so the Core
1036
- * profile that needs it is skipped instead of failing the whole warmup.
1110
+ * ml-wasm-kit's protected ID workflow bundles, registered beside the default
1111
+ * blur/glare one, as SDK 1 does. The barcode-and-text workflow accepts a frame
1112
+ * only when the 3.xx ID model's text and barcode readability outputs pass; the
1113
+ * face-quality bundle pairs the ID model with the selfie MLS regressor and the
1114
+ * ID face detector.
1037
1115
  */
1038
- function warnMissingOptionalModel(pipeline, models) {
1039
- console.warn(`[Incode SDK] The "${pipeline}" self-hosted WASM configuration omits ${models.join(", ")}. The protected ID face-quality workflow stays unavailable; ID capture is unaffected.`);
1116
+ const PROTECTED_ID_PROFILES = [{
1117
+ type: 1,
1118
+ models: ["idCaptureV3"],
1119
+ workflow: "text-and-barcode readability"
1120
+ }, {
1121
+ type: 6,
1122
+ models: [
1123
+ "idCapture",
1124
+ "mlsRegressor",
1125
+ "idFaceDetector"
1126
+ ],
1127
+ workflow: "face-quality"
1128
+ }];
1129
+ /**
1130
+ * When logging is enabled, warns once per warmup that optional models listed in
1131
+ * {@link WASM_PIPELINE_OPTIONAL_MODEL_NAMES} were not supplied, so the
1132
+ * profiles that need them are skipped instead of failing the whole warmup.
1133
+ */
1134
+ function warnMissingOptionalModels(pipeline, models, workflows) {
1135
+ console.warn(`[Incode SDK] The "${pipeline}" self-hosted WASM configuration omits ${models.join(", ")}. The protected ID ${workflows.join(" and ")} workflow stays unavailable; the default ID capture is unaffected.`);
1136
+ }
1137
+ function registerProtectedIdProfiles(pipelinesMap, config, modelsBasePath) {
1138
+ const pipeline = "idCapture";
1139
+ const missing = WASM_PIPELINE_OPTIONAL_MODEL_NAMES[pipeline].filter((name) => config.selfHosted === true && config.modelUrls?.[WASM_MODEL_FILES[name]] === void 0);
1140
+ const skipped = [];
1141
+ for (const profile of PROTECTED_ID_PROFILES) {
1142
+ if (profile.models.some((name) => missing.includes(name))) {
1143
+ skipped.push(profile.workflow);
1144
+ continue;
1145
+ }
1146
+ pipelinesMap.set(profile.type, profile.models.map((name) => resolveConfiguredModelSource(config, WASM_MODEL_FILES[name], pipeline, modelsBasePath)));
1147
+ }
1148
+ if (skipped.length > 0 && config.showLogs) warnMissingOptionalModels(pipeline, missing, skipped);
1040
1149
  }
1041
1150
  /**
1042
1151
  * Builds the pipelines map with model paths for WASM initialization.
@@ -1051,18 +1160,7 @@ function buildPipelinesMap(pipelines, config) {
1051
1160
  if (!pipelinesMap.has(wasmType)) {
1052
1161
  const modelPaths = (config.pipelineModels?.[pipeline] ?? WASM_PIPELINE_MODELS[pipeline]).map((modelFile) => resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePath));
1053
1162
  pipelinesMap.set(wasmType, modelPaths);
1054
- if (pipeline === "idCapture") {
1055
- const resolveIdModels = (modelFiles) => modelFiles.map((modelFile) => resolveConfiguredModelSource(config, modelFile, pipeline, modelsBasePath));
1056
- pipelinesMap.set(6, resolveIdModels([WASM_MODEL_FILES.idCapture]));
1057
- pipelinesMap.set(7, resolveIdModels([WASM_MODEL_FILES.idCapture]));
1058
- const missingOptional = WASM_PIPELINE_OPTIONAL_MODEL_NAMES[pipeline].filter((name) => config.selfHosted === true && config.modelUrls?.[WASM_MODEL_FILES[name]] === void 0);
1059
- if (missingOptional.length === 0) pipelinesMap.set(8, resolveIdModels([
1060
- WASM_MODEL_FILES.idCapture,
1061
- WASM_MODEL_FILES.idFiqa,
1062
- WASM_MODEL_FILES.idFaceDetector
1063
- ]));
1064
- else if (config.showLogs) warnMissingOptionalModel(pipeline, missingOptional);
1065
- }
1163
+ if (pipeline === "idCapture") registerProtectedIdProfiles(pipelinesMap, config, modelsBasePath);
1066
1164
  }
1067
1165
  }
1068
1166
  return pipelinesMap;
@@ -1266,4 +1364,4 @@ function setWasmOnDeviceMode(enabled) {
1266
1364
  wasmRuntime.setOnDeviceMode(enabled);
1267
1365
  }
1268
1366
  //#endregion
1269
- export { setWasmOnDeviceMode as a, warmup_exports as c, getCameraCycleOwnershipDomain as d, drainWasmDiagnostics as f, isWasmReady as i, wasmRuntime as l, rearmWasmDiagnostics as m, getWarmupFacts as n, waitForWasm as o, getWasmDiagnosticsMode as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, CAMERA_CYCLE_OWNERSHIP_DOMAIN as u };
1367
+ export { setWasmOnDeviceMode as a, warmup_exports as c, CAMERA_CYCLE_OWNERSHIP_DOMAIN as d, getCameraCycleOwnershipDomain as f, rearmWasmDiagnostics as h, isWasmReady as i, wasmRuntime as l, getWasmDiagnosticsMode as m, getWarmupFacts as n, waitForWasm as o, drainWasmDiagnostics as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, resetWasmOtherStateSync as u };
@@ -17,6 +17,7 @@ type WasmGlueLoader = () => Promise<WasmGlueModule>;
17
17
  type WasmPipeline = 'selfie' | 'onDeviceSelfie' | 'idCapture' | 'videoSelfie' | 'videoSelfieId';
18
18
  declare const WASM_MODEL_FILES: {
19
19
  readonly idCapture: "id_capture_2_01_fp16.ortmodelv2";
20
+ readonly idCaptureV3: "id_capture_3_02_fp16.ortmodelv2";
20
21
  readonly idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2";
21
22
  readonly idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2";
22
23
  readonly barcode: "barcode_enhance_896x224_fp16.ortmodelv2";
package/dist/wasm.d.ts CHANGED
@@ -1,8 +1,8 @@
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-BNhIuURi.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-O-JVSYKa.js";
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-SWu5L7cW.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-CcOBfuP_.js";
3
3
  //#region ../infra/src/wasm/wasmDefaults.d.ts
4
4
  /** The WASM version bundled and tested with this SDK release. */
5
- declare const DEFAULT_WASM_VERSION = "v2.14.54-post1";
5
+ declare const DEFAULT_WASM_VERSION = "v2.14.55";
6
6
  type UrlWasmConfig = WarmupConfig & {
7
7
  wasmPath: string;
8
8
  wasmSimdPath: string;
package/dist/wasm.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-CyLCM31e.esm.js";
2
- import { s as warmupWasm } from "./warmup-BZOMg303.esm.js";
3
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BsC4fyKm.esm.js";
1
+ import { D as WASM_PIPELINE_LAZY_MODEL_NAMES, E as WASM_MODEL_FILES, S as buildWasmConfigFromBasePath, T as resolveWasmConfig, b as DEFAULT_WASM_VERSION, k as WASM_PIPELINE_MODEL_NAMES, x as buildDefaultWasmConfig } from "./wasmWebClient-IwBSS51s.esm.js";
2
+ import { s as warmupWasm } from "./warmup-BszvWzNo.esm.js";
3
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BYYbcIPG.esm.js";
4
4
  //#region src/defineWasm.ts
5
5
  function requiredModels(pipelines) {
6
6
  const models = /* @__PURE__ */ new Set();
@@ -0,0 +1,79 @@
1
+ //#region ../infra/src/wasm/wasmMetadataVersionSync.ts
2
+ let metadataV2Enabled = false;
3
+ let applyToRuntime$1;
4
+ /**
5
+ * Selects the capture-metadata document the kit emits (ml-wasm-kit `smv`,
6
+ * ADR 0009): `true` picks the v2 document Deepsight 2.0 scores, `false` (the
7
+ * default) the v1 document. The selection is per module: a module selects v2
8
+ * exactly while it holds a Deepsight 2.0 config (the runtime applies it only
9
+ * on a binary with `sdsc`, so an older self-hosted binary stays on v1), through
10
+ * `wasmDeepsightConfigSync.ts`, the only caller, which also returns to v1
11
+ * when a session resets. Purely in-memory,
12
+ * like `setWasmDsFlagSync`: the value waits here until the WASM runtime loads,
13
+ * and from then on the runtime latches it, applies it at once when WASM is up
14
+ * and replays it after every `initialize()`, because the kit keeps the
15
+ * selector as realm state that a new module instance resets to v1.
16
+ */
17
+ function setWasmMetadataV2Enabled(enabled) {
18
+ metadataV2Enabled = enabled;
19
+ applyToRuntime$1?.(enabled);
20
+ }
21
+ /**
22
+ * For the `WasmRuntime` singleton, once, when its module loads: replays the
23
+ * selection made before the runtime existed and forwards every later one.
24
+ */
25
+ function bindWasmMetadataV2Applier(apply) {
26
+ applyToRuntime$1 = apply;
27
+ apply(metadataV2Enabled);
28
+ }
29
+ //#endregion
30
+ //#region ../infra/src/wasm/wasmDeepsightConfigSync.ts
31
+ let deepsightConfig = "";
32
+ let current;
33
+ let applyToRuntime;
34
+ /**
35
+ * Hands the kit one module's Deepsight 2.0 signal config (ml-wasm-kit
36
+ * `sdsc`): the JSON text of its `deepsightCaptureConfig`, or `""` for none.
37
+ * The same set selects the module's capture-metadata document (`smv`): v2
38
+ * with a config, v1 without one, so the two never disagree; the runtime
39
+ * applies v2 only on a binary with `sdsc`, which can apply the config. Purely in-memory:
40
+ * both values wait until the WASM runtime loads, and from then on the runtime
41
+ * latches them, sends them at once when WASM is up and replays them after
42
+ * every `initialize()`, so the module's first camera step sees them. Returns
43
+ * the handle that clears both.
44
+ */
45
+ function setWasmDeepsightConfigSync(config) {
46
+ const handle = { clear: () => {
47
+ if (current !== handle) return;
48
+ current = void 0;
49
+ apply("");
50
+ } };
51
+ current = handle;
52
+ apply(config);
53
+ return handle;
54
+ }
55
+ /**
56
+ * Clears whatever a module still holds, at the end of a session: sends `""`
57
+ * and selects the v1 document, and turns every outstanding handle into a
58
+ * no-op, so a module that never stopped cannot carry its config or v2 into the
59
+ * next session.
60
+ */
61
+ function resetWasmDeepsightConfigSync() {
62
+ current = void 0;
63
+ apply("");
64
+ }
65
+ /**
66
+ * For the `WasmRuntime` singleton, once, when its module loads: replays the
67
+ * config set before the runtime existed and forwards every later one.
68
+ */
69
+ function bindWasmDeepsightConfigApplier(applier) {
70
+ applyToRuntime = applier;
71
+ applier(deepsightConfig);
72
+ }
73
+ function apply(config) {
74
+ setWasmMetadataV2Enabled(config !== "");
75
+ deepsightConfig = config;
76
+ applyToRuntime?.(config);
77
+ }
78
+ //#endregion
79
+ export { bindWasmMetadataV2Applier as i, resetWasmDeepsightConfigSync as n, setWasmDeepsightConfigSync as r, bindWasmDeepsightConfigApplier as t };
@@ -1,4 +1,4 @@
1
- import { i as utilityWasmApi } from "./WasmUtilProvider-BW_4YKrg.esm.js";
1
+ import { i as utilityWasmApi } from "./WasmUtilProvider-ZXMogz8z.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
@@ -2,13 +2,14 @@ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.
2
2
  //#region ../infra/src/wasm/wasmIntegrityManifest.ts
3
3
  /** SHA-256 digests of the official WASM release files this SDK loads. */
4
4
  const WASM_INTEGRITY_MANIFEST = {
5
- wasmVersion: "v2.14.54-post1",
5
+ wasmVersion: "v2.14.55",
6
6
  files: {
7
7
  "models/current/age_estimation_v2_2_2_fp16.ortmodelv2": "70bd372b5e140ea8e9773a25d371cb65e5a9090651fdfe73ab6fc7ce25d59c83",
8
8
  "models/current/barcode_enhance_896x224_fp16.ortmodelv2": "bccecd74abf48181efb95bf020784b7e50d37ae255bf89c14c2c5186976279e0",
9
9
  "models/current/face_attributes_v1_3_fp16.ortmodelv2": "96079ec080a92ae1821b456f06281a604b4b013af42313f9668210c9bbe7041f",
10
10
  "models/current/face_occlusion_v0_2_fp16.ortmodelv2": "7a846b12b7a9a5afe72e07f19b408095439a214aaa306e88d34d1f17ffce72fb",
11
11
  "models/current/id_capture_2_01_fp16.ortmodelv2": "06b337368249131af6bab66bdf4fca680298034e3e83d678656d255cdb480507",
12
+ "models/current/id_capture_3_02_fp16.ortmodelv2": "3347ac3cbd6996a2457214d4f7cabee220c9b13b22bf1818c1936c459d76c5a6",
12
13
  "models/current/id_facedetector_v2_1_fp16.ortmodelv2": "ab35d7c2f69d5c156f7e247bde652c4ac7b78cdc4a90ef55f5a928edc54e2bd8",
13
14
  "models/current/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "1cc02608aed0078bf9cc66ae4f51b150e7b5aa65c5fb270248bda7c327867d26",
14
15
  "models/current/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "74a955dff00183c69544a9b61cc7e1122c7cd3814811dcd7ae8cf862bda35c41",
@@ -19,19 +20,20 @@ const WASM_INTEGRITY_MANIFEST = {
19
20
  "models/legacy/face_attributes_v1_3_fp16.ortmodelv2": "7c6754b63b4e205370463df4c6396f29123d7b5a17823a2d78a59b2fb17cc98b",
20
21
  "models/legacy/face_occlusion_v0_2_fp16.ortmodelv2": "19fc95f2081e55962045f0e38387399fb11c1b636699e31558383d2ea4156aed",
21
22
  "models/legacy/id_capture_2_01_fp16.ortmodelv2": "2f791bbf1f0dc9c6b8ff95587ce61479a764a18070e83658f6366996a7df9615",
23
+ "models/legacy/id_capture_3_02_fp16.ortmodelv2": "8c117db367e2c18b2b95ad6033ce062b5b5cf6bff1ed1ceb94436af404764a47",
22
24
  "models/legacy/id_facedetector_v2_1_fp16.ortmodelv2": "f790693395cc1473a824a97b86fd2943586b490582e003b240dff4d51d9f417f",
23
25
  "models/legacy/id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2": "d058e82efca7c30a35dd0a03472695656c105952f27af2ea158cb00818caab8c",
24
26
  "models/legacy/mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2": "e41887f75b284ba1f973f2a26209bf365da8a587d266492b642e5b7c36716069",
25
27
  "models/legacy/ondevice_physical_liveness_v2_1_fp16.ortmodelv2": "405eee9fd961c48fff608246ef579dc8ce9f0b5ce51361e05dac7d9afcf9162d",
26
28
  "models/legacy/selfie_bf_angles_192x192_opset9_fp16.ortmodelv2": "1c8dda528d5111fa7b4272ffabca7cf0a59099f57258aaece7262974aebafc4a",
27
- "webLib.js": "9d31d54105461d31718176d5d6a69b1849d42f0afb73e192d77ebba207207bde",
28
- "webLib.wasm": "5d3f99aacaabfabc31c4b0f73d4add5cdf6915704af1bca1edac48485a796717",
29
- "webLibSimd.js": "13d23150b1c4f9aa7ec8ede40191a96c871f3ef43377dfc015bc059a6b70cad4",
30
- "webLibSimd.wasm": "739459b359528125290e74dc0a560aeb3027000a53e5a3881b19303c1b897715"
29
+ "webLib.js": "5361ad7427cd1f5c0d217b880c80fde5bd9bc9602a9edff4f43fdf8f6372b56b",
30
+ "webLib.wasm": "3b05769a910d36138ef63ed594c4679b5115283c15dc964b327b42e202124b46",
31
+ "webLibSimd.js": "bf7bf1af83d26e84789c4bfbc152e7a024dd1e9bf5d96486df236702a0defdac",
32
+ "webLibSimd.wasm": "955345c849b992c32f1198c658f803650ce5b04c2f7a1cc36e45d79d94dc8128"
31
33
  },
32
34
  dist: {
33
- "webLib.js": "414f13bcc2edf21ca152e69ad75b24bde8132b8453cd9f1ded2eed89c40a0b09",
34
- "webLibSimd.js": "68e135b90936732c251485fbaa7699e7528d5ed97a30b9ab4723644c9d3b0db9"
35
+ "webLib.js": "34f27b5e326e7160b677b6de81ae645ed3282141bd3f52816041ff4161fd3dd7",
36
+ "webLibSimd.js": "9e6913b7eeab0902f5c628faea26d252d4c1c579d05bc13163e0e3650da0284a"
35
37
  }
36
38
  };
37
39
  //#endregion
@@ -189,6 +191,7 @@ async function verifyWasmAsset(asset, bytes, fetchMs) {
189
191
  //#region ../infra/src/wasm/wasmAssets.ts
190
192
  const WASM_MODEL_FILES = {
191
193
  idCapture: "id_capture_2_01_fp16.ortmodelv2",
194
+ idCaptureV3: "id_capture_3_02_fp16.ortmodelv2",
192
195
  idFiqa: "id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2",
193
196
  idFaceDetector: "id_facedetector_v2_1_fp16.ortmodelv2",
194
197
  barcode: "barcode_enhance_896x224_fp16.ortmodelv2",
@@ -231,17 +234,21 @@ const WASM_PIPELINE_LAZY_MODEL_NAMES = {
231
234
  videoSelfieId: []
232
235
  };
233
236
  /**
234
- * Models a pipeline's Core workflow profiles can use but that a pre-existing
237
+ * Models a pipeline's extra workflow profiles can use but that a pre-existing
235
238
  * self-hosted configuration is NOT required to supply. Deliberately not part of
236
239
  * `defineWasm`'s required set: adding a model to a released pipeline's required
237
240
  * list is a breaking change for every self-hoster following the published
238
241
  * WASM-Configuration walkthrough. When an optional model is absent, warmup skips
239
- * the Core profile that needs it instead of failing.
242
+ * the profile that needs it instead of failing.
240
243
  */
241
244
  const WASM_PIPELINE_OPTIONAL_MODEL_NAMES = {
242
245
  selfie: [],
243
246
  onDeviceSelfie: [],
244
- idCapture: ["idFaceDetector"],
247
+ idCapture: [
248
+ "mlsRegressor",
249
+ "idFaceDetector",
250
+ "idCaptureV3"
251
+ ],
245
252
  videoSelfie: [],
246
253
  videoSelfieId: []
247
254
  };
@@ -314,7 +321,7 @@ function deriveSiblingJsPath(wasmPath) {
314
321
  //#region ../infra/src/wasm/wasmDefaults.ts
315
322
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
316
323
  /** The WASM version bundled and tested with this SDK release. */
317
- const DEFAULT_WASM_VERSION = "v2.14.54-post1";
324
+ const DEFAULT_WASM_VERSION = "v2.14.55";
318
325
  const PATH_KEYS = [
319
326
  "wasmPath",
320
327
  "wasmSimdPath",
@@ -425,7 +432,7 @@ const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
425
432
  * NOT part of any warmup model bundle.
426
433
  */
427
434
  function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
428
- const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.54-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
435
+ const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.55/models`, BARCODE_ENHANCE_MODEL_FILE);
429
436
  return typeof source === "string" ? source : source[variant];
430
437
  }
431
438
  /**
@@ -3,7 +3,7 @@ import { t as CallbackActorLogic } from "./callback-BmjJ1G-5.js";
3
3
  import "./xstate.cjs-D6Ur0X1F.js";
4
4
  import { t as Manager } from "./Manager-DufwKlav.js";
5
5
  import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
6
- import { o as FlowEventSubscribable } from "./index-C0WIMlJE.js";
6
+ import { o as FlowEventSubscribable } from "./index-DP-EPRCW.js";
7
7
  import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-C3rfDzgE.js";
8
8
  //#region src/modules/workflow/types.d.ts
9
9
  /** Possible node types returned by the workflow server. */
@@ -1,48 +1,49 @@
1
1
  import { n as eventModuleNames, v as addEvent } from "./types-CBQN04Rh.esm.js";
2
2
  import { t as api, u as endpoints } from "./api-jplFqPcE.esm.js";
3
3
  import { t as createManagerInstrumentation } from "./events-C3sjvrjL.esm.js";
4
- import { u as trueSightLog } from "./trueSightService-CRHQyUpx.esm.js";
5
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-Be57jtWP.esm.js";
6
- import { E as updateFeatureManagementUser } from "./feature-management-BMopZ94t.esm.js";
4
+ import { u as trueSightLog } from "./trueSightService-DNHK2Cap.esm.js";
5
+ import "./trueSight-Lly6jROP.esm.js";
6
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CRXargXI.esm.js";
7
+ import { E as updateFeatureManagementUser } from "./feature-management-DrkQHH45.esm.js";
7
8
  import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
8
- import { i as toIncodeApiError } from "./apiError-Dp-Zxhsu.esm.js";
9
+ import { i as toIncodeApiError } from "./apiError-T18Ndgre.esm.js";
9
10
  import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
10
11
  import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
11
12
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
12
- import { r as electronicSignatureMachine } from "./electronicSignatureManager-Dc1mrzK6.esm.js";
13
+ import { r as electronicSignatureMachine } from "./electronicSignatureManager-DkwMjvss.esm.js";
13
14
  import "./ae-signature.esm.js";
14
15
  import { t as antifraudMachine } from "./antifraudStateMachine-IJYLXOQm.esm.js";
15
- import { t as authenticationMachine } from "./authenticationStateMachine-D-fJiVP5.esm.js";
16
+ import { t as authenticationMachine } from "./authenticationStateMachine-CzP0YKNH.esm.js";
16
17
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-4NpYY6ct.esm.js";
17
18
  import { t as consentMachine } from "./consentStateMachine-nbLSJMsQ.esm.js";
18
19
  import { t as curpValidationMachine } from "./curpValidationStateMachine-BvYQMsR4.esm.js";
19
20
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CD7ChTlQ.esm.js";
20
- import { t as documentCaptureMachine } from "./documentCaptureStateMachine-C9wBJ8Y5.esm.js";
21
- import { r as documentSignatureMachine } from "./documentSignatureStateMachine-DymuSDQt.esm.js";
22
- import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BSgwYu_b.esm.js";
21
+ import { t as documentCaptureMachine } from "./documentCaptureStateMachine-DKG_aAPi.esm.js";
22
+ import { r as documentSignatureMachine } from "./documentSignatureStateMachine-DxfJs-C0.esm.js";
23
+ import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CkNn0K-p.esm.js";
23
24
  import { s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
24
- import { t as ekybMachine } from "./ekybStateMachine-BsHIcOeh.esm.js";
25
+ import { t as ekybMachine } from "./ekybStateMachine-CN8GuppY.esm.js";
25
26
  import { t as ekycMachine } from "./ekycStateMachine-Ciq6djgB.esm.js";
26
27
  import { l as toEkycConfig } from "./ekycUtils-D9ui9Ztp.esm.js";
27
- import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DSjkcGnU.esm.js";
28
+ import { t as ekycPrefillMachine } from "./ekycPrefillStateMachine-jVrEkX29.esm.js";
28
29
  import { t as emailMachine } from "./emailStateMachine-D7nLw8oT.esm.js";
29
- import { t as selfieMachine } from "./selfieStateMachine-CcY8XCq_.esm.js";
30
- import { t as idCaptureMachine } from "./idCaptureStateMachine-6jXPguZA.esm.js";
30
+ import { t as selfieMachine } from "./selfieStateMachine-BghuY135.esm.js";
31
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-iwDI7g7A.esm.js";
31
32
  import { t as phoneMachine } from "./phoneStateMachine-BF29rVyh.esm.js";
32
33
  import { t as watchlistMachine } from "./watchlistStateMachine-CZ6mEnQz.esm.js";
33
34
  import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BjC4lqRq.esm.js";
34
35
  import { n as identityReuseMachine } from "./identityReuseStateMachine-Ct85j-vQ.esm.js";
35
36
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CHdyE9CM.esm.js";
36
37
  import { t as idOcrStateMachine } from "./idOcrStateMachine-BcaWS8WW.esm.js";
37
- import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-CIcTgOJd.esm.js";
38
+ import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-o-X0kapc.esm.js";
38
39
  import { t as signatureMachine } from "./signatureStateMachine-b0c5l498.esm.js";
39
- import { t as geolocationMachine } from "./geolocationStateMachine-Co_EtS-E.esm.js";
40
+ import { t as geolocationMachine } from "./geolocationStateMachine-DPX0DZTc.esm.js";
40
41
  import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COOKNOL2.esm.js";
41
42
  import { t as idVerificationMachine } from "./idVerificationStateMachine-BWD7bHsy.esm.js";
42
43
  import { t as faceMatchMachine } from "./faceMatchStateMachine-Ds0C7W8O.esm.js";
43
- import { t as kybChecksMachine } from "./kybChecksStateMachine-BSgEOmZs.esm.js";
44
- import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-COesuoKj.esm.js";
45
- import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CDTuNUcR.esm.js";
44
+ import { t as kybChecksMachine } from "./kybChecksStateMachine-KubwqxTh.esm.js";
45
+ import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BrU3zRCa.esm.js";
46
+ import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BeiOmUu5.esm.js";
46
47
  import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
47
48
  import "./qe-signature.esm.js";
48
49
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-IWdxw1TW.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20261119-6e95a3e4",
3
+ "version": "0.0.0-dev-20261120-8911ea46",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -296,9 +296,9 @@
296
296
  "tsdown": "^0.22.8",
297
297
  "typescript": "^5.9.3",
298
298
  "vitest": "4.1.10",
299
+ "@incodetech/config": "1.0.2",
299
300
  "@incodetech/form-definitions": "0.0.0",
300
- "@incodetech/infra": "1.5.0",
301
- "@incodetech/config": "1.0.2"
301
+ "@incodetech/infra": "1.5.0"
302
302
  },
303
303
  "scripts": {
304
304
  "build": "tsdown -c tsdown.config.ts && pnpm check:dist-types",
@@ -1,6 +0,0 @@
1
- import { i as FlowModuleConfig } from "./types-B2DGXHe6.js";
2
- import { t as BaseFaceCaptureConfig } from "./types-x5MQKskR.js";
3
- //#region src/modules/authentication/types.d.ts
4
- type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
- //#endregion
6
- export { AuthenticationConfig as t };
@@ -1,27 +0,0 @@
1
- //#region ../infra/src/wasm/wasmMetadataVersionSync.ts
2
- let metadataV2Enabled = false;
3
- let applyToRuntime;
4
- /**
5
- * Selects the capture-metadata document the kit emits (ml-wasm-kit `smv`,
6
- * ADR 0009): `true` picks the v2 document Deepsight 2.0 scores, `false` (the
7
- * default) the v1 document. Purely in-memory, like `setWasmDsFlagSync`: the
8
- * value waits here until the WASM runtime loads, and from then on the runtime
9
- * latches it, applies it at once when WASM is up and replays it after every
10
- * `initialize()`, because the kit keeps the selector as realm state that a
11
- * new module instance resets to v1. Resolve it before the first capture and
12
- * never toggle it mid-session — the uploads would mix formats.
13
- */
14
- function setWasmMetadataV2Enabled(enabled) {
15
- metadataV2Enabled = enabled;
16
- applyToRuntime?.(enabled);
17
- }
18
- /**
19
- * For the `WasmRuntime` singleton, once, when its module loads: replays the
20
- * selection made before the runtime existed and forwards every later one.
21
- */
22
- function bindWasmMetadataV2Applier(apply) {
23
- applyToRuntime = apply;
24
- apply(metadataV2Enabled);
25
- }
26
- //#endregion
27
- export { setWasmMetadataV2Enabled as n, bindWasmMetadataV2Applier as t };