@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/{FaceDetectionProvider-DTEH2hRO.esm.js → FaceDetectionProvider-DHvfONbL.esm.js}
RENAMED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
1
|
+
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
2
|
import { s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
4
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
5
|
-
import "./
|
|
4
|
+
import { t as ensureWasmPipelines } from "./setup-DIswaWUS.esm.js";
|
|
5
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
6
|
+
import "./sessionInitializer-bZiquBVK.esm.js";
|
|
7
|
+
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
6
8
|
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
7
9
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
10
|
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
9
11
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
10
12
|
import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CMjkhS2x.esm.js";
|
|
11
13
|
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
|
|
14
|
+
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
12
15
|
//#region src/internal/faceCapture/onDeviceFaceResults.ts
|
|
13
16
|
/**
|
|
14
17
|
* On-device still-face capture is owned by the protected camera-cycle actor.
|
|
@@ -17,6 +20,115 @@ import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStre
|
|
|
17
20
|
*/
|
|
18
21
|
const isOnDeviceMode = (config) => config.onDeviceFaceResultsSubmissionEnabled === true;
|
|
19
22
|
//#endregion
|
|
23
|
+
//#region src/internal/faceCapture/types.ts
|
|
24
|
+
const FACE_ERROR_CODES = {
|
|
25
|
+
FACE_OCCLUDED: "FACE_OCCLUDED",
|
|
26
|
+
LIVENESS: "LIVENESS_ERROR",
|
|
27
|
+
BRIGHTNESS: "BRIGHTNESS_ERROR",
|
|
28
|
+
LENSES: "LENSES_ERROR",
|
|
29
|
+
MASK: "MASK_ERROR",
|
|
30
|
+
CLOSED_EYES: "CLOSED_EYES_ERROR",
|
|
31
|
+
HEAD_COVER: "HEAD_COVER_ERROR",
|
|
32
|
+
SERVER: "SERVER_ERROR",
|
|
33
|
+
FACE_NOT_FOUND: "FACE_NOT_FOUND",
|
|
34
|
+
MULTIPLE_FACES: "MULTIPLE_FACES",
|
|
35
|
+
TOO_BLURRY: "TOO_BLURRY_ERROR",
|
|
36
|
+
TOO_DARK: "TOO_DARK_ERROR",
|
|
37
|
+
USER_IS_NOT_RECOGNIZED: "USER_IS_NOT_RECOGNIZED",
|
|
38
|
+
SPOOF_ATTEMPT_DETECTED: "SPOOF_ATTEMPT_DETECTED",
|
|
39
|
+
FACE_TOO_DARK: "FACE_TOO_DARK",
|
|
40
|
+
LENSES_DETECTED: "LENSES_DETECTED",
|
|
41
|
+
FACE_MASK_DETECTED: "FACE_MASK_DETECTED",
|
|
42
|
+
CLOSED_EYES_DETECTED: "CLOSED_EYES_DETECTED",
|
|
43
|
+
HEAD_COVER_DETECTED: "HEAD_COVER_DETECTED",
|
|
44
|
+
FACE_CROPPING_FAILED: "FACE_CROPPING_FAILED",
|
|
45
|
+
FACE_TOO_SMALL: "FACE_TOO_SMALL",
|
|
46
|
+
FACE_TOO_BLURRY: "FACE_TOO_BLURRY",
|
|
47
|
+
BAD_PHOTO_QUALITY: "BAD_PHOTO_QUALITY",
|
|
48
|
+
PROCESSING_ERROR: "PROCESSING_ERROR",
|
|
49
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
50
|
+
NONEXISTENT_CUSTOMER: "NONEXISTENT_CUSTOMER",
|
|
51
|
+
HINT_NOT_PROVIDED: "HINT_NOT_PROVIDED",
|
|
52
|
+
SELFIE_IMAGE_LOW_QUALITY: "SELFIE_IMAGE_LOW_QUALITY",
|
|
53
|
+
NO_MORE_ATTEMPTS: "NO_MORE_ATTEMPTS"
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/internal/faceCapture/faceUploadErrorCode.ts
|
|
57
|
+
/** `status` values in the body of a 400 from a face upload (`/omni/add/face`). */
|
|
58
|
+
const FACE_UPLOAD_ERROR_CODES = {
|
|
59
|
+
3004: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
60
|
+
3005: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
61
|
+
3006: FACE_ERROR_CODES.TOO_BLURRY,
|
|
62
|
+
3007: FACE_ERROR_CODES.TOO_DARK,
|
|
63
|
+
4010: FACE_ERROR_CODES.MULTIPLE_FACES,
|
|
64
|
+
4019: FACE_ERROR_CODES.FACE_NOT_FOUND,
|
|
65
|
+
4077: FACE_ERROR_CODES.BAD_PHOTO_QUALITY,
|
|
66
|
+
4078: FACE_ERROR_CODES.FACE_OCCLUDED
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Maps a rejected face upload to the error the capture screen shows. Only a
|
|
70
|
+
* 400 carries a verdict on the face; any other HTTP status is a server error.
|
|
71
|
+
*/
|
|
72
|
+
function getFaceUploadErrorCode(httpStatus, responseStatus) {
|
|
73
|
+
if (httpStatus !== 400) return FACE_ERROR_CODES.SERVER;
|
|
74
|
+
if (responseStatus === void 0) return FACE_ERROR_CODES.BAD_REQUEST;
|
|
75
|
+
return FACE_UPLOAD_ERROR_CODES[responseStatus] ?? FACE_ERROR_CODES.BAD_REQUEST;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/modules/selfie/selfieUploadService.ts
|
|
79
|
+
/**
|
|
80
|
+
* Uploads a selfie image to the backend.
|
|
81
|
+
*/
|
|
82
|
+
async function uploadSelfie({ encryptedBase64Image, faceCoordinates, signal, metadata, recordingId, imageType = "selfie", deepsightService }) {
|
|
83
|
+
try {
|
|
84
|
+
const payload = {
|
|
85
|
+
base64Image: encryptedBase64Image,
|
|
86
|
+
faceCoordinates: faceCoordinates ?? void 0,
|
|
87
|
+
encrypted: true,
|
|
88
|
+
clientInfo: { deviceClass: getDeviceClass() },
|
|
89
|
+
metadata: metadata ?? void 0
|
|
90
|
+
};
|
|
91
|
+
const query = { imageType };
|
|
92
|
+
if (recordingId) query.recordingId = recordingId;
|
|
93
|
+
const res = await api.post(endpoints.selfie, payload, {
|
|
94
|
+
signal,
|
|
95
|
+
query
|
|
96
|
+
});
|
|
97
|
+
if (!res.ok) throw new Error(`POST ${endpoints.selfie} failed: ${res.status} ${res.statusText}`);
|
|
98
|
+
if (deepsightService) addDeviceStats({
|
|
99
|
+
frontIdStatsAnalysisStatus: "",
|
|
100
|
+
backIdStatsAnalysisStatus: "",
|
|
101
|
+
selfieStatsAnalysisStatus: deepsightService.getAnalysisStatus(),
|
|
102
|
+
motionStatus: deepsightService.getMotionStatus()
|
|
103
|
+
});
|
|
104
|
+
return res.data;
|
|
105
|
+
} catch (error) {
|
|
106
|
+
const errorCode = getFaceErrorCodeFromHttpError(error);
|
|
107
|
+
throw withTransportStatus(new Error(errorCode ?? FACE_ERROR_CODES.SERVER), error);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Copies the HTTP status of `source` onto `target`. The code alone cannot say
|
|
112
|
+
* whether the request got a verdict or never reached the backend — a network
|
|
113
|
+
* failure and a 5xx both map to `SERVER_ERROR` — so a caller that retries
|
|
114
|
+
* transport failures needs the status to survive this mapping.
|
|
115
|
+
*/
|
|
116
|
+
function withTransportStatus(target, source) {
|
|
117
|
+
if (typeof source === "object" && source !== null && "status" in source && typeof source.status === "number") return Object.assign(target, { status: source.status });
|
|
118
|
+
return target;
|
|
119
|
+
}
|
|
120
|
+
const getFaceErrorCodeFromHttpError = (error) => {
|
|
121
|
+
const err = error;
|
|
122
|
+
if (err.ok !== false || typeof err.status !== "number") return;
|
|
123
|
+
return getFaceUploadErrorCode(err.status, typeof err.data?.status === "number" ? err.data.status : void 0);
|
|
124
|
+
};
|
|
125
|
+
async function processFace(imageType = "selfie", signal) {
|
|
126
|
+
return (await api.post(endpoints.processFace, {}, {
|
|
127
|
+
query: { imageType },
|
|
128
|
+
signal
|
|
129
|
+
})).data;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
20
132
|
//#region src/internal/faceCapture/faceCaptureServices.ts
|
|
21
133
|
function sendLabelInspectionEvent() {
|
|
22
134
|
return addDeviceStats({ cameraLabelInspectionStatus: "FAIL" });
|
|
@@ -156,7 +268,7 @@ function startDetection(params) {
|
|
|
156
268
|
};
|
|
157
269
|
}
|
|
158
270
|
async function initializeDeepsightSession(options) {
|
|
159
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
271
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BFChQCg0.esm.js");
|
|
160
272
|
return loadDeepsightSession({
|
|
161
273
|
ds: options.ds,
|
|
162
274
|
storage: options.storage
|
|
@@ -428,4 +540,4 @@ var FaceDetectionProvider = class extends BaseWasmProvider {
|
|
|
428
540
|
}
|
|
429
541
|
};
|
|
430
542
|
//#endregion
|
|
431
|
-
export { sendLabelInspectionEvent as a,
|
|
543
|
+
export { sendLabelInspectionEvent as a, processFace as c, FACE_ERROR_CODES as d, isOnDeviceMode as f, initializeDeepsightSession as i, uploadSelfie as l, encryptSelfieImage as n, startDetection as o, initializeCamera as r, stopStream as s, FaceDetectionProvider as t, getFaceUploadErrorCode as u };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
2
1
|
//#region src/internal/orchestration/advanceableErrors.ts
|
|
3
2
|
const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED";
|
|
4
3
|
/**
|
|
@@ -8,11 +7,13 @@ const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION
|
|
|
8
7
|
* "retryable" (the module's own concern): it only decides what the flow does
|
|
9
8
|
* *after* a terminal error. Note `NO_MORE_ATTEMPTS` subsumes the former
|
|
10
9
|
* `USER_IS_NOT_RECOGNIZED` entry — see the contract test for the full matrix.
|
|
10
|
+
* The face codes are literals (checked against `FaceErrorCode`), so modules
|
|
11
|
+
* without face capture do not bundle `FACE_ERROR_CODES`.
|
|
11
12
|
*/
|
|
12
13
|
const ADVANCEABLE_ERROR_CODES = [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
"NONEXISTENT_CUSTOMER",
|
|
15
|
+
"HINT_NOT_PROVIDED",
|
|
16
|
+
"NO_MORE_ATTEMPTS",
|
|
16
17
|
VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE
|
|
17
18
|
];
|
|
18
19
|
/** True when the given code is a module terminal error the flow should advance past rather than fail on. */
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Cjfy4KFU.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as antifraudMachine } from "./antifraudStateMachine-bbi6-rKP.esm.js";
|
|
2
|
-
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-
|
|
2
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-nkA1Xfm1.esm.js";
|
|
3
3
|
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -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 antifraudMachine } from "./antifraudStateMachine-bbi6-rKP.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CYtx0-TG.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-qVg--P6-.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-B3rrHM0R.esm.js → authenticationManager-qVg--P6-.esm.js}
RENAMED
|
@@ -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 authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-0PP42pyT.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CYtx0-TG.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(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 { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-26-cuXnc.esm.js";
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DP0RwxVc.esm.js";
|
|
4
|
+
import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-DHvfONbL.esm.js";
|
|
5
|
+
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CVNcIL95.esm.js";
|
|
7
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
8
7
|
const AUTH_ERROR_MAP = {
|
|
9
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DwLGw_a2.esm.js";
|
|
2
|
-
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-
|
|
2
|
+
import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-B-qjOJde.esm.js";
|
|
3
3
|
export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
|
|
@@ -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 { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DwLGw_a2.esm.js";
|
|
4
4
|
//#region src/modules/certificate-issuance/certificateIssuanceActor.ts
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-CTdFloVJ.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as consentMachine } from "./consentStateMachine-fvRt5D6e.esm.js";
|
|
2
|
-
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-
|
|
2
|
+
import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-BhGljt6D.esm.js";
|
|
3
3
|
export { consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -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 consentMachine } from "./consentStateMachine-fvRt5D6e.esm.js";
|
|
@@ -77,14 +77,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
77
77
|
type: "setError";
|
|
78
78
|
params: NonReducibleUnknown;
|
|
79
79
|
};
|
|
80
|
-
setConsentData: {
|
|
81
|
-
type: "setConsentData";
|
|
82
|
-
params: NonReducibleUnknown;
|
|
83
|
-
};
|
|
84
|
-
toggleCheckbox: {
|
|
85
|
-
type: "toggleCheckbox";
|
|
86
|
-
params: NonReducibleUnknown;
|
|
87
|
-
};
|
|
88
80
|
clearError: {
|
|
89
81
|
type: "clearError";
|
|
90
82
|
params: NonReducibleUnknown;
|
|
@@ -93,6 +85,14 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
93
85
|
type: "resetContext";
|
|
94
86
|
params: NonReducibleUnknown;
|
|
95
87
|
};
|
|
88
|
+
setConsentData: {
|
|
89
|
+
type: "setConsentData";
|
|
90
|
+
params: NonReducibleUnknown;
|
|
91
|
+
};
|
|
92
|
+
toggleCheckbox: {
|
|
93
|
+
type: "toggleCheckbox";
|
|
94
|
+
params: NonReducibleUnknown;
|
|
95
|
+
};
|
|
96
96
|
}>, {
|
|
97
97
|
type: "canSubmit";
|
|
98
98
|
params: unknown;
|
|
@@ -163,6 +163,21 @@ const cameraCycleProvider = new CameraCycleProvider();
|
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/internal/cameraCycle/protectedAttemptActor.ts
|
|
165
165
|
/**
|
|
166
|
+
* Reads the HTTP status and the body's numeric `status` from a rejected
|
|
167
|
+
* protected upload, so the face flow can show why the backend rejected the
|
|
168
|
+
* capture. Only these two numbers leave the actor, never the response itself.
|
|
169
|
+
*/
|
|
170
|
+
const getHttpFailureDetails = (error) => {
|
|
171
|
+
if (typeof error !== "object" || error === null) return {};
|
|
172
|
+
const { status, data } = error;
|
|
173
|
+
if (typeof status !== "number") return {};
|
|
174
|
+
const responseStatus = typeof data === "object" && data !== null ? data.status : void 0;
|
|
175
|
+
return typeof responseStatus === "number" ? {
|
|
176
|
+
httpStatus: status,
|
|
177
|
+
responseStatus
|
|
178
|
+
} : { httpStatus: status };
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
166
181
|
* Runs the protected lifecycle inside an owning callback actor. Keeping the
|
|
167
182
|
* implementation callable lets domain controllers compose the exact same
|
|
168
183
|
* lifecycle without placing its capability-bearing input in machine context.
|
|
@@ -228,14 +243,15 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
228
243
|
input.releaseUnadoptedStream(stream);
|
|
229
244
|
} catch {}
|
|
230
245
|
};
|
|
231
|
-
const reportFailure = (stage, code) => {
|
|
246
|
+
const reportFailure = (stage, code, http = {}) => {
|
|
232
247
|
if (!active) return;
|
|
233
248
|
sendParent({
|
|
234
249
|
type: "PROTECTED_ATTEMPT_FAILED",
|
|
235
250
|
attemptId: input.attemptId,
|
|
236
251
|
failure: {
|
|
237
252
|
stage,
|
|
238
|
-
code
|
|
253
|
+
code,
|
|
254
|
+
...http
|
|
239
255
|
}
|
|
240
256
|
});
|
|
241
257
|
};
|
|
@@ -563,16 +579,18 @@ const runProtectedAttempt = ({ input, sendBack, receive }) => {
|
|
|
563
579
|
if (backgrounded) pendingDeliveryEvent = event;
|
|
564
580
|
else sendParent(event);
|
|
565
581
|
}
|
|
566
|
-
} catch {
|
|
582
|
+
} catch (error) {
|
|
583
|
+
const http = getHttpFailureDetails(error);
|
|
567
584
|
if (backgrounded) pendingDeliveryEvent = {
|
|
568
585
|
type: "PROTECTED_ATTEMPT_FAILED",
|
|
569
586
|
attemptId: input.attemptId,
|
|
570
587
|
failure: {
|
|
571
588
|
stage: "upload",
|
|
572
|
-
code: "protected-attempt-upload-failed"
|
|
589
|
+
code: "protected-attempt-upload-failed",
|
|
590
|
+
...http
|
|
573
591
|
}
|
|
574
592
|
};
|
|
575
|
-
else reportFailure("upload", "protected-attempt-upload-failed");
|
|
593
|
+
else reportFailure("upload", "protected-attempt-upload-failed", http);
|
|
576
594
|
} finally {
|
|
577
595
|
deliveryInFlight = false;
|
|
578
596
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-
|
|
1
|
+
import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-hxUaa6y_.esm.js";
|
|
2
2
|
export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.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 { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
4
4
|
import { s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Sf4rGn_0.esm.js";
|
|
2
|
-
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-
|
|
2
|
+
import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-u6dRo9Bq.esm.js";
|
|
3
3
|
export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
|
package/dist/{curpValidationManager-eLhiI_P8.esm.js → curpValidationManager-u6dRo9Bq.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 { 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 { i as isValidCurp, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Sf4rGn_0.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-
|
|
1
|
+
import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-C5Vw3fdd.esm.js";
|
|
2
2
|
export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BtlZ6qoX.esm.js";
|
|
2
|
-
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-
|
|
2
|
+
import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-szjmQvYu.esm.js";
|
|
3
3
|
export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.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 { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
5
5
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
package/dist/{customWatchlistManager-DEBrvDy2.esm.js → customWatchlistManager-szjmQvYu.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 { 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 customWatchlistMachine } from "./customWatchlistStateMachine-BtlZ6qoX.esm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-COQhaZZ8.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
3
|
-
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-
|
|
4
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
3
|
+
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-bZiquBVK.esm.js";
|
|
4
|
+
import { t as SDK_VERSION } from "./sdkVersion-DlPLur0Z.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CZ2QX6QO.esm.js";
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DfjleWn7.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
package/dist/{documentCaptureManager-DLSjvJWz.esm.js → documentCaptureManager-DfjleWn7.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 { 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 { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-CZ2QX6QO.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-HkhR7-LP.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-D0YTzyxB.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-HkhR7-LP.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-DChQu8sG.esm.js → dynamicFormsStateMachine-HkhR7-LP.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-D-IfZ3vj.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-C-_fFC-K.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CnGIUN7l.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-Bonb7aWR.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-CnGIUN7l.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-
|
|
3
|
+
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-C-_fFC-K.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
2
2
|
import { t as ekycMachine } from "./ekycStateMachine-Lqh8tcY3.esm.js";
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-Bk2DZjuK.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -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 ekycMachine } from "./ekycStateMachine-Lqh8tcY3.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, 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, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, 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
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.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 { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-D-IfZ3vj.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
|
package/dist/email.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 { t as emailMachine } from "./emailStateMachine-NiunNxhH.esm.js";
|
|
4
4
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
@@ -516,10 +516,10 @@ const videoSelfieEvents = {
|
|
|
516
516
|
videoSelfieReconnected: "videoSelfieReconnected"
|
|
517
517
|
};
|
|
518
518
|
const tutorialScreenNamesMapper = {
|
|
519
|
-
passport:
|
|
520
|
-
front:
|
|
521
|
-
back:
|
|
522
|
-
selfie:
|
|
519
|
+
passport: "TUTORIAL_PASSPORT",
|
|
520
|
+
front: "FRONT_ID_CAPTURE_TUTORIAL",
|
|
521
|
+
back: "BACK_ID_CAPTURE_TUTORIAL",
|
|
522
|
+
selfie: "SELFIE_CAPTURE_TUTORIAL"
|
|
523
523
|
};
|
|
524
524
|
const cameraScreenNamesMapper = {
|
|
525
525
|
front: "front",
|
package/dist/events.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-
|
|
1
|
+
import { S as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, v as addEvent } from "./events-CfLLkAh7.esm.js";
|
|
2
2
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
|
|
|
11
11
|
import "./StreamCanvasCapture-CeBBJ_RC.js";
|
|
12
12
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BtyZRAoe.js";
|
|
13
13
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
|
|
14
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
14
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-CTdFloVJ.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
|
|
16
16
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-C7qzg_Cm.js";
|
|
17
17
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
|
|
@@ -29,7 +29,7 @@ import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as Watchli
|
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
|
|
30
30
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-fiMVIJ-V.js";
|
|
33
33
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BTdHlJ9D.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
|