@incodetech/core 0.0.0-dev-20261002-be08227a → 0.0.0-dev-20261002-e5d75fb5
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/{FaceDetectionProvider-DTEH2hRO.esm.js → FaceDetectionProvider-DHvfONbL.esm.js} +117 -5
- package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +1 -1
- package/dist/{antifraudManager-GZ1hVKjb.esm.js → antifraudManager-nkA1Xfm1.esm.js} +1 -1
- package/dist/{apiError-WxmpMFyE.esm.js → apiError-D-IfZ3vj.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-B3rrHM0R.esm.js → authenticationManager-qVg--P6-.esm.js} +4 -4
- package/dist/{authenticationStateMachine-Ypuf362T.esm.js → authenticationStateMachine-CYtx0-TG.esm.js} +3 -4
- package/dist/certificate-issuance.esm.js +1 -1
- package/dist/{certificateIssuanceManager-J6v-R_BZ.esm.js → certificateIssuanceManager-B-qjOJde.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +1 -1
- package/dist/{consentManager-C-G9BmH0.esm.js → consentManager-BhGljt6D.esm.js} +1 -1
- package/dist/{consentManager-DgzWQpAR.d.ts → consentManager-CTdFloVJ.d.ts} +8 -8
- package/dist/{createCameraCycleOwnership-26-cuXnc.esm.js → createCameraCycleOwnership-CVNcIL95.esm.js} +23 -5
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-De2pPrbH.esm.js → crossDocumentDataMatchManager-hxUaa6y_.esm.js} +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{curpValidationManager-eLhiI_P8.esm.js → curpValidationManager-u6dRo9Bq.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/{customFieldsManager-Dv6q4FDh.esm.js → customFieldsManager-C5Vw3fdd.esm.js} +1 -1
- package/dist/{customWatchlistManager-DEBrvDy2.esm.js → customWatchlistManager-szjmQvYu.esm.js} +1 -1
- package/dist/{deepsightLoader-Cp620xVt.esm.js → deepsightLoader-BFChQCg0.esm.js} +3 -3
- package/dist/document-capture.esm.js +1 -1
- package/dist/{documentCaptureManager-DLSjvJWz.esm.js → documentCaptureManager-DfjleWn7.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C3ZlUYMz.esm.js → dynamicFormsManager-D0YTzyxB.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DChQu8sG.esm.js → dynamicFormsStateMachine-HkhR7-LP.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-D8yIc-An.esm.js → ekybManager-Bonb7aWR.esm.js} +2 -2
- package/dist/{ekybStateMachine-Dfg9eimK.esm.js → ekybStateMachine-CnGIUN7l.esm.js} +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/{ekycManager-qCfa2cno.esm.js → ekycManager-Bk2DZjuK.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CEhXjbaR.esm.js → electronicSignatureManager-Cjfy4KFU.esm.js} +2 -2
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-BG1i_Sg_.esm.js → emailManager-ppIDOf_n.esm.js} +1 -1
- package/dist/{events-ijlbX_Wx.esm.js → events-CfLLkAh7.esm.js} +4 -4
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-uwKSRwvp.esm.js → faceCaptureManagerFactory-0PP42pyT.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DvN05Fik.esm.js → faceCaptureSetup-DP0RwxVc.esm.js} +12 -10
- package/dist/{faceMatchManager-DmDy-g8s.esm.js → faceMatchManager-BOFtK2Yp.esm.js} +1 -1
- package/dist/{feature-management-Iccy3Pud.esm.js → feature-management-D5nYgSmy.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CEu5az0c.esm.js → fieldComparisonManager-B2y1ko1f.esm.js} +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-VsKFPkJk.esm.js → fiscalQrManager-gmU-xLHP.esm.js} +1 -1
- package/dist/flow.esm.js +11 -11
- package/dist/{flowCompletionService-CnEzBkv0.esm.js → flowCompletionService-BFO63Xgw.esm.js} +1 -1
- package/dist/{flowServices-BHt7yheb.esm.js → flowServices-C-_fFC-K.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BRq_f7lG.esm.js → geolocationManager-C8cVAUi_.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CxRpGoq1.esm.js → geolocationStateMachine-CfVaP-oX.esm.js} +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{governmentValidationManager-BLo9Ai_v.esm.js → governmentValidationManager-UuH2s-oi.esm.js} +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.esm.js +1 -1
- package/dist/id-selfie-flow.esm.js +7 -8
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureDefaults-Cwd4dOoi.esm.js → idCaptureDefaults-BkIwUfDZ.esm.js} +1 -1
- package/dist/{idCaptureManager-Bbcx53L_.esm.js → idCaptureManager-CqQYlHAk.esm.js} +4 -4
- package/dist/{idCaptureServices-Cuznp3D4.esm.js → idCaptureServices-BGUxPD6Z.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-Cw_F05UA.esm.js → idCaptureStateMachine-htKZmmDw.esm.js} +11 -11
- package/dist/{idOcrManager-rcTMBnAD.esm.js → idOcrManager-DcI_FVOj.esm.js} +1 -1
- package/dist/{idVerificationManager-BE5cnWcf.esm.js → idVerificationManager-BYVW3pLG.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/{identityReuseManager-C7fNvcKG.esm.js → identityReuseManager-fu5okQhu.esm.js} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-Brs1lo61.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/{mandatoryConsentManager-BWZbg1Hl.d.ts → mandatoryConsentManager-fiMVIJ-V.d.ts} +4 -4
- package/dist/{mandatoryConsentManager-COQpDZ3g.esm.js → mandatoryConsentManager-tCHVwjtG.esm.js} +1 -1
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-ZqgujdZa.esm.js → phoneManager-B6Uu_237.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/{redirectToMobileManager-BV0CBEHA.esm.js → redirectToMobileManager-CQlyUyc8.esm.js} +1 -1
- package/dist/{runChildModule-DiBvktp5.esm.js → runChildModule-C3PafJtP.esm.js} +3 -3
- package/dist/{sdkVersion-DnnSgaug.esm.js → sdkVersion-DlPLur0Z.esm.js} +1 -1
- package/dist/selfie.esm.js +9 -9
- package/dist/selfieErrorUtils-JGDbnlLg.esm.js +21 -0
- package/dist/{selfieManager-C0UDpaTP.esm.js → selfieManager-BAJJ7UgG.esm.js} +4 -4
- package/dist/{selfieStateMachine-CXEyjZ0q.esm.js → selfieStateMachine-C_W3X5CB.esm.js} +3 -4
- package/dist/{session-CoPYQelz.esm.js → session-Dw2oUqw8.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CjnAAND-.esm.js → sessionInitializer-bZiquBVK.esm.js} +4 -4
- package/dist/{setup-pvMooZFs.esm.js → setup-DIswaWUS.esm.js} +5 -5
- package/dist/signature.esm.js +1 -1
- package/dist/{signatureManager-CmIjQ-cK.esm.js → signatureManager-CEYKCuO4.esm.js} +1 -1
- package/dist/{trueSightService-B4aCBXnZ.esm.js → trueSightService-COQhaZZ8.esm.js} +2 -2
- package/dist/trust-graph.esm.js +1 -1
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-Dc5ZDf7a.esm.js → videoSelfieCameraWarmer-CHuxHrii.esm.js} +4 -5
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/{watchlistForBusinessManager-Lcvy9ZUU.esm.js → watchlistForBusinessManager-cbMppk5K.esm.js} +1 -1
- package/dist/{watchlistManager-C2fFRjfx.esm.js → watchlistManager-F1bI2Ad4.esm.js} +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/selfieErrorUtils-CLXOOKJT.esm.js +0 -90
- package/dist/types-BN5RPPIZ.esm.js +0 -34
package/dist/{mandatoryConsentManager-COQpDZ3g.esm.js → mandatoryConsentManager-tCHVwjtG.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
3
3
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CZKXCn6v.esm.js";
|
|
4
4
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-DnBcNUNh.esm.js";
|
|
4
4
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
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-Cjfy4KFU.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-tGbjPhIm.esm.js";
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-CQlyUyc8.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-BV0CBEHA.esm.js → redirectToMobileManager-CQlyUyc8.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
5
5
|
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-tGbjPhIm.esm.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
1
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
|
-
import { C as createEventBus } from "./events-
|
|
3
|
+
import { C as createEventBus } from "./events-CfLLkAh7.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
|
@@ -197,7 +197,7 @@ function attachFlowEventEmitter(manager, options = {}) {
|
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/internal/orchestration/runChildModule.ts
|
|
200
|
-
const runChildModule = fromCallback(({ sendBack, input }) => {
|
|
200
|
+
const runChildModule = /* @__PURE__ */ fromCallback(({ sendBack, input }) => {
|
|
201
201
|
const { machine, config } = input;
|
|
202
202
|
if (!machine) return () => {};
|
|
203
203
|
const actor = createActor(machine, { input: { config } });
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-DIswaWUS.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-CfLLkAh7.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
12
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DP0RwxVc.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-0PP42pyT.esm.js";
|
|
8
|
+
import { c as processFace } from "./FaceDetectionProvider-DHvfONbL.esm.js";
|
|
9
|
+
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-C_W3X5CB.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BAJJ7UgG.esm.js";
|
|
12
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-Brs1lo61.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
15
15
|
* face-capture state tree; only the upload/process step is local instead of
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { d as FACE_ERROR_CODES } from "./FaceDetectionProvider-DHvfONbL.esm.js";
|
|
2
|
+
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
|
+
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
|
+
const isFaceErrorCode = (value) => {
|
|
5
|
+
return FACE_ERROR_CODE_VALUES.includes(value);
|
|
6
|
+
};
|
|
7
|
+
const getFaceErrorCodeFromUnknown = (value) => {
|
|
8
|
+
if (value instanceof Error && typeof value.message === "string") return isFaceErrorCode(value.message) ? value.message : void 0;
|
|
9
|
+
if (typeof value === "string") return isFaceErrorCode(value) ? value : void 0;
|
|
10
|
+
};
|
|
11
|
+
const validateUploadResponse = ({ config, response }) => {
|
|
12
|
+
if (!response) return FACE_ERROR_CODES.SERVER;
|
|
13
|
+
if (response.confidence !== 0) return FACE_ERROR_CODES.LIVENESS;
|
|
14
|
+
if (config.validateBrightness && !response.isBright) return FACE_ERROR_CODES.BRIGHTNESS;
|
|
15
|
+
if (config.validateLenses && response.hasLenses) return FACE_ERROR_CODES.LENSES;
|
|
16
|
+
if (config.validateFaceMask && response.hasFaceMask) return FACE_ERROR_CODES.MASK;
|
|
17
|
+
if (config.validateClosedEyes && response.hasClosedEyes) return FACE_ERROR_CODES.CLOSED_EYES;
|
|
18
|
+
if (config.validateHeadCover && response.hasHeadCover) return FACE_ERROR_CODES.HEAD_COVER;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { validateUploadResponse as n, getFaceErrorCodeFromUnknown as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-DIswaWUS.esm.js";
|
|
3
|
+
import { n as eventModuleNames } from "./events-CfLLkAh7.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-0PP42pyT.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-C_W3X5CB.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
5
|
-
import {
|
|
6
|
-
import { n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-CLXOOKJT.esm.js";
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DP0RwxVc.esm.js";
|
|
4
|
+
import { c as processFace, d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-DHvfONbL.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-JGDbnlLg.esm.js";
|
|
7
6
|
/**
|
|
8
7
|
* The selfie capture state machine.
|
|
9
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
2
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import "./sessionInitializer-
|
|
3
|
+
import "./sessionInitializer-bZiquBVK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-D-IfZ3vj.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,9 +1,9 @@
|
|
|
1
1
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-
|
|
4
|
-
import { t as IncodeApiError } from "./apiError-
|
|
5
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
6
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
3
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-bZiquBVK.esm.js";
|
|
4
|
+
import { t as IncodeApiError } from "./apiError-D-IfZ3vj.esm.js";
|
|
5
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-Dw2oUqw8.esm.js";
|
|
6
|
+
import { n as getFinishStatus } from "./flowCompletionService-BFO63Xgw.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionExpired.ts
|
|
8
8
|
var SessionExpiredError = class extends Error {
|
|
9
9
|
constructor() {
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
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-COQhaZZ8.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D5nYgSmy.esm.js";
|
|
3
3
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { v as addEvent, y as getAnalyticsBatcher } from "./events-
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
+
import { v as addEvent, y as getAnalyticsBatcher } from "./events-CfLLkAh7.esm.js";
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-DlPLur0Z.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-Dz3XWA64.esm.js";
|
|
8
8
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-
|
|
1
|
+
import { D as resolveWasmConfig, S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, l as trueSightLog, o as resetTrueSight, t as finalizeTrueSight, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
2
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-DLq_t-Zu.esm.js";
|
|
3
3
|
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-Q_iUpxa8.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-D5nYgSmy.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, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-
|
|
9
|
-
import { a as resetSessionInit, 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-
|
|
8
|
+
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-CfLLkAh7.esm.js";
|
|
9
|
+
import { a as resetSessionInit, 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-bZiquBVK.esm.js";
|
|
10
10
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
11
11
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
12
12
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
13
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
13
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-C-_fFC-K.esm.js";
|
|
14
14
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
15
15
|
var BrowserPageLifecycleProvider = class {
|
|
16
16
|
sendBeacon(url, body, contentType = "application/json") {
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as signatureMachine } from "./signatureStateMachine-C6Wh9ylX.esm.js";
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-CEYKCuO4.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.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-Bg3FuvIs.esm.js";
|
|
4
4
|
import { t as signatureMachine } from "./signatureStateMachine-C6Wh9ylX.esm.js";
|
|
@@ -2,8 +2,8 @@ import { a as setWebApiHttpTransport, f as deriveSiblingJsPath, i as initializeW
|
|
|
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 { n as reportHttpError, t as HttpRequestError } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
5
|
-
import { n as eventModuleNames } from "./events-
|
|
6
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { n as eventModuleNames } from "./events-CfLLkAh7.esm.js";
|
|
6
|
+
import { t as SDK_VERSION } from "./sdkVersion-DlPLur0Z.esm.js";
|
|
7
7
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
8
8
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
9
9
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
package/dist/trust-graph.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.esm.js";
|
|
2
2
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
3
3
|
//#region src/modules/trust-graph/trustGraphStateMachine.ts
|
|
4
4
|
/**
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-DIswaWUS.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-Bs3D8B_G.esm.js";
|
|
6
6
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
7
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
7
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-C-_fFC-K.esm.js";
|
|
8
8
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
10
10
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
11
11
|
import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-CMjkhS2x.esm.js";
|
|
12
|
-
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-CHuxHrii.esm.js";
|
|
14
14
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
|
|
15
15
|
//#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
|
|
16
16
|
var wave_encoder_default = () => {
|
package/dist/{videoSelfieCameraWarmer-Dc5ZDf7a.esm.js → videoSelfieCameraWarmer-CHuxHrii.esm.js}
RENAMED
|
@@ -1,16 +1,15 @@
|
|
|
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-Bs3D8B_G.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-C-_fFC-K.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-B9IqVf3c.esm.js";
|
|
7
|
-
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
|
+
import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-DHvfONbL.esm.js";
|
|
9
8
|
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CMjkhS2x.esm.js";
|
|
10
9
|
import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
11
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
12
|
-
import {
|
|
13
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
+
import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-JGDbnlLg.esm.js";
|
|
12
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BkIwUfDZ.esm.js";
|
|
14
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
15
14
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
16
15
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +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-DPPQlS-U.esm.js";
|
|
2
|
-
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-
|
|
2
|
+
import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-COQhaZZ8.esm.js";
|
|
3
3
|
import { o as warmupWasm } from "./warmup-DLq_t-Zu.esm.js";
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-DIswaWUS.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DsLzqEQG.esm.js";
|
|
2
|
-
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-
|
|
2
|
+
import { n as createWatchlistForBusinessManagerFromActor, t as createWatchlistForBusinessManager } from "./watchlistForBusinessManager-cbMppk5K.esm.js";
|
|
3
3
|
export { createWatchlistForBusinessManager, createWatchlistForBusinessManagerFromActor, watchlistForBusinessMachine };
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as watchlistMachine } from "./watchlistStateMachine-DU28IiMQ.esm.js";
|
|
2
|
-
import { t as createWatchlistManager } from "./watchlistManager-
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-F1bI2Ad4.esm.js";
|
|
3
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.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-Bg3FuvIs.esm.js";
|
|
4
4
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DsLzqEQG.esm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CfLLkAh7.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-Bg3FuvIs.esm.js";
|
|
4
4
|
import { t as watchlistMachine } from "./watchlistStateMachine-DU28IiMQ.esm.js";
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
2
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D5nYgSmy.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
4
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-CfLLkAh7.esm.js";
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-bZiquBVK.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
7
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
8
|
-
import { v as toEkybConfig } from "./flowServices-
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-D-IfZ3vj.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-C-_fFC-K.esm.js";
|
|
9
9
|
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
10
10
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
11
11
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
12
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-Cjfy4KFU.esm.js";
|
|
13
13
|
import "./ae-signature.esm.js";
|
|
14
14
|
import { t as antifraudMachine } from "./antifraudStateMachine-bbi6-rKP.esm.js";
|
|
15
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CYtx0-TG.esm.js";
|
|
16
16
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DwLGw_a2.esm.js";
|
|
17
17
|
import { t as consentMachine } from "./consentStateMachine-fvRt5D6e.esm.js";
|
|
18
18
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-Sf4rGn_0.esm.js";
|
|
19
19
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BtlZ6qoX.esm.js";
|
|
20
20
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CZ2QX6QO.esm.js";
|
|
21
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
22
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-HkhR7-LP.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-CnGIUN7l.esm.js";
|
|
23
23
|
import { t as ekycMachine } from "./ekycStateMachine-Lqh8tcY3.esm.js";
|
|
24
24
|
import { t as emailMachine } from "./emailStateMachine-NiunNxhH.esm.js";
|
|
25
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
26
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-C_W3X5CB.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-htKZmmDw.esm.js";
|
|
27
27
|
import { t as phoneMachine } from "./phoneStateMachine-pue0_Jsi.esm.js";
|
|
28
28
|
import { t as watchlistMachine } from "./watchlistStateMachine-DU28IiMQ.esm.js";
|
|
29
29
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DsLzqEQG.esm.js";
|
|
@@ -32,13 +32,13 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CZK
|
|
|
32
32
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-OefnDFiX.esm.js";
|
|
33
33
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-tGbjPhIm.esm.js";
|
|
34
34
|
import { t as signatureMachine } from "./signatureStateMachine-C6Wh9ylX.esm.js";
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CfVaP-oX.esm.js";
|
|
36
36
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BvvrC_3A.esm.js";
|
|
37
37
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-BtrFQSDe.esm.js";
|
|
38
38
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-B2h14s3J.esm.js";
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
41
|
-
import { n as isAdvanceableError } from "./advanceableErrors-
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-BFO63Xgw.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-C3PafJtP.esm.js";
|
|
41
|
+
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
42
42
|
import "./qe-signature.esm.js";
|
|
43
43
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-DQTlyw98.esm.js";
|
|
44
44
|
//#region src/internal/orchestration/defaultModules.ts
|
package/package.json
CHANGED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
4
|
-
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
5
|
-
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
6
|
-
//#region src/modules/selfie/selfieUploadService.ts
|
|
7
|
-
/**
|
|
8
|
-
* Uploads a selfie image to the backend.
|
|
9
|
-
*/
|
|
10
|
-
async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", deepsightService }) {
|
|
11
|
-
try {
|
|
12
|
-
const payload = {
|
|
13
|
-
base64Image: encryptedBase64Image,
|
|
14
|
-
faceCoordinates: faceCoordinates ?? void 0,
|
|
15
|
-
encrypted: true,
|
|
16
|
-
clientInfo: { deviceClass: getDeviceClass() },
|
|
17
|
-
metadata: metadata ?? void 0
|
|
18
|
-
};
|
|
19
|
-
const query = { imageType };
|
|
20
|
-
if (recordingId) query.recordingId = recordingId;
|
|
21
|
-
const res = await api.post(endpoints.selfie, payload, {
|
|
22
|
-
signal,
|
|
23
|
-
query
|
|
24
|
-
});
|
|
25
|
-
if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
|
|
26
|
-
if (deepsightService) addDeviceStats({
|
|
27
|
-
frontIdStatsAnalysisStatus: "",
|
|
28
|
-
backIdStatsAnalysisStatus: "",
|
|
29
|
-
selfieStatsAnalysisStatus: deepsightService.getAnalysisStatus(),
|
|
30
|
-
motionStatus: deepsightService.getMotionStatus()
|
|
31
|
-
});
|
|
32
|
-
return res.data;
|
|
33
|
-
} catch (error) {
|
|
34
|
-
const errorCode = getFaceErrorCodeFromHttpError(error);
|
|
35
|
-
throw withTransportStatus(new Error(errorCode ?? FACE_ERROR_CODES.SERVER), error);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Copies the HTTP status of `source` onto `target`. The code alone cannot say
|
|
40
|
-
* whether the request got a verdict or never reached the backend — a network
|
|
41
|
-
* failure and a 5xx both map to `SERVER_ERROR` — so a caller that retries
|
|
42
|
-
* transport failures needs the status to survive this mapping.
|
|
43
|
-
*/
|
|
44
|
-
function withTransportStatus(target, source) {
|
|
45
|
-
if (typeof source === "object" && source !== null && "status" in source && typeof source.status === "number") return Object.assign(target, { status: source.status });
|
|
46
|
-
return target;
|
|
47
|
-
}
|
|
48
|
-
const getFaceErrorCodeFromHttpError = (error) => {
|
|
49
|
-
const err = error;
|
|
50
|
-
if (err.ok !== false || typeof err.status !== "number") return;
|
|
51
|
-
if (err.status !== 400) return FACE_ERROR_CODES.SERVER;
|
|
52
|
-
if (typeof err.data?.status !== "number") return FACE_ERROR_CODES.BAD_REQUEST;
|
|
53
|
-
return {
|
|
54
|
-
3004: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
55
|
-
3005: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
56
|
-
3006: FACE_ERROR_CODES.TOO_BLURRY,
|
|
57
|
-
3007: FACE_ERROR_CODES.TOO_DARK,
|
|
58
|
-
4010: FACE_ERROR_CODES.MULTIPLE_FACES,
|
|
59
|
-
4019: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
60
|
-
4077: FACE_ERROR_CODES.BAD_PHOTO_QUALITY,
|
|
61
|
-
4078: FACE_ERROR_CODES.FACE_OCCLUDED
|
|
62
|
-
}[err.data.status] ?? FACE_ERROR_CODES.BAD_REQUEST;
|
|
63
|
-
};
|
|
64
|
-
async function processFace(imageType = "selfie", signal) {
|
|
65
|
-
return (await api.post(endpoints.processFace, {}, {
|
|
66
|
-
query: { imageType },
|
|
67
|
-
signal
|
|
68
|
-
})).data;
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
72
|
-
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
73
|
-
const isFaceErrorCode = (value) => {
|
|
74
|
-
return FACE_ERROR_CODE_VALUES.includes(value);
|
|
75
|
-
};
|
|
76
|
-
const getFaceErrorCodeFromUnknown = (value) => {
|
|
77
|
-
if (value instanceof Error && typeof value.message === "string") return isFaceErrorCode(value.message) ? value.message : void 0;
|
|
78
|
-
if (typeof value === "string") return isFaceErrorCode(value) ? value : void 0;
|
|
79
|
-
};
|
|
80
|
-
const validateUploadResponse = ({ config, response }) => {
|
|
81
|
-
if (!response) return FACE_ERROR_CODES.SERVER;
|
|
82
|
-
if (response.confidence !== 0) return FACE_ERROR_CODES.LIVENESS;
|
|
83
|
-
if (config.validateBrightness && !response.isBright) return FACE_ERROR_CODES.BRIGHTNESS;
|
|
84
|
-
if (config.validateLenses && response.hasLenses) return FACE_ERROR_CODES.LENSES;
|
|
85
|
-
if (config.validateFaceMask && response.hasFaceMask) return FACE_ERROR_CODES.MASK;
|
|
86
|
-
if (config.validateClosedEyes && response.hasClosedEyes) return FACE_ERROR_CODES.CLOSED_EYES;
|
|
87
|
-
if (config.validateHeadCover && response.hasHeadCover) return FACE_ERROR_CODES.HEAD_COVER;
|
|
88
|
-
};
|
|
89
|
-
//#endregion
|
|
90
|
-
export { uploadSelfie as i, validateUploadResponse as n, processFace as r, getFaceErrorCodeFromUnknown as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region src/internal/faceCapture/types.ts
|
|
2
|
-
const FACE_ERROR_CODES = {
|
|
3
|
-
FACE_OCCLUDED: "FACE_OCCLUDED",
|
|
4
|
-
LIVENESS: "LIVENESS_ERROR",
|
|
5
|
-
BRIGHTNESS: "BRIGHTNESS_ERROR",
|
|
6
|
-
LENSES: "LENSES_ERROR",
|
|
7
|
-
MASK: "MASK_ERROR",
|
|
8
|
-
CLOSED_EYES: "CLOSED_EYES_ERROR",
|
|
9
|
-
HEAD_COVER: "HEAD_COVER_ERROR",
|
|
10
|
-
SERVER: "SERVER_ERROR",
|
|
11
|
-
FACE_NOT_FOUND: "FACE_NOT_FOUND",
|
|
12
|
-
MULTIPLE_FACES: "MULTIPLE_FACES",
|
|
13
|
-
TOO_BLURRY: "TOO_BLURRY_ERROR",
|
|
14
|
-
TOO_DARK: "TOO_DARK_ERROR",
|
|
15
|
-
USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED",
|
|
16
|
-
SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED",
|
|
17
|
-
FACE_TOO_DARK: "FACE_TOO_DARK",
|
|
18
|
-
LENSES_DETECTED: "LENSES_DETECTED",
|
|
19
|
-
FACE_MASK_DETECTED: "FACE_MASK_DETECTED",
|
|
20
|
-
CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED",
|
|
21
|
-
HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED",
|
|
22
|
-
FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED",
|
|
23
|
-
FACE_TOO_SMALL: "FACE_TOO_SMALL",
|
|
24
|
-
FACE_TOO_BLURRY: "FACE_TOO_BLURRY",
|
|
25
|
-
BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY",
|
|
26
|
-
PROCESSING_ERROR: "PROCESSING_ERROR",
|
|
27
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
28
|
-
NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER",
|
|
29
|
-
HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED",
|
|
30
|
-
SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY",
|
|
31
|
-
NO_MORE_ATTEMPTS: "NO_MORE_ATTEMPTS"
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { FACE_ERROR_CODES as t };
|