@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.
Files changed (162) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js → BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js} +6 -24
  2. package/dist/{FaceDetectionProvider-DTetAE8H.esm.js → FaceDetectionProvider-BZYHujqz.esm.js} +10 -55
  3. package/dist/{IWasmUtilCapability-CXXDA5l1.d.ts → IWasmUtilCapability-CNWRl7jr.d.ts} +1 -43
  4. package/dist/{MotionSensorProvider-BgTYwg9L.esm.js → MotionSensorProvider-DyhbM4Si.esm.js} +1 -1
  5. package/dist/{StreamCanvasCapture-B3YT2Bt6.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +1 -1
  6. package/dist/{addressSearch-BRSu_aGA.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/antifraud.esm.js +2 -2
  9. package/dist/{antifraudManager-Bg9ynGum.esm.js → antifraudManager-DNkw66oW.esm.js} +1 -1
  10. package/dist/{antifraudStateMachine-BHxehiJZ.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
  11. package/dist/{apiError-D0v5hFyN.esm.js → apiError-iTFZ5fiI.esm.js} +1 -1
  12. package/dist/authentication.d.ts +3 -3
  13. package/dist/authentication.esm.js +2 -2
  14. package/dist/{authenticationManager-DXTIUcma.d.ts → authenticationManager-B23V74p7.d.ts} +1 -1
  15. package/dist/{authenticationManager-C4B4-29g.esm.js → authenticationManager-D22ju23T.esm.js} +4 -4
  16. package/dist/{authenticationStateMachine-DJ0zUm-A.esm.js → authenticationStateMachine-TyFaCegB.esm.js} +3 -3
  17. package/dist/{backCameraStream-BOtyQowf.esm.js → backCameraStream-B0-YgP_y.esm.js} +1 -0
  18. package/dist/camera.esm.js +1 -1
  19. package/dist/certificate-issuance.esm.js +2 -2
  20. package/dist/{certificateIssuanceManager-Bfvkq7Cy.esm.js → certificateIssuanceManager-C3-CI0_s.esm.js} +1 -1
  21. package/dist/{certificateIssuanceStateMachine-BBD5h8c4.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
  22. package/dist/consent.esm.js +2 -2
  23. package/dist/{consentManager-B5Vqdez-.esm.js → consentManager-B6E1XJDw.esm.js} +1 -1
  24. package/dist/{consentStateMachine-DbUmqWgV.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
  25. package/dist/{createCameraCycleOwnership-DQ5-F2oW.esm.js → createCameraCycleOwnership-DnwTl1ad.esm.js} +7 -2
  26. package/dist/cross-document-data-match.esm.js +1 -1
  27. package/dist/{crossDocumentDataMatchManager-QMOGwHXR.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +1 -1
  28. package/dist/curp-validation.esm.js +2 -2
  29. package/dist/{curpValidationManager-D1ppROcF.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +1 -1
  30. package/dist/{curpValidationStateMachine-DvUPC_8S.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
  31. package/dist/custom-fields.esm.js +1 -1
  32. package/dist/custom-watchlist.esm.js +2 -2
  33. package/dist/{customFieldsManager-2j_PBq4U.esm.js → customFieldsManager-CzWZTkW-.esm.js} +1 -1
  34. package/dist/{customWatchlistManager-DUVrEdw9.esm.js → customWatchlistManager-DWTED5Ur.esm.js} +1 -1
  35. package/dist/{customWatchlistStateMachine-qZVgkKgP.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
  36. package/dist/{deepsightLoader-Dm7ejW4v.esm.js → deepsightLoader-DamOBrBJ.esm.js} +7 -7
  37. package/dist/document-capture.d.ts +1 -1
  38. package/dist/document-capture.esm.js +2 -2
  39. package/dist/{documentCaptureManager-DR_Wv-3H.esm.js → documentCaptureManager-BRPxqYD2.esm.js} +1 -1
  40. package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-lEtCM320.d.ts} +14 -0
  41. package/dist/{documentCaptureStateMachine-CWOATHfE.esm.js → documentCaptureStateMachine-D312sSIu.esm.js} +14 -9
  42. package/dist/dynamic-forms.esm.js +2 -2
  43. package/dist/{dynamicFormsManager-Dt98SDfV.esm.js → dynamicFormsManager-DKgiusbF.esm.js} +1 -1
  44. package/dist/{dynamicFormsStateMachine-obKr4IIp.esm.js → dynamicFormsStateMachine-BV8yR5iN.esm.js} +2 -2
  45. package/dist/ekyb.esm.js +3 -3
  46. package/dist/{ekybManager-DNZKrKF3.esm.js → ekybManager-8VUBu8VW.esm.js} +1 -1
  47. package/dist/{ekybStateMachine-DjhHQXZ8.esm.js → ekybStateMachine-Bnsefu9M.esm.js} +3 -3
  48. package/dist/ekyc.esm.js +2 -2
  49. package/dist/{ekycManager-CmQBpeiI.esm.js → ekycManager-BlQ-Qj4E.esm.js} +1 -1
  50. package/dist/{ekycStateMachine-CmdW2gVm.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
  51. package/dist/electronic-signature.esm.js +1 -1
  52. package/dist/{electronicSignatureManager-DzulxM4_.esm.js → electronicSignatureManager--YFXVldr.esm.js} +2 -2
  53. package/dist/email.esm.js +2 -2
  54. package/dist/{emailManager-B5ek_UfM.esm.js → emailManager-bR1N5rV_.esm.js} +1 -1
  55. package/dist/{emailStateMachine-CyPFZ7dW.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
  56. package/dist/{endpoints-D3B9mUHh.esm.js → endpoints-B-3Q-LUw.esm.js} +0 -3
  57. package/dist/extensibility.d.ts +9 -9
  58. package/dist/extensibility.esm.js +34 -34
  59. package/dist/face-match.esm.js +2 -2
  60. package/dist/{faceCaptureManagerFactory-pCmG4MeF.esm.js → faceCaptureManagerFactory-Bk6pVs6E.esm.js} +3 -3
  61. package/dist/{faceCaptureManagerFactory-CvtqcLxs.d.ts → faceCaptureManagerFactory-DMLstvui.d.ts} +84 -45
  62. package/dist/{faceCaptureSetup-BSextack.esm.js → faceCaptureSetup-CGQDK97m.esm.js} +283 -100
  63. package/dist/{faceMatchManager-Caal2zyV.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +1 -1
  64. package/dist/{faceMatchStateMachine-BUc5FXYy.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
  65. package/dist/{feature-management-B0sGlozZ.esm.js → feature-management-C8OAO_CZ.esm.js} +1 -1
  66. package/dist/feature-management.esm.js +1 -1
  67. package/dist/field-comparison.esm.js +1 -1
  68. package/dist/{fieldComparisonManager-BIs6HPJG.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +1 -1
  69. package/dist/fiscal-qr.d.ts +1 -1
  70. package/dist/fiscal-qr.esm.js +1 -1
  71. package/dist/{fiscalQrManager-CHcBJwUM.d.ts → fiscalQrManager-B1STmT6z.d.ts} +4 -1
  72. package/dist/{fiscalQrManager-Bp_-3LJr.esm.js → fiscalQrManager-DbCVMIBx.esm.js} +17 -5
  73. package/dist/flow.d.ts +2 -2
  74. package/dist/flow.esm.js +3 -3
  75. package/dist/{flowCompletionService-CLtbWhSK.esm.js → flowCompletionService-C0zcPnqK.esm.js} +2 -2
  76. package/dist/{flowServices-B5FwukTQ.esm.js → flowServices-G1FDrkLd.esm.js} +6 -6
  77. package/dist/geolocation.esm.js +2 -2
  78. package/dist/{geolocationManager-DIw-xq9a.esm.js → geolocationManager-DNixQOgf.esm.js} +1 -1
  79. package/dist/{geolocationStateMachine-DpG0TFOU.esm.js → geolocationStateMachine-D1aZJ6eR.esm.js} +2 -2
  80. package/dist/government-validation.esm.js +2 -2
  81. package/dist/{governmentValidationManager-TjC9iVjH.esm.js → governmentValidationManager-CacFOtKO.esm.js} +1 -1
  82. package/dist/{governmentValidationStateMachine-D1ZnEqdd.esm.js → governmentValidationStateMachine-CoaZOSTP.esm.js} +1 -1
  83. package/dist/id-ocr.esm.js +2 -2
  84. package/dist/id-selfie-flow.d.ts +1 -1
  85. package/dist/id-selfie-flow.esm.js +10 -10
  86. package/dist/id-verification.esm.js +2 -2
  87. package/dist/id.d.ts +3 -3
  88. package/dist/id.esm.js +4 -4
  89. package/dist/{idCaptureDefaults-BcxjQDI3.esm.js → idCaptureDefaults-sJahGQgV.esm.js} +4 -206
  90. package/dist/{idCaptureManager-Vby8oYqh.esm.js → idCaptureManager-B8lo-ksK.esm.js} +5 -5
  91. package/dist/{idCaptureManager-CvmHOWWd.d.ts → idCaptureManager-BaHEyQyr.d.ts} +33 -16
  92. package/dist/{idCaptureServices-CJIxD9ep.esm.js → idCaptureServices-DLqls7Xv.esm.js} +71 -122
  93. package/dist/{idCaptureStateMachine-CmqihkUy.esm.js → idCaptureStateMachine-CCPGFPRF.esm.js} +226 -91
  94. package/dist/{idOcrManager-DHU22hVn.esm.js → idOcrManager-r46XfZGE.esm.js} +1 -1
  95. package/dist/{idOcrStateMachine-33UvRAHE.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
  96. package/dist/{idVerificationManager-CyaixD0D.esm.js → idVerificationManager-DT42c77H.esm.js} +1 -1
  97. package/dist/{idVerificationStateMachine-BPGrQZEm.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
  98. package/dist/identity-reuse.esm.js +2 -2
  99. package/dist/{identityReuseManager-CWaNHBO3.esm.js → identityReuseManager-yG3acUrQ.esm.js} +1 -1
  100. package/dist/{identityReuseStateMachine-CQgnATo5.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
  101. package/dist/index.d.ts +1 -1
  102. package/dist/index.esm.js +1 -1
  103. package/dist/mandatory-consent.esm.js +2 -2
  104. package/dist/{mandatoryConsentManager-Du-m-tZ_.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +1 -1
  105. package/dist/{mandatoryConsentStateMachine-DSDAk7WZ.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
  106. package/dist/{multipartRecordingService-B3C_zlev.esm.js → multipartRecordingService-YKu0Bd7S.esm.js} +496 -3
  107. package/dist/{permissionGuards-uYZYFu4J.esm.js → permissionGuards-D6TfVop2.esm.js} +1 -1
  108. package/dist/{permissionServices-Bj_fyWtv.esm.js → permissionServices-EY3_Vx6c.esm.js} +2 -2
  109. package/dist/phone.esm.js +2 -2
  110. package/dist/{phoneManager-N1-sbrY4.esm.js → phoneManager-IjhSv5XS.esm.js} +1 -1
  111. package/dist/{phoneStateMachine-jl8LJKCo.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
  112. package/dist/qe-signature.esm.js +1 -1
  113. package/dist/redirect-to-mobile.esm.js +2 -2
  114. package/dist/{redirectToMobileManager-DsFzdTwA.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +1 -1
  115. package/dist/{redirectToMobileStateMachine-v3otpT-L.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
  116. package/dist/{runChildModule-TuyGE00X.esm.js → runChildModule-B3Z4iJnG.esm.js} +1 -1
  117. package/dist/{safeStorage-B-trhxg6.esm.js → safeStorage-BdU9_m2E.esm.js} +1 -1
  118. package/dist/{sdkVersion-CLxKvdyz.esm.js → sdkVersion-CD9fJC2Y.esm.js} +1 -1
  119. package/dist/selfie.d.ts +4 -4
  120. package/dist/selfie.esm.js +8 -8
  121. package/dist/{selfieErrorUtils-C77GXJH6.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +2 -2
  122. package/dist/{selfieManager-D1KRJ39M.d.ts → selfieManager-CDCTOrcg.d.ts} +1 -1
  123. package/dist/{selfieManager-CihVnODO.esm.js → selfieManager-DzOPNipB.esm.js} +4 -4
  124. package/dist/{selfieStateMachine-fwMmNtOi.esm.js → selfieStateMachine-CidiobBW.esm.js} +4 -4
  125. package/dist/{session-BHIeAamR.esm.js → session-BABCfUhC.esm.js} +4 -4
  126. package/dist/session.esm.js +4 -4
  127. package/dist/{sessionInitializer-BLoK7SP9.esm.js → sessionInitializer-BK5NjMe0.esm.js} +6 -6
  128. package/dist/{setup-Cv-JM9QC.d.ts → setup-Cyko6cAn.d.ts} +6 -18
  129. package/dist/{setup-msLybMbC.esm.js → setup-D4YCSH31.esm.js} +14 -202
  130. package/dist/signature.esm.js +2 -2
  131. package/dist/{signatureManager-ChsB-nMD.esm.js → signatureManager-B72np4ZO.esm.js} +1 -1
  132. package/dist/{signatureStateMachine-BHPwkJZS.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
  133. package/dist/{stats-DkK-f8JT.esm.js → stats-CZcy2J53.esm.js} +1 -1
  134. package/dist/stats.esm.js +1 -1
  135. package/dist/{tri-4RsGrIt6.esm.js → tri-xzRLIIMN.esm.js} +0 -10
  136. package/dist/tri.esm.js +1 -1
  137. package/dist/{trueSightService-CKrrfV0Q.esm.js → trueSightService-D8yZwF3G.esm.js} +190 -571
  138. package/dist/{types-CM-jtjJ2.d.ts → types-Bnl58jUQ.d.ts} +2 -6
  139. package/dist/{types-ZT1XFIJ8.d.ts → types-ChAowIxT.d.ts} +1 -1
  140. package/dist/{types-CjKBS37a2.d.ts → types-byBHOzCG2.d.ts} +5 -15
  141. package/dist/video-selfie.d.ts +1 -1
  142. package/dist/video-selfie.esm.js +6 -7
  143. package/dist/{videoSelfieCameraWarmer-CB1IzZkt.esm.js → videoSelfieCameraWarmer-C80ZPDZ8.esm.js} +8 -8
  144. package/dist/{videoSelfieStepDetector-5YHFe0Mq.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +43 -13
  145. package/dist/{virtualCameraCheck-WOloJ-do.esm.js → virtualCameraCheck-Cjab7FTI.esm.js} +1 -1
  146. package/dist/{warmup-CUUnwYxe.esm.js → warmup-ChDwHSel.esm.js} +5 -0
  147. package/dist/wasm.d.ts +1 -1
  148. package/dist/wasm.esm.js +3 -2
  149. package/dist/{wasmDsFlagSync-B2e8p268.esm.js → wasmDsFlagSync-DYrLUEII.esm.js} +1 -1
  150. package/dist/watchlist-for-business.esm.js +2 -2
  151. package/dist/watchlist.esm.js +2 -2
  152. package/dist/{watchlistForBusinessManager-CpuuB1J2.esm.js → watchlistForBusinessManager-CIMkpEhu.esm.js} +1 -1
  153. package/dist/{watchlistForBusinessStateMachine-DEzgjz7C.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +1 -1
  154. package/dist/{watchlistManager-CI8BHFob.esm.js → watchlistManager-CixcLNDT.esm.js} +1 -1
  155. package/dist/{watchlistStateMachine-DvOby3a-.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
  156. package/dist/workflow.esm.js +34 -34
  157. package/package.json +1 -6
  158. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +0 -36
  159. package/dist/personhood.d.ts +0 -538
  160. package/dist/personhood.esm.js +0 -1574
  161. package/dist/recordingsRepository-CCWy13M-.esm.js +0 -72
  162. package/dist/types-BT_Oalip.d.ts +0 -1
@@ -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-CXXDA5l1.js";
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-CM-jtjJ2.js";
12
- import { t as AuthenticationConfig } from "./types-ZT1XFIJ8.js";
13
- import "./types-BT_Oalip.js";
14
- import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-B3YT2Bt6.js";
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 = {