@incodetech/core 0.0.0-dev-20260604-edfbb573 → 0.0.0-dev-20260604-0577f678
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-CwJjdB_y.esm.js → OpenViduRecordingProvider-BEWn10vB.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/antifraud.d.ts +3 -3
- package/dist/{antifraudManager-DilnUuVJ.d.ts → antifraudManager-DXDJ88Iy.d.ts} +2 -2
- package/dist/authentication.d.ts +12 -12
- package/dist/authentication.esm.js +4 -4
- package/dist/{authenticationManager-BuofM548.d.ts → authenticationManager-B7066qjf.d.ts} +2 -2
- package/dist/{authenticationManager-DVM4c1N2.esm.js → authenticationManager-BgtXT783.esm.js} +1 -1
- package/dist/{authenticationStateMachine-CWkBPcZL.esm.js → authenticationStateMachine-Bx9QKZmx.esm.js} +2 -2
- package/dist/camera.d.ts +1 -1
- package/dist/consent.d.ts +3 -3
- package/dist/{consentManager-CIQBAgKS.d.ts → consentManager-Dmp2yhJW.d.ts} +52 -52
- package/dist/cpf-ocr.d.ts +3 -3
- package/dist/{cpfOcrManager-DJwjf8zl.d.ts → cpfOcrManager-pQxe0h9U.d.ts} +19 -19
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/curp-validation.d.ts +7 -7
- package/dist/{curpValidationManager-A17z2p8Z.d.ts → curpValidationManager-DXSx8qde.d.ts} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/{deepsightService-BoGtutuJ.d.ts → deepsightService-BvxizhpY.d.ts} +2 -2
- package/dist/document-capture.d.ts +74 -74
- package/dist/document-upload.d.ts +50 -50
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/ekyb.d.ts +6 -6
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-C4w71OsI.esm.js → ekybStateMachine-D5CVgzWE.esm.js} +1 -1
- package/dist/ekyc.d.ts +3 -3
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/email.d.ts +4 -3
- package/dist/email.esm.js +3 -2
- package/dist/{emailManager-CSCqkDqa.d.ts → emailManager-DWauVgqH.d.ts} +65 -7
- package/dist/{emailManager-BkpKfAWF.esm.js → emailManager-DrAlmZxR.esm.js} +28 -5
- package/dist/{emailStateMachine-DBl6u0yY.esm.js → emailStateMachine-BTlQbFIU.esm.js} +44 -9
- package/dist/extensibility.d.ts +25 -24
- package/dist/extensibility.esm.js +21 -20
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-Cg6hZagK.d.ts → faceCaptureManagerFactory-BncOywLG.d.ts} +8 -8
- package/dist/{faceCaptureSetup-BE6JdX3x.esm.js → faceCaptureSetup-BV_JfZOM.esm.js} +1 -1
- package/dist/field-comparison.d.ts +3 -3
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DMzy5lNY.d.ts → fieldComparisonManager-DLL9MVqE.d.ts} +2 -2
- package/dist/flow-events.d.ts +6 -6
- package/dist/flow.d.ts +12 -12
- package/dist/flow.esm.js +4 -4
- package/dist/{flowServices-sy-cx8x9.esm.js → flowServices-juBbztCy.esm.js} +1 -1
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.d.ts +10 -2
- package/dist/government-validation.esm.js +15 -3
- package/dist/{governmentValidationStateMachine-BA9lwNSL.esm.js → governmentValidationStateMachine-CfxotwRJ.esm.js} +17 -3
- package/dist/home.d.ts +15 -15
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +1 -1
- 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 +5 -5
- package/dist/{idCaptureManager-vAt1jY71.esm.js → idCaptureManager-B2C7sszi.esm.js} +1 -1
- package/dist/{idCaptureManager-CmJuubTO.d.ts → idCaptureManager-Dv5Hb6ZQ.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-BfCiOhLX.esm.js → idCaptureStateMachine-BPlJG8rV.esm.js} +4 -4
- package/dist/identity-reuse.d.ts +3 -3
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-5v-hOOjz.esm.js → identityReuseManager-BUlApFOI.esm.js} +1 -1
- package/dist/{identityReuseManager-G-GKzGDP.d.ts → identityReuseManager-G8OBXRBS.d.ts} +33 -33
- package/dist/{index-D2Mcat5v.d.ts → index-C4i7kdU9.d.ts} +2 -2
- package/dist/{index-F-xtscHn.d.ts → index-Dlszx51Y.d.ts} +127 -127
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +7 -7
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CoAu8yf4.d.ts → mandatoryConsentManager-DvtPF0wk.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-DaV3Kasq.esm.js → mandatoryConsentManager-vRY1lhnH.esm.js} +1 -1
- package/dist/openviduLazy-Bys_w8LJ.esm.js +3 -0
- package/dist/{openviduLazy--WQ7S77K.esm.js → openviduLazy-DjQv_EQK.esm.js} +1 -1
- package/dist/otp-B33JDqfa.esm.js +33 -0
- package/dist/otp-BEvNq7gp.d.ts +8 -0
- package/dist/phone.d.ts +4 -3
- package/dist/phone.esm.js +3 -2
- package/dist/{phoneManager-CkcMvwa6.esm.js → phoneManager-BAuNvs-i.esm.js} +23 -5
- package/dist/{phoneManager-eEOZV-Ag.d.ts → phoneManager-pvDvZ_gv.d.ts} +40 -2
- package/dist/{phoneStateMachine-XdnP18Rl.esm.js → phoneStateMachine-BfcrU9Ge.esm.js} +18 -3
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-yq4IvyVq.esm.js → recordingService-CGlyfFQ7.esm.js} +4 -4
- package/dist/redirect-to-mobile.d.ts +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DC-_CWcd.d.ts → redirectToMobileManager-CquT4odi.d.ts} +2 -2
- package/dist/{redirectToMobileManager-CghtrIDs.esm.js → redirectToMobileManager-DTE12sg_.esm.js} +1 -1
- package/dist/selfie.d.ts +12 -12
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-DgRA1tKd.esm.js → selfieManager-BdH-6KoN.esm.js} +1 -1
- package/dist/{selfieManager-BWhEOmu5.d.ts → selfieManager-Uk6VyeRs.d.ts} +2 -2
- package/dist/{selfieStateMachine-ijqe-SXy.esm.js → selfieStateMachine-Dwuu_grk.esm.js} +2 -2
- package/dist/session.d.ts +5 -5
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-CBZGnMbc.esm.js → sessionInitializer-RsPNFUZW.esm.js} +1 -1
- package/dist/{setup-Cl42jOa1.esm.js → setup-6QUffFnD.esm.js} +1 -1
- package/dist/{setup-VFySrRdV.d.ts → setup-DASS8vHb.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +1 -1
- package/dist/trust-graph.d.ts +3 -3
- package/dist/{types-DGzov-rE.d.ts → types-D2CwpM2b.d.ts} +1 -1
- package/dist/{types-BPTRiryB.d.ts → types-DVwRlm7y.d.ts} +2 -2
- package/dist/{types-Cb02Rr8D.d.ts → types-iye7_56N.d.ts} +1 -1
- 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 +144 -144
- package/dist/workflow.esm.js +25 -24
- package/package.json +1 -1
- package/dist/openviduLazy-BPa_szFr.esm.js +0 -3
- /package/dist/{Actor-CcQ_EteO.d.ts → Actor-JBsgjVQJ.d.ts} +0 -0
- /package/dist/{Manager-C6PZlp2a.d.ts → Manager-BtbwDUTY.d.ts} +0 -0
- /package/dist/{StateMachine-terkPOx4.d.ts → StateMachine-Crq3LOHm.d.ts} +0 -0
- /package/dist/{camera-BCAbwFy2.d.ts → camera-BDklS02l.d.ts} +0 -0
- /package/dist/{deepsightLoader-CCGbu9d3.esm.js → deepsightLoader-YRBL_Fj-.esm.js} +0 -0
- /package/dist/{faceMatchStateMachine-vJUfrhXF.esm.js → faceMatchStateMachine-Da2xvnb3.esm.js} +0 -0
- /package/dist/{fieldComparisonManager-B7BNkgoh.esm.js → fieldComparisonManager-DIxV_S3C.esm.js} +0 -0
- /package/dist/{flowCompletionService-aI4wGC9f.esm.js → flowCompletionService-C-sNwEG5.esm.js} +0 -0
- /package/dist/{flowCompletionService-CCtTGPU9.d.ts → flowCompletionService-DEfKnIhU.d.ts} +0 -0
- /package/dist/{geolocationStateMachine-B9l_wr_h.esm.js → geolocationStateMachine-N_ZKLTIs.esm.js} +0 -0
- /package/dist/{idOcrStateMachine-wRa-XU9T.esm.js → idOcrStateMachine-C8BBD47N.esm.js} +0 -0
- /package/dist/{idVerificationStateMachine-FB5EETJU.esm.js → idVerificationStateMachine-__OS4Ktt.esm.js} +0 -0
- /package/dist/{identityReuseStateMachine-DHVSN2L1.esm.js → identityReuseStateMachine-BN_TuE9C.esm.js} +0 -0
- /package/dist/{invokeOnCaptureCallback-CIfXHrFp.esm.js → invokeOnCaptureCallback-BwWx2Kqq.esm.js} +0 -0
- /package/dist/{lib-Co05siK6.esm.js → lib-Dhki73Gp.esm.js} +0 -0
- /package/dist/{mandatoryConsentStateMachine-BvRq9XtS.esm.js → mandatoryConsentStateMachine-BSqA6UaU.esm.js} +0 -0
- /package/dist/{qe-signature-p2zhYha3.esm.js → qe-signature-DRTvm7c_.esm.js} +0 -0
- /package/dist/{redirectToMobileStateMachine-DfJ6xylP.esm.js → redirectToMobileStateMachine-S55Apm7m.esm.js} +0 -0
- /package/dist/{runChildModule-BPowizCN.esm.js → runChildModule-De5-f8Fk.esm.js} +0 -0
- /package/dist/{signatureStateMachine-vr7sJ5bw.esm.js → signatureStateMachine-DRcJ6Vci.esm.js} +0 -0
- /package/dist/{types-CURk4uNi.d.ts → types-BG62yJk8.d.ts} +0 -0
- /package/dist/{types-C076XDan.d.ts → types-CuY-AIPp.d.ts} +0 -0
- /package/dist/{warmup-L_VrEKjj.d.ts → warmup-C-Me8RNj.d.ts} +0 -0
- /package/dist/{watchlistForBusinessStateMachine-Bu8oGHHk.esm.js → watchlistForBusinessStateMachine-By54Yfgd.esm.js} +0 -0
- /package/dist/{watchlistStateMachine-BUNqDKp4.esm.js → watchlistStateMachine-DHod_nLg.esm.js} +0 -0
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-BG62yJk8.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
6
|
declare const ekycMachine: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-
|
|
1
|
+
import "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-Dlszx51Y.js";
|
|
4
4
|
export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/email.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-
|
|
1
|
+
import "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { n as EmailState, o as emailMachine, r as createEmailManager, s as EmailConfig, t as EmailManager } from "./emailManager-DWauVgqH.js";
|
|
4
|
+
import "./otp-BEvNq7gp.js";
|
|
4
5
|
export { type EmailConfig, type EmailManager, type EmailState, createEmailManager, emailMachine };
|
package/dist/email.esm.js
CHANGED
|
@@ -3,7 +3,8 @@ import "./api-YxPMtty2.esm.js";
|
|
|
3
3
|
import "./events-Bsw1l0pH.esm.js";
|
|
4
4
|
import "./endpoints-BPHddOTi.esm.js";
|
|
5
5
|
import "./xstate.esm-CWoFJOio.esm.js";
|
|
6
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
7
|
-
import
|
|
6
|
+
import { t as emailMachine } from "./emailStateMachine-BTlQbFIU.esm.js";
|
|
7
|
+
import "./otp-B33JDqfa.esm.js";
|
|
8
|
+
import { t as createEmailManager } from "./emailManager-DrAlmZxR.esm.js";
|
|
8
9
|
|
|
9
10
|
export { createEmailManager, emailMachine };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { t as OtpValidationErrors } from "./otp-BEvNq7gp.js";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/email/types.d.ts
|
|
5
6
|
|
|
@@ -49,6 +50,9 @@ type EmailConfig = {
|
|
|
49
50
|
*/
|
|
50
51
|
maxOtpAttempts?: number;
|
|
51
52
|
};
|
|
53
|
+
type EmailValidationErrors = {
|
|
54
|
+
email?: string;
|
|
55
|
+
};
|
|
52
56
|
//#endregion
|
|
53
57
|
//#region src/modules/email/emailStateMachine.d.ts
|
|
54
58
|
|
|
@@ -73,13 +77,17 @@ type EmailLoadingPrefillState = {
|
|
|
73
77
|
/**
|
|
74
78
|
* Ready for email input - use `setEmail()` and `submit()`
|
|
75
79
|
* @property prefilledEmail - Pre-populated email address (if prefill enabled)
|
|
76
|
-
* @property emailError -
|
|
80
|
+
* @property emailError - Server-side validation error message if email was rejected
|
|
81
|
+
* @property validationErrors - Client-side validation errors (e.g. invalid/empty email). Surfaced on blur and submit.
|
|
82
|
+
* @property isValid - True iff `validationErrors` is empty. Optimistic semantic: starts true on initial render.
|
|
77
83
|
* @property otpVerification - Whether OTP email verification is enabled (from module config). When omitted, treat as `false`.
|
|
78
84
|
*/
|
|
79
85
|
type EmailInputtingState = {
|
|
80
86
|
status: 'inputting';
|
|
81
87
|
prefilledEmail?: string;
|
|
82
88
|
emailError?: string;
|
|
89
|
+
validationErrors?: EmailValidationErrors;
|
|
90
|
+
isValid: boolean;
|
|
83
91
|
otpVerification?: boolean;
|
|
84
92
|
};
|
|
85
93
|
/** Email address is being submitted to the backend */
|
|
@@ -89,6 +97,10 @@ type EmailSubmittingState = {
|
|
|
89
97
|
/** OTP is being sent to the email address */
|
|
90
98
|
type EmailResendingOtpState = {
|
|
91
99
|
status: 'resendingOtp';
|
|
100
|
+
/** The OTP code entered so far (controlled-input value, kept visible while disabled) */
|
|
101
|
+
otpCode: string;
|
|
102
|
+
/** Expected OTP length (owned by Core) */
|
|
103
|
+
otpLength: number;
|
|
92
104
|
};
|
|
93
105
|
/** OTP is being sent initialy to the email address */
|
|
94
106
|
type EmailSendingInitialOtpState = {
|
|
@@ -99,22 +111,34 @@ type EmailSendingInitialOtpState = {
|
|
|
99
111
|
* @property resendTimer - Seconds remaining before resend is allowed
|
|
100
112
|
* @property canResend - Whether the resend button should be enabled
|
|
101
113
|
* @property attemptsRemaining - Number of OTP verification attempts left
|
|
114
|
+
* @property otpCode - The OTP code entered so far (controlled-input value)
|
|
115
|
+
* @property otpLength - Expected OTP length (owned by Core; the UI should not hardcode it)
|
|
116
|
+
* @property otpValidationErrors - Client-side OTP errors (e.g. incomplete code). Surfaced on blur and submit.
|
|
117
|
+
* @property isOtpValid - True iff `otpValidationErrors` is empty. Optimistic semantic: starts true.
|
|
102
118
|
*/
|
|
103
119
|
type EmailAwaitingOtpState = {
|
|
104
120
|
status: 'awaitingOtp';
|
|
105
121
|
resendTimer: number;
|
|
106
122
|
canResend: boolean;
|
|
107
123
|
attemptsRemaining: number;
|
|
124
|
+
otpCode: string;
|
|
125
|
+
otpLength: number;
|
|
126
|
+
otpValidationErrors?: OtpValidationErrors;
|
|
127
|
+
isOtpValid: boolean;
|
|
108
128
|
};
|
|
109
129
|
/**
|
|
110
130
|
* OTP code is being verified against the backend
|
|
111
131
|
* @property resendTimer - Seconds remaining on resend cooldown (unchanged while verifying)
|
|
112
132
|
* @property canResend - Whether resend is allowed (cooldown finished)
|
|
133
|
+
* @property otpCode - The code being verified (controlled-input value, kept visible while disabled)
|
|
134
|
+
* @property otpLength - Expected OTP length (owned by Core)
|
|
113
135
|
*/
|
|
114
136
|
type EmailVerifyingOtpState = {
|
|
115
137
|
status: 'verifyingOtp';
|
|
116
138
|
resendTimer: number;
|
|
117
139
|
canResend: boolean;
|
|
140
|
+
otpCode: string;
|
|
141
|
+
otpLength: number;
|
|
118
142
|
};
|
|
119
143
|
/**
|
|
120
144
|
* OTP verification failed - user can retry with `submitOtp()`
|
|
@@ -122,6 +146,10 @@ type EmailVerifyingOtpState = {
|
|
|
122
146
|
* @property attemptsRemaining - Number of remaining attempts before lockout
|
|
123
147
|
* @property resendTimer - Seconds remaining on resend cooldown (same as awaiting OTP)
|
|
124
148
|
* @property canResend - Whether resend is allowed (cooldown finished)
|
|
149
|
+
* @property otpCode - The OTP code entered so far (controlled-input value)
|
|
150
|
+
* @property otpLength - Expected OTP length (owned by Core)
|
|
151
|
+
* @property otpValidationErrors - Client-side OTP errors (e.g. incomplete code). Server `otpError` takes precedence in the UI.
|
|
152
|
+
* @property isOtpValid - True iff `otpValidationErrors` is empty. Optimistic semantic: starts true.
|
|
125
153
|
*/
|
|
126
154
|
type EmailOtpErrorState = {
|
|
127
155
|
status: 'otpError';
|
|
@@ -129,6 +157,10 @@ type EmailOtpErrorState = {
|
|
|
129
157
|
attemptsRemaining: number;
|
|
130
158
|
resendTimer: number;
|
|
131
159
|
canResend: boolean;
|
|
160
|
+
otpCode: string;
|
|
161
|
+
otpLength: number;
|
|
162
|
+
otpValidationErrors?: OtpValidationErrors;
|
|
163
|
+
isOtpValid: boolean;
|
|
132
164
|
};
|
|
133
165
|
/** Email verification completed successfully */
|
|
134
166
|
type EmailFinishedState = {
|
|
@@ -218,10 +250,16 @@ declare function createEmailManager(options: CreateEmailActorOptions): Manager<E
|
|
|
218
250
|
* ```
|
|
219
251
|
*/
|
|
220
252
|
setEmail(email: string, isValid: boolean): void;
|
|
253
|
+
/**
|
|
254
|
+
* Validates the current email address (e.g., on blur).
|
|
255
|
+
* Populates or clears `validationErrors.email` on the 'inputting' state.
|
|
256
|
+
*/
|
|
257
|
+
validateEmail(): void;
|
|
221
258
|
/**
|
|
222
259
|
* Submits the email address for verification.
|
|
223
|
-
*
|
|
224
|
-
*
|
|
260
|
+
* Runs full validation first: if the email is empty or invalid, populates
|
|
261
|
+
* `validationErrors` and stays on 'inputting'; otherwise transitions to
|
|
262
|
+
* 'submitting', then to 'sendingInitialOtp' or 'finished' (if no OTP).
|
|
225
263
|
*/
|
|
226
264
|
submit(): void;
|
|
227
265
|
/**
|
|
@@ -231,6 +269,12 @@ declare function createEmailManager(options: CreateEmailActorOptions): Manager<E
|
|
|
231
269
|
* @param code - The OTP code entered by the user
|
|
232
270
|
*/
|
|
233
271
|
setOtpCode(code: string): void;
|
|
272
|
+
/**
|
|
273
|
+
* Validates the current OTP code (e.g. on blur), without submitting.
|
|
274
|
+
* Populates or clears `otpValidationErrors.otp` on the 'awaitingOtp' /
|
|
275
|
+
* 'otpError' states (incomplete code → `isOtpValid` becomes false).
|
|
276
|
+
*/
|
|
277
|
+
validateOtp(): void;
|
|
234
278
|
/**
|
|
235
279
|
* Sets and submits the OTP code in one call.
|
|
236
280
|
* Should be called when state is 'awaitingOtp' or 'otpError'.
|
|
@@ -286,10 +330,16 @@ declare function createEmailManagerFromActor(actor: EmailActor): Manager<EmailSt
|
|
|
286
330
|
* ```
|
|
287
331
|
*/
|
|
288
332
|
setEmail(email: string, isValid: boolean): void;
|
|
333
|
+
/**
|
|
334
|
+
* Validates the current email address (e.g., on blur).
|
|
335
|
+
* Populates or clears `validationErrors.email` on the 'inputting' state.
|
|
336
|
+
*/
|
|
337
|
+
validateEmail(): void;
|
|
289
338
|
/**
|
|
290
339
|
* Submits the email address for verification.
|
|
291
|
-
*
|
|
292
|
-
*
|
|
340
|
+
* Runs full validation first: if the email is empty or invalid, populates
|
|
341
|
+
* `validationErrors` and stays on 'inputting'; otherwise transitions to
|
|
342
|
+
* 'submitting', then to 'sendingInitialOtp' or 'finished' (if no OTP).
|
|
293
343
|
*/
|
|
294
344
|
submit(): void;
|
|
295
345
|
/**
|
|
@@ -299,6 +349,12 @@ declare function createEmailManagerFromActor(actor: EmailActor): Manager<EmailSt
|
|
|
299
349
|
* @param code - The OTP code entered by the user
|
|
300
350
|
*/
|
|
301
351
|
setOtpCode(code: string): void;
|
|
352
|
+
/**
|
|
353
|
+
* Validates the current OTP code (e.g. on blur), without submitting.
|
|
354
|
+
* Populates or clears `otpValidationErrors.otp` on the 'awaitingOtp' /
|
|
355
|
+
* 'otpError' states (incomplete code → `isOtpValid` becomes false).
|
|
356
|
+
*/
|
|
357
|
+
validateOtp(): void;
|
|
302
358
|
/**
|
|
303
359
|
* Sets and submits the OTP code in one call.
|
|
304
360
|
* Should be called when state is 'awaitingOtp' or 'otpError'.
|
|
@@ -340,8 +396,10 @@ declare function createEmailManagerFromActor(actor: EmailActor): Manager<EmailSt
|
|
|
340
396
|
* @property stop - Stops the manager and cleans up resources
|
|
341
397
|
* @property load - Initializes the verification flow
|
|
342
398
|
* @property setEmail - Sets the email address
|
|
399
|
+
* @property validateEmail - Validates the current email (e.g. on blur)
|
|
343
400
|
* @property submit - Submits the email address
|
|
344
401
|
* @property setOtpCode - Sets OTP code without submitting
|
|
402
|
+
* @property validateOtp - Validates the current OTP (e.g. on blur)
|
|
345
403
|
* @property submitOtp - Sets and submits OTP code
|
|
346
404
|
* @property resendOtp - Requests new OTP code
|
|
347
405
|
* @property back - Returns to email input from OTP screen
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
|
|
2
2
|
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-BTlQbFIU.esm.js";
|
|
4
|
+
import { t as OTP_CODE_LENGTH } from "./otp-B33JDqfa.esm.js";
|
|
4
5
|
|
|
5
6
|
//#region src/modules/email/emailActor.ts
|
|
6
7
|
function createEmailActor(options) {
|
|
@@ -105,28 +106,44 @@ function mapState(snapshot) {
|
|
|
105
106
|
status: "inputting",
|
|
106
107
|
prefilledEmail: context.prefilledEmail,
|
|
107
108
|
emailError: context.emailError,
|
|
109
|
+
validationErrors: context.validationErrors,
|
|
110
|
+
isValid: Object.keys(context.validationErrors ?? {}).length === 0,
|
|
108
111
|
otpVerification: context.config.otpVerification
|
|
109
112
|
};
|
|
110
113
|
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
111
|
-
if (typedSnapshot.matches("resendingOtp")) return {
|
|
114
|
+
if (typedSnapshot.matches("resendingOtp")) return {
|
|
115
|
+
status: "resendingOtp",
|
|
116
|
+
otpCode: context.otpCode,
|
|
117
|
+
otpLength: OTP_CODE_LENGTH
|
|
118
|
+
};
|
|
112
119
|
if (typedSnapshot.matches("sendingInitialOtp")) return { status: "sendingInitialOtp" };
|
|
113
120
|
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
114
121
|
status: "awaitingOtp",
|
|
115
122
|
resendTimer: context.resendTimer,
|
|
116
123
|
canResend: !context.resendTimerActive,
|
|
117
|
-
attemptsRemaining: context.attemptsRemaining
|
|
124
|
+
attemptsRemaining: context.attemptsRemaining,
|
|
125
|
+
otpCode: context.otpCode,
|
|
126
|
+
otpLength: OTP_CODE_LENGTH,
|
|
127
|
+
otpValidationErrors: context.otpValidationErrors,
|
|
128
|
+
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
118
129
|
};
|
|
119
130
|
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
120
131
|
status: "verifyingOtp",
|
|
121
132
|
resendTimer: context.resendTimer,
|
|
122
|
-
canResend: !context.resendTimerActive
|
|
133
|
+
canResend: !context.resendTimerActive,
|
|
134
|
+
otpCode: context.otpCode,
|
|
135
|
+
otpLength: OTP_CODE_LENGTH
|
|
123
136
|
};
|
|
124
137
|
if (typedSnapshot.matches("otpError")) return {
|
|
125
138
|
status: "otpError",
|
|
126
139
|
otpError: context.otpError ?? "Invalid OTP code",
|
|
127
140
|
attemptsRemaining: context.attemptsRemaining,
|
|
128
141
|
resendTimer: context.resendTimer,
|
|
129
|
-
canResend: !context.resendTimerActive
|
|
142
|
+
canResend: !context.resendTimerActive,
|
|
143
|
+
otpCode: context.otpCode,
|
|
144
|
+
otpLength: OTP_CODE_LENGTH,
|
|
145
|
+
otpValidationErrors: context.otpValidationErrors,
|
|
146
|
+
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
130
147
|
};
|
|
131
148
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
132
149
|
if (typedSnapshot.matches("error")) return {
|
|
@@ -147,6 +164,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
147
164
|
isValid
|
|
148
165
|
});
|
|
149
166
|
},
|
|
167
|
+
validateEmail() {
|
|
168
|
+
actor.send({ type: "VALIDATE_EMAIL" });
|
|
169
|
+
},
|
|
150
170
|
submit() {
|
|
151
171
|
trackElementClicked?.("submit");
|
|
152
172
|
actor.send({ type: "SUBMIT" });
|
|
@@ -157,6 +177,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
157
177
|
code
|
|
158
178
|
});
|
|
159
179
|
},
|
|
180
|
+
validateOtp() {
|
|
181
|
+
actor.send({ type: "VALIDATE_OTP" });
|
|
182
|
+
},
|
|
160
183
|
submitOtp(code) {
|
|
161
184
|
trackElementClicked?.("submitOtp");
|
|
162
185
|
actor.send({
|
|
@@ -2,6 +2,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BESs49g_.esm.j
|
|
|
2
2
|
import { t as api } from "./api-YxPMtty2.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
|
|
5
|
+
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-B33JDqfa.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/email/emailServices.ts
|
|
7
8
|
function getEmailServerFailureReason(error, invalidStatus) {
|
|
@@ -41,6 +42,10 @@ function getErrorMessage(error) {
|
|
|
41
42
|
if (error instanceof Error) return error.message;
|
|
42
43
|
return String(error);
|
|
43
44
|
}
|
|
45
|
+
function computeEmailValidationErrors(context) {
|
|
46
|
+
if (context.email.trim().length === 0 || !context.isValid) return { email: "invalidEmail" };
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
44
49
|
const RESEND_TIMER_SECONDS = 30;
|
|
45
50
|
const emailMachine = setup({
|
|
46
51
|
types: {
|
|
@@ -86,17 +91,31 @@ const emailMachine = setup({
|
|
|
86
91
|
return {
|
|
87
92
|
email: e.email,
|
|
88
93
|
isValid: e.isValid,
|
|
89
|
-
emailError: void 0
|
|
94
|
+
emailError: void 0,
|
|
95
|
+
validationErrors: void 0
|
|
90
96
|
};
|
|
91
97
|
}),
|
|
98
|
+
validateEmailField: assign(({ context }) => {
|
|
99
|
+
const errors = computeEmailValidationErrors(context);
|
|
100
|
+
return { validationErrors: errors.email ? errors : void 0 };
|
|
101
|
+
}),
|
|
102
|
+
computeValidationResult: assign(({ context }) => {
|
|
103
|
+
const errors = computeEmailValidationErrors(context);
|
|
104
|
+
return { validationErrors: errors.email ? errors : void 0 };
|
|
105
|
+
}),
|
|
92
106
|
setEmailError: assign(({ event }) => ({ emailError: getErrorMessage(event.error) })),
|
|
93
107
|
setError: assign(({ event }) => ({ error: getErrorMessage(event.error) })),
|
|
94
108
|
clearError: assign({ error: () => void 0 }),
|
|
95
109
|
clearEmailError: assign({ emailError: () => void 0 }),
|
|
96
110
|
setOtpCode: assign(({ event }) => ({
|
|
97
111
|
otpCode: event.code,
|
|
98
|
-
otpError: void 0
|
|
112
|
+
otpError: void 0,
|
|
113
|
+
otpValidationErrors: void 0
|
|
99
114
|
})),
|
|
115
|
+
validateOtpField: assign(({ context }) => {
|
|
116
|
+
const errors = computeOtpValidationErrors(context.otpCode);
|
|
117
|
+
return { otpValidationErrors: errors.otp ? errors : void 0 };
|
|
118
|
+
}),
|
|
100
119
|
setOtpError: assign(({ context, event }) => ({
|
|
101
120
|
otpError: getErrorMessage(event.error),
|
|
102
121
|
attemptsRemaining: context.attemptsRemaining - 1
|
|
@@ -104,7 +123,8 @@ const emailMachine = setup({
|
|
|
104
123
|
setOtpRequestError: assign(({ event }) => ({ otpError: getErrorMessage(event.error) })),
|
|
105
124
|
clearOtpError: assign({
|
|
106
125
|
otpError: () => void 0,
|
|
107
|
-
otpCode: () => ""
|
|
126
|
+
otpCode: () => "",
|
|
127
|
+
otpValidationErrors: () => void 0
|
|
108
128
|
}),
|
|
109
129
|
startResendTimer: assign({
|
|
110
130
|
resendTimer: () => RESEND_TIMER_SECONDS,
|
|
@@ -122,10 +142,12 @@ const emailMachine = setup({
|
|
|
122
142
|
email: "",
|
|
123
143
|
isValid: false,
|
|
124
144
|
emailError: void 0,
|
|
145
|
+
validationErrors: void 0,
|
|
125
146
|
prefilledEmail: void 0,
|
|
126
147
|
error: void 0,
|
|
127
148
|
otpCode: "",
|
|
128
149
|
otpError: void 0,
|
|
150
|
+
otpValidationErrors: void 0,
|
|
129
151
|
attemptsRemaining: context.config.maxOtpAttempts ?? 3,
|
|
130
152
|
resendTimer: 0,
|
|
131
153
|
resendTimerActive: false
|
|
@@ -134,8 +156,9 @@ const emailMachine = setup({
|
|
|
134
156
|
guards: {
|
|
135
157
|
hasPrefill: ({ context }) => context.config.prefill === true,
|
|
136
158
|
hasOtpVerification: ({ context }) => context.config.otpVerification,
|
|
137
|
-
|
|
159
|
+
hasNoValidationErrors: ({ context }) => !context.validationErrors || Object.keys(context.validationErrors).length === 0,
|
|
138
160
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
|
|
161
|
+
hasCompleteOtp: ({ context }) => isOtpComplete(context.otpCode),
|
|
139
162
|
canResend: ({ context }) => !context.resendTimerActive
|
|
140
163
|
}
|
|
141
164
|
}).createMachine({
|
|
@@ -146,10 +169,12 @@ const emailMachine = setup({
|
|
|
146
169
|
email: "",
|
|
147
170
|
isValid: false,
|
|
148
171
|
emailError: void 0,
|
|
172
|
+
validationErrors: void 0,
|
|
149
173
|
prefilledEmail: void 0,
|
|
150
174
|
error: void 0,
|
|
151
175
|
otpCode: "",
|
|
152
176
|
otpError: void 0,
|
|
177
|
+
otpValidationErrors: void 0,
|
|
153
178
|
attemptsRemaining: input.config.maxOtpAttempts ?? 3,
|
|
154
179
|
resendTimer: 0,
|
|
155
180
|
resendTimerActive: false
|
|
@@ -170,12 +195,17 @@ const emailMachine = setup({
|
|
|
170
195
|
} },
|
|
171
196
|
inputting: { on: {
|
|
172
197
|
EMAIL_CHANGED: { actions: "setEmail" },
|
|
173
|
-
|
|
198
|
+
VALIDATE_EMAIL: { actions: "validateEmailField" },
|
|
199
|
+
SUBMIT: { target: "validatingSubmit" }
|
|
200
|
+
} },
|
|
201
|
+
validatingSubmit: {
|
|
202
|
+
entry: "computeValidationResult",
|
|
203
|
+
always: [{
|
|
204
|
+
guard: "hasNoValidationErrors",
|
|
174
205
|
target: "submitting",
|
|
175
|
-
guard: "isValidEmail",
|
|
176
206
|
actions: "clearEmailError"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
207
|
+
}, { target: "inputting" }]
|
|
208
|
+
},
|
|
179
209
|
submitting: { invoke: {
|
|
180
210
|
id: "submitEmail",
|
|
181
211
|
src: "submitEmail",
|
|
@@ -222,7 +252,11 @@ const emailMachine = setup({
|
|
|
222
252
|
on: {
|
|
223
253
|
TICK: { actions: "tickResendTimer" },
|
|
224
254
|
OTP_CHANGED: { actions: "setOtpCode" },
|
|
225
|
-
|
|
255
|
+
VALIDATE_OTP: { actions: "validateOtpField" },
|
|
256
|
+
VERIFY_OTP: [{
|
|
257
|
+
guard: "hasCompleteOtp",
|
|
258
|
+
target: "verifyingOtp"
|
|
259
|
+
}, { actions: "validateOtpField" }],
|
|
226
260
|
RESEND_OTP: {
|
|
227
261
|
target: "resendingOtp",
|
|
228
262
|
guard: "canResend"
|
|
@@ -273,6 +307,7 @@ const emailMachine = setup({
|
|
|
273
307
|
target: "awaitingOtp",
|
|
274
308
|
actions: "setOtpCode"
|
|
275
309
|
},
|
|
310
|
+
VALIDATE_OTP: { actions: "validateOtpField" },
|
|
276
311
|
RESEND_OTP: {
|
|
277
312
|
target: "resendingOtp",
|
|
278
313
|
guard: "canResend"
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import { n as createActor } from "./Actor-
|
|
4
|
-
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-
|
|
5
|
-
import { i as fromPromise, r as fromCallback } from "./StateMachine-
|
|
6
|
-
import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-
|
|
7
|
-
import "./camera-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./types-
|
|
11
|
-
import { a as VirtualCameraCheckOutput, i as IWasmUtilCapability, l as IStorageCapability, o as WasmUtilConfig } from "./deepsightService-
|
|
12
|
-
import "./types-
|
|
13
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
14
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
16
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
17
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
18
|
-
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { a as
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
24
|
-
import { a as
|
|
1
|
+
import "./warmup-C-Me8RNj.js";
|
|
2
|
+
import "./Manager-BtbwDUTY.js";
|
|
3
|
+
import { n as createActor } from "./Actor-JBsgjVQJ.js";
|
|
4
|
+
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DXDJ88Iy.js";
|
|
5
|
+
import { i as fromPromise, r as fromCallback } from "./StateMachine-Crq3LOHm.js";
|
|
6
|
+
import { _ as SendFaceImageResponse, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as BaseWasmProvider } from "./faceCaptureManagerFactory-BncOywLG.js";
|
|
7
|
+
import "./camera-BDklS02l.js";
|
|
8
|
+
import "./types-D2CwpM2b.js";
|
|
9
|
+
import "./types-BG62yJk8.js";
|
|
10
|
+
import "./types-DVwRlm7y.js";
|
|
11
|
+
import { a as VirtualCameraCheckOutput, i as IWasmUtilCapability, l as IStorageCapability, o as WasmUtilConfig } from "./deepsightService-BvxizhpY.js";
|
|
12
|
+
import "./types-CuY-AIPp.js";
|
|
13
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Uk6VyeRs.js";
|
|
14
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B7066qjf.js";
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Dmp2yhJW.js";
|
|
16
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-pQxe0h9U.js";
|
|
17
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DXSx8qde.js";
|
|
18
|
+
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DWauVgqH.js";
|
|
19
|
+
import "./otp-BEvNq7gp.js";
|
|
20
|
+
import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-Dv5Hb6ZQ.js";
|
|
21
|
+
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-pvDvZ_gv.js";
|
|
22
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-G8OBXRBS.js";
|
|
23
|
+
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DLL9MVqE.js";
|
|
24
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DvtPF0wk.js";
|
|
25
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CquT4odi.js";
|
|
25
26
|
|
|
26
27
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
27
28
|
type AuthenticationUploadResponse = {
|
|
@@ -6,7 +6,7 @@ import "./endpoints-BPHddOTi.esm.js";
|
|
|
6
6
|
import "./stats-AwLva7-C.esm.js";
|
|
7
7
|
import { t as IpifyProvider } from "./IpifyProvider-BQKB2PR-.esm.js";
|
|
8
8
|
import "./browserSimulation-CHpyEI-W.esm.js";
|
|
9
|
-
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-RsPNFUZW.esm.js";
|
|
10
10
|
import "./platform-D871crJL.esm.js";
|
|
11
11
|
import "./getBrowser-CMJJeBF8.esm.js";
|
|
12
12
|
import { a as fromPromise, i as fromCallback, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
@@ -18,16 +18,16 @@ import "./MotionSensorProvider-D1JWpMLJ.esm.js";
|
|
|
18
18
|
import "./permissionServices-BjXAT5OT.esm.js";
|
|
19
19
|
import "./camera-P7dse339.esm.js";
|
|
20
20
|
import "./faceCaptureManagerFactory-DKE4-MLG.esm.js";
|
|
21
|
-
import "./recordingService-
|
|
21
|
+
import "./recordingService-CGlyfFQ7.esm.js";
|
|
22
22
|
import "./ITimerCapability-gIlcIrAX.esm.js";
|
|
23
23
|
import "./deepsightService-Dh9EiWze.esm.js";
|
|
24
24
|
import "./backCameraStream-sqXIvxpl.esm.js";
|
|
25
25
|
import "./getDeviceClass-C5yT6K2e.esm.js";
|
|
26
26
|
import "./getDeviceClass-cJ-TvND7.esm.js";
|
|
27
27
|
import "./types-CRp-Maxh.esm.js";
|
|
28
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
29
|
-
import "./authenticationStateMachine-
|
|
30
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
28
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BV_JfZOM.esm.js";
|
|
29
|
+
import "./authenticationStateMachine-Bx9QKZmx.esm.js";
|
|
30
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BgtXT783.esm.js";
|
|
31
31
|
import "./consentStateMachine-Doxk7gh8.esm.js";
|
|
32
32
|
import { n as createConsentManagerFromActor } from "./consentManager-DuiySGhz.esm.js";
|
|
33
33
|
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-D6GvdpFQ.esm.js";
|
|
@@ -35,21 +35,22 @@ import "./cpf-DuVa7wl0.esm.js";
|
|
|
35
35
|
import "./curpValidationStateMachine-DdqqjX0e.esm.js";
|
|
36
36
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-Ly5tD2Q8.esm.js";
|
|
37
37
|
import "./session-BK_FUgjz.esm.js";
|
|
38
|
-
import "./emailStateMachine-
|
|
39
|
-
import
|
|
40
|
-
import "./
|
|
41
|
-
import
|
|
42
|
-
import "./
|
|
43
|
-
import
|
|
44
|
-
import "./
|
|
45
|
-
import
|
|
46
|
-
import "./
|
|
47
|
-
import
|
|
48
|
-
import { n as
|
|
49
|
-
import "./
|
|
50
|
-
import
|
|
51
|
-
import "./
|
|
52
|
-
import
|
|
38
|
+
import "./emailStateMachine-BTlQbFIU.esm.js";
|
|
39
|
+
import "./otp-B33JDqfa.esm.js";
|
|
40
|
+
import { n as createEmailManagerFromActor } from "./emailManager-DrAlmZxR.esm.js";
|
|
41
|
+
import "./selfieStateMachine-Dwuu_grk.esm.js";
|
|
42
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BdH-6KoN.esm.js";
|
|
43
|
+
import "./idCaptureStateMachine-BPlJG8rV.esm.js";
|
|
44
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-B2C7sszi.esm.js";
|
|
45
|
+
import "./phoneStateMachine-BfcrU9Ge.esm.js";
|
|
46
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-BAuNvs-i.esm.js";
|
|
47
|
+
import "./identityReuseStateMachine-BN_TuE9C.esm.js";
|
|
48
|
+
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BUlApFOI.esm.js";
|
|
49
|
+
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-DIxV_S3C.esm.js";
|
|
50
|
+
import "./mandatoryConsentStateMachine-BSqA6UaU.esm.js";
|
|
51
|
+
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-vRY1lhnH.esm.js";
|
|
52
|
+
import "./redirectToMobileStateMachine-S55Apm7m.esm.js";
|
|
53
|
+
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-DTE12sg_.esm.js";
|
|
53
54
|
|
|
54
55
|
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
55
56
|
async function getFingerprint(disableIpify) {
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./api-YxPMtty2.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
5
|
-
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
5
|
+
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-Da2xvnb3.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/face-match/faceMatchActor.ts
|
|
8
8
|
function createFaceMatchActor(options) {
|
package/dist/{faceCaptureManagerFactory-Cg6hZagK.d.ts → faceCaptureManagerFactory-BncOywLG.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as WasmPipeline } from "./warmup-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
4
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
5
|
-
import { t as CameraStream } from "./camera-
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow } from "./types-
|
|
7
|
-
import { c as MLProviderConfig, i as IWasmUtilCapability, l as IStorageCapability, n as StreamCanvasCapture, r as IncodeCanvas, s as IMLProviderCapability, t as DeepsightService, u as IRecordingCapability } from "./deepsightService-
|
|
8
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
1
|
+
import { n as WasmPipeline } from "./warmup-C-Me8RNj.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
3
|
+
import { t as ActorRefFrom } from "./Actor-JBsgjVQJ.js";
|
|
4
|
+
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-Crq3LOHm.js";
|
|
5
|
+
import { t as CameraStream } from "./camera-BDklS02l.js";
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow } from "./types-DVwRlm7y.js";
|
|
7
|
+
import { c as MLProviderConfig, i as IWasmUtilCapability, l as IStorageCapability, n as StreamCanvasCapture, r as IncodeCanvas, s as IMLProviderCapability, t as DeepsightService, u as IRecordingCapability } from "./deepsightService-BvxizhpY.js";
|
|
8
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CuY-AIPp.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
11
11
|
declare const _authenticationMachine: AnyStateMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as getToken } from "./api-YxPMtty2.esm.js";
|
|
2
2
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
|
|
3
3
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BjXAT5OT.esm.js";
|
|
4
|
-
import { _ as stopStream, a as isReadyForCaptureFromPermission, c as StreamCanvasCapture, g as startDetection, h as sendLabelInspectionEvent, m as initializeDeepsightSession, n as preloadOpenViduProvider, o as needsMotionPrimeOnlyFromPermission, p as initializeCamera, r as flagFaceManualReview, s as resolveStoredPermissionResult, t as createRecordingService } from "./recordingService-
|
|
4
|
+
import { _ as stopStream, a as isReadyForCaptureFromPermission, c as StreamCanvasCapture, g as startDetection, h as sendLabelInspectionEvent, m as initializeDeepsightSession, n as preloadOpenViduProvider, o as needsMotionPrimeOnlyFromPermission, p as initializeCamera, r as flagFaceManualReview, s as resolveStoredPermissionResult, t as createRecordingService } from "./recordingService-CGlyfFQ7.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-CRp-Maxh.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/faceCapture/faceCaptureSetup.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-
|
|
1
|
+
import "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { a as FieldComparisonActor, c as FieldComparisonFields, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, o as fieldComparisonMachine, r as createFieldComparisonManager, s as FieldComparisonConfig, t as FieldComparisonManager } from "./fieldComparisonManager-DLL9MVqE.js";
|
|
4
4
|
export { type FieldComparisonActor, type FieldComparisonConfig, type FieldComparisonFields, type FieldComparisonManager, type FieldComparisonState, createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
|
@@ -2,6 +2,6 @@ import "./api-YxPMtty2.esm.js";
|
|
|
2
2
|
import "./events-Bsw1l0pH.esm.js";
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import "./xstate.esm-CWoFJOio.esm.js";
|
|
5
|
-
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-
|
|
5
|
+
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-DIxV_S3C.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|