@incodetech/core 2.3.0-rc.2 → 2.3.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BrowserDiagnosticsCryptoProvider-Crg8fwBl.esm.js → BrowserDiagnosticsCryptoProvider-B7RIE207.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-i55W_Jkj.esm.js → FaceDetectionProvider-CLIh2W7m.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DcnaKSwk.esm.js → apiError-E-_iaWws.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CjXBjC-c.d.ts → authenticationManager-DcTHmYmL.d.ts} +1 -1
- package/dist/{authenticationManager-D-UWdyhr.esm.js → authenticationManager-ljZLcmVd.esm.js} +3 -3
- package/dist/{authenticationStateMachine-Cklrmjfo.esm.js → authenticationStateMachine-bw9-rkqY.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-KEY2gp6H.d.ts} +1 -1
- package/dist/{deepsightLoader-BNDIPbEK.esm.js → deepsightLoader-B0VaGq2x.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-Dv0TjEoS.d.ts} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DOu0Xgs0.esm.js → dynamicFormsManager-CI3S8dV4.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-DehYndAZ.esm.js → dynamicFormsStateMachine-B0UJg4zR.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CCcz4-FC.esm.js → ekybManager-B6rnJ2WV.esm.js} +1 -1
- package/dist/{ekybStateMachine-xesYf5pK.esm.js → ekybStateMachine-CIDhxLgL.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-8VGN2aKU.esm.js → electronicSignatureManager-3nmHM2Ip.esm.js} +1 -1
- package/dist/extensibility.d.ts +9 -9
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-Bl6EffXD.esm.js → faceCaptureManagerFactory-ByH_zPjx.esm.js} +1 -1
- package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-Cx-8SqRy.d.ts} +45 -37
- package/dist/{faceCaptureSetup-CDGmqC8J.esm.js → faceCaptureSetup-Ddt4pqZt.esm.js} +243 -42
- package/dist/{feature-management-J3rr-HDW.esm.js → feature-management-D2Isb1B1.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CayNS1FR.esm.js → flowCompletionService-BSNpSjTl.esm.js} +1 -1
- package/dist/{flowServices-DX5ygAyn.esm.js → flowServices-Ddnj6SJu.esm.js} +4 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-B0gz37Ry.d.ts} +1 -1
- package/dist/{geolocationManager-DYXuNsN2.esm.js → geolocationManager-CzEXS9dH.esm.js} +1 -1
- package/dist/{geolocationStateMachine-C-37vSiR.esm.js → geolocationStateMachine-BmGNkkDJ.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +8 -7
- package/dist/id.esm.js +3 -3
- package/dist/idCaptureDefaults-CdGZWxTZ.esm.js +282 -0
- package/dist/{idCaptureManager-BFtpmjsP.esm.js → idCaptureManager-Ti3ol0Xx.esm.js} +3 -3
- package/dist/{idCaptureServices-C7aPT72E.esm.js → idCaptureServices-BbxjZBLC.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-BEbzg_R1.esm.js → idCaptureStateMachine-DagQB0Tl.esm.js} +9 -9
- package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-CFlDwUvN.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-vhv1co_n.d.ts → mandatoryConsentManager-CbwP1sIp.d.ts} +1 -1
- package/dist/{multipartRecordingService-OEgIRvqC.esm.js → multipartRecordingService-CuXLH4tK.esm.js} +446 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-CT0aKjFV.esm.js → runChildModule-DQ4TienK.esm.js} +1 -1
- package/dist/{sdkVersion-DTrl2Jm7.esm.js → sdkVersion-YDsnVX6k.esm.js} +1 -1
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-0gvnAH1m.esm.js → selfieManager-CFbZAveM.esm.js} +3 -3
- package/dist/{selfieManager-4RRLi21P.d.ts → selfieManager-jXqwqosi.d.ts} +1 -1
- package/dist/{selfieStateMachine-rfneTd9x.esm.js → selfieStateMachine-Lo7BxnW4.esm.js} +2 -2
- package/dist/{session-ZAdron5D.esm.js → session-BtGQjs4Y.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-C1A6s33W.esm.js → sessionInitializer-BMe3q3I6.esm.js} +3 -3
- package/dist/{setup-6e71xCI7.esm.js → setup-CYKOne8r.esm.js} +4 -4
- package/dist/{trueSightService-DJ1kSDlH.esm.js → trueSightService-Goxs4dp4.esm.js} +3 -3
- package/dist/video-selfie.esm.js +4 -5
- package/dist/{videoSelfieCameraWarmer-BqXupt3L.esm.js → videoSelfieCameraWarmer-DhcyW9sN.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
- package/dist/idCaptureDefaults-CxOh31Xf.esm.js +0 -727
|
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
|
|
|
18
18
|
*/
|
|
19
19
|
function getTruesightKey() {
|
|
20
20
|
try {
|
|
21
|
-
const key = decodeTruesightKey("
|
|
21
|
+
const key = decodeTruesightKey("6QvXFFZFogYBHJsTlX7rNkLESnYJ7vT3jsh3KOhRzkY=", "CDYhuVateExQh/M/z3RqeynW8mi4TH0z1KDyCk/2CBM=");
|
|
22
22
|
return key.length === KEY_LENGTH_BYTES ? key : null;
|
|
23
23
|
} catch {
|
|
24
24
|
return null;
|
package/dist/{FaceDetectionProvider-i55W_Jkj.esm.js → FaceDetectionProvider-CLIh2W7m.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-CYKOne8r.esm.js";
|
|
2
2
|
import { s as wasmRuntime } from "./warmup-CUUnwYxe.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
4
|
-
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
-
import "./sessionInitializer-
|
|
4
|
+
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-Goxs4dp4.esm.js";
|
|
5
|
+
import "./sessionInitializer-BMe3q3I6.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
7
7
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
@@ -156,7 +156,7 @@ function startDetection(params) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
async function initializeDeepsightSession(options) {
|
|
159
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
159
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-B0VaGq2x.esm.js");
|
|
160
160
|
return loadDeepsightSession({
|
|
161
161
|
ds: options.ds,
|
|
162
162
|
storage: options.storage
|
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-3nmHM2Ip.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Cx-8SqRy.js";
|
|
2
2
|
import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DcTHmYmL.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -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-bw9-rkqY.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-ljZLcmVd.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-Cx-8SqRy.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
package/dist/{authenticationManager-D-UWdyhr.esm.js → authenticationManager-ljZLcmVd.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CYKOne8r.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-ByH_zPjx.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-bw9-rkqY.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-Ddt4pqZt.esm.js";
|
|
4
|
+
import { c as isOnDeviceMode } from "./FaceDetectionProvider-CLIh2W7m.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-CX3hJGKc.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationErrorUtils.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-KEY2gp6H.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -97,7 +97,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({ input }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
2
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
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-
|
|
2
|
+
import { l as trueSightLog } from "./trueSightService-Goxs4dp4.esm.js";
|
|
3
|
+
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-BMe3q3I6.esm.js";
|
|
4
|
+
import { t as SDK_VERSION } from "./sdkVersion-YDsnVX6k.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-BjSly8cp.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-Dv0TjEoS.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -98,14 +98,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
98
98
|
id: string | undefined;
|
|
99
99
|
};
|
|
100
100
|
}>, Values<{
|
|
101
|
-
decrementAttemptsRemaining: {
|
|
102
|
-
type: "decrementAttemptsRemaining";
|
|
103
|
-
params: NonReducibleUnknown;
|
|
104
|
-
};
|
|
105
101
|
clearError: {
|
|
106
102
|
type: "clearError";
|
|
107
103
|
params: NonReducibleUnknown;
|
|
108
104
|
};
|
|
105
|
+
decrementAttemptsRemaining: {
|
|
106
|
+
type: "decrementAttemptsRemaining";
|
|
107
|
+
params: NonReducibleUnknown;
|
|
108
|
+
};
|
|
109
109
|
setStream: {
|
|
110
110
|
type: "setStream";
|
|
111
111
|
params: NonReducibleUnknown;
|
|
@@ -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-B0UJg4zR.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-CI3S8dV4.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-B0UJg4zR.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-DehYndAZ.esm.js → dynamicFormsStateMachine-B0UJg4zR.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-B-3Q-LUw.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-E-_iaWws.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.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-Ddnj6SJu.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CIDhxLgL.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-B6rnJ2WV.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.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-BuFLFuzz.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-CIDhxLgL.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-B-3Q-LUw.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-Ddnj6SJu.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.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-DyHGgeX8.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-3nmHM2Ip.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 };
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.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-E-_iaWws.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -5,35 +5,35 @@ import "./Actor-iTq7YY48.js";
|
|
|
5
5
|
import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
|
|
6
6
|
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-Ds-KEVTq.js";
|
|
7
7
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
|
|
8
|
-
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-
|
|
8
|
+
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-Cx-8SqRy.js";
|
|
9
9
|
import "./createFaceAvatar-BlcTYgJv.js";
|
|
10
10
|
import { i as IStorageCapability } from "./IWasmUtilCapability-CNWRl7jr.js";
|
|
11
11
|
import "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DcTHmYmL.js";
|
|
13
13
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-DCgEidHz.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-KEY2gp6H.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
16
16
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-SSKNrm5Z.js";
|
|
17
17
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-8-W2KY4n.js";
|
|
18
18
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-PBWHr_oM.js";
|
|
19
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
19
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-Dv0TjEoS.js";
|
|
20
20
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-D5R_uxLQ.js";
|
|
21
21
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
22
22
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
23
23
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
24
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
24
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-jXqwqosi.js";
|
|
25
25
|
import { i as CaptureIdResponse } from "./types-byBHOzCG2.js";
|
|
26
26
|
import { B as WasmUtilProvider, d as IdCaptureActor, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-De7O0TOD.js";
|
|
27
27
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
28
28
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-CsnJnG-C.js";
|
|
30
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
30
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
33
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-CbwP1sIp.js";
|
|
33
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-CFlDwUvN.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BD2PvT5B.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-DGBSWz2_.js";
|
|
36
|
-
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-
|
|
36
|
+
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-B0gz37Ry.js";
|
|
37
37
|
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, t as GovernmentValidationManager } from "./governmentValidationManager-D02vT4yY.js";
|
|
38
38
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
39
39
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-CYKOne8r.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-B-trhxg6.esm.js";
|
|
3
|
-
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-BMe3q3I6.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-3nmHM2Ip.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-DNkw66oW.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Ddt4pqZt.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-ljZLcmVd.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-C3-CI0_s.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-B6E1XJDw.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9XhFVZ5S.esm.js";
|
|
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-CzWZTkW-.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DWTED5Ur.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-CwAiM9WY.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-CI3S8dV4.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-B6rnJ2WV.esm.js";
|
|
19
19
|
import { n as createEkycManagerFromActor } from "./ekycManager-BlQ-Qj4E.esm.js";
|
|
20
20
|
import { n as createEmailManagerFromActor } from "./emailManager-bR1N5rV_.esm.js";
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CFbZAveM.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Ti3ol0Xx.esm.js";
|
|
23
23
|
import { n as createPhoneManagerFromActor } from "./phoneManager-IjhSv5XS.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-CixcLNDT.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-CIMkpEhu.esm.js";
|
|
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-r46XfZGE.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-FLEWJtv8.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-B72np4ZO.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-CzEXS9dH.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CacFOtKO.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-DT42c77H.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-Bmv0HzuY.esm.js";
|
package/dist/{faceCaptureManagerFactory-Bl6EffXD.esm.js → faceCaptureManagerFactory-ByH_zPjx.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
|
-
import { i as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { i as concealmentToAvatar } from "./faceCaptureSetup-Ddt4pqZt.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-B2e8p268.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Bj_fyWtv.esm.js";
|
package/dist/{faceCaptureManagerFactory-BeUl8fl1.d.ts → faceCaptureManagerFactory-Cx-8SqRy.d.ts}
RENAMED
|
@@ -28,6 +28,51 @@ type CreateAuthenticationActorOptions = {
|
|
|
28
28
|
type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
|
|
29
29
|
declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
|
|
30
30
|
//#endregion
|
|
31
|
+
//#region src/internal/faceCapture/recordingService.d.ts
|
|
32
|
+
type RecordingService = {
|
|
33
|
+
start(stream: MediaStream): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Prepares the recording metadata needed by the face-image upload.
|
|
36
|
+
*
|
|
37
|
+
* Local video-liveness recordings must stop here because their upload id is
|
|
38
|
+
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
39
|
+
* the end of each attempt, and resume the same upload after a rejection; the
|
|
40
|
+
* state machine finalizes them only after the backend accepts the capture.
|
|
41
|
+
*/
|
|
42
|
+
prepareUpload(): Promise<{
|
|
43
|
+
recordingId: string | null;
|
|
44
|
+
}>;
|
|
45
|
+
stop(): Promise<{
|
|
46
|
+
recordingId: string | null;
|
|
47
|
+
}>;
|
|
48
|
+
/** Best-effort page-background handling for protected camera cycles. */
|
|
49
|
+
pauseForBackground?(): void;
|
|
50
|
+
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
51
|
+
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Present only on step-scoped services (one recording per capture step,
|
|
54
|
+
* ENG-56648). Ends the recorder's camera clone synchronously and pauses the
|
|
55
|
+
* container without completing the upload; the next `start(stream)` resumes
|
|
56
|
+
* it with a fresh clone and the step owner completes it with `stop()`.
|
|
57
|
+
* Idempotent, and a no-op once the recording is completing.
|
|
58
|
+
*/
|
|
59
|
+
suspend?(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
62
|
+
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
63
|
+
* to the integrator via `onCapture` instead of uploading to Incode.
|
|
64
|
+
*
|
|
65
|
+
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
66
|
+
* any reason, including:
|
|
67
|
+
* - the recorder was never started or is already stopped,
|
|
68
|
+
* - video assembly fails.
|
|
69
|
+
*/
|
|
70
|
+
stopAndGetVideo(): Promise<{
|
|
71
|
+
videoBase64: string | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
cleanup(): void;
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
31
76
|
//#region src/modules/selfie/types.d.ts
|
|
32
77
|
/**
|
|
33
78
|
* Public selfie configuration.
|
|
@@ -79,43 +124,6 @@ type ProcessFaceResponse = {
|
|
|
79
124
|
};
|
|
80
125
|
declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
|
|
81
126
|
//#endregion
|
|
82
|
-
//#region src/internal/faceCapture/recordingService.d.ts
|
|
83
|
-
type RecordingService = {
|
|
84
|
-
start(stream: MediaStream): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Prepares the recording metadata needed by the face-image upload.
|
|
87
|
-
*
|
|
88
|
-
* Local video-liveness recordings must stop here because their upload id is
|
|
89
|
-
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
90
|
-
* the end of each attempt, and resume the same upload after a rejection; the
|
|
91
|
-
* state machine finalizes them only after the backend accepts the capture.
|
|
92
|
-
*/
|
|
93
|
-
prepareUpload(): Promise<{
|
|
94
|
-
recordingId: string | null;
|
|
95
|
-
}>;
|
|
96
|
-
stop(): Promise<{
|
|
97
|
-
recordingId: string | null;
|
|
98
|
-
}>;
|
|
99
|
-
/** Best-effort page-background handling for protected camera cycles. */
|
|
100
|
-
pauseForBackground?(): void;
|
|
101
|
-
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
102
|
-
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
105
|
-
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
106
|
-
* to the integrator via `onCapture` instead of uploading to Incode.
|
|
107
|
-
*
|
|
108
|
-
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
109
|
-
* any reason, including:
|
|
110
|
-
* - the recorder was never started or is already stopped,
|
|
111
|
-
* - video assembly fails.
|
|
112
|
-
*/
|
|
113
|
-
stopAndGetVideo(): Promise<{
|
|
114
|
-
videoBase64: string | undefined;
|
|
115
|
-
}>;
|
|
116
|
-
cleanup(): void;
|
|
117
|
-
};
|
|
118
|
-
//#endregion
|
|
119
127
|
//#region src/internal/faceCapture/faceCaptureSetup.d.ts
|
|
120
128
|
type FaceCaptureConfig = BaseFaceCaptureConfig;
|
|
121
129
|
type FaceCaptureInput = {
|