@incodetech/core 2.3.0-rc.6 → 2.3.0-rc.7
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/{BrowserDiagnosticsCryptoProvider-CrRl9swD.esm.js → BrowserDiagnosticsCryptoProvider-BclCEzL8.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-CpnVuDS5.esm.js → FaceDetectionProvider-kCLAWdn1.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CVTR4cSo.esm.js → apiError-Bvig2fNZ.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BGDNvbCf.esm.js → authenticationManager-BE702Ijw.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DNspYSz2.esm.js → authenticationStateMachine-CRsqnMxm.esm.js} +2 -2
- package/dist/{deepsightLoader-Djk0rQEz.esm.js → deepsightLoader-n43qNbOw.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BfAGjuVi.esm.js → dynamicFormsManager-CnQcLXL_.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BThO1OlZ.esm.js → dynamicFormsStateMachine-BSjRcqQY.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-FLGyi0PM.esm.js → ekybManager-CL-GLqTh.esm.js} +1 -1
- package/dist/{ekybStateMachine-nQv7bOUG.esm.js → ekybStateMachine-3ZRVx12M.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C0gHnNKc.esm.js → electronicSignatureManager-CDgeKkaK.esm.js} +1 -1
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-BId_sV3B.esm.js → faceCaptureManagerFactory-D_Ljfeey.esm.js} +1 -1
- package/dist/{faceCaptureSetup-BmJW0rWG.esm.js → faceCaptureSetup-DgPE6Y2i.esm.js} +3 -3
- package/dist/{feature-management-DBFjhsB2.esm.js → feature-management-PDAuJ35w.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Blxdndia.esm.js → flowCompletionService-_qvfViI5.esm.js} +1 -1
- package/dist/{flowServices-BDJgxe8I.esm.js → flowServices-tV_n-phH.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BIGKPXyi.esm.js → geolocationManager-S68x93Tj.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CRIQmKua.esm.js → geolocationStateMachine-rJY4ba6N.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-CpRRQOZP.esm.js → idCaptureDefaults-AySbfIxl.esm.js} +1 -1
- package/dist/{idCaptureManager-okb6GKib.esm.js → idCaptureManager-BqQL-OOf.esm.js} +3 -3
- package/dist/{idCaptureServices-Dw1symcs.esm.js → idCaptureServices-O1skRskw.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-D9Yk3Z2_.esm.js → idCaptureStateMachine-DXHBTn83.esm.js} +15 -14
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-BFDI7iFK.d.ts} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CJSyhTpi.d.ts → mandatoryConsentManager-Csfl7_XQ.d.ts} +4 -4
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-xkRO1Ecl.esm.js → runChildModule-CPl1GIjN.esm.js} +1 -1
- package/dist/{sdkVersion-DjB_KIzb.esm.js → sdkVersion-Cmc8CPSi.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-Z7of6lul.esm.js → selfieManager-68bOKgEb.esm.js} +3 -3
- package/dist/{selfieStateMachine-UjwUaCvo.esm.js → selfieStateMachine-CJyGioZT.esm.js} +2 -2
- package/dist/{session-DRLhmhht.esm.js → session-BQ4dCQCr.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-HewWDU8P.esm.js → sessionInitializer-DRfVB5Az.esm.js} +3 -3
- package/dist/{setup-C6_uuDz5.esm.js → setup-BUnRvSkr.esm.js} +8 -146
- package/dist/{setup-Cv-JM9QC.d.ts → setup-CLfBztP0.d.ts} +2 -1
- package/dist/{trueSightService-m6To_KWo.esm.js → trueSightService-B8SjRCo7.esm.js} +175 -18
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DTw4oH_A.esm.js → videoSelfieCameraWarmer-CY5YHgLl.esm.js} +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +3 -3
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-B8SjRCo7.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
|
+
import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.esm.js";
|
|
3
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
5
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-m6To_KWo.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
7
|
-
import { b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, v as getThumbmarkId, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
7
|
+
import { b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, v as getThumbmarkId, y as getDeviceFingerprintInfo } from "./sessionInitializer-DRfVB5Az.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
9
9
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
11
11
|
import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
12
12
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
13
|
-
import { i as initializeDeepsightSession, o as startDetection, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
13
|
+
import { i as initializeDeepsightSession, o as startDetection, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-CDgeKkaK.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-B8SjRCo7.esm.js";
|
|
1
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-m6To_KWo.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-C6_uuDz5.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DgPE6Y2i.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D_Ljfeey.esm.js";
|
|
8
8
|
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
|
|
9
9
|
import { r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-CJyGioZT.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-68bOKgEb.esm.js";
|
|
12
12
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-C6_uuDz5.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-BUnRvSkr.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D_Ljfeey.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-CJyGioZT.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-DgPE6Y2i.esm.js";
|
|
4
|
+
import { c as isOnDeviceMode } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
|
|
7
7
|
import { i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-UiQ46EBa.esm.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-B8SjRCo7.esm.js";
|
|
1
2
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import
|
|
3
|
-
import "./sessionInitializer-HewWDU8P.esm.js";
|
|
3
|
+
import "./sessionInitializer-DRfVB5Az.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-Bvig2fNZ.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-DRfVB5Az.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-Bvig2fNZ.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-BQ4dCQCr.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-_qvfViI5.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid, whenSessionFingerprintSettled };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-B8SjRCo7.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-PDAuJ35w.esm.js";
|
|
2
3
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-m6To_KWo.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-Cmc8CPSi.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-CZcy2J53.esm.js";
|
|
8
8
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
@@ -1,156 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, k as resolveWasmConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-B8SjRCo7.esm.js";
|
|
2
2
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-CUUnwYxe.esm.js";
|
|
3
3
|
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-B-trhxg6.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
5
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-PDAuJ35w.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-m6To_KWo.esm.js";
|
|
9
8
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
10
|
-
import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-
|
|
9
|
+
import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-DRfVB5Az.esm.js";
|
|
11
10
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
12
11
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
13
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
14
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
-
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
16
|
-
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
17
|
-
/** The WASM version bundled and tested with this SDK release. */
|
|
18
|
-
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
19
|
-
const PATH_KEYS = [
|
|
20
|
-
"wasmPath",
|
|
21
|
-
"wasmSimdPath",
|
|
22
|
-
"glueCodePath",
|
|
23
|
-
"glueCodeSimdPath",
|
|
24
|
-
"modelsBasePath"
|
|
25
|
-
];
|
|
26
|
-
function isBlank(value) {
|
|
27
|
-
return value.trim() === "";
|
|
28
|
-
}
|
|
29
|
-
function hasDisallowedControlChars(value) {
|
|
30
|
-
for (let i = 0; i < value.length; i += 1) {
|
|
31
|
-
const code = value.charCodeAt(i);
|
|
32
|
-
if (code < 32 || code === 127) return true;
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
function isMalformedPath(value) {
|
|
37
|
-
const trimmed = value.trim();
|
|
38
|
-
if (trimmed === "") return false;
|
|
39
|
-
if (hasDisallowedControlChars(trimmed)) return true;
|
|
40
|
-
if (/^https?:\/\//i.test(trimmed)) try {
|
|
41
|
-
new URL(trimmed);
|
|
42
|
-
return false;
|
|
43
|
-
} catch {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
function warnInvalidWasmPath(field, reason) {
|
|
49
|
-
if (reason === "empty") {
|
|
50
|
-
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
54
|
-
}
|
|
55
|
-
function warnMalformedWasmPath(field) {
|
|
56
|
-
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Validates merged WASM path strings. When overrides contained blank path
|
|
60
|
-
* values, callers should have already fallen back to defaults before this runs.
|
|
61
|
-
*/
|
|
62
|
-
function validateWasmPaths(config) {
|
|
63
|
-
for (const key of PATH_KEYS) {
|
|
64
|
-
const value = config[key];
|
|
65
|
-
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function pickPath(key, overrides, defaultValue) {
|
|
69
|
-
if (!overrides || !(key in overrides)) return defaultValue;
|
|
70
|
-
const raw = overrides[key];
|
|
71
|
-
if (raw === void 0) return defaultValue;
|
|
72
|
-
if (typeof raw !== "string") return defaultValue;
|
|
73
|
-
if (isBlank(raw)) {
|
|
74
|
-
warnInvalidWasmPath(key, "empty");
|
|
75
|
-
return defaultValue;
|
|
76
|
-
}
|
|
77
|
-
if (isMalformedPath(raw)) {
|
|
78
|
-
warnInvalidWasmPath(key, "malformed");
|
|
79
|
-
return defaultValue;
|
|
80
|
-
}
|
|
81
|
-
return raw.trim();
|
|
82
|
-
}
|
|
83
|
-
function pickSource(key, overrides, defaultValue) {
|
|
84
|
-
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
85
|
-
const source = overrides[key];
|
|
86
|
-
if (typeof source !== "string") return source;
|
|
87
|
-
return pickPath(key, overrides, String(defaultValue));
|
|
88
|
-
}
|
|
89
|
-
function resolveBasePath(overrides) {
|
|
90
|
-
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
91
|
-
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
92
|
-
const basePath = overrides.basePath;
|
|
93
|
-
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
94
|
-
return basePath.trim();
|
|
95
|
-
}
|
|
96
|
-
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
97
|
-
function buildWasmConfigFromBasePath(basePath) {
|
|
98
|
-
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
99
|
-
return {
|
|
100
|
-
wasmPath: `${base}/webLib.wasm`,
|
|
101
|
-
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
102
|
-
glueCodePath: `${base}/webLib.js`,
|
|
103
|
-
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
104
|
-
modelsBasePath: `${base}/models`
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
108
|
-
function buildDefaultWasmConfig() {
|
|
109
|
-
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
110
|
-
}
|
|
111
|
-
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
112
|
-
/**
|
|
113
|
-
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
114
|
-
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
115
|
-
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
116
|
-
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
117
|
-
* NOT part of any warmup model bundle.
|
|
118
|
-
*/
|
|
119
|
-
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
120
|
-
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
121
|
-
return typeof source === "string" ? source : source[variant];
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
125
|
-
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
126
|
-
*/
|
|
127
|
-
function resolveWasmConfig(overrides) {
|
|
128
|
-
if (!overrides) return buildDefaultWasmConfig();
|
|
129
|
-
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
130
|
-
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
131
|
-
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
132
|
-
const modelsDefault = defaults.modelsBasePath;
|
|
133
|
-
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
134
|
-
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
135
|
-
const merged = {
|
|
136
|
-
wasmPath: resolvedWasmPath,
|
|
137
|
-
wasmSimdPath: resolvedWasmSimdPath,
|
|
138
|
-
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
139
|
-
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
140
|
-
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
141
|
-
useSimd: overrides.useSimd,
|
|
142
|
-
pipelines: overrides.pipelines,
|
|
143
|
-
pipelineModels: overrides.pipelineModels,
|
|
144
|
-
modelUrls: overrides.modelUrls,
|
|
145
|
-
legacyModelUrls: overrides.legacyModelUrls,
|
|
146
|
-
loadGlue: overrides.loadGlue,
|
|
147
|
-
loadGlueSimd: overrides.loadGlueSimd,
|
|
148
|
-
selfHosted: overrides.selfHosted
|
|
149
|
-
};
|
|
150
|
-
validateWasmPaths(merged);
|
|
151
|
-
return merged;
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-tV_n-phH.esm.js";
|
|
154
14
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
155
15
|
var BrowserPageLifecycleProvider = class {
|
|
156
16
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -778,7 +638,8 @@ function setWasmConfig(config) {
|
|
|
778
638
|
/**
|
|
779
639
|
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
780
640
|
* Should be called after warmupWasm() completes when using conditional warmup.
|
|
781
|
-
*
|
|
641
|
+
* Also upgrades the HTTP client so protected capture payloads are unwrapped
|
|
642
|
+
* by the native transport before upload.
|
|
782
643
|
*
|
|
783
644
|
* @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
|
|
784
645
|
* @throws Error if no config is provided and none is stored
|
|
@@ -791,6 +652,7 @@ async function initializeWasmUtil(config) {
|
|
|
791
652
|
...resolved,
|
|
792
653
|
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
793
654
|
});
|
|
655
|
+
await upgradeToWasmHttpClient$1(resolved);
|
|
794
656
|
}
|
|
795
657
|
/**
|
|
796
658
|
* Warms additional WASM pipelines on demand, reusing the WASM config stored by
|
|
@@ -874,4 +736,4 @@ function reset() {
|
|
|
874
736
|
resetTrueSight();
|
|
875
737
|
}
|
|
876
738
|
//#endregion
|
|
877
|
-
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c,
|
|
739
|
+
export { resolveWasmConfigForPipelines as a, upgradeToWasmHttpClient as c, reset as i, BrowserStorageProvider as l, initializeWasmUtil as n, setWasmConfig as o, isConfigured as r, setup as s, ensureWasmPipelines as t };
|
|
@@ -553,7 +553,8 @@ declare function setWasmConfig(config: WasmConfig): void;
|
|
|
553
553
|
/**
|
|
554
554
|
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
555
555
|
* Should be called after warmupWasm() completes when using conditional warmup.
|
|
556
|
-
*
|
|
556
|
+
* Also upgrades the HTTP client so protected capture payloads are unwrapped
|
|
557
|
+
* by the native transport before upload.
|
|
557
558
|
*
|
|
558
559
|
* @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
|
|
559
560
|
* @throws Error if no config is provided and none is stored
|
|
@@ -1,9 +1,148 @@
|
|
|
1
|
-
import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWasmConnection, r as executeWasmRequest, t as WasmWebClientError } from "./wasmWebClient-B7baE-Wf.esm.js";
|
|
1
|
+
import { a as setWebApiHttpTransport, f as deriveSiblingJsPath, i as initializeWasmWebClient, o as setupWasmConnection, p as WASM_MODEL_FILES, r as executeWasmRequest, t as WasmWebClientError, v as buildModelVariantSources } from "./wasmWebClient-B7baE-Wf.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-Cmc8CPSi.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
7
|
+
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
8
|
+
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
9
|
+
/** The WASM version bundled and tested with this SDK release. */
|
|
10
|
+
const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
|
11
|
+
const PATH_KEYS = [
|
|
12
|
+
"wasmPath",
|
|
13
|
+
"wasmSimdPath",
|
|
14
|
+
"glueCodePath",
|
|
15
|
+
"glueCodeSimdPath",
|
|
16
|
+
"modelsBasePath"
|
|
17
|
+
];
|
|
18
|
+
function isBlank(value) {
|
|
19
|
+
return value.trim() === "";
|
|
20
|
+
}
|
|
21
|
+
function hasDisallowedControlChars(value) {
|
|
22
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
23
|
+
const code = value.charCodeAt(i);
|
|
24
|
+
if (code < 32 || code === 127) return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
function isMalformedPath(value) {
|
|
29
|
+
const trimmed = value.trim();
|
|
30
|
+
if (trimmed === "") return false;
|
|
31
|
+
if (hasDisallowedControlChars(trimmed)) return true;
|
|
32
|
+
if (/^https?:\/\//i.test(trimmed)) try {
|
|
33
|
+
new URL(trimmed);
|
|
34
|
+
return false;
|
|
35
|
+
} catch {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function warnInvalidWasmPath(field, reason) {
|
|
41
|
+
if (reason === "empty") {
|
|
42
|
+
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
46
|
+
}
|
|
47
|
+
function warnMalformedWasmPath(field) {
|
|
48
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Validates merged WASM path strings. When overrides contained blank path
|
|
52
|
+
* values, callers should have already fallen back to defaults before this runs.
|
|
53
|
+
*/
|
|
54
|
+
function validateWasmPaths(config) {
|
|
55
|
+
for (const key of PATH_KEYS) {
|
|
56
|
+
const value = config[key];
|
|
57
|
+
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function pickPath(key, overrides, defaultValue) {
|
|
61
|
+
if (!overrides || !(key in overrides)) return defaultValue;
|
|
62
|
+
const raw = overrides[key];
|
|
63
|
+
if (raw === void 0) return defaultValue;
|
|
64
|
+
if (typeof raw !== "string") return defaultValue;
|
|
65
|
+
if (isBlank(raw)) {
|
|
66
|
+
warnInvalidWasmPath(key, "empty");
|
|
67
|
+
return defaultValue;
|
|
68
|
+
}
|
|
69
|
+
if (isMalformedPath(raw)) {
|
|
70
|
+
warnInvalidWasmPath(key, "malformed");
|
|
71
|
+
return defaultValue;
|
|
72
|
+
}
|
|
73
|
+
return raw.trim();
|
|
74
|
+
}
|
|
75
|
+
function pickSource(key, overrides, defaultValue) {
|
|
76
|
+
if (!(key in overrides) || overrides[key] === void 0) return defaultValue;
|
|
77
|
+
const source = overrides[key];
|
|
78
|
+
if (typeof source !== "string") return source;
|
|
79
|
+
return pickPath(key, overrides, String(defaultValue));
|
|
80
|
+
}
|
|
81
|
+
function resolveBasePath(overrides) {
|
|
82
|
+
const defaultValue = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
83
|
+
if (!("basePath" in overrides) || overrides.basePath === void 0) return defaultValue;
|
|
84
|
+
const basePath = overrides.basePath;
|
|
85
|
+
if (typeof basePath !== "string" || isBlank(basePath) || isMalformedPath(basePath)) throw new Error("[Incode SDK] wasm.basePath is invalid.");
|
|
86
|
+
return basePath.trim();
|
|
87
|
+
}
|
|
88
|
+
/** Builds a WarmupConfig from a directory that mirrors the ml-wasm-kit CDN layout. */
|
|
89
|
+
function buildWasmConfigFromBasePath(basePath) {
|
|
90
|
+
const base = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath;
|
|
91
|
+
return {
|
|
92
|
+
wasmPath: `${base}/webLib.wasm`,
|
|
93
|
+
wasmSimdPath: `${base}/webLibSimd.wasm`,
|
|
94
|
+
glueCodePath: `${base}/webLib.js`,
|
|
95
|
+
glueCodeSimdPath: `${base}/webLibSimd.js`,
|
|
96
|
+
modelsBasePath: `${base}/models`
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
100
|
+
function buildDefaultWasmConfig() {
|
|
101
|
+
return buildWasmConfigFromBasePath(`${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`);
|
|
102
|
+
}
|
|
103
|
+
const BARCODE_ENHANCE_MODEL_FILE = WASM_MODEL_FILES.barcode;
|
|
104
|
+
/**
|
|
105
|
+
* URL of the lazily-loaded PDF417 barcode enhancement model (US Smart Capture).
|
|
106
|
+
* Derived from the resolved `modelsBasePath` so self-hosted / air-gapped
|
|
107
|
+
* deployments resolve it correctly, falling back to the CDN default. Loaded on
|
|
108
|
+
* demand via `IIdCaptureCapability.setBarcodeEnhancementModel` — deliberately
|
|
109
|
+
* NOT part of any warmup model bundle.
|
|
110
|
+
*/
|
|
111
|
+
function getBarcodeEnhanceModelUrl(modelsBasePath, variant = "current") {
|
|
112
|
+
const source = buildModelVariantSources(modelsBasePath ?? `${WASM_CDN_BASE_URL}/v2.14.50-post1/models`, BARCODE_ENHANCE_MODEL_FILE);
|
|
113
|
+
return typeof source === "string" ? source : source[variant];
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
117
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
118
|
+
*/
|
|
119
|
+
function resolveWasmConfig(overrides) {
|
|
120
|
+
if (!overrides) return buildDefaultWasmConfig();
|
|
121
|
+
const defaults = buildWasmConfigFromBasePath(resolveBasePath(overrides));
|
|
122
|
+
const resolvedWasmPath = pickSource("wasmPath", overrides, defaults.wasmPath);
|
|
123
|
+
const simdDefault = overrides.selfHosted ? resolvedWasmPath : defaults.wasmSimdPath;
|
|
124
|
+
const modelsDefault = defaults.modelsBasePath;
|
|
125
|
+
const resolvedWasmSimdPath = pickSource("wasmSimdPath", overrides, simdDefault);
|
|
126
|
+
const glueCodeSimdDefault = typeof resolvedWasmSimdPath === "string" ? deriveSiblingJsPath(resolvedWasmSimdPath) : defaults.glueCodeSimdPath;
|
|
127
|
+
const merged = {
|
|
128
|
+
wasmPath: resolvedWasmPath,
|
|
129
|
+
wasmSimdPath: resolvedWasmSimdPath,
|
|
130
|
+
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
131
|
+
glueCodeSimdPath: pickPath("glueCodeSimdPath", overrides, glueCodeSimdDefault),
|
|
132
|
+
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
133
|
+
useSimd: overrides.useSimd,
|
|
134
|
+
pipelines: overrides.pipelines,
|
|
135
|
+
pipelineModels: overrides.pipelineModels,
|
|
136
|
+
modelUrls: overrides.modelUrls,
|
|
137
|
+
legacyModelUrls: overrides.legacyModelUrls,
|
|
138
|
+
loadGlue: overrides.loadGlue,
|
|
139
|
+
loadGlueSimd: overrides.loadGlueSimd,
|
|
140
|
+
selfHosted: overrides.selfHosted
|
|
141
|
+
};
|
|
142
|
+
validateWasmPaths(merged);
|
|
143
|
+
return merged;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
7
146
|
//#region ../infra/src/http/createApi.ts
|
|
8
147
|
var FetchHttpError = class extends Error {
|
|
9
148
|
constructor(status, statusText, url, method, headers, data) {
|
|
@@ -423,10 +562,18 @@ const createWasmApi = async (config) => {
|
|
|
423
562
|
* `httpClient.request()` pipeline as every other endpoint — header
|
|
424
563
|
* injection, encryption-state handling, default headers, timeout — instead
|
|
425
564
|
* of bypassing it via `executeWasmRequest` directly.
|
|
565
|
+
*
|
|
566
|
+
* Protected captures arrive with `ie === true`: the C++ `WebApi` already
|
|
567
|
+
* encrypted the body inline, and only the WASM `WebClient` can unwrap it. A
|
|
568
|
+
* plain fetch client would post the ciphertext as JSON and the backend
|
|
569
|
+
* answers 406. If the plain client is still installed at that point (the
|
|
570
|
+
* host called `setup()` without `wasm` and warmed WASM separately), swap to
|
|
571
|
+
* the WASM client first. The module is already loaded — the payload came
|
|
572
|
+
* out of it — so the swap only creates the `WebClient`.
|
|
426
573
|
*/
|
|
427
574
|
function bindWebApiTransport(client) {
|
|
428
575
|
return async (url, body, config) => {
|
|
429
|
-
const response = await client.request({
|
|
576
|
+
const response = await (config.ie === true && storedHttpConfig && !storedHttpConfig.isWasm ? await ensureWasmHttpClient() : client).request({
|
|
430
577
|
method: "POST",
|
|
431
578
|
url,
|
|
432
579
|
body,
|
|
@@ -445,7 +592,12 @@ function installClient(client) {
|
|
|
445
592
|
setClient(client);
|
|
446
593
|
setWebApiHttpTransport(bindWebApiTransport(client));
|
|
447
594
|
}
|
|
595
|
+
async function ensureWasmHttpClient() {
|
|
596
|
+
await upgradeToWasmHttpClient(resolveWasmConfig());
|
|
597
|
+
return getApi();
|
|
598
|
+
}
|
|
448
599
|
let storedHttpConfig;
|
|
600
|
+
let pendingUpgrade;
|
|
449
601
|
/** Reads the current HTTP-client config (or `undefined` if none installed). */
|
|
450
602
|
function getStoredHttpConfig() {
|
|
451
603
|
return storedHttpConfig;
|
|
@@ -502,19 +654,24 @@ async function installFreshHttpClient(apiURL, options, effectiveWasm, encryption
|
|
|
502
654
|
async function upgradeToWasmHttpClient(resolved) {
|
|
503
655
|
const stored = storedHttpConfig;
|
|
504
656
|
if (!stored || stored.isWasm) return;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
657
|
+
pendingUpgrade ??= (async () => {
|
|
658
|
+
installClient(await createWasmApi({
|
|
659
|
+
apiURL: stored.apiURL,
|
|
660
|
+
customHeaders: stored.customHeaders,
|
|
661
|
+
timeout: stored.timeout,
|
|
662
|
+
wasm: resolved,
|
|
663
|
+
encryptionEnabled: stored.encryption.enabled,
|
|
664
|
+
mgf1: stored.encryption.mgf1,
|
|
665
|
+
isEncryptionEnabled: isHttpEncrypted
|
|
666
|
+
}));
|
|
667
|
+
storedHttpConfig = {
|
|
668
|
+
...stored,
|
|
669
|
+
isWasm: true
|
|
670
|
+
};
|
|
671
|
+
})().finally(() => {
|
|
672
|
+
pendingUpgrade = void 0;
|
|
673
|
+
});
|
|
674
|
+
return pendingUpgrade;
|
|
518
675
|
}
|
|
519
676
|
/**
|
|
520
677
|
* When `wantsEncryption` is true, wraps a call that triggers the in-binary
|
|
@@ -1320,7 +1477,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1477
|
* the service's prewarm).
|
|
1321
1478
|
*/
|
|
1322
1479
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1480
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-BclCEzL8.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1481
|
return cryptoProviderPromise;
|
|
1325
1482
|
}
|
|
1326
1483
|
/**
|
|
@@ -1889,4 +2046,4 @@ function modulePosition(payload) {
|
|
|
1889
2046
|
return `${typeof moduleIndex === "number" ? ` index=${moduleIndex}` : ""}${typeof totalModules === "number" ? ` total=${totalModules}` : ""}`;
|
|
1890
2047
|
}
|
|
1891
2048
|
//#endregion
|
|
1892
|
-
export { upgradeToWasmHttpClient as C, resetHttpClientState as S, noteTestingSignals as _, notifyTrueSightManagerStopped as a, getStoredHttpConfig as b, trueSightHintTransition as c, fetchFeatureConfig as d, isFeatureEnabled as f, noteSessionCreated as g, noteEnvironment as h, notifyTrueSightFlowEvent as i, trueSightLog as l, isTrueSightTesting as m, initializeTrueSightDiagnostics as n, resetTrueSight as o, resetFeatureConfigCache as p, noteTrueSightCaptureActivity as r, startTrueSightCollection as s, finalizeTrueSight as t, categoryForEndpoint as u, noteTokenActivated as v, createApi as w, installFreshHttpClient as x, randomUUID as y };
|
|
2049
|
+
export { upgradeToWasmHttpClient as C, buildWasmConfigFromBasePath as D, buildDefaultWasmConfig as E, getBarcodeEnhanceModelUrl as O, resetHttpClientState as S, DEFAULT_WASM_VERSION as T, noteTestingSignals as _, notifyTrueSightManagerStopped as a, getStoredHttpConfig as b, trueSightHintTransition as c, fetchFeatureConfig as d, isFeatureEnabled as f, noteSessionCreated as g, noteEnvironment as h, notifyTrueSightFlowEvent as i, resolveWasmConfig as k, trueSightLog as l, isTrueSightTesting as m, initializeTrueSightDiagnostics as n, resetTrueSight as o, resetFeatureConfigCache as p, noteTrueSightCaptureActivity as r, startTrueSightCollection as s, finalizeTrueSight as t, categoryForEndpoint as u, noteTokenActivated as v, createApi as w, installFreshHttpClient as x, randomUUID as y };
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-C6_uuDz5.esm.js";
|
|
2
1
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-BUnRvSkr.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
6
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-tV_n-phH.esm.js";
|
|
7
7
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
9
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
10
|
import { n as CameraCompositor, t as MultipartRecordingService } from "./multipartRecordingService-CuXLH4tK.esm.js";
|
|
11
11
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
12
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-CY5YHgLl.esm.js";
|
|
13
13
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
|
|
14
14
|
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
15
15
|
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
package/dist/{videoSelfieCameraWarmer-DTw4oH_A.esm.js → videoSelfieCameraWarmer-CY5YHgLl.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-tV_n-phH.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-Bj_fyWtv.esm.js";
|
|
7
|
-
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
7
|
+
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-kCLAWdn1.esm.js";
|
|
8
8
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
10
|
import { n as getBackCameraStream } from "./backCameraStream-B0-YgP_y.esm.js";
|
|
11
11
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
12
12
|
import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-UiQ46EBa.esm.js";
|
|
13
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
13
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-AySbfIxl.esm.js";
|
|
14
14
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
16
16
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-Cis2p6O0.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-CLfBztP0.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-B7baE-Wf.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as buildWasmConfigFromBasePath, E as buildDefaultWasmConfig, T as DEFAULT_WASM_VERSION, k as resolveWasmConfig } from "./trueSightService-B8SjRCo7.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-CUUnwYxe.esm.js";
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-BUnRvSkr.esm.js";
|
|
4
5
|
//#region src/defineWasm.ts
|
|
5
6
|
function requiredModels(pipelines) {
|
|
6
7
|
const models = /* @__PURE__ */ new Set();
|