@incodetech/core 0.0.0-dev-20260528-7fc5569f → 0.0.0-dev-20260529-392f1ccc
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/{OpenViduRecordingProvider-DIxtwgBG.esm.js → OpenViduRecordingProvider-dfIfvJdz.esm.js} +1 -1
- package/dist/StateMachine-Nl-Jtl1w.d.ts +2 -0
- package/dist/{ae-signature-D7ly9LQj.esm.js → ae-signature-CivqvR_p.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +2 -2
- package/dist/antifraud.d.ts +5 -46
- package/dist/antifraud.esm.js +4 -41
- package/dist/antifraudManager-C-_he11c.d.ts +63 -0
- package/dist/antifraudManager-DaUfoGLZ.esm.js +55 -0
- package/dist/authentication.d.ts +12 -12
- package/dist/authentication.esm.js +14 -14
- package/dist/{authenticationManager-BCsIiOKP.d.ts → authenticationManager-BCa2KJ3W.d.ts} +2 -2
- package/dist/{authenticationManager-D-GBF4AL.esm.js → authenticationManager-BjpnO88T.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DQ5lhFHa.esm.js → authenticationStateMachine-CB_FVKRQ.esm.js} +3 -3
- package/dist/{backCameraStream-BX6CRqIA.esm.js → backCameraStream-sqXIvxpl.esm.js} +2 -2
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +1 -1
- package/dist/cpf-ocr.d.ts +18 -18
- package/dist/cpf-ocr.esm.js +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.d.ts +6 -6
- package/dist/curp-validation.esm.js +1 -1
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/{deepsightLoader-BoDdkLc0.esm.js → deepsightLoader-D2ZhUfMt.esm.js} +4 -4
- package/dist/{deepsightService-DY9BYuEQ.esm.js → deepsightService-BxIcYEvD.esm.js} +2 -2
- package/dist/{deepsightService-C0keQ-h6.d.ts → deepsightService-X2FAWn_3.d.ts} +2 -2
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +79 -79
- package/dist/document-capture.esm.js +4 -4
- package/dist/document-upload.d.ts +50 -50
- package/dist/document-upload.esm.js +3 -3
- package/dist/{documentCaptureStateMachine-BexpI_wB.esm.js → documentCaptureStateMachine-dyL-UmQE.esm.js} +2 -2
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +1 -1
- package/dist/ekyb.d.ts +6 -6
- package/dist/ekyb.esm.js +5 -5
- package/dist/{ekybStateMachine-By7vMFMF.esm.js → ekybStateMachine-DCO9z-Xu.esm.js} +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycStateMachine-DNCCUEb5.esm.js → ekycStateMachine-p7gsAtZl.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-pIu5whcV.esm.js → electronicSignatureManager-BrYYnB75.esm.js} +3 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-B-E4rOjR.d.ts → emailManager-BAWgEfYH.d.ts} +3 -3
- package/dist/{emailManager-BMzZmJwd.esm.js → emailManager-IHCJvZiz.esm.js} +1 -1
- package/dist/extensibility.d.ts +19 -17
- package/dist/extensibility.esm.js +30 -26
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-QYq_vNnX.d.ts → faceCaptureManagerFactory-BNTr8hCe.d.ts} +8 -8
- package/dist/{faceCaptureManagerFactory-qY6w1odA.esm.js → faceCaptureManagerFactory-qc68qvPB.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DVdxJdeK.esm.js → faceCaptureSetup-CCmBB4Yj.esm.js} +2 -2
- package/dist/field-comparison.d.ts +2 -2
- package/dist/flow-events.d.ts +6 -6
- package/dist/flow.d.ts +12 -12
- package/dist/flow.esm.js +5 -5
- package/dist/{flowServices-ClPEvOcU.esm.js → flowServices-C4Wv-MqY.esm.js} +1 -1
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +1 -1
- package/dist/{getDeviceClass-CQITWgsp.esm.js → getDeviceClass-cJ-TvND7.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +1 -1
- package/dist/home.d.ts +15 -15
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.d.ts +11 -11
- package/dist/id.esm.js +15 -15
- package/dist/{idCaptureManager-D5GTm52K.esm.js → idCaptureManager-BppI7ytL.esm.js} +3 -3
- package/dist/{idCaptureManager-DWS1KkOC.d.ts → idCaptureManager-wjb9Go10.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-CiclshcZ.esm.js → idCaptureStateMachine-BCcXLFG4.esm.js} +9 -9
- package/dist/{idOcrStateMachine-CkQ20i5m.esm.js → idOcrStateMachine-CKlLOgNU.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +3 -427
- package/dist/identity-reuse.esm.js +4 -93
- package/dist/identityReuseManager-B5q1zo2F.d.ts +428 -0
- package/dist/identityReuseManager-cG0dhENk.esm.js +95 -0
- package/dist/{index-Di3zn8Cw.d.ts → index-Br8xpKVm.d.ts} +134 -129
- package/dist/{index-EwOt-Z6h.d.ts → index-Dc_XoGha.d.ts} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +56 -56
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/{openviduLazy-DGTRNmgt.esm.js → openviduLazy-CgN_e8V6.esm.js} +1 -1
- package/dist/openviduLazy-_lSYT11z.esm.js +3 -0
- package/dist/{permissionServices-W8BBXqr9.esm.js → permissionServices-CYSReeaA.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BaD4_vew.esm.js → phoneManager-CJLJidX1.esm.js} +1 -1
- package/dist/{phoneManager-DOqnuxiZ.d.ts → phoneManager-loG1R4et.d.ts} +3 -3
- package/dist/{qe-signature-9vz60fLv.esm.js → qe-signature-CYSZszZ7.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/{recordingService-BHgwOJ_m.esm.js → recordingService-5juvEHjh.esm.js} +10 -10
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.d.ts +12 -12
- package/dist/selfie.esm.js +15 -15
- package/dist/{selfieManager-xtGHqMAC.esm.js → selfieManager-DHxLF4ja.esm.js} +3 -3
- package/dist/{selfieManager-xGj-77Nm.d.ts → selfieManager-DWDfY17n.d.ts} +2 -2
- package/dist/{selfieStateMachine-8EcLSe0G.esm.js → selfieStateMachine-DoXEHqqT.esm.js} +2 -2
- package/dist/session.d.ts +5 -5
- package/dist/session.esm.js +3 -3
- package/dist/{sessionInitializer-BHxeb5Ei.esm.js → sessionInitializer-DJlxi8yz.esm.js} +1 -1
- package/dist/{setup--mejGeLg.esm.js → setup-ClxLhQZQ.esm.js} +1 -1
- package/dist/{setup-BxbaIs-k.d.ts → setup-D8yN1pvy.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +1 -1
- package/dist/trust-graph.d.ts +1 -1
- package/dist/{types-CU1g8keq.d.ts → types-B-YHRn8Q.d.ts} +1 -1
- package/dist/{types-Csl38fHI.d.ts → types-D4ZTL8-s.d.ts} +1 -1
- package/dist/{types-DFW7rqck.d.ts → types-f4D2sn3g.d.ts} +2 -2
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +134 -134
- package/dist/workflow.esm.js +42 -42
- package/package.json +1 -1
- package/dist/StateMachine-DhTgreIF.d.ts +0 -2
- package/dist/openviduLazy-LuOtGg6Y.esm.js +0 -3
- /package/dist/{Actor-C8MYPMPo.d.ts → Actor-LDyqfWZV.d.ts} +0 -0
- /package/dist/{BrowserStorageProvider-Dgem4aW-.esm.js → BrowserStorageProvider-BrJver0U.esm.js} +0 -0
- /package/dist/{ITimerCapability-Bs6czuIv.esm.js → ITimerCapability-gIlcIrAX.esm.js} +0 -0
- /package/dist/{Manager-1C7epU1z.d.ts → Manager-Li1pXOFC.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-BBuuAwD1.esm.js → MotionSensorProvider-DAFArfKO.esm.js} +0 -0
- /package/dist/{addressSearch-CibChdCl.esm.js → addressSearch-BmANIaSq.esm.js} +0 -0
- /package/dist/{camera-CNP8dDBl.d.ts → camera-BgyHeDdc.d.ts} +0 -0
- /package/dist/{camera-CIJDNUuJ.esm.js → camera-P7dse339.esm.js} +0 -0
- /package/dist/{consentStateMachine-O92z9rto.esm.js → consentStateMachine-DKLONjEH.esm.js} +0 -0
- /package/dist/{cpf-Br2axAnk.esm.js → cpf-Wwu9VLfA.esm.js} +0 -0
- /package/dist/{curpValidationStateMachine-BuUxLtXm.esm.js → curpValidationStateMachine-DRa9npZV.esm.js} +0 -0
- /package/dist/{customWatchlistStateMachine-B6lfBuUE.esm.js → customWatchlistStateMachine-I3gP0TDW.esm.js} +0 -0
- /package/dist/{dateUtils-BMYnARx4.esm.js → dateUtils-iJujdoEB.esm.js} +0 -0
- /package/dist/{emailStateMachine-Bd8iLNfU.esm.js → emailStateMachine-BE-VaJp3.esm.js} +0 -0
- /package/dist/{faceMatchStateMachine-Z_QDTsIx.esm.js → faceMatchStateMachine-Bd4mRtgq.esm.js} +0 -0
- /package/dist/{flowCompletionService-B3C-J9a1.d.ts → flowCompletionService-7NEI1i7g.d.ts} +0 -0
- /package/dist/{flowCompletionService-CWFG9510.esm.js → flowCompletionService-Cshgj0gV.esm.js} +0 -0
- /package/dist/{geolocationStateMachine-q4Lqg2Uf.esm.js → geolocationStateMachine-DW_g556o.esm.js} +0 -0
- /package/dist/{getDeviceClass-DE2GMvvh.esm.js → getDeviceClass-C5yT6K2e.esm.js} +0 -0
- /package/dist/{governmentValidationStateMachine-Dk_cmeHf.esm.js → governmentValidationStateMachine-Bhfg7-kH.esm.js} +0 -0
- /package/dist/{idVerificationStateMachine-CbthaJN7.esm.js → idVerificationStateMachine-BicmjAoY.esm.js} +0 -0
- /package/dist/{identityReuseStateMachine-DUCOpe0t.esm.js → identityReuseStateMachine-BmBxUiRQ.esm.js} +0 -0
- /package/dist/{invokeOnCaptureCallback-D_EWxqSU.esm.js → invokeOnCaptureCallback-CH7T3THr.esm.js} +0 -0
- /package/dist/{lib-DtY8aw1R.esm.js → lib-WqARpotm.esm.js} +0 -0
- /package/dist/{mandatoryConsentStateMachine-9QVdu5y9.esm.js → mandatoryConsentStateMachine-Bu2GwgIo.esm.js} +0 -0
- /package/dist/{phoneStateMachine-BntOEKN1.esm.js → phoneStateMachine-B3a-RKHn.esm.js} +0 -0
- /package/dist/{redirectToMobileStateMachine-CWCq02ea.esm.js → redirectToMobileStateMachine-C5-FB896.esm.js} +0 -0
- /package/dist/{runChildModule-DXnCvv9l.esm.js → runChildModule-D3uaw05g.esm.js} +0 -0
- /package/dist/{session-U3dA33EZ.esm.js → session-CKUCSZHC.esm.js} +0 -0
- /package/dist/{signatureStateMachine-CCXjDQVG.esm.js → signatureStateMachine-D7aDVITq.esm.js} +0 -0
- /package/dist/{types-CalxunYf.d.ts → types-B9hcs5GV.d.ts} +0 -0
- /package/dist/{types-BR5zXpWs.d.ts → types-CA1a_172.d.ts} +0 -0
- /package/dist/{warmup-_dDHpp72.d.ts → warmup-BXBDbhKe.d.ts} +0 -0
- /package/dist/{watchlistForBusinessStateMachine-DnFUKl_E.esm.js → watchlistForBusinessStateMachine-DgH3Zlv2.esm.js} +0 -0
- /package/dist/{watchlistStateMachine-B1KRHF9x.esm.js → watchlistStateMachine-DfipYi32.esm.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-BrYYnB75.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/ae-signature/index.ts
|
|
4
4
|
function createAeSignatureManager(options) {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
1
|
+
import { t as Manager } from "./Manager-Li1pXOFC.js";
|
|
2
|
+
import "./Actor-LDyqfWZV.js";
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Br8xpKVm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./events-Bsw1l0pH.esm.js";
|
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import "./xstate.esm-CWoFJOio.esm.js";
|
|
5
5
|
import "./apiError-76Dulrw9.esm.js";
|
|
6
|
-
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
7
|
-
import { t as createAeSignatureManager } from "./ae-signature-
|
|
6
|
+
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-BrYYnB75.esm.js";
|
|
7
|
+
import { t as createAeSignatureManager } from "./ae-signature-CivqvR_p.esm.js";
|
|
8
8
|
|
|
9
9
|
export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
|
package/dist/antifraud.d.ts
CHANGED
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./Manager-Li1pXOFC.js";
|
|
2
|
+
import "./Actor-LDyqfWZV.js";
|
|
3
|
+
import { i as createAntifraudManagerFromActor, n as AntifraudState, o as antifraudMachine, r as createAntifraudManager, t as AntifraudManager } from "./antifraudManager-C-_he11c.js";
|
|
2
4
|
|
|
3
|
-
//#region src/modules/antifraud/antifraudManager.d.ts
|
|
4
|
-
type AntifraudIdleState = {
|
|
5
|
-
status: 'idle';
|
|
6
|
-
};
|
|
7
|
-
type AntifraudProcessingState = {
|
|
8
|
-
status: 'processing';
|
|
9
|
-
};
|
|
10
|
-
type AntifraudFinishedState = {
|
|
11
|
-
status: 'finished';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Union of all possible antifraud manager states.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const state = antifraudManager.getState();
|
|
19
|
-
* if (state.status === 'finished') {
|
|
20
|
-
* console.log('Antifraud check complete');
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
type AntifraudState = AntifraudIdleState | AntifraudProcessingState | AntifraudFinishedState;
|
|
25
|
-
/**
|
|
26
|
-
* Creates an antifraud manager for headless or UI-driven usage.
|
|
27
|
-
*
|
|
28
|
-
* @example Headless usage
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const manager = createAntifraudManager();
|
|
31
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
32
|
-
* manager.load();
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare function createAntifraudManager(): Manager<AntifraudState> & {
|
|
36
|
-
/**
|
|
37
|
-
* Kicks off the antifraud process.
|
|
38
|
-
* Transitions from 'idle' to 'processing'.
|
|
39
|
-
*/
|
|
40
|
-
load(): void;
|
|
41
|
-
};
|
|
42
|
-
type AntifraudManager = ReturnType<typeof createAntifraudManager>;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/modules/antifraud/antifraudStateMachine.d.ts
|
|
45
|
-
declare const antifraudMachine: any;
|
|
46
|
-
//#endregion
|
|
47
5
|
//#region src/modules/antifraud/types.d.ts
|
|
6
|
+
|
|
48
7
|
/**
|
|
49
8
|
* Configuration options for the antifraud module.
|
|
50
9
|
*
|
|
@@ -54,4 +13,4 @@ declare const antifraudMachine: any;
|
|
|
54
13
|
*/
|
|
55
14
|
type AntifraudConfig = Record<string, never>;
|
|
56
15
|
//#endregion
|
|
57
|
-
export { type AntifraudConfig, type AntifraudManager, type AntifraudState, antifraudMachine, createAntifraudManager };
|
|
16
|
+
export { type AntifraudConfig, type AntifraudManager, type AntifraudState, antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,45 +1,8 @@
|
|
|
1
1
|
import "./api-YxPMtty2.esm.js";
|
|
2
|
-
import
|
|
2
|
+
import "./events-Bsw1l0pH.esm.js";
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
|
-
import
|
|
4
|
+
import "./xstate.esm-CWoFJOio.esm.js";
|
|
5
5
|
import { t as antifraudMachine } from "./antifraudStateMachine-DmhL7cti.esm.js";
|
|
6
|
+
import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-DaUfoGLZ.esm.js";
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
function createAntifraudActor() {
|
|
9
|
-
return createActor(antifraudMachine).start();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/modules/antifraud/antifraudManager.ts
|
|
14
|
-
function mapState(snapshot) {
|
|
15
|
-
const typedSnapshot = snapshot;
|
|
16
|
-
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
17
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
18
|
-
return { status: "idle" };
|
|
19
|
-
}
|
|
20
|
-
function createApi({ actor }) {
|
|
21
|
-
return { load() {
|
|
22
|
-
actor.send({ type: "LOAD" });
|
|
23
|
-
} };
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Creates an antifraud manager for headless or UI-driven usage.
|
|
27
|
-
*
|
|
28
|
-
* @example Headless usage
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const manager = createAntifraudManager();
|
|
31
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
32
|
-
* manager.load();
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
function createAntifraudManager() {
|
|
36
|
-
return createManager({
|
|
37
|
-
actor: createAntifraudActor(),
|
|
38
|
-
mapState,
|
|
39
|
-
createApi,
|
|
40
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
|
-
export { antifraudMachine, createAntifraudManager };
|
|
8
|
+
export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as Manager } from "./Manager-Li1pXOFC.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-LDyqfWZV.js";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/antifraud/antifraudStateMachine.d.ts
|
|
5
|
+
declare const antifraudMachine: any;
|
|
6
|
+
type AntifraudMachine = typeof antifraudMachine;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/modules/antifraud/antifraudActor.d.ts
|
|
9
|
+
type AntifraudActor = ActorRefFrom<AntifraudMachine>;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/modules/antifraud/antifraudManager.d.ts
|
|
12
|
+
type AntifraudIdleState = {
|
|
13
|
+
status: 'idle';
|
|
14
|
+
};
|
|
15
|
+
type AntifraudProcessingState = {
|
|
16
|
+
status: 'processing';
|
|
17
|
+
};
|
|
18
|
+
type AntifraudFinishedState = {
|
|
19
|
+
status: 'finished';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Union of all possible antifraud manager states.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const state = antifraudManager.getState();
|
|
27
|
+
* if (state.status === 'finished') {
|
|
28
|
+
* console.log('Antifraud check complete');
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
type AntifraudState = AntifraudIdleState | AntifraudProcessingState | AntifraudFinishedState;
|
|
33
|
+
/**
|
|
34
|
+
* Creates an antifraud manager for headless or UI-driven usage.
|
|
35
|
+
*
|
|
36
|
+
* @example Headless usage
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const manager = createAntifraudManager();
|
|
39
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
40
|
+
* manager.load();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function createAntifraudManager(): Manager<AntifraudState> & {
|
|
44
|
+
/**
|
|
45
|
+
* Kicks off the antifraud process.
|
|
46
|
+
* Transitions from 'idle' to 'processing'.
|
|
47
|
+
*/
|
|
48
|
+
load(): void;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Creates an antifraud manager from a pre-built actor.
|
|
52
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
53
|
+
*/
|
|
54
|
+
declare function createAntifraudManagerFromActor(actor: AntifraudActor): Manager<AntifraudState> & {
|
|
55
|
+
/**
|
|
56
|
+
* Kicks off the antifraud process.
|
|
57
|
+
* Transitions from 'idle' to 'processing'.
|
|
58
|
+
*/
|
|
59
|
+
load(): void;
|
|
60
|
+
};
|
|
61
|
+
type AntifraudManager = ReturnType<typeof createAntifraudManager>;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { AntifraudActor as a, createAntifraudManagerFromActor as i, AntifraudState as n, antifraudMachine as o, createAntifraudManager as r, AntifraudManager as t };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
|
|
2
|
+
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
3
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-DmhL7cti.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/antifraud/antifraudActor.ts
|
|
6
|
+
function createAntifraudActor() {
|
|
7
|
+
return createActor(antifraudMachine).start();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/modules/antifraud/antifraudManager.ts
|
|
12
|
+
function mapState(snapshot) {
|
|
13
|
+
const typedSnapshot = snapshot;
|
|
14
|
+
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
15
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
16
|
+
return { status: "idle" };
|
|
17
|
+
}
|
|
18
|
+
function createApi({ actor }) {
|
|
19
|
+
return { load() {
|
|
20
|
+
actor.send({ type: "LOAD" });
|
|
21
|
+
} };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates an antifraud manager for headless or UI-driven usage.
|
|
25
|
+
*
|
|
26
|
+
* @example Headless usage
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const manager = createAntifraudManager();
|
|
29
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
30
|
+
* manager.load();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
function createAntifraudManager() {
|
|
34
|
+
return createManager({
|
|
35
|
+
actor: createAntifraudActor(),
|
|
36
|
+
mapState,
|
|
37
|
+
createApi,
|
|
38
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Creates an antifraud manager from a pre-built actor.
|
|
43
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
44
|
+
*/
|
|
45
|
+
function createAntifraudManagerFromActor(actor) {
|
|
46
|
+
return createManager({
|
|
47
|
+
actor,
|
|
48
|
+
mapState,
|
|
49
|
+
createApi,
|
|
50
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.antifraud)
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { createAntifraudManagerFromActor as n, createAntifraudManager as t };
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./StateMachine-
|
|
5
|
-
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import "./camera-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./deepsightService-
|
|
11
|
-
import "./types-
|
|
12
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./warmup-BXBDbhKe.js";
|
|
2
|
+
import "./Manager-Li1pXOFC.js";
|
|
3
|
+
import "./Actor-LDyqfWZV.js";
|
|
4
|
+
import "./StateMachine-Nl-Jtl1w.js";
|
|
5
|
+
import { D as authenticationMachine, S as AuthenticationConfig, b as CreateAuthenticationActorOptions, x as createAuthenticationActor, y as AuthenticationActor } from "./faceCaptureManagerFactory-BNTr8hCe.js";
|
|
6
|
+
import "./camera-BgyHeDdc.js";
|
|
7
|
+
import "./types-D4ZTL8-s.js";
|
|
8
|
+
import "./types-CA1a_172.js";
|
|
9
|
+
import "./types-f4D2sn3g.js";
|
|
10
|
+
import "./deepsightService-X2FAWn_3.js";
|
|
11
|
+
import "./types-B9hcs5GV.js";
|
|
12
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BCa2KJ3W.js";
|
|
13
13
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -7,19 +7,19 @@ import "./browserSimulation-DCzZRn_y.esm.js";
|
|
|
7
7
|
import "./platform-D871crJL.esm.js";
|
|
8
8
|
import "./getBrowser-CMJJeBF8.esm.js";
|
|
9
9
|
import "./xstate.esm-CWoFJOio.esm.js";
|
|
10
|
-
import "./BrowserStorageProvider-
|
|
11
|
-
import "./MotionSensorProvider-
|
|
12
|
-
import "./permissionServices-
|
|
13
|
-
import "./camera-
|
|
14
|
-
import "./faceCaptureManagerFactory-
|
|
15
|
-
import "./recordingService-
|
|
16
|
-
import "./ITimerCapability-
|
|
17
|
-
import "./deepsightService-
|
|
18
|
-
import "./backCameraStream-
|
|
19
|
-
import "./getDeviceClass-
|
|
20
|
-
import "./getDeviceClass-
|
|
21
|
-
import "./faceCaptureSetup-
|
|
22
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
23
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
10
|
+
import "./BrowserStorageProvider-BrJver0U.esm.js";
|
|
11
|
+
import "./MotionSensorProvider-DAFArfKO.esm.js";
|
|
12
|
+
import "./permissionServices-CYSReeaA.esm.js";
|
|
13
|
+
import "./camera-P7dse339.esm.js";
|
|
14
|
+
import "./faceCaptureManagerFactory-qc68qvPB.esm.js";
|
|
15
|
+
import "./recordingService-5juvEHjh.esm.js";
|
|
16
|
+
import "./ITimerCapability-gIlcIrAX.esm.js";
|
|
17
|
+
import "./deepsightService-BxIcYEvD.esm.js";
|
|
18
|
+
import "./backCameraStream-sqXIvxpl.esm.js";
|
|
19
|
+
import "./getDeviceClass-C5yT6K2e.esm.js";
|
|
20
|
+
import "./getDeviceClass-cJ-TvND7.esm.js";
|
|
21
|
+
import "./faceCaptureSetup-CCmBB4Yj.esm.js";
|
|
22
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CB_FVKRQ.esm.js";
|
|
23
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BjpnO88T.esm.js";
|
|
24
24
|
|
|
25
25
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-Li1pXOFC.js";
|
|
2
|
+
import { b as CreateAuthenticationActorOptions, n as FaceCaptureManagerState, t as FaceCaptureManager, y as AuthenticationActor } from "./faceCaptureManagerFactory-BNTr8hCe.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-D-GBF4AL.esm.js → authenticationManager-BjpnO88T.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-Va_i-eMT.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Bsw1l0pH.esm.js";
|
|
3
3
|
import { s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
4
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
4
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BrJver0U.esm.js";
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-qc68qvPB.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CB_FVKRQ.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -2,9 +2,9 @@ import { t as api } from "./api-YxPMtty2.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-AwLva7-C.esm.js";
|
|
4
4
|
import { a as fromPromise, r as assign } from "./xstate.esm-CWoFJOio.esm.js";
|
|
5
|
-
import { b as FACE_ERROR_CODES, d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-
|
|
6
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
7
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
5
|
+
import { b as FACE_ERROR_CODES, d as postOnDeviceFaceResults, f as prepareOnDeviceFaceUpload, l as defaultPrepareFaceUpload, u as isOnDeviceMode } from "./recordingService-5juvEHjh.esm.js";
|
|
6
|
+
import { t as getDeviceClass } from "./getDeviceClass-cJ-TvND7.esm.js";
|
|
7
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CCmBB4Yj.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
10
10
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-D871crJL.esm.js";
|
|
2
|
-
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
3
|
-
import { t as sleep } from "./ITimerCapability-
|
|
2
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-P7dse339.esm.js";
|
|
3
|
+
import { t as sleep } from "./ITimerCapability-gIlcIrAX.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
6
6
|
const BACK_CAMERA_KEYWORDS = [
|
package/dist/camera.d.ts
CHANGED
package/dist/camera.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./WasmUtilProvider-Va_i-eMT.esm.js";
|
|
2
|
-
import "./MotionSensorProvider-
|
|
3
|
-
import { i as requestPermission, t as checkPermission } from "./permissionServices-
|
|
4
|
-
import "./camera-
|
|
2
|
+
import "./MotionSensorProvider-DAFArfKO.esm.js";
|
|
3
|
+
import { i as requestPermission, t as checkPermission } from "./permissionServices-CYSReeaA.esm.js";
|
|
4
|
+
import "./camera-P7dse339.esm.js";
|
|
5
5
|
|
|
6
6
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|