@incodetech/core 2.4.0-rc.0 → 2.4.0-rc.1
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.
- package/dist/{BaseWasmProvider-BL9wIRnN.d.ts → BaseWasmProvider-Bq3OHo7P.d.ts} +2 -2
- package/dist/BrowserDiagnosticsEnvelopeProvider-BQca6KPG.esm.js +43 -0
- package/dist/{FaceDetectionProvider-BjTer9h3.esm.js → FaceDetectionProvider-BIImDZrc.esm.js} +10 -11
- package/dist/{IIdCaptureCapability-DBsv9-7M.d.ts → IIdCaptureCapability-CGcEt2Cw.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CPX0RGdQ.d.ts → IWasmUtilCapability-GF2n7sfm.d.ts} +2 -2
- package/dist/{StreamCanvasCapture-DVmzJux5.d.ts → StreamCanvasCapture-7JRf-2ck.d.ts} +2 -2
- package/dist/{WasmUtilProvider-CIdnE7Fx.esm.js → WasmUtilProvider-DtJuBdt-.esm.js} +18 -5
- package/dist/{addressSearch-BiYZjvp3.esm.js → addressSearch-DPjIKJrX.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-HL08jeDX.esm.js → antifraudManager-CaweCYnY.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DoJVzblM.esm.js → antifraudStateMachine-DRl0UVyA.esm.js} +1 -2
- package/dist/{endpoints-DHzlkQNe.esm.js → api-Cz90EHyu.esm.js} +149 -1
- package/dist/{apiError-DcSWedC6.esm.js → apiError-D5u6HIDG.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CANv5-W5.d.ts → authenticationManager-BIZC55Bi.d.ts} +1 -1
- package/dist/{authenticationManager-SaiAxqvS.esm.js → authenticationManager-CB3YW6EK.esm.js} +5 -5
- package/dist/{authenticationStateMachine-CHSxmV7z.esm.js → authenticationStateMachine-BJJhLmdH.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CMg4SgL4.esm.js → certificateIssuanceManager-BfeMv2PU.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Cs64QmYH.esm.js → certificateIssuanceStateMachine-Frgjbjw8.esm.js} +1 -2
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CjrxY737.esm.js → consentManager-CvEu8h_W.esm.js} +2 -2
- package/dist/{consentManager-DgzWQpAR.d.ts → consentManager-Cv_0QKLD.d.ts} +9 -9
- package/dist/{consentStateMachine-BCj5Jb3g.esm.js → consentStateMachine-DJTgN_-1.esm.js} +1 -2
- package/dist/{createCameraCycleOwnership-kdlhkmmY.esm.js → createCameraCycleOwnership-Dj_LHUvN.esm.js} +2 -3
- package/dist/{createFaceAvatar-DXgmQmQy.d.ts → createFaceAvatar-lYX0VTYs.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-BHnGRsto.esm.js → crossDocumentDataMatchManager-Cu141CE8.esm.js} +2 -3
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBNIn8BF.esm.js → curpValidationManager-B-z9q5V3.esm.js} +2 -2
- package/dist/{curpValidationManager-B-1EZbP_.d.ts → curpValidationManager-C9sqoh9n.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-DAxImy8p.esm.js → curpValidationStateMachine-vDEFLMPw.esm.js} +1 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BV6UyLFV.esm.js → customFieldsManager-D1ex2cFM.esm.js} +2 -3
- package/dist/{customWatchlistManager-DML0UPzf.esm.js → customWatchlistManager-CTI-SGk0.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-D9gI5uu7.esm.js → customWatchlistStateMachine-hmRd0f2I.esm.js} +1 -2
- package/dist/{deepsightLoader-DvfAYnzg.esm.js → deepsightLoader-DZMdYSl-.esm.js} +6 -6
- package/dist/{deepsightService-DLGO9yv1.esm.js → deepsightService-tGP53cSS.esm.js} +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-C9XUnYU6.esm.js → documentCaptureManager-DUJwpKC5.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-BHDsCfhL.esm.js → documentCaptureStateMachine-B8i7GnLh.esm.js} +3 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-5uIXobxi.esm.js → dynamicFormsManager-Bxmv_9PB.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DQmok084.esm.js → dynamicFormsStateMachine-CoOWTzyM.esm.js} +2 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CazShiQz.esm.js → ekybManager-BBkdPxUY.esm.js} +2 -2
- package/dist/{ekybStateMachine-hstiCNmW.esm.js → ekybStateMachine-n4Iz9iLc.esm.js} +3 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BdJRUsz0.esm.js → ekycManager-BO-Lui3t.esm.js} +2 -2
- package/dist/{ekycStateMachine-x6Klot8g.esm.js → ekycStateMachine-CDnI_NRq.esm.js} +2 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Bc8spG8p.esm.js → electronicSignatureManager-BtWCrz5_.esm.js} +3 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CtlKRRaR.esm.js → emailManager-ButFktRm.esm.js} +2 -2
- package/dist/{emailStateMachine-5Neq3rE5.esm.js → emailStateMachine-BXtlC0NV.esm.js} +1 -2
- package/dist/{events-CAgFE-k3.esm.js → events-Du2A4-Qr.esm.js} +184 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-jKQ2QtY-.d.ts → faceCaptureManagerFactory-1hzeS_rB.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-uFm1AcaY.esm.js → faceCaptureManagerFactory-CwZUeYfq.esm.js} +4 -4
- package/dist/{faceCaptureSetup-Cu2wabzo.esm.js → faceCaptureSetup-CYbdKNlI.esm.js} +14 -10
- package/dist/{faceMatchManager-9Nj9aPci.esm.js → faceMatchManager-DWFUQjMQ.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-B9ZUnlyU.esm.js → faceMatchStateMachine-CUCvlydD.esm.js} +1 -2
- package/dist/{feature-management-BTbYruNe.esm.js → feature-management-rTfjzdDa.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Dk38hXZP.esm.js → fieldComparisonManager-v3knTYV_.esm.js} +2 -3
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-DmBkQfs0.esm.js → fiscalQrManager-Dt9fHG7h.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-xnn_SlJU.esm.js → flowCompletionService-oiK1PjPr.esm.js} +2 -3
- package/dist/{flowServices-DA64AEZC.esm.js → flowServices-CTc-zqfN.esm.js} +6 -7
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CqNLY45e.esm.js → geolocationManager-BOdtVuR8.esm.js} +2 -2
- package/dist/{geolocationStateMachine-D-cQi7ar.esm.js → geolocationStateMachine-BnGuZ3hn.esm.js} +2 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CP0SiOOe.esm.js → governmentValidationManager-BtXWHICu.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-C3YQ8yCZ.esm.js → governmentValidationStateMachine-COL-Vs48.esm.js} +1 -2
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-CBg73RnV.esm.js → idCaptureDefaults-BGsG2OAs.esm.js} +3 -4
- package/dist/{idCaptureManager-BY97SRCV.d.ts → idCaptureManager-0M02hSuC.d.ts} +7 -7
- package/dist/{idCaptureManager-D4V8vXtY.esm.js → idCaptureManager-BKedt48Y.esm.js} +7 -7
- package/dist/{idCaptureServices-DJ33k3-p.esm.js → idCaptureServices-D0p_RFqk.esm.js} +6 -7
- package/dist/{idCaptureStateMachine-PJt0yzom.esm.js → idCaptureStateMachine-CxwoN5ff.esm.js} +22 -19
- package/dist/{idOcrManager-DxoCesYP.esm.js → idOcrManager-D3-HNMXP.esm.js} +2 -2
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
- package/dist/{idOcrStateMachine-kPn7DB2I.esm.js → idOcrStateMachine-DyENX6Ki.esm.js} +1 -2
- package/dist/{idVerificationManager-CDhRUU5n.esm.js → idVerificationManager-iWz7Avkr.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-0HTVVxse.esm.js → idVerificationStateMachine-CL1kUdBe.esm.js} +1 -2
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
- package/dist/{identityReuseManager-BleUi6TK.esm.js → identityReuseManager-CD1ucp1d.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-BrBUpfn5.esm.js → identityReuseStateMachine-DfV81wQC.esm.js} +1 -2
- package/dist/{index-DfEuu-Ew.d.ts → index-CKQ9QBZP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BW7V3vub.esm.js → invokeOnCaptureCallback-DYrkOXO6.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CX_Dyht7.esm.js → mandatoryConsentManager-Cwqx1nK7.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-TkX57U6f.d.ts → mandatoryConsentManager-okPILEru.d.ts} +6 -6
- package/dist/{mandatoryConsentStateMachine-CoaSB7P7.esm.js → mandatoryConsentStateMachine-pXWqAHo_.esm.js} +1 -2
- package/dist/{multipartRecordingService-DbeQpXdU.esm.js → multipartRecordingService-CLwrF5wD.esm.js} +1 -2
- package/dist/{permissionGuards-Bf4LbHjC.esm.js → permissionGuards-gcy3U0SL.esm.js} +1 -1
- package/dist/{permissionServices-d2UW0r_L.esm.js → permissionServices-Ca-tSNhT.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BGBcpqsk.esm.js → phoneManager-KKUq-Vgo.esm.js} +2 -2
- package/dist/{phoneStateMachine-CEm2y7yG.esm.js → phoneStateMachine-D2QWS2cu.esm.js} +1 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-B1yQHFLu.esm.js → redirectToMobileManager-uHW3dyuQ.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine--Sr9NEVT.esm.js → redirectToMobileStateMachine-b-H-ipGM.esm.js} +1 -2
- package/dist/{runChildModule-vdxQMCmO.esm.js → runChildModule-CPa0i2_C.esm.js} +2 -2
- package/dist/{sdkVersion-F5YZbjip.esm.js → sdkVersion-BtROs6OA.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-D-tsgEuX.esm.js → selfieErrorUtils-sMc0MaNh.esm.js} +1 -1
- package/dist/{selfieManager-1J0IEyFq.d.ts → selfieManager-BJdNu_nd.d.ts} +1 -1
- package/dist/{selfieManager-26pENXxw.esm.js → selfieManager-Ch9xJbWJ.esm.js} +5 -5
- package/dist/{selfieStateMachine-BhfKsl3I.esm.js → selfieStateMachine-DT8QCfKR.esm.js} +3 -3
- package/dist/{session-Bu7djCsj.esm.js → session-CNNTckUS.esm.js} +4 -5
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-jxbfCnE-.esm.js → sessionInitializer-DVWMJh25.esm.js} +7 -8
- package/dist/{setup-C38QkrSP.esm.js → setup-B7ehQ-lf.esm.js} +93 -198
- package/dist/{setup-lgkQ8dJW.d.ts → setup-YPKTUCY5.d.ts} +23 -5
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-qqXyH93e.esm.js → signatureManager-f_dPAGXn.esm.js} +2 -2
- package/dist/{signatureStateMachine-BkRSrkKp.esm.js → signatureStateMachine-C-nUq_oq.esm.js} +1 -2
- package/dist/{stats-DmG_tkGk.esm.js → stats-BEvexnKC.esm.js} +1 -2
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-BWgRVGIT.esm.js → trueSightService-BzLdXpmJ.esm.js} +914 -225
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BGXxRwQM.d.ts → types-B6HsSzpk.d.ts} +1 -1
- package/dist/{types-CyPUIpzf.d.ts → types-BAxn7MpY.d.ts} +5 -5
- package/dist/{types-DTYr9pCB.d.ts → types-CK8Jbjkp.d.ts} +1 -1
- package/dist/{types-BvFmYX5c.d.ts → types-Ckir_BEs.d.ts} +1 -1
- package/dist/{types-zpO4fU6a.d.ts → types-yPH8lAH-.d.ts} +3 -3
- package/dist/types-zOgZqMni.d.ts +6 -0
- package/dist/video-selfie.d.ts +3 -3
- package/dist/video-selfie.esm.js +6 -7
- package/dist/{videoSelfieCameraWarmer-C366RKqu.esm.js → videoSelfieCameraWarmer-DWoFBJAn.esm.js} +7 -8
- package/dist/{videoSelfieStepDetector-C5QHOvWb.d.ts → videoSelfieStepDetector-CGsTltqB.d.ts} +4 -4
- package/dist/{warmup-DMtbyb2l.esm.js → warmup-BElYWRh7.esm.js} +322 -3
- package/dist/{warmup-BUPPRAA1.d.ts → warmup-BO57syF6.d.ts} +1 -0
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -4
- package/dist/{wasmDsFlagSync-BXCGqP48.esm.js → wasmDsFlagSync-CYj5LL9z.esm.js} +1 -1
- package/dist/{wasmWebClient-kbYZ2sxw.esm.js → wasmWebClient-BjZw_7OB.esm.js} +315 -17
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-BvF4jK3S.esm.js → watchlistForBusinessManager-CZZOFkGl.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-121XK-Et.esm.js → watchlistForBusinessStateMachine-B66E7jud.esm.js} +1 -2
- package/dist/{watchlistManager-CNWEOYSq.esm.js → watchlistManager-DXtX94SN.esm.js} +2 -2
- package/dist/{watchlistStateMachine-Dgfm42w2.esm.js → watchlistStateMachine-McALifag.esm.js} +1 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +35 -36
- package/package.json +2 -2
- package/dist/BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js +0 -77
- package/dist/api-Bx3gKW_y.esm.js +0 -129
- package/dist/types-C71Zo6vl.d.ts +0 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
1
2
|
//#region ../infra/src/wasm/wasmIntegrityManifest.ts
|
|
2
3
|
/** SHA-256 digests of the official WASM release files this SDK loads. */
|
|
3
4
|
const WASM_INTEGRITY_MANIFEST = {
|
|
@@ -146,9 +147,10 @@ function assertNotHtml(contentType, bytes, asset) {
|
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Verifies `bytes` against the official digests for `asset` and throws a
|
|
149
|
-
* {@link WasmIntegrityError} when they do not match.
|
|
150
|
+
* {@link WasmIntegrityError} when they do not match. `fetchMs`, when the
|
|
151
|
+
* bytes came over the network, rides along on the reported check.
|
|
150
152
|
*/
|
|
151
|
-
async function verifyWasmAsset(asset, bytes) {
|
|
153
|
+
async function verifyWasmAsset(asset, bytes, fetchMs) {
|
|
152
154
|
const label = assetLabel(asset);
|
|
153
155
|
const subtle = globalThis.crypto?.subtle;
|
|
154
156
|
if (subtle === void 0) {
|
|
@@ -167,6 +169,7 @@ async function verifyWasmAsset(asset, bytes) {
|
|
|
167
169
|
asset: label,
|
|
168
170
|
status: "verified",
|
|
169
171
|
durationMs,
|
|
172
|
+
fetchMs,
|
|
170
173
|
byteLength: bytes.byteLength
|
|
171
174
|
});
|
|
172
175
|
return;
|
|
@@ -175,6 +178,7 @@ async function verifyWasmAsset(asset, bytes) {
|
|
|
175
178
|
asset: label,
|
|
176
179
|
status: "mismatch",
|
|
177
180
|
durationMs,
|
|
181
|
+
fetchMs,
|
|
178
182
|
byteLength: bytes.byteLength,
|
|
179
183
|
expectedDigestPrefix: expected[0]?.slice(0, DIGEST_PREFIX_LENGTH),
|
|
180
184
|
actualDigestPrefix: actual.slice(0, DIGEST_PREFIX_LENGTH)
|
|
@@ -273,8 +277,9 @@ const WASM_PIPELINE_MODELS = {
|
|
|
273
277
|
* not depend on where an asset comes from.
|
|
274
278
|
*/
|
|
275
279
|
async function resolveWasmSource(source, asset) {
|
|
280
|
+
const fetchStartedAt = performance.now();
|
|
276
281
|
const bytes = await fetchWasmSource(source, asset);
|
|
277
|
-
await verifyWasmAsset(asset, bytes);
|
|
282
|
+
await verifyWasmAsset(asset, bytes, typeof source === "string" ? performance.now() - fetchStartedAt : void 0);
|
|
278
283
|
return bytes;
|
|
279
284
|
}
|
|
280
285
|
async function fetchWasmSource(source, asset) {
|
|
@@ -306,6 +311,155 @@ function deriveSiblingJsPath(wasmPath) {
|
|
|
306
311
|
return `${wasmPath.slice(0, index)}.js${rest}`;
|
|
307
312
|
}
|
|
308
313
|
//#endregion
|
|
314
|
+
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
315
|
+
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
316
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
317
|
+
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
318
|
+
const PATH_KEYS = [
|
|
319
|
+
"wasmPath",
|
|
320
|
+
"wasmSimdPath",
|
|
321
|
+
"glueCodePath",
|
|
322
|
+
"glueCodeSimdPath",
|
|
323
|
+
"modelsBasePath"
|
|
324
|
+
];
|
|
325
|
+
function isBlank(value) {
|
|
326
|
+
return value.trim() === "";
|
|
327
|
+
}
|
|
328
|
+
function hasDisallowedControlChars(value) {
|
|
329
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
330
|
+
const code = value.charCodeAt(i);
|
|
331
|
+
if (code < 32 || code === 127) return true;
|
|
332
|
+
}
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
335
|
+
function isMalformedPath(value) {
|
|
336
|
+
const trimmed = value.trim();
|
|
337
|
+
if (trimmed === "") return false;
|
|
338
|
+
if (hasDisallowedControlChars(trimmed)) return true;
|
|
339
|
+
if (/^https?:\/\//i.test(trimmed)) try {
|
|
340
|
+
new URL(trimmed);
|
|
341
|
+
return false;
|
|
342
|
+
} catch {
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
return false;
|
|
346
|
+
}
|
|
347
|
+
function warnInvalidWasmPath(field, reason) {
|
|
348
|
+
if (reason === "empty") {
|
|
349
|
+
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
353
|
+
}
|
|
354
|
+
function warnMalformedWasmPath(field) {
|
|
355
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Validates merged WASM path strings. When overrides contained blank path
|
|
359
|
+
* values, callers should have already fallen back to defaults before this runs.
|
|
360
|
+
*/
|
|
361
|
+
function validateWasmPaths(config) {
|
|
362
|
+
for (const key of PATH_KEYS) {
|
|
363
|
+
const value = config[key];
|
|
364
|
+
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function pickPath(key, overrides, defaultValue) {
|
|
368
|
+
if (!overrides || !(key in overrides)) return defaultValue;
|
|
369
|
+
const raw = overrides[key];
|
|
370
|
+
if (raw === void 0) return defaultValue;
|
|
371
|
+
if (typeof raw !== "string") return defaultValue;
|
|
372
|
+
if (isBlank(raw)) {
|
|
373
|
+
warnInvalidWasmPath(key, "empty");
|
|
374
|
+
return defaultValue;
|
|
375
|
+
}
|
|
376
|
+
if (isMalformedPath(raw)) {
|
|
377
|
+
warnInvalidWasmPath(key, "malformed");
|
|
378
|
+
return defaultValue;
|
|
379
|
+
}
|
|
380
|
+
return raw.trim();
|
|
381
|
+
}
|
|
382
|
+
function pickSource(key, overrides, defaultValue) {
|
|
383
|
+
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
384
|
+
const source = overrides[key];
|
|
385
|
+
if (typeof source !== "string") return source;
|
|
386
|
+
return pickPath(key, overrides, String(defaultValue));
|
|
387
|
+
}
|
|
388
|
+
function resolveBasePath(overrides) {
|
|
389
|
+
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
390
|
+
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
391
|
+
const basePath = overrides.basePath;
|
|
392
|
+
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
393
|
+
return basePath.trim();
|
|
394
|
+
}
|
|
395
|
+
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
396
|
+
function buildWasmConfigFromBasePath(basePath) {
|
|
397
|
+
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
398
|
+
return {
|
|
399
|
+
wasmPath: `${base}/webLib.wasm`,
|
|
400
|
+
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
401
|
+
glueCodePath: `${base}/webLib.js`,
|
|
402
|
+
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
403
|
+
modelsBasePath: `${base}/models`
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
407
|
+
function buildDefaultWasmConfig() {
|
|
408
|
+
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Whether `config` loads the SDK's own CDN build of `DEFAULT_WASM_VERSION`.
|
|
412
|
+
* TrueSight reports its negation as `basePathPinned`: the host pointed the
|
|
413
|
+
* SDK at its own location, version, or bytes.
|
|
414
|
+
*/
|
|
415
|
+
function isDefaultCdnWasmConfig(config) {
|
|
416
|
+
const defaults = buildDefaultWasmConfig();
|
|
417
|
+
return config.selfHosted !== true && config.wasmPath === defaults.wasmPath && config.glueCodePath === defaults.glueCodePath;
|
|
418
|
+
}
|
|
419
|
+
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
420
|
+
/**
|
|
421
|
+
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
422
|
+
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
423
|
+
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
424
|
+
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
425
|
+
* NOT part of any warmup model bundle.
|
|
426
|
+
*/
|
|
427
|
+
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
428
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
429
|
+
return typeof source === "string" ? source : source[variant];
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
433
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
434
|
+
*/
|
|
435
|
+
function resolveWasmConfig(overrides) {
|
|
436
|
+
if (!overrides) return buildDefaultWasmConfig();
|
|
437
|
+
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
438
|
+
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
439
|
+
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
440
|
+
const modelsDefault = defaults.modelsBasePath;
|
|
441
|
+
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
442
|
+
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
443
|
+
const merged = {
|
|
444
|
+
wasmPath: resolvedWasmPath,
|
|
445
|
+
wasmSimdPath: resolvedWasmSimdPath,
|
|
446
|
+
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
447
|
+
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
448
|
+
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
449
|
+
useSimd: overrides.useSimd,
|
|
450
|
+
showLogs: overrides.showLogs,
|
|
451
|
+
pipelines: overrides.pipelines,
|
|
452
|
+
pipelineModels: overrides.pipelineModels,
|
|
453
|
+
modelUrls: overrides.modelUrls,
|
|
454
|
+
legacyModelUrls: overrides.legacyModelUrls,
|
|
455
|
+
loadGlue: overrides.loadGlue,
|
|
456
|
+
loadGlueSimd: overrides.loadGlueSimd,
|
|
457
|
+
selfHosted: overrides.selfHosted
|
|
458
|
+
};
|
|
459
|
+
validateWasmPaths(merged);
|
|
460
|
+
return merged;
|
|
461
|
+
}
|
|
462
|
+
//#endregion
|
|
309
463
|
//#region ../infra/src/providers/browser/SemaphoreProvider.ts
|
|
310
464
|
const DEFAULT_ACQUIRE_TIMEOUT_MS = 3e4;
|
|
311
465
|
/**
|
|
@@ -405,6 +559,22 @@ var SemaphoreProvider = class {
|
|
|
405
559
|
}
|
|
406
560
|
};
|
|
407
561
|
//#endregion
|
|
562
|
+
//#region ../infra/src/wasm/wasmDiagnostics.ts
|
|
563
|
+
let handler = null;
|
|
564
|
+
function setWasmDiagnosticsHandler(next) {
|
|
565
|
+
handler = next;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Fire-and-forget: a no-op without a handler, and handler exceptions are
|
|
569
|
+
* swallowed — diagnostics must never throw into the host code path.
|
|
570
|
+
*/
|
|
571
|
+
function emitWasmDiagnostic(entry) {
|
|
572
|
+
if (handler === null) return;
|
|
573
|
+
try {
|
|
574
|
+
handler(entry);
|
|
575
|
+
} catch {}
|
|
576
|
+
}
|
|
577
|
+
//#endregion
|
|
408
578
|
//#region ../infra/src/wasm/wasmGlueImport.ts
|
|
409
579
|
/**
|
|
410
580
|
* Evaluates verified glue bytes as an ES module from a `blob:` URL.
|
|
@@ -667,9 +837,21 @@ async function instantiate(factory, libPath, slot, showLogs = false) {
|
|
|
667
837
|
},
|
|
668
838
|
printErr: (text) => {
|
|
669
839
|
if (showLogs) console.error(text);
|
|
840
|
+
},
|
|
841
|
+
onAbort: (what) => {
|
|
842
|
+
emitWasmDiagnostic({
|
|
843
|
+
level: "severe",
|
|
844
|
+
subsystem: "abort",
|
|
845
|
+
category: "other",
|
|
846
|
+
message: `wasm aborted what=${String(what)}`
|
|
847
|
+
});
|
|
670
848
|
}
|
|
671
849
|
});
|
|
672
850
|
}
|
|
851
|
+
/** `code=` for integrity failures, which name a cause more precisely than the message. */
|
|
852
|
+
function describeLoadError(error) {
|
|
853
|
+
return error instanceof WasmIntegrityError ? `code=${error.code} asset=${error.asset}` : `error=${String(error)}`;
|
|
854
|
+
}
|
|
673
855
|
/**
|
|
674
856
|
* Load the WASM module, memoized. Subsequent calls return the same instance,
|
|
675
857
|
* retaining the first caller's logging configuration.
|
|
@@ -682,6 +864,7 @@ async function instantiate(factory, libPath, slot, showLogs = false) {
|
|
|
682
864
|
async function loadWasmModule(config) {
|
|
683
865
|
if (loadedResult) return loadedResult;
|
|
684
866
|
if (loadPromise) return loadPromise;
|
|
867
|
+
const startedAtMs = getTimestamp();
|
|
685
868
|
loadPromise = (async () => {
|
|
686
869
|
let storageFallbackLease = null;
|
|
687
870
|
try {
|
|
@@ -696,10 +879,22 @@ async function loadWasmModule(config) {
|
|
|
696
879
|
simdUsed: true
|
|
697
880
|
};
|
|
698
881
|
loadedResult = result;
|
|
882
|
+
emitWasmDiagnostic({
|
|
883
|
+
level: "debug",
|
|
884
|
+
subsystem: "loader",
|
|
885
|
+
category: "other",
|
|
886
|
+
message: `wasm module loaded simd=true durationMs=${getTimestamp() - startedAtMs}`
|
|
887
|
+
});
|
|
699
888
|
return result;
|
|
700
889
|
} catch (simdError) {
|
|
701
890
|
if (simdError instanceof WasmIntegrityError) throw simdError;
|
|
702
891
|
if (config.showLogs) console.warn("[Incode SDK] SIMD WASM load failed, falling back to non-SIMD", simdError);
|
|
892
|
+
emitWasmDiagnostic({
|
|
893
|
+
level: "warning",
|
|
894
|
+
subsystem: "loader",
|
|
895
|
+
category: "other",
|
|
896
|
+
message: `simd load failed falling back ${describeLoadError(simdError)}`
|
|
897
|
+
});
|
|
703
898
|
}
|
|
704
899
|
const nonSimdFactory = await resolveGlue(config.loadGlue, config.glueCodePath, "webLib.js");
|
|
705
900
|
window.Module = nonSimdFactory;
|
|
@@ -708,9 +903,21 @@ async function loadWasmModule(config) {
|
|
|
708
903
|
simdUsed: false
|
|
709
904
|
};
|
|
710
905
|
loadedResult = result;
|
|
906
|
+
emitWasmDiagnostic({
|
|
907
|
+
level: "debug",
|
|
908
|
+
subsystem: "loader",
|
|
909
|
+
category: "other",
|
|
910
|
+
message: `wasm module loaded simd=false durationMs=${getTimestamp() - startedAtMs}`
|
|
911
|
+
});
|
|
711
912
|
return result;
|
|
712
913
|
} catch (error) {
|
|
713
914
|
loadPromise = null;
|
|
915
|
+
emitWasmDiagnostic({
|
|
916
|
+
level: "error",
|
|
917
|
+
subsystem: "loader",
|
|
918
|
+
category: "other",
|
|
919
|
+
message: `wasm load failed ${describeLoadError(error)}`
|
|
920
|
+
});
|
|
714
921
|
throw error;
|
|
715
922
|
} finally {
|
|
716
923
|
storageFallbackLease?.release();
|
|
@@ -718,6 +925,98 @@ async function loadWasmModule(config) {
|
|
|
718
925
|
})();
|
|
719
926
|
return loadPromise;
|
|
720
927
|
}
|
|
928
|
+
function emptyCounters() {
|
|
929
|
+
return {
|
|
930
|
+
analyzeFrameCount: 0,
|
|
931
|
+
analyzeFrameMaxMs: 0,
|
|
932
|
+
getCheckCount: 0,
|
|
933
|
+
collisionCount: 0
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
let lockHeldBy = null;
|
|
937
|
+
let waitWarningsLogged = 0;
|
|
938
|
+
let collisionWarningsLogged = 0;
|
|
939
|
+
let counters = emptyCounters();
|
|
940
|
+
function noteLockAcquired(label, waitMs) {
|
|
941
|
+
lockHeldBy = label;
|
|
942
|
+
if (waitMs > 250 && waitWarningsLogged < 5) {
|
|
943
|
+
waitWarningsLogged += 1;
|
|
944
|
+
emitWasmDiagnostic({
|
|
945
|
+
level: "warning",
|
|
946
|
+
subsystem: "calls",
|
|
947
|
+
category: "other",
|
|
948
|
+
message: `semaphore wait method=${label} waitMs=${Math.round(waitMs)}`
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
function noteLockReleased(label, waitMs, durationMs) {
|
|
953
|
+
lockHeldBy = null;
|
|
954
|
+
emitWasmDiagnostic({
|
|
955
|
+
level: "debug",
|
|
956
|
+
subsystem: "calls",
|
|
957
|
+
category: "other",
|
|
958
|
+
message: `call method=${label} waitMs=${Math.round(waitMs)} durationMs=${Math.round(durationMs)}`
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
/** Collision check for the lock-bypassing deepsight methods. */
|
|
962
|
+
function noteUnlockedCallStart(name) {
|
|
963
|
+
if (lockHeldBy === null) return;
|
|
964
|
+
counters.collisionCount += 1;
|
|
965
|
+
if (collisionWarningsLogged < 5) {
|
|
966
|
+
collisionWarningsLogged += 1;
|
|
967
|
+
emitWasmDiagnostic({
|
|
968
|
+
level: "warning",
|
|
969
|
+
subsystem: "calls",
|
|
970
|
+
category: "other",
|
|
971
|
+
message: `collision unlocked=${name} lockedBy=${lockHeldBy}`
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
function noteUnlockedCallEnd(name, durationMs) {
|
|
976
|
+
if (name === "analyzeFrame") {
|
|
977
|
+
counters.analyzeFrameCount += 1;
|
|
978
|
+
counters.analyzeFrameMaxMs = Math.max(counters.analyzeFrameMaxMs, Math.round(durationMs));
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
counters.getCheckCount += 1;
|
|
982
|
+
}
|
|
983
|
+
/** Aggregates since the last snapshot; clears them for the next capture. */
|
|
984
|
+
function snapshotAndResetCallCounters() {
|
|
985
|
+
const snapshot = counters;
|
|
986
|
+
counters = emptyCounters();
|
|
987
|
+
return snapshot;
|
|
988
|
+
}
|
|
989
|
+
let pipelinePullEmissions = 0;
|
|
990
|
+
/**
|
|
991
|
+
* Row 36: each pipeline-state pull (once per capture) carries the row 29b
|
|
992
|
+
* counters accumulated since the previous one, then resets them. The state
|
|
993
|
+
* itself is never read: what the kit's pipelines expose to diagnostics is
|
|
994
|
+
* the kit's own decision (its sensor withholds verdicts such as age and
|
|
995
|
+
* liveness), so the SDK keeps no second gate over the C++ blob.
|
|
996
|
+
*/
|
|
997
|
+
function notePipelineStatePulled() {
|
|
998
|
+
if (pipelinePullEmissions >= 20) return;
|
|
999
|
+
pipelinePullEmissions += 1;
|
|
1000
|
+
const calls = snapshotAndResetCallCounters();
|
|
1001
|
+
emitWasmDiagnostic({
|
|
1002
|
+
level: "debug",
|
|
1003
|
+
subsystem: "pipeline",
|
|
1004
|
+
category: "other",
|
|
1005
|
+
message: `pipeline state pulled analyzeFrames=${calls.analyzeFrameCount} maxAnalyzeMs=${calls.analyzeFrameMaxMs} getChecks=${calls.getCheckCount} collisions=${calls.collisionCount}`
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
/** Per-session budgets and counters; called from `setup()` via `rearmWasmDiagnostics`. */
|
|
1009
|
+
function rearmWasmCallDiagnostics() {
|
|
1010
|
+
waitWarningsLogged = 0;
|
|
1011
|
+
collisionWarningsLogged = 0;
|
|
1012
|
+
counters = emptyCounters();
|
|
1013
|
+
pipelinePullEmissions = 0;
|
|
1014
|
+
}
|
|
1015
|
+
/** Full reset with the runtime (`WasmRuntime.freeResources()`). */
|
|
1016
|
+
function resetWasmCallDiagnostics() {
|
|
1017
|
+
lockHeldBy = null;
|
|
1018
|
+
rearmWasmCallDiagnostics();
|
|
1019
|
+
}
|
|
721
1020
|
//#endregion
|
|
722
1021
|
//#region ../infra/src/wasm/wasmCallUtils.ts
|
|
723
1022
|
/**
|
|
@@ -752,18 +1051,6 @@ var WasmPollTimeoutError = class extends Error {
|
|
|
752
1051
|
this.label = label;
|
|
753
1052
|
}
|
|
754
1053
|
};
|
|
755
|
-
/**
|
|
756
|
-
* Busy-polls an iterative WASM method until it returns `true`, optionally under
|
|
757
|
-
* a concurrency lock.
|
|
758
|
-
*
|
|
759
|
-
* @param concurrency - semaphore used when `useSemaphore` is true.
|
|
760
|
-
* @param wasmMethod - zero-arg closure over the C++ call; `false` means "call me
|
|
761
|
-
* again", `true` means done. Bind any arguments in the closure.
|
|
762
|
-
* @param useSemaphore - `false` bypasses the lock (caller already holds one, or
|
|
763
|
-
* is provably the only caller).
|
|
764
|
-
* @param options - see {@link WasmPollOptions}. `maxPolls` omitted = unbounded.
|
|
765
|
-
* @throws {WasmPollTimeoutError} when `maxPolls` is exhausted.
|
|
766
|
-
*/
|
|
767
1054
|
async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, options = {}) {
|
|
768
1055
|
const { maxPolls, label } = options;
|
|
769
1056
|
const innerCall = async () => {
|
|
@@ -776,7 +1063,18 @@ async function wasmCallWrapper(concurrency, wasmMethod, useSemaphore = true, opt
|
|
|
776
1063
|
}
|
|
777
1064
|
};
|
|
778
1065
|
if (useSemaphore) {
|
|
779
|
-
|
|
1066
|
+
const callLabel = label ?? "unlabeled";
|
|
1067
|
+
const requestedAt = performance.now();
|
|
1068
|
+
await concurrency.withLock(async () => {
|
|
1069
|
+
const acquiredAt = performance.now();
|
|
1070
|
+
const waitMs = acquiredAt - requestedAt;
|
|
1071
|
+
noteLockAcquired(callLabel, waitMs);
|
|
1072
|
+
try {
|
|
1073
|
+
await innerCall();
|
|
1074
|
+
} finally {
|
|
1075
|
+
noteLockReleased(callLabel, waitMs, performance.now() - acquiredAt);
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
780
1078
|
return;
|
|
781
1079
|
}
|
|
782
1080
|
await innerCall();
|
|
@@ -973,4 +1271,4 @@ function ensureReady() {
|
|
|
973
1271
|
return webClientApi;
|
|
974
1272
|
}
|
|
975
1273
|
//#endregion
|
|
976
|
-
export { setWasmIntegrityObserver as S,
|
|
1274
|
+
export { buildModelVariantSources as A, isDefaultCdnWasmConfig as C, WASM_PIPELINE_MODELS as D, WASM_PIPELINE_LAZY_MODEL_NAMES as E, resolveWasmSource as M, reportWasmIntegritySummary as N, WASM_PIPELINE_MODEL_NAMES as O, setWasmIntegrityObserver as P, getBarcodeEnhanceModelUrl as S, WASM_MODEL_FILES as T, setWasmDiagnosticsHandler as _, setWebApiHttpTransport as a, buildDefaultWasmConfig as b, wasmCallWrapper as c, noteUnlockedCallStart as d, rearmWasmCallDiagnostics as f, emitWasmDiagnostic as g, acquireWasmStorageFallback as h, initializeWasmWebClient as i, missingWasmModelError as j, WASM_PIPELINE_OPTIONAL_MODEL_NAMES as k, notePipelineStatePulled as l, loadWasmModule as m, createWebApiHostAdapter as n, setupWasmConnection as o, resetWasmCallDiagnostics as p, executeWasmRequest as r, ML_CALL_MAX_POLLS as s, WasmWebClientError as t, noteUnlockedCallEnd as u, SemaphoreProvider as v, resolveWasmConfig as w, buildWasmConfigFromBasePath as x, DEFAULT_WASM_VERSION as y };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
1
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-CZZOFkGl.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-DXtX94SN.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
6
|
function createWatchlistForBusinessActor() {
|
|
7
7
|
return createActor(watchlistForBusinessMachine).start();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
1
|
+
import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
|
|
3
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
4
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
6
|
function createWatchlistActor() {
|
|
7
7
|
return createActor(watchlistMachine).start();
|
package/dist/{watchlistStateMachine-Dgfm42w2.esm.js → watchlistStateMachine-McALifag.esm.js}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
1
|
+
import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
|
|
3
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
4
|
//#region src/modules/watchlist/watchlistServices.ts
|
package/dist/workflow.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import { t as CallbackActorLogic } from "./callback-645_omgz.js";
|
|
3
3
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
4
4
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
5
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
5
|
+
import { o as FlowEventSubscribable } from "./index-CKQ9QBZP.js";
|
|
6
6
|
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BQA7lRDV.js";
|
|
7
7
|
//#region src/modules/workflow/types.d.ts
|
|
8
8
|
/** Possible node types returned by the workflow server. */
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-DA64AEZC.esm.js";
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-Du2A4-Qr.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
|
|
3
|
+
import { u as trueSightLog } from "./trueSightService-BzLdXpmJ.esm.js";
|
|
4
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DVWMJh25.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-rTfjzdDa.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-D5u6HIDG.esm.js";
|
|
7
|
+
import { v as toEkybConfig } from "./flowServices-CTc-zqfN.esm.js";
|
|
9
8
|
import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
|
|
10
9
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
11
10
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
11
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-BtWCrz5_.esm.js";
|
|
13
12
|
import "./ae-signature.esm.js";
|
|
14
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
16
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
17
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
18
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
19
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
20
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
23
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
24
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
27
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
28
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
29
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
30
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
31
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
32
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
33
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine
|
|
34
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
36
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
37
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
38
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
13
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-DRl0UVyA.esm.js";
|
|
14
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BJJhLmdH.esm.js";
|
|
15
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Frgjbjw8.esm.js";
|
|
16
|
+
import { t as consentMachine } from "./consentStateMachine-DJTgN_-1.esm.js";
|
|
17
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-vDEFLMPw.esm.js";
|
|
18
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-hmRd0f2I.esm.js";
|
|
19
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-B8i7GnLh.esm.js";
|
|
20
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-CoOWTzyM.esm.js";
|
|
21
|
+
import { t as ekybMachine } from "./ekybStateMachine-n4Iz9iLc.esm.js";
|
|
22
|
+
import { t as ekycMachine } from "./ekycStateMachine-CDnI_NRq.esm.js";
|
|
23
|
+
import { t as emailMachine } from "./emailStateMachine-BXtlC0NV.esm.js";
|
|
24
|
+
import { t as selfieMachine } from "./selfieStateMachine-DT8QCfKR.esm.js";
|
|
25
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-CxwoN5ff.esm.js";
|
|
26
|
+
import { t as phoneMachine } from "./phoneStateMachine-D2QWS2cu.esm.js";
|
|
27
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-McALifag.esm.js";
|
|
28
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-B66E7jud.esm.js";
|
|
29
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-DfV81wQC.esm.js";
|
|
30
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-pXWqAHo_.esm.js";
|
|
31
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-DyENX6Ki.esm.js";
|
|
32
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-b-H-ipGM.esm.js";
|
|
33
|
+
import { t as signatureMachine } from "./signatureStateMachine-C-nUq_oq.esm.js";
|
|
34
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BnGuZ3hn.esm.js";
|
|
35
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-COL-Vs48.esm.js";
|
|
36
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-CL1kUdBe.esm.js";
|
|
37
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-CUCvlydD.esm.js";
|
|
38
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-oiK1PjPr.esm.js";
|
|
39
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CPa0i2_C.esm.js";
|
|
41
40
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
42
41
|
import "./qe-signature.esm.js";
|
|
43
42
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.4.0-rc.
|
|
3
|
+
"version": "2.4.0-rc.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
"tsdown": "^0.22.8",
|
|
277
277
|
"typescript": "^5.9.3",
|
|
278
278
|
"vitest": "4.1.10",
|
|
279
|
-
"@incodetech/form-definitions": "0.0.0",
|
|
280
279
|
"@incodetech/config": "1.0.2",
|
|
280
|
+
"@incodetech/form-definitions": "0.0.0",
|
|
281
281
|
"@incodetech/infra": "1.4.0"
|
|
282
282
|
},
|
|
283
283
|
"scripts": {
|