@incodetech/core 0.0.0-dev-20260402-0dc2fb9 → 0.0.0-dev-20260403-10f7d94
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/{Manager-B-qS9P9T.esm.js → Manager-9L3Rmc6X.esm.js} +14 -2
- package/dist/{addressSearch-CmmLAvRi.esm.js → addressSearch-uoJHvUT9.esm.js} +1 -1
- package/dist/authentication.esm.js +3 -3
- package/dist/{authenticationManager-BzsB0zC8.esm.js → authenticationManager-xQrUkboA.esm.js} +2 -2
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/document-capture.d.ts +76 -76
- package/dist/document-capture.esm.js +1 -1
- package/dist/document-upload.d.ts +46 -46
- package/dist/document-upload.esm.js +1 -1
- package/dist/ekyb.esm.js +4 -4
- package/dist/ekyc.esm.js +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-E3Cr6KIG.esm.js → emailManager-DDioJ_AQ.esm.js} +2 -2
- package/dist/extensibility.esm.js +15 -8
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureSetup-Bc7QPf-C.esm.js → faceCaptureSetup-Bq4TPX5D.esm.js} +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowServices-GUqxIdRY.esm.js → flowServices-Bi3F1654.esm.js} +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-1x6DxWdp.esm.js → idCaptureManager-DlZXRwne.esm.js} +72 -25
- package/dist/index.esm.js +3 -3
- package/dist/mandatory-consent.d.ts +53 -53
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-B0ZiIWOO.esm.js → phoneManager-DXxuWtoy.esm.js} +2 -2
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.esm.js +3 -3
- package/dist/{selfieManager-CtfKnz4C.esm.js → selfieManager-DSEpKb7Q.esm.js} +2 -2
- package/dist/{session-CIxnj9Wm.esm.js → session-Cr89qxxK.esm.js} +2 -9
- package/dist/signature.esm.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
|
@@ -119,7 +119,7 @@ const emailMachine = setup({
|
|
|
119
119
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
120
120
|
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
121
121
|
isValidEmail: ({ context }) => context.isValid,
|
|
122
|
-
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining >
|
|
122
|
+
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
123
123
|
canResend: ({ context }) => !context.resendTimerActive
|
|
124
124
|
}
|
|
125
125
|
}).createMachine({
|
|
@@ -3,20 +3,27 @@ import "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
|
3
3
|
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
5
|
import "./api-3fZO5bmj.esm.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as createActor, S as fromPromise } from "./Manager-9L3Rmc6X.esm.js";
|
|
7
7
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
8
|
-
import { c as getDeviceFingerprintInfo, s as
|
|
8
|
+
import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-Cr89qxxK.esm.js";
|
|
9
9
|
import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
10
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
10
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DlZXRwne.esm.js";
|
|
11
11
|
import "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
12
12
|
import "./camera-D-MPXRbZ.esm.js";
|
|
13
13
|
import "./stats-D4C7iDy1.esm.js";
|
|
14
14
|
import "./backCameraStream-BJwEXNl4.esm.js";
|
|
15
15
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
|
|
16
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
17
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
18
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
19
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
20
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
16
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Bq4TPX5D.esm.js";
|
|
17
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-xQrUkboA.esm.js";
|
|
18
|
+
import { n as createEmailManagerFromActor } from "./emailManager-DDioJ_AQ.esm.js";
|
|
19
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-DSEpKb7Q.esm.js";
|
|
20
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-DXxuWtoy.esm.js";
|
|
21
21
|
|
|
22
|
+
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
23
|
+
async function getFingerprint(disableIpify) {
|
|
24
|
+
const shouldDisableIpify = disableIpify ?? getDisableIpify();
|
|
25
|
+
return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
22
29
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as fromPromise, b as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/face-match/faceMatchServices.ts
|
|
@@ -2,7 +2,7 @@ import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } f
|
|
|
2
2
|
import { i as IncodeCanvas, l as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
3
3
|
import { a as uploadDeepsightVideo, c as requestPermission, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture, u as flagFaceManualReview } from "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
7
7
|
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-D-MPXRbZ.esm.js";
|
|
8
8
|
import { t as addDeviceStats } from "./stats-D4C7iDy1.esm.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
2
2
|
import "./api-3fZO5bmj.esm.js";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
4
4
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-Cr89qxxK.esm.js";
|
|
6
6
|
import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
7
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
7
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Bi3F1654.esm.js";
|
|
8
8
|
import { t as getFinishStatus } from "./flowCompletionService-CUT-cibE.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/flow/flowStateMachine.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
3
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-Cr89qxxK.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowUtils.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isIOS, t as isAndroid } from "./platform-B3nGssGZ.esm.js";
|
|
2
2
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
|
-
import { C as fromPromise, b as
|
|
3
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
package/dist/id.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
|
3
3
|
import "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
5
|
import "./api-3fZO5bmj.esm.js";
|
|
6
|
-
import "./Manager-
|
|
6
|
+
import "./Manager-9L3Rmc6X.esm.js";
|
|
7
7
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
8
|
-
import "./session-
|
|
8
|
+
import "./session-Cr89qxxK.esm.js";
|
|
9
9
|
import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
10
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
10
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DlZXRwne.esm.js";
|
|
11
11
|
import "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
12
12
|
import "./camera-D-MPXRbZ.esm.js";
|
|
13
13
|
import "./stats-D4C7iDy1.esm.js";
|
|
@@ -2,9 +2,9 @@ import { n as isDesktop } from "./platform-B3nGssGZ.esm.js";
|
|
|
2
2
|
import { d as IdCaptureModelType, i as IncodeCanvas, l as mlWasmJSApi_default, o as getWindowDimensions, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
3
3
|
import { c as requestPermission, d as flagIdManualReview, f as BrowserStorageProvider, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture } from "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
5
|
-
import { C as
|
|
5
|
+
import { C as createActor, S as fromPromise, b as assign, i as eventScreenNames, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, v as revokeObjectURL, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./session-
|
|
7
|
+
import { t as getDisableIpify } from "./session-Cr89qxxK.esm.js";
|
|
8
8
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-D4C7iDy1.esm.js";
|
|
10
10
|
import { t as getBackCameraStream } from "./backCameraStream-BJwEXNl4.esm.js";
|
|
@@ -2160,31 +2160,78 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
2160
2160
|
}
|
|
2161
2161
|
};
|
|
2162
2162
|
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2163
|
+
const FRONT_SCREENS = {
|
|
2164
|
+
tutorial: eventScreenNames.frontTutorial,
|
|
2165
|
+
cameraCapture: eventScreenNames.frontCameraCapture,
|
|
2166
|
+
uploadProgress: eventScreenNames.frontUploadProgress,
|
|
2167
|
+
attemptFailed: eventScreenNames.frontAttemptFailed,
|
|
2168
|
+
uploadSuccess: eventScreenNames.frontUploadSuccess,
|
|
2169
|
+
help: eventScreenNames.frontHelp
|
|
2170
|
+
};
|
|
2171
|
+
const BACK_SCREENS = {
|
|
2172
|
+
tutorial: eventScreenNames.backTutorial,
|
|
2173
|
+
cameraCapture: eventScreenNames.backCameraCapture,
|
|
2174
|
+
uploadProgress: eventScreenNames.backUploadProgress,
|
|
2175
|
+
attemptFailed: eventScreenNames.backAttemptFailed,
|
|
2176
|
+
uploadSuccess: eventScreenNames.backUploadSuccess,
|
|
2177
|
+
help: eventScreenNames.backHelp
|
|
2178
|
+
};
|
|
2179
|
+
const PASSPORT_SCREENS = { tutorial: eventScreenNames.passportTutorial };
|
|
2180
|
+
function getSideScreens(mode) {
|
|
2181
|
+
if (mode === "back") return BACK_SCREENS;
|
|
2182
|
+
if (mode === "passport") return {
|
|
2183
|
+
...FRONT_SCREENS,
|
|
2184
|
+
...PASSPORT_SCREENS
|
|
2185
|
+
};
|
|
2186
|
+
return FRONT_SCREENS;
|
|
2187
|
+
}
|
|
2188
|
+
function getCaptureSubstateScreen(value, screens) {
|
|
2189
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
2190
|
+
const captureValue = value.capture;
|
|
2191
|
+
if (captureValue === void 0) return void 0;
|
|
2192
|
+
if (typeof captureValue === "string") switch (captureValue) {
|
|
2193
|
+
case "detecting":
|
|
2194
|
+
case "manualCaptureWaiting":
|
|
2195
|
+
case "capturing":
|
|
2196
|
+
case "capturingManual": return screens.cameraCapture;
|
|
2197
|
+
case "uploading":
|
|
2198
|
+
case "validatingUpload": return screens.uploadProgress;
|
|
2199
|
+
case "uploadError": return screens.attemptFailed;
|
|
2200
|
+
case "success": return screens.uploadSuccess;
|
|
2201
|
+
}
|
|
2202
|
+
if (typeof captureValue === "object" && captureValue !== null) {
|
|
2203
|
+
const substates = Object.keys(captureValue);
|
|
2204
|
+
if (substates.includes("detecting") || substates.includes("capturing")) return screens.cameraCapture;
|
|
2205
|
+
if (substates.includes("uploading")) return screens.uploadProgress;
|
|
2206
|
+
if (substates.includes("uploadError")) return screens.attemptFailed;
|
|
2207
|
+
if (substates.includes("success")) return screens.uploadSuccess;
|
|
2208
|
+
}
|
|
2209
|
+
return screens.cameraCapture;
|
|
2168
2210
|
}
|
|
2169
|
-
const SIDE_AWARE_STATES = new Set([
|
|
2170
|
-
"tutorial",
|
|
2171
|
-
"capture",
|
|
2172
|
-
"mandatoryConsent",
|
|
2173
|
-
"frontFinished",
|
|
2174
|
-
"backFinished",
|
|
2175
|
-
"processing",
|
|
2176
|
-
"expired",
|
|
2177
|
-
"finished",
|
|
2178
|
-
"error"
|
|
2179
|
-
]);
|
|
2180
2211
|
function getIdCaptureScreenName(snapshot) {
|
|
2181
|
-
const
|
|
2182
|
-
if (
|
|
2183
|
-
const
|
|
2184
|
-
if (
|
|
2185
|
-
const side =
|
|
2186
|
-
|
|
2187
|
-
|
|
2212
|
+
const { value, context } = snapshot;
|
|
2213
|
+
if (value === void 0 || value === null) return void 0;
|
|
2214
|
+
const topLevel = typeof value === "string" ? value : typeof value === "object" ? Object.keys(value)[0] : void 0;
|
|
2215
|
+
if (topLevel === void 0) return void 0;
|
|
2216
|
+
const side = context.currentMode;
|
|
2217
|
+
const screens = getSideScreens(side);
|
|
2218
|
+
switch (topLevel) {
|
|
2219
|
+
case "idle": return "IDLE";
|
|
2220
|
+
case "chooser": return "DOCUMENT_CHOOSER";
|
|
2221
|
+
case "loading": return "LOADING";
|
|
2222
|
+
case "tutorial": return screens.tutorial;
|
|
2223
|
+
case "permissions": return "PERMISSIONS";
|
|
2224
|
+
case "capture": return getCaptureSubstateScreen(value, screens);
|
|
2225
|
+
case "mandatoryConsent": return "MANDATORY_CONSENT";
|
|
2226
|
+
case "frontFinished": return screens.uploadSuccess;
|
|
2227
|
+
case "backFinished": return screens.uploadSuccess;
|
|
2228
|
+
case "processing": return "PROCESSING";
|
|
2229
|
+
case "expired": return "EXPIRED";
|
|
2230
|
+
case "finished": return "FINISHED";
|
|
2231
|
+
case "closed": return "CLOSED";
|
|
2232
|
+
case "error": return "ERROR";
|
|
2233
|
+
default: return topLevel;
|
|
2234
|
+
}
|
|
2188
2235
|
}
|
|
2189
2236
|
function mapIdCaptureScreenName(snapshot) {
|
|
2190
2237
|
return getIdCaptureScreenName(snapshot);
|
package/dist/index.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import { c as warmupWasm, s as getUserAgent } from "./BaseWasmProvider-BFXU7jj8.
|
|
|
3
3
|
import { c as requestPermission, p as getDeviceClass, s as checkPermission } from "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
5
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-3fZO5bmj.esm.js";
|
|
6
|
-
import { _ as
|
|
6
|
+
import { _ as subscribeEvent, a as tutorialScreenNamesMapper, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as flushEventQueue, h as addEvent, i as eventScreenNames, l as elementClicked, m as screenOpened, n as cameraScreenNamesMapper, o as videoSelfieEvents, p as screenEvent, r as eventModuleNames, u as moduleClosed } from "./Manager-9L3Rmc6X.esm.js";
|
|
7
7
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
8
|
-
import { a as isSessionInitialized, i as initializeSession,
|
|
8
|
+
import { a as isSessionInitialized, i as initializeSession, n as getSessionFeatures, o as resetSessionInit, t as getDisableIpify, u as createSession } from "./session-Cr89qxxK.esm.js";
|
|
9
9
|
import "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
10
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
10
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DlZXRwne.esm.js";
|
|
11
11
|
import "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
12
12
|
import "./camera-D-MPXRbZ.esm.js";
|
|
13
13
|
import "./stats-D4C7iDy1.esm.js";
|
|
@@ -3,7 +3,7 @@ import "./camera-Dv2WEhGe.js";
|
|
|
3
3
|
import "./types-BWGxcjiZ.js";
|
|
4
4
|
import { i as RegulationTypes } from "./types-BX1ZlbSR.js";
|
|
5
5
|
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate96 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate96.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate96.EventObject>> | xstate96.ActorRefFromLogic<xstate96.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate96.EventObject>> | undefined;
|
|
52
|
+
}, xstate96.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate96.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate96.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate96.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
69
|
-
setError: {
|
|
70
|
-
type: "setError";
|
|
71
|
-
params: xstate441.NonReducibleUnknown;
|
|
72
|
-
};
|
|
68
|
+
}>, xstate96.Values<{
|
|
73
69
|
clearError: {
|
|
74
70
|
type: "clearError";
|
|
75
|
-
params:
|
|
76
|
-
};
|
|
77
|
-
resetContext: {
|
|
78
|
-
type: "resetContext";
|
|
79
|
-
params: xstate441.NonReducibleUnknown;
|
|
71
|
+
params: xstate96.NonReducibleUnknown;
|
|
80
72
|
};
|
|
81
73
|
setConsent: {
|
|
82
74
|
type: "setConsent";
|
|
83
|
-
params:
|
|
75
|
+
params: xstate96.NonReducibleUnknown;
|
|
84
76
|
};
|
|
85
77
|
toggleSigned: {
|
|
86
78
|
type: "toggleSigned";
|
|
87
|
-
params:
|
|
79
|
+
params: xstate96.NonReducibleUnknown;
|
|
80
|
+
};
|
|
81
|
+
setError: {
|
|
82
|
+
type: "setError";
|
|
83
|
+
params: xstate96.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
resetContext: {
|
|
86
|
+
type: "resetContext";
|
|
87
|
+
params: xstate96.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "
|
|
92
|
+
}, never, "error" | "finished" | "closed" | "idle" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate96.NonReducibleUnknown, xstate96.EventObject, xstate96.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate96.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate96.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate96.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate96.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate96.RequiredActorOptions<T>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate96.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate96.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate96.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate96.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate96.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate96.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate96.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredActorOptions<T_1>>> : never : never : never)): xstate96.ActorRefFromLogic<xstate96.GetConcreteByKey<xstate96.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate96.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate96.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate96.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate96.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate96.AnyActorLogic>(src: TLogic, ...[options]: xstate96.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate96.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate96.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate96.IsNotNever<xstate96.RequiredLogicInput<TLogic>>>): xstate96.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate96.AnyActorRef | undefined>, xstate96.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate96.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate96.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate96.ActorRef<xstate96.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate96.AnyActorRef>, xstate96.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate441.StateMachine<MandatoryConsentCo
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate96.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as fromPromise, b as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import "./Manager-
|
|
2
|
+
import "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
import "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-DXxuWtoy.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
|
@@ -158,7 +158,7 @@ const phoneMachine = setup({
|
|
|
158
158
|
hasPrefill: ({ context }) => context.config.prefill,
|
|
159
159
|
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
160
160
|
isValidPhone: ({ context }) => context.isValid,
|
|
161
|
-
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining >
|
|
161
|
+
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
162
162
|
canResend: ({ context }) => !context.resendTimerActive
|
|
163
163
|
}
|
|
164
164
|
}).createMachine({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CRhCvln7.esm.js";
|
|
5
5
|
|
package/dist/selfie.esm.js
CHANGED
|
@@ -3,13 +3,13 @@ import "./BaseWasmProvider-BFXU7jj8.esm.js";
|
|
|
3
3
|
import "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
4
4
|
import "./browserSimulation-zWJAZ1vA.esm.js";
|
|
5
5
|
import "./api-3fZO5bmj.esm.js";
|
|
6
|
-
import "./Manager-
|
|
6
|
+
import "./Manager-9L3Rmc6X.esm.js";
|
|
7
7
|
import "./endpoints-DEXxYYFi.esm.js";
|
|
8
8
|
import "./camera-D-MPXRbZ.esm.js";
|
|
9
9
|
import "./stats-D4C7iDy1.esm.js";
|
|
10
10
|
import "./backCameraStream-BJwEXNl4.esm.js";
|
|
11
11
|
import "./WasmUtilProvider-DctESPCy.esm.js";
|
|
12
|
-
import { n as processFace } from "./faceCaptureSetup-
|
|
13
|
-
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-
|
|
12
|
+
import { n as processFace } from "./faceCaptureSetup-Bq4TPX5D.esm.js";
|
|
13
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-DSEpKb7Q.esm.js";
|
|
14
14
|
|
|
15
15
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-BowJVbkC.esm.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames } from "./Manager-9L3Rmc6X.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DctESPCy.esm.js";
|
|
4
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-Bq4TPX5D.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
7
7
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as isBrowserSimulation } from "./browserSimulation-zWJAZ1vA.esm.js";
|
|
2
2
|
import { n as getApi, t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as addEvent } from "./Manager-9L3Rmc6X.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DEXxYYFi.esm.js";
|
|
5
5
|
import { t as BrowserEnvironmentProvider } from "./BrowserEnvironmentProvider-DApG6lNu.esm.js";
|
|
6
6
|
|
|
@@ -2956,13 +2956,6 @@ function resetFeatureConfigCache() {
|
|
|
2956
2956
|
cachedFeatures$1 = null;
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
2959
|
-
//#endregion
|
|
2960
|
-
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
2961
|
-
async function getFingerprint(disableIpify) {
|
|
2962
|
-
const shouldDisableIpify = disableIpify ?? getDisableIpify();
|
|
2963
|
-
return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
2959
|
//#endregion
|
|
2967
2960
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
2968
2961
|
const SDK_VERSION = "2.0.0";
|
|
@@ -3134,4 +3127,4 @@ function resetSessionInit() {
|
|
|
3134
3127
|
}
|
|
3135
3128
|
|
|
3136
3129
|
//#endregion
|
|
3137
|
-
export { isSessionInitialized as a,
|
|
3130
|
+
export { isSessionInitialized as a, FingerprintProvider as c, initializeSession as i, getDeviceFingerprintInfo as l, getSessionFeatures as n, resetSessionInit as o, getSessionFingerprintResult as r, IpifyProvider as s, getDisableIpify as t, createSession as u };
|