@incodetech/core 2.3.0-rc.0 → 2.3.0-rc.10
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-C_9o3L2L.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
- package/dist/{FaceDetectionProvider-DTetAE8H.esm.js → FaceDetectionProvider-BZYHujqz.esm.js} +10 -55
- package/dist/{IWasmUtilCapability-CXXDA5l1.d.ts → IWasmUtilCapability-CNWRl7jr.d.ts} +1 -43
- package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
- package/dist/{StreamCanvasCapture-B3YT2Bt6.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +1 -1
- package/dist/{addressSearch-BRSu_aGA.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-Bg9ynGum.esm.js → antifraudManager-DNkw66oW.esm.js} +1 -1
- package/dist/{antifraudStateMachine-BHxehiJZ.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
- package/dist/{apiError-D0v5hFyN.esm.js → apiError-iTFZ5fiI.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DXTIUcma.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
- package/dist/{authenticationManager-C4B4-29g.esm.js → authenticationManager-D22ju23T.esm.js} +4 -4
- package/dist/{authenticationStateMachine-DJ0zUm-A.esm.js → authenticationStateMachine-TyFaCegB.esm.js} +3 -3
- package/dist/{backCameraStream-BOtyQowf.esm.js → backCameraStream-B0-YgP_y.esm.js} +1 -0
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Bfvkq7Cy.esm.js → certificateIssuanceManager-C3-CI0_s.esm.js} +1 -1
- package/dist/{certificateIssuanceStateMachine-BBD5h8c4.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B5Vqdez-.esm.js → consentManager-B6E1XJDw.esm.js} +1 -1
- package/dist/{consentStateMachine-DbUmqWgV.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
- package/dist/{createCameraCycleOwnership-DQ5-F2oW.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +7 -2
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-QMOGwHXR.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-D1ppROcF.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +1 -1
- package/dist/{curpValidationStateMachine-DvUPC_8S.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-2j_PBq4U.esm.js → customFieldsManager-CzWZTkW-.esm.js} +1 -1
- package/dist/{customWatchlistManager-DUVrEdw9.esm.js → customWatchlistManager-DWTED5Ur.esm.js} +1 -1
- package/dist/{customWatchlistStateMachine-qZVgkKgP.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
- package/dist/{deepsightLoader-Dm7ejW4v.esm.js → deepsightLoader-DamOBrBJ.esm.js} +7 -7
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DR_Wv-3H.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-lEtCM320.d.ts} +14 -0
- package/dist/{documentCaptureStateMachine-CWOATHfE.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +14 -9
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dt98SDfV.esm.js → dynamicFormsManager-DKgiusbF.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-obKr4IIp.esm.js → dynamicFormsStateMachine-BV8yR5iN.esm.js} +2 -2
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DNZKrKF3.esm.js → ekybManager-8VUBu8VW.esm.js} +1 -1
- package/dist/{ekybStateMachine-DjhHQXZ8.esm.js → ekybStateMachine-Bnsefu9M.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-CmQBpeiI.esm.js → ekycManager-BlQ-Qj4E.esm.js} +1 -1
- package/dist/{ekycStateMachine-CmdW2gVm.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DzulxM4_.esm.js → electronicSignatureManager--YFXVldr.esm.js} +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-B5ek_UfM.esm.js → emailManager-bR1N5rV_.esm.js} +1 -1
- package/dist/{emailStateMachine-CyPFZ7dW.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
- package/dist/{endpoints-D3B9mUHh.esm.js → endpoints-B-3Q-LUw.esm.js} +0 -3
- package/dist/extensibility.d.ts +9 -9
- package/dist/extensibility.esm.js +34 -34
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-pCmG4MeF.esm.js → faceCaptureManagerFactory-Bk6pVs6E.esm.js} +3 -3
- package/dist/{faceCaptureManagerFactory-CvtqcLxs.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +84 -45
- package/dist/{faceCaptureSetup-BSextack.esm.js → faceCaptureSetup-CGQDK97m.esm.js} +283 -100
- package/dist/{faceMatchManager-Caal2zyV.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-BUc5FXYy.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
- package/dist/{feature-management-B0sGlozZ.esm.js → feature-management-C8OAO_CZ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BIs6HPJG.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +1 -1
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-CHcBJwUM.d.ts → fiscalQrManager-B1STmT6z.d.ts} +4 -1
- package/dist/{fiscalQrManager-Bp_-3LJr.esm.js → fiscalQrManager-DbCVMIBx.esm.js} +17 -5
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CLtbWhSK.esm.js → flowCompletionService-C0zcPnqK.esm.js} +2 -2
- package/dist/{flowServices-B5FwukTQ.esm.js → flowServices-G1FDrkLd.esm.js} +6 -6
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DIw-xq9a.esm.js → geolocationManager-DNixQOgf.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DpG0TFOU.esm.js → geolocationStateMachine-D1aZJ6eR.esm.js} +2 -2
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-TjC9iVjH.esm.js → governmentValidationManager-CacFOtKO.esm.js} +1 -1
- package/dist/{governmentValidationStateMachine-D1ZnEqdd.esm.js → governmentValidationStateMachine-CoaZOSTP.esm.js} +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +10 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BcxjQDI3.esm.js → idCaptureDefaults-sJahGQgV.esm.js} +4 -206
- package/dist/{idCaptureManager-Vby8oYqh.esm.js → idCaptureManager-B8lo-ksK.esm.js} +5 -5
- package/dist/{idCaptureManager-CvmHOWWd.d.ts → idCaptureManager-BaHEyQyr.d.ts} +33 -16
- package/dist/{idCaptureServices-CJIxD9ep.esm.js → idCaptureServices-DLqls7Xv.esm.js} +71 -122
- package/dist/{idCaptureStateMachine-CmqihkUy.esm.js → idCaptureStateMachine-CCPGFPRF.esm.js} +226 -91
- package/dist/{idOcrManager-DHU22hVn.esm.js → idOcrManager-r46XfZGE.esm.js} +1 -1
- package/dist/{idOcrStateMachine-33UvRAHE.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
- package/dist/{idVerificationManager-CyaixD0D.esm.js → idVerificationManager-DT42c77H.esm.js} +1 -1
- package/dist/{idVerificationStateMachine-BPGrQZEm.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CWaNHBO3.esm.js → identityReuseManager-yG3acUrQ.esm.js} +1 -1
- package/dist/{identityReuseStateMachine-CQgnATo5.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Du-m-tZ_.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +1 -1
- package/dist/{mandatoryConsentStateMachine-DSDAk7WZ.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
- package/dist/{multipartRecordingService-B3C_zlev.esm.js → multipartRecordingService-YKu0Bd7S.esm.js} +496 -3
- package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
- package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-N1-sbrY4.esm.js → phoneManager-IjhSv5XS.esm.js} +1 -1
- package/dist/{phoneStateMachine-jl8LJKCo.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DsFzdTwA.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +1 -1
- package/dist/{redirectToMobileStateMachine-v3otpT-L.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
- package/dist/{runChildModule-TuyGE00X.esm.js → runChildModule-B3Z4iJnG.esm.js} +1 -1
- package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
- package/dist/{sdkVersion-CLxKvdyz.esm.js → sdkVersion-CD9fJC2Y.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-C77GXJH6.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +2 -2
- package/dist/{selfieManager-D1KRJ39M.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
- package/dist/{selfieManager-CihVnODO.esm.js → selfieManager-DzOPNipB.esm.js} +4 -4
- package/dist/{selfieStateMachine-fwMmNtOi.esm.js → selfieStateMachine-CidiobBW.esm.js} +4 -4
- package/dist/{session-BHIeAamR.esm.js → session-BABCfUhC.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BLoK7SP9.esm.js → sessionInitializer-BK5NjMe0.esm.js} +6 -6
- package/dist/{setup-Cv-JM9QC.d.ts → setup-Cyko6cAn.d.ts} +6 -18
- package/dist/{setup-msLybMbC.esm.js → setup-D4YCSH31.esm.js} +14 -202
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-ChsB-nMD.esm.js → signatureManager-B72np4ZO.esm.js} +1 -1
- package/dist/{signatureStateMachine-BHPwkJZS.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
- package/dist/{stats-DkK-f8JT.esm.js → stats-CZcy2J53.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-CKrrfV0Q.esm.js → trueSightService-D8yZwF3G.esm.js} +190 -571
- package/dist/{types-CM-jtjJ2.d.ts → types-Bnl58jUQ.d.ts} +2 -6
- package/dist/{types-ZT1XFIJ8.d.ts → types-ChAowIxT.d.ts} +1 -1
- package/dist/{types-CjKBS37a2.d.ts → types-byBHOzCG2.d.ts} +5 -15
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -7
- package/dist/{videoSelfieCameraWarmer-CB1IzZkt.esm.js → videoSelfieCameraWarmer-C80ZPDZ8.esm.js} +8 -8
- package/dist/{videoSelfieStepDetector-5YHFe0Mq.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +43 -13
- package/dist/{virtualCameraCheck-WOloJ-do.esm.js → virtualCameraCheck-Cjab7FTI.esm.js} +1 -1
- package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -2
- package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CpuuB1J2.esm.js → watchlistForBusinessManager-CIMkpEhu.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-DEzgjz7C.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +1 -1
- package/dist/{watchlistManager-CI8BHFob.esm.js → watchlistManager-CixcLNDT.esm.js} +1 -1
- package/dist/{watchlistStateMachine-DvOby3a-.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
- package/dist/workflow.esm.js +34 -34
- package/package.json +1 -6
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
- package/dist/personhood.d.ts +0 -538
- package/dist/personhood.esm.js +0 -1574
- package/dist/recordingsRepository-CCWy13M-.esm.js +0 -72
- package/dist/types-BT_Oalip.d.ts +0 -1
package/dist/{faceCaptureManagerFactory-CvtqcLxs.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts}
RENAMED
|
@@ -4,15 +4,14 @@ import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
|
-
import { s as FaceFeed, t as AvatarId, u as FaceCoordinates, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
7
|
+
import { c as FaceAttributesThresholds, d as FaceDetectionCallbacks, f as FaceDetectionConfig, h as IFaceDetectionCapability, l as FaceChecksConfig, m as FacePositionConstraints, p as FaceDetectionThresholds, s as FaceFeed, t as AvatarId, u as FaceCoordinates, v as WebApiHostRequestConfig, y as IncodeCanvas } from "./createFaceAvatar-BlcTYgJv.js";
|
|
8
8
|
import { i as FlowModuleConfig } from "./types-Do5rEXij.js";
|
|
9
|
-
import "./IWasmUtilCapability-
|
|
9
|
+
import "./IWasmUtilCapability-CNWRl7jr.js";
|
|
10
10
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
11
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-
|
|
12
|
-
import { t as AuthenticationConfig } from "./types-
|
|
13
|
-
import "./
|
|
14
|
-
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-
|
|
15
|
-
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-LdZ47bWy.js";
|
|
11
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-Bnl58jUQ.js";
|
|
12
|
+
import { t as AuthenticationConfig } from "./types-ChAowIxT.js";
|
|
13
|
+
import { t as BaseWasmProvider } from "./BaseWasmProvider-Dyi6dKp1.js";
|
|
14
|
+
import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-_8gdW5Lk.js";
|
|
16
15
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
17
16
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
18
17
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -28,6 +27,84 @@ type CreateAuthenticationActorOptions = {
|
|
|
28
27
|
type AuthenticationActor = ActorRefFrom<AuthenticationMachine>;
|
|
29
28
|
declare function createAuthenticationActor(options: CreateAuthenticationActorOptions): AuthenticationActor;
|
|
30
29
|
//#endregion
|
|
30
|
+
//#region src/internal/faceCapture/recordingService.d.ts
|
|
31
|
+
type RecordingService = {
|
|
32
|
+
start(stream: MediaStream): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Prepares the recording metadata needed by the face-image upload.
|
|
35
|
+
*
|
|
36
|
+
* Local video-liveness recordings must stop here because their upload id is
|
|
37
|
+
* sent with the image. Scoped face recordings return no legacy id, pause at
|
|
38
|
+
* the end of each attempt, and resume the same upload after a rejection; the
|
|
39
|
+
* state machine finalizes them only after the backend accepts the capture.
|
|
40
|
+
*/
|
|
41
|
+
prepareUpload(): Promise<{
|
|
42
|
+
recordingId: string | null;
|
|
43
|
+
}>;
|
|
44
|
+
stop(): Promise<{
|
|
45
|
+
recordingId: string | null;
|
|
46
|
+
}>;
|
|
47
|
+
/** Best-effort page-background handling for protected camera cycles. */
|
|
48
|
+
pauseForBackground?(): void;
|
|
49
|
+
/** Resumes the same recorder after its protected presentation track recovers. */
|
|
50
|
+
resumeFromBackground?(stream: MediaStream): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Present only on step-scoped services (one recording per capture step,
|
|
53
|
+
* ENG-56648). Ends the recorder's camera clone synchronously and pauses the
|
|
54
|
+
* container without completing the upload; the next `start(stream)` resumes
|
|
55
|
+
* it with a fresh clone and the step owner completes it with `stop()`.
|
|
56
|
+
* Idempotent, and a no-op once the recording is completing.
|
|
57
|
+
*/
|
|
58
|
+
suspend?(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Stops the recorder and returns the raw (un-encrypted, not uploaded)
|
|
61
|
+
* video as base64. Used by the captureOnly flow, which hands video bytes
|
|
62
|
+
* to the integrator via `onCapture` instead of uploading to Incode.
|
|
63
|
+
*
|
|
64
|
+
* Returns `{ videoBase64: undefined }` when video is not available for
|
|
65
|
+
* any reason, including:
|
|
66
|
+
* - the recorder was never started or is already stopped,
|
|
67
|
+
* - video assembly fails.
|
|
68
|
+
*/
|
|
69
|
+
stopAndGetVideo(): Promise<{
|
|
70
|
+
videoBase64: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
cleanup(): void;
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../infra/src/providers/wasm/FaceDetectionProvider.d.ts
|
|
76
|
+
declare class FaceDetectionProvider extends BaseWasmProvider implements IFaceDetectionCapability {
|
|
77
|
+
private defaultThresholds;
|
|
78
|
+
private currentThresholds;
|
|
79
|
+
private currentFrame;
|
|
80
|
+
private onFaceDataCallback;
|
|
81
|
+
constructor();
|
|
82
|
+
processFrame(image: ImageData): Promise<void>;
|
|
83
|
+
initialize(config: FaceDetectionConfig): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Last-registered onCapture callback — captured into a private
|
|
86
|
+
* field so `forceCapture()` (called from outside the WASM-callback
|
|
87
|
+
* lifecycle) can re-fire the same wrapper. `setCallbacks` rebinds
|
|
88
|
+
* this on each invocation, so the field always reflects the
|
|
89
|
+
* current consumer.
|
|
90
|
+
*/
|
|
91
|
+
private currentOnCaptureWrapper;
|
|
92
|
+
processPhoto(canvas: HTMLCanvasElement): void;
|
|
93
|
+
postFaceResults(config?: WebApiHostRequestConfig): Promise<unknown>;
|
|
94
|
+
setCallbacks(callbacks: FaceDetectionCallbacks): void;
|
|
95
|
+
setPositionConstraints(constraints: FacePositionConstraints): void;
|
|
96
|
+
applyDefaults(autocaptureInterval?: number): void;
|
|
97
|
+
setAutocaptureInterval(interval: number): void;
|
|
98
|
+
setThresholds(thresholds: FaceDetectionThresholds): void;
|
|
99
|
+
setAttributesThresholds(thresholds: FaceAttributesThresholds): void;
|
|
100
|
+
setChecksEnabled(config: FaceChecksConfig): void;
|
|
101
|
+
setVideoSelfieMode(enabled: boolean): void;
|
|
102
|
+
forceCapture(): void;
|
|
103
|
+
reset(): void;
|
|
104
|
+
private createDefaultFaceCoordinates;
|
|
105
|
+
private formatFaceCoordinates;
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
31
108
|
//#region src/modules/selfie/types.d.ts
|
|
32
109
|
/**
|
|
33
110
|
* Public selfie configuration.
|
|
@@ -79,44 +156,6 @@ type ProcessFaceResponse = {
|
|
|
79
156
|
};
|
|
80
157
|
declare function processFace(imageType?: ProcessFaceImageType, signal?: AbortSignal): Promise<ProcessFaceResponse>;
|
|
81
158
|
//#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
|
-
* - an injected provider is server-side and the client never holds the bytes,
|
|
112
|
-
* - video assembly fails.
|
|
113
|
-
*/
|
|
114
|
-
stopAndGetVideo(): Promise<{
|
|
115
|
-
videoBase64: string | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
cleanup(): void;
|
|
118
|
-
};
|
|
119
|
-
//#endregion
|
|
120
159
|
//#region src/internal/faceCapture/faceCaptureSetup.d.ts
|
|
121
160
|
type FaceCaptureConfig = BaseFaceCaptureConfig;
|
|
122
161
|
type FaceCaptureInput = {
|