@incodetech/core 0.0.0-dev-20261201-b41183a2 → 0.0.0-dev-20261201-e37652f8
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/{FaceDetectionProvider-DILvXMxQ.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +7 -7
- package/dist/{addressSearch-BJ711RHG.esm.js → addressSearch-gginelz3.esm.js} +29 -27
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DRMBLSh7.esm.js → antifraudManager-B673OXCo.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bi0m60oV.esm.js → antifraudStateMachine-C_d7-TUA.esm.js} +1 -1
- package/dist/{api-B58edv6M.esm.js → api-CsXnB7m6.esm.js} +1 -0
- package/dist/{apiError-B80OYJHb.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
- package/dist/{attemptCarry-CxiYlUAO.esm.js → attemptCarry-8gUYc3pL.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CXDKsr-j.esm.js → authenticationManager-CrBlRkAd.esm.js} +4 -4
- package/dist/{authenticationManager-C_ttJLGU.d.ts → authenticationManager-Cv_jCMGJ.d.ts} +1 -1
- package/dist/{authenticationStateMachine-CjheAavc.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-DGzHjp2j.esm.js → certificateIssuanceManager-D-Dm90F3.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-DpflnS6P.esm.js → certificateIssuanceStateMachine-CBNw9Niu.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Bx_osBME.d.ts → consentManager-Bow34QP_.d.ts} +13 -13
- package/dist/{consentManager-CyoeiABc.esm.js → consentManager-DQ1uiNhr.esm.js} +2 -2
- package/dist/{consentStateMachine-BTUrAslr.esm.js → consentStateMachine-Cb7dKk_1.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-cmQmp7Bi.esm.js → crossDocumentDataMatchManager-CeeEmCV1.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BFPZiliY.d.ts → curpValidationManager-DFWjZq3i.d.ts} +1 -1
- package/dist/{curpValidationManager-EW44fVpH.esm.js → curpValidationManager-vgHG8gob.esm.js} +2 -2
- package/dist/{curpValidationStateMachine-BFkt90Zs.esm.js → curpValidationStateMachine-DaSzh9OA.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DPMBJrcH.esm.js → customFieldsManager-BuEt-nm4.esm.js} +2 -2
- package/dist/{customWatchlistManager-DiYpPjZx.esm.js → customWatchlistManager-C1z0B5NU.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-D7VxQggF.esm.js → customWatchlistStateMachine-DvwFHjkC.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-22yGNhzp.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
- package/dist/{deepsightLoader-DAvHxEmQ.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
- package/dist/{desktopCameraElection-DKHWoXIZ.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +5 -5
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +2 -2
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
- package/dist/{documentCaptureManager-ytELw-yO.esm.js → documentCaptureManager-DoHy82WC.esm.js} +2 -2
- package/dist/{documentCaptureStateMachine-lKG1IVEM.esm.js → documentCaptureStateMachine-C_HQH7vA.esm.js} +2 -2
- package/dist/{documentSignatureStateMachine-BVv6yTDC.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-L9BCGhY3.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-UeIgfIgO.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +2 -2
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BNG13W2D.esm.js → ekybManager-xhoOX9O9.esm.js} +2 -2
- package/dist/{ekybStateMachine-qSw4IjCe.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +184 -57
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -0
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-Bt0FZlZO.esm.js → ekycManager-DrGuK0kT.esm.js} +2 -2
- package/dist/{ekycPrefillManager-C5DMDJEA.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
- package/dist/{ekycPrefillManager-D-8VY48A.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +8 -8
- package/dist/{ekycPrefillStateMachine-66IiDSxQ.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +9 -88
- package/dist/{ekycStateMachine-lo3GvfpV.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +299 -126
- package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Dc0_ymIt.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BBdRYLtH.esm.js → emailManager-CUX2saAB.esm.js} +2 -2
- package/dist/{emailStateMachine-DO7lWYvn.esm.js → emailStateMachine-BzWHKLtW.esm.js} +2 -2
- package/dist/{events-PUWyizJn.esm.js → events-Dlkhhx5O.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +35 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-D0y15MK_.d.ts → faceCaptureManagerFactory-2oqROMSB.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-DePLuBnT.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +3 -3
- package/dist/{faceCaptureSetup-C8qfvh2x.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +10 -10
- package/dist/{faceMatchManager-nBvS9z0o.esm.js → faceMatchManager-BzaXiW4H.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-48O8j_Lx.esm.js → faceMatchStateMachine-BItwQ_yA.esm.js} +2 -2
- package/dist/{feature-management-srznX8Iz.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-B1ipvtnp.esm.js → fieldComparisonManager-CzX6IhGd.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-yecjuXV4.esm.js → fiscalQrManager-Dg6Mp58y.esm.js} +2 -2
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +31 -9
- package/dist/flow.esm.js +11 -7
- package/dist/{flowCompletionService-Cba59yFV.esm.js → flowCompletionService-L0J63ui-.esm.js} +2 -2
- package/dist/{flowServices-B33MhjQM.esm.js → flowServices-3OXrEqDE.esm.js} +25 -21
- package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
- package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-C7cHHTkd.esm.js → geolocationManager-CREfQNgO.esm.js} +2 -2
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-QJqoWT7E.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-0-L21hu6.esm.js → governmentValidationManager-B7lIuL4r.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-BFIcq3UB.esm.js → governmentValidationStateMachine-BuW6l3ah.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-3YmXwvvY.esm.js → idCaptureManager-B5ZN7scK.esm.js} +6 -6
- package/dist/{idCaptureManager-B72fNOKa.d.ts → idCaptureManager-BMsGPjcf.d.ts} +2 -2
- package/dist/{idCaptureServices-j-hB9ROq.esm.js → idCaptureServices-7zZ457LW.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-DcQQvjLv.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +15 -15
- package/dist/{idOcrManager-CNGVEZ7B.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{idOcrManager-bjBLjrEE.esm.js → idOcrManager-C9C8UaPr.esm.js} +2 -2
- package/dist/{idOcrStateMachine-D5ifJ1B8.esm.js → idOcrStateMachine-DANDVn-6.esm.js} +1 -1
- package/dist/{idVerificationManager-C8Ja-vKq.esm.js → idVerificationManager-B_6wwpeT.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-BMnfZZli.esm.js → idVerificationStateMachine-MjQmD3yQ.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +1 -1
- package/dist/{identityReuseManager-D_jiHp1n.d.ts → identityReuseManager-BE6LHcuP.d.ts} +157 -21
- package/dist/{identityReuseManager-B5BWAleT.esm.js → identityReuseManager-DWECWIiZ.esm.js} +7 -3
- package/dist/{identityReuseStateMachine-Cuggm1UP.esm.js → identityReuseStateMachine-nBv0KUJC.esm.js} +73 -5
- package/dist/{index-O5g5kKdI.d.ts → index-k1LUfkAo.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BorQeoKZ.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-kuV8xPAu.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +4 -4
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-C6jjFptX.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +10 -10
- package/dist/{mandatoryConsentManager-FfgHdPYw.esm.js → mandatoryConsentManager-S8rgqCld.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CXuYC3qR.esm.js → mandatoryConsentStateMachine-BtE4heVc.esm.js} +1 -1
- package/dist/{multipartRecordingService-CFmOUGQt.esm.js → multipartRecordingService-C8v02l56.esm.js} +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-oIMdbeLG.esm.js → phoneManager-uQEAWKlO.esm.js} +2 -2
- package/dist/{phoneServices-Dk4j3NhI.esm.js → phoneServices-XoT74eS0.esm.js} +1 -1
- package/dist/{phoneStateMachine-Cu3y7ewi.esm.js → phoneStateMachine-B4W4CSqf.esm.js} +2 -2
- package/dist/{processFaceMatch-CHeI0DEt.esm.js → processFaceMatch-CpQYLU-y.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-RHW4CWxh.esm.js → recordingService-OcyZO_w6.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DmrPLTLG.esm.js → redirectToMobileManager-UQZkhZFB.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-OeQDdgsK.esm.js → redirectToMobileStateMachine-D1wp--wG.esm.js} +1 -1
- package/dist/{runChildModule-pJrB5rsq.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
- package/dist/{sdkVersion-CiTnubuK.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-UJWNVxvr.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
- package/dist/{selfieManager-B9nn8qKH.esm.js → selfieManager-DQ5xB8y6.esm.js} +4 -4
- package/dist/{selfieManager-C44cA6cA.d.ts → selfieManager-RgcJwpHg.d.ts} +1 -1
- package/dist/{selfieStateMachine-7H38L53x.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
- package/dist/{session-BLrEehWj.esm.js → session-DKnCv6zu.esm.js} +5 -5
- package/dist/session.d.ts +9 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-DAC3I8PG.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +7 -7
- package/dist/{setup-BajT35bZ.esm.js → setup-JGwc0kgu.esm.js} +8 -8
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DRUflksL.esm.js → signatureManager-3g4_cavt.esm.js} +2 -2
- package/dist/{signatureStateMachine-BQZenxel.esm.js → signatureStateMachine-CkES2vVv.esm.js} +1 -1
- package/dist/{stats-DHu3li6G.esm.js → stats-D_gJvsTS.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/trim-OmrUb6mG.esm.js +297 -0
- package/dist/trueSight-9VsfHXFt.esm.js +1 -0
- package/dist/{trueSightService-BLyfduve.esm.js → trueSightService-Dx8AqgKD.esm.js} +3 -3
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{trustGraphStateMachine-0Ehwried.esm.js → trustGraphStateMachine-fuYq0Cxf.esm.js} +1 -1
- package/dist/{types-C57lH3a8.d.ts → types-BV2Tl1wE.d.ts} +1 -1
- package/dist/{types-CaQV2ksk.d.ts → types-BVgTvWOP.d.ts} +1 -1
- package/dist/{types-DDmU-yVM.d.ts → types-DAhpyjuI.d.ts} +1 -1
- package/dist/{types-ujAUlvvI.d.ts → types-DH4VaTRC.d.ts} +4 -4
- package/dist/types-RLVmm_Hf.d.ts +6 -0
- package/dist/{types-ByNCQYE9.d.ts → types-YS7g_P7z.d.ts} +1 -1
- package/dist/uppercase-CwlIuiwR.esm.js +115 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-D4nY62Xt.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +4 -4
- package/dist/{videoSelfieStepDetector-DAEJDeL3.d.ts → videoSelfieStepDetector-DCOmz3yk.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-d8kdf35n.esm.js → watchlistForBusinessManager-VDu1ypVz.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-Y9wFmuMH.esm.js → watchlistForBusinessStateMachine-Dr85bA22.esm.js} +1 -1
- package/dist/{watchlistManager-D1BVrd3H.esm.js → watchlistManager-Dc9sFwZx.esm.js} +2 -2
- package/dist/{watchlistStateMachine-Da4p0sTE.esm.js → watchlistStateMachine-BnKGh6Kk.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -5
- package/dist/workflow.esm.js +40 -40
- package/package.json +1 -1
- package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
- package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
- package/dist/trueSight-BdWbgUnZ.esm.js +0 -1
- package/dist/types-B_THBzAh.d.ts +0 -6
package/dist/{identityReuseStateMachine-Cuggm1UP.esm.js → identityReuseStateMachine-nBv0KUJC.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseServices.ts
|
|
@@ -33,6 +33,32 @@ function adaptDocument(doc) {
|
|
|
33
33
|
async function fetchDocuments(signal) {
|
|
34
34
|
return ((await api.get(endpoints.identityReuseDocuments, { signal })).data?.documents ?? []).map(adaptDocument);
|
|
35
35
|
}
|
|
36
|
+
function isNotFound(error) {
|
|
37
|
+
return typeof error === "object" && error !== null && error.status === 404;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Fetches the organization's data-sharing consent, in `locale` when it has a
|
|
41
|
+
* text for it. Resolves `undefined` when the organization has no consent
|
|
42
|
+
* (404). Throws on any other failure.
|
|
43
|
+
*/
|
|
44
|
+
async function fetchConsent(locale, signal) {
|
|
45
|
+
try {
|
|
46
|
+
const payload = (await api.get(endpoints.identityReuseConsent, {
|
|
47
|
+
signal,
|
|
48
|
+
query: { locale }
|
|
49
|
+
})).data;
|
|
50
|
+
if (!payload?.revisionId) return void 0;
|
|
51
|
+
return {
|
|
52
|
+
revisionId: payload.revisionId,
|
|
53
|
+
locale: payload.locale,
|
|
54
|
+
text: payload.text?.trim() ? payload.text : void 0,
|
|
55
|
+
scopes: Array.isArray(payload.scopes) ? payload.scopes : []
|
|
56
|
+
};
|
|
57
|
+
} catch (error) {
|
|
58
|
+
if (isNotFound(error)) return void 0;
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
36
62
|
/** Submits the chosen document (or scan-new) for reuse. Throws on failure. */
|
|
37
63
|
async function submitDocument(params, signal) {
|
|
38
64
|
return (await api.post(endpoints.identityReuseSubmit, params, { signal })).data;
|
|
@@ -51,9 +77,21 @@ const SCAN_NEW_DOCUMENT = "scanNew";
|
|
|
51
77
|
* copy. The default lookup answers at once.
|
|
52
78
|
*/
|
|
53
79
|
const COMPANY_NAME_TIMEOUT_MS = 1e3;
|
|
54
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Budget for the organization's consent, counted from the start of loading.
|
|
82
|
+
* Without it in time, the picker opens with the screen's own copy and the
|
|
83
|
+
* share records no consent (the backend then records the organization's
|
|
84
|
+
* default one).
|
|
85
|
+
*/
|
|
86
|
+
const CONSENT_TIMEOUT_MS = 2e3;
|
|
87
|
+
function deriveSubmitParams(selectedDocumentId, consent) {
|
|
55
88
|
if (selectedDocumentId === "scanNew" || !selectedDocumentId) return { accepted: false };
|
|
56
|
-
return {
|
|
89
|
+
return consent ? {
|
|
90
|
+
accepted: true,
|
|
91
|
+
documentId: selectedDocumentId,
|
|
92
|
+
consentRevisionId: consent.revisionId,
|
|
93
|
+
consentLocale: consent.locale
|
|
94
|
+
} : {
|
|
57
95
|
accepted: true,
|
|
58
96
|
documentId: selectedDocumentId
|
|
59
97
|
};
|
|
@@ -70,6 +108,7 @@ const identityReuseMachine = setup({
|
|
|
70
108
|
return fetchDocuments(signal);
|
|
71
109
|
}),
|
|
72
110
|
fetchCompanyName: fromPromise(async () => void 0),
|
|
111
|
+
fetchConsent: fromPromise(async ({ input, signal }) => fetchConsent(input.locale, signal)),
|
|
73
112
|
submitDocument: fromPromise(async ({ input, signal }) => {
|
|
74
113
|
return submitDocument(input, signal);
|
|
75
114
|
})
|
|
@@ -86,6 +125,7 @@ const identityReuseMachine = setup({
|
|
|
86
125
|
return { selectedDocumentId: event.documentId ?? context.selectedDocumentId };
|
|
87
126
|
}),
|
|
88
127
|
setCompanyName: assign(({ event }) => ({ companyName: event.output })),
|
|
128
|
+
setConsent: assign(({ event }) => ({ consent: event.output })),
|
|
89
129
|
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
90
130
|
clearError: assign({ error: () => void 0 }),
|
|
91
131
|
setIdentityShared: assign(({ context, event }) => {
|
|
@@ -96,12 +136,16 @@ const identityReuseMachine = setup({
|
|
|
96
136
|
guards: {
|
|
97
137
|
hasDocuments: ({ context }) => context.documents.length > 0,
|
|
98
138
|
hasCompanyName: ({ context }) => context.companyName !== void 0,
|
|
139
|
+
hasConsent: ({ context }) => context.consent !== void 0,
|
|
99
140
|
isKnownSelection: ({ context, event }) => {
|
|
100
141
|
const id = event.documentId ?? context.selectedDocumentId;
|
|
101
142
|
return id === "scanNew" || context.documents.some((doc) => doc.id === id);
|
|
102
143
|
}
|
|
103
144
|
},
|
|
104
|
-
delays: {
|
|
145
|
+
delays: {
|
|
146
|
+
companyNameTimeout: COMPANY_NAME_TIMEOUT_MS,
|
|
147
|
+
consentTimeout: CONSENT_TIMEOUT_MS
|
|
148
|
+
}
|
|
105
149
|
}).createMachine({
|
|
106
150
|
id: "identityReuse",
|
|
107
151
|
initial: "idle",
|
|
@@ -110,6 +154,7 @@ const identityReuseMachine = setup({
|
|
|
110
154
|
documents: [],
|
|
111
155
|
selectedDocumentId: void 0,
|
|
112
156
|
companyName: void 0,
|
|
157
|
+
consent: void 0,
|
|
113
158
|
error: void 0,
|
|
114
159
|
identityShared: false
|
|
115
160
|
}),
|
|
@@ -158,6 +203,29 @@ const identityReuseMachine = setup({
|
|
|
158
203
|
},
|
|
159
204
|
done: { type: "final" }
|
|
160
205
|
}
|
|
206
|
+
},
|
|
207
|
+
consent: {
|
|
208
|
+
initial: "check",
|
|
209
|
+
states: {
|
|
210
|
+
check: { always: [{
|
|
211
|
+
target: "done",
|
|
212
|
+
guard: "hasConsent"
|
|
213
|
+
}, { target: "fetching" }] },
|
|
214
|
+
fetching: {
|
|
215
|
+
invoke: {
|
|
216
|
+
id: "fetchConsent",
|
|
217
|
+
src: "fetchConsent",
|
|
218
|
+
input: ({ context }) => ({ locale: context.config.language }),
|
|
219
|
+
onDone: {
|
|
220
|
+
target: "done",
|
|
221
|
+
actions: "setConsent"
|
|
222
|
+
},
|
|
223
|
+
onError: { target: "done" }
|
|
224
|
+
},
|
|
225
|
+
after: { consentTimeout: { target: "done" } }
|
|
226
|
+
},
|
|
227
|
+
done: { type: "final" }
|
|
228
|
+
}
|
|
161
229
|
}
|
|
162
230
|
},
|
|
163
231
|
onDone: [{
|
|
@@ -180,7 +248,7 @@ const identityReuseMachine = setup({
|
|
|
180
248
|
submitting: { invoke: {
|
|
181
249
|
id: "submitDocument",
|
|
182
250
|
src: "submitDocument",
|
|
183
|
-
input: ({ context }) => deriveSubmitParams(context.selectedDocumentId),
|
|
251
|
+
input: ({ context }) => deriveSubmitParams(context.selectedDocumentId, context.consent),
|
|
184
252
|
onDone: {
|
|
185
253
|
target: "finished",
|
|
186
254
|
actions: "setIdentityShared"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Manager-DufwKlav.js";
|
|
2
|
-
import { n as Flow } from "./types-
|
|
2
|
+
import { n as Flow } from "./types-DH4VaTRC.js";
|
|
3
3
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/flow-events/flowEvents.d.ts
|
|
5
5
|
type FlowStartedEvent = {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-JGwc0kgu.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
package/dist/kyb-checks.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
2
|
-
import { t as createKybChecksManager } from "./kybChecksManager-
|
|
1
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-D1q4K7Xr.esm.js";
|
|
2
|
+
import { t as createKybChecksManager } from "./kybChecksManager-tUsFKBCN.esm.js";
|
|
3
3
|
export { createKybChecksManager, kybChecksMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { n as toKybErrors, t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
3
|
+
import { n as toKybErrors, t as kybChecksMachine } from "./kybChecksStateMachine-D1q4K7Xr.esm.js";
|
|
4
4
|
//#region src/modules/kyb-checks/kybChecksActor.ts
|
|
5
5
|
/** Creates and starts a KYB Checks actor, idle until `LOAD`. */
|
|
6
6
|
function createKybChecksActor(options = {}) {
|
package/dist/{kybChecksStateMachine-kuV8xPAu.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
|
+
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-BRiJu_rv.esm.js";
|
|
4
4
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
8
|
+
import { a as buildPayload, i as checkSupport, n as e164, r as resolveForm, t as trim } from "./trim-OmrUb6mG.esm.js";
|
|
9
|
+
import { a as phoneDeps, d as supportedIds, i as allowedCharacters, n as requiredError, o as setFieldValue, r as oneOfRequired, s as validateAllValues, t as STRUCTURE_MESSAGES, u as createFormRegistry } from "./formErrors-kpskZLNT.esm.js";
|
|
10
10
|
function isSupportedSchema(form) {
|
|
11
11
|
return String(form.schemaVersion).split(".")[0] === "1";
|
|
12
12
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { r as MandatoryConsentConfig } from "./types-BVgTvWOP.js";
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-De9ZX6o4.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
2
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BtE4heVc.esm.js";
|
|
2
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-S8rgqCld.esm.js";
|
|
3
3
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-C6jjFptX.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput,
|
|
|
2
2
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
3
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
4
|
import "./Actor-DqjOqDfU.js";
|
|
5
|
-
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-
|
|
5
|
+
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-BVgTvWOP.js";
|
|
6
6
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
|
|
7
7
|
type MandatoryConsentContext = {
|
|
8
8
|
config: MandatoryConsentConfig;
|
|
@@ -54,26 +54,26 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
54
54
|
type: "setConsent";
|
|
55
55
|
params: NonReducibleUnknown;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
type: "
|
|
57
|
+
setLoadError: {
|
|
58
|
+
type: "setLoadError";
|
|
59
59
|
params: NonReducibleUnknown;
|
|
60
60
|
};
|
|
61
61
|
setError: {
|
|
62
62
|
type: "setError";
|
|
63
63
|
params: NonReducibleUnknown;
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
type: "
|
|
67
|
-
params: NonReducibleUnknown;
|
|
68
|
-
};
|
|
69
|
-
toggleSigned: {
|
|
70
|
-
type: "toggleSigned";
|
|
65
|
+
clearError: {
|
|
66
|
+
type: "clearError";
|
|
71
67
|
params: NonReducibleUnknown;
|
|
72
68
|
};
|
|
73
69
|
resetContext: {
|
|
74
70
|
type: "resetContext";
|
|
75
71
|
params: NonReducibleUnknown;
|
|
76
72
|
};
|
|
73
|
+
toggleSigned: {
|
|
74
|
+
type: "toggleSigned";
|
|
75
|
+
params: NonReducibleUnknown;
|
|
76
|
+
};
|
|
77
77
|
}>, Values<{
|
|
78
78
|
canSubmit: {
|
|
79
79
|
type: "canSubmit";
|
|
@@ -83,7 +83,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
83
83
|
type: "hasConsent";
|
|
84
84
|
params: unknown;
|
|
85
85
|
};
|
|
86
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
86
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
87
87
|
readonly id: "mandatoryConsent";
|
|
88
88
|
readonly initial: "idle";
|
|
89
89
|
readonly context: ({ input }: {
|
package/dist/{mandatoryConsentManager-FfgHdPYw.esm.js → mandatoryConsentManager-S8rgqCld.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
5
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BtE4heVc.esm.js";
|
|
6
6
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
7
7
|
function createMandatoryConsentActor(options) {
|
|
8
8
|
return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
package/dist/{multipartRecordingService-CFmOUGQt.esm.js → multipartRecordingService-C8v02l56.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as BrowserNetworkStatusProvider } from "./BrowserNetworkStatusProvider-BrDXBEDd.esm.js";
|
|
5
5
|
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-BtMQZEbg.esm.js";
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
2
|
-
import { t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import { t as phoneMachine } from "./phoneStateMachine-B4W4CSqf.esm.js";
|
|
2
|
+
import { t as createPhoneManager } from "./phoneManager-uQEAWKlO.esm.js";
|
|
3
3
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
7
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
7
|
+
import { t as phoneMachine } from "./phoneStateMachine-B4W4CSqf.esm.js";
|
|
8
8
|
//#region src/modules/phone/phoneActor.ts
|
|
9
9
|
function createPhoneActor(options) {
|
|
10
10
|
return createActor(phoneMachine, { input: { config: options.config } }).start();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getToken, t as api, u as endpoints } from "./api-
|
|
1
|
+
import { r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
//#region src/modules/phone/phoneServices.ts
|
|
3
3
|
function getPhoneServerFailureReason(error, invalidStatus) {
|
|
4
4
|
if (error.status === invalidStatus) return "invalidPhone";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
|
-
import { a as sendOtp, n as fetchPhone, o as verifyOtp, r as fetchStartInfo, t as addPhone } from "./phoneServices-
|
|
3
|
+
import { a as sendOtp, n as fetchPhone, o as verifyOtp, r as fetchStartInfo, t as addPhone } from "./phoneServices-XoT74eS0.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
6
|
+
import { t as carryAttempts } from "./attemptCarry-8gUYc3pL.esm.js";
|
|
7
7
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
8
8
|
//#region src/modules/phone/phoneStateMachine.ts
|
|
9
9
|
const RESEND_TIMER_SECONDS = 30;
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-C6liTNbu.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
|
-
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-
|
|
3
|
+
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-BVJANeRn.esm.js";
|
|
4
4
|
import { r as createRecordingCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
6
6
|
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-BO7urYwT.esm.js";
|
|
7
|
-
import { t as MultipartRecordingService } from "./multipartRecordingService-
|
|
7
|
+
import { t as MultipartRecordingService } from "./multipartRecordingService-C8v02l56.esm.js";
|
|
8
8
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
9
9
|
/** A trim that runs longer than this uploads the full recording instead. */
|
|
10
10
|
const TRIM_TIMEOUT_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-
|
|
2
|
-
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-
|
|
1
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-D1wp--wG.esm.js";
|
|
2
|
+
import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-UQZkhZFB.esm.js";
|
|
3
3
|
export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
|
package/dist/{redirectToMobileManager-DmrPLTLG.esm.js → redirectToMobileManager-UQZkhZFB.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
-
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-
|
|
7
|
+
import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-D1wp--wG.esm.js";
|
|
8
8
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
9
9
|
const POLL_INTERVAL_MS = 5e3;
|
|
10
10
|
const QR_REFRESH_INTERVAL_MS = 5e3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { C as createEventBus } from "./types-DLsivQsu.esm.js";
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-Dx8AqgKD.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { _ as SelfieCaptureOnlyConfig, a as SelfieCaptureOnlyMachine, c as SelfieActor, g as processFace, h as ProcessFaceResponse, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine, v as SelfieConfig } from "./faceCaptureManagerFactory-2oqROMSB.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
4
|
-
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-
|
|
4
|
+
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-DAhpyjuI.js";
|
|
5
5
|
import { n as DeepsightService } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
6
6
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
7
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, r as createSelfieManager, t as SelfieManager } from "./selfieManager-RgcJwpHg.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-JGwc0kgu.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
4
|
-
import "./events-
|
|
4
|
+
import "./events-Dlkhhx5O.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
8
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
9
|
-
import { s as processFace } from "./FaceDetectionProvider-
|
|
10
|
-
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
11
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
12
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
7
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DQVtmb1q.esm.js";
|
|
8
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-OL8BWaIW.esm.js";
|
|
9
|
+
import { s as processFace } from "./FaceDetectionProvider-DQYbHLxC.esm.js";
|
|
10
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BAq-Kaiq.esm.js";
|
|
11
|
+
import { t as selfieMachine } from "./selfieStateMachine-fyNh2r31.esm.js";
|
|
12
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-DQ5xB8y6.esm.js";
|
|
13
13
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-D2FOfi4O.esm.js";
|
|
14
14
|
/**
|
|
15
15
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
1
|
+
import { u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DQYbHLxC.esm.js";
|
|
2
2
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
3
3
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
4
4
|
const isFaceErrorCode = (value) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-JGwc0kgu.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
4
|
-
import "./events-
|
|
4
|
+
import "./events-Dlkhhx5O.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-OL8BWaIW.esm.js";
|
|
7
|
+
import { t as selfieMachine } from "./selfieStateMachine-fyNh2r31.esm.js";
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-2oqROMSB.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { n as validateUploadResponse } from "./selfieErrorUtils-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DQVtmb1q.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, s as processFace, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-DQYbHLxC.esm.js";
|
|
5
|
+
import { n as validateUploadResponse } from "./selfieErrorUtils-DIVWh0ih.esm.js";
|
|
6
6
|
/**
|
|
7
7
|
* The selfie capture state machine.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as getApi, u as endpoints } from "./api-
|
|
2
|
-
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-
|
|
3
|
-
import "./trueSight-
|
|
4
|
-
import "./sessionInitializer-
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { n as getApi, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
|
+
import { u as trueSightLog, x as noteSessionCreated } from "./trueSightService-Dx8AqgKD.esm.js";
|
|
3
|
+
import "./trueSight-9VsfHXFt.esm.js";
|
|
4
|
+
import "./sessionInitializer-q5b8Qwr3.esm.js";
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-BRiJu_rv.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./warmup-SWu5L7cW.js";
|
|
2
|
-
import { t as DeviceFingerprintResult } from "./types-
|
|
2
|
+
import { t as DeviceFingerprintResult } from "./types-BV2Tl1wE.js";
|
|
3
3
|
import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/session/sessionService.d.ts
|
|
5
5
|
type CreateSessionOptions = {
|
|
@@ -46,6 +46,14 @@ type Session = {
|
|
|
46
46
|
showMandatoryConsent?: boolean;
|
|
47
47
|
endScreenTitle?: string;
|
|
48
48
|
endScreenText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* True when the integrator sent a login hint at session start that is a
|
|
51
|
+
* valid phone or email for a PHONE or EMAIL step of the flow. Only Flow
|
|
52
|
+
* sessions get it, and it is left out otherwise. A Flow with identity reuse
|
|
53
|
+
* then skips those steps. Pass it to `<incode-flow>`'s
|
|
54
|
+
* `identitySearchHintProvided` config when your server starts the session.
|
|
55
|
+
*/
|
|
56
|
+
identitySearchHintProvided?: boolean;
|
|
49
57
|
};
|
|
50
58
|
type ValidateQrUuidOptions = {
|
|
51
59
|
onboardingId: string | null;
|
package/dist/session.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as getToken } from "./api-
|
|
1
|
+
import { r as getToken } from "./api-CsXnB7m6.esm.js";
|
|
2
2
|
import { r as subscribeHttpErrors } from "./HttpRequestError-Bh0pNGSC.esm.js";
|
|
3
|
-
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { d as whenSessionFingerprintSettled, i as initializeSession } from "./sessionInitializer-q5b8Qwr3.esm.js";
|
|
4
4
|
import { n as onConnectivityChange, r as resumeConnectivity, t as isConnectivityLost } from "./connectivity-BCuEoQ-n.esm.js";
|
|
5
|
-
import { t as IncodeApiError } from "./apiError-
|
|
6
|
-
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
7
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
5
|
+
import { t as IncodeApiError } from "./apiError-BRiJu_rv.esm.js";
|
|
6
|
+
import { a as continueSession, c as validateQrUuid, i as bootstrapSession, n as QrValidationError, o as createSession, r as SESSION_CONTINUE_ERROR_CODES, s as refreshQrUrlUuid, t as QR_VALIDATION_ERROR_CODES } from "./session-DKnCv6zu.esm.js";
|
|
7
|
+
import { n as getFinishStatus } from "./flowCompletionService-L0J63ui-.esm.js";
|
|
8
8
|
//#region src/internal/session/sessionExpired.ts
|
|
9
9
|
var SessionExpiredError = class extends Error {
|
|
10
10
|
constructor() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { n as resetWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
|
|
3
3
|
import { S as subscribeEvent, v as addEvent, y as getAnalyticsBatcher } from "./types-DLsivQsu.esm.js";
|
|
4
|
-
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-
|
|
5
|
-
import "./events-
|
|
6
|
-
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-
|
|
7
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
10
|
-
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-
|
|
4
|
+
import { c as setToken, r as getToken, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
5
|
+
import "./events-Dlkhhx5O.esm.js";
|
|
6
|
+
import { C as noteTokenActivated, _ as isFeatureEnabled, b as noteEnvironment, c as startTrueSightCollection, g as fetchFeatureConfig, u as trueSightLog, v as resetFeatureConfigCache } from "./trueSightService-Dx8AqgKD.esm.js";
|
|
7
|
+
import { t as SDK_VERSION } from "./sdkVersion-BY8g-EEL.esm.js";
|
|
8
|
+
import "./trueSight-9VsfHXFt.esm.js";
|
|
9
|
+
import { E as updateFeatureManagementUser } from "./feature-management-D_T-MG_i.esm.js";
|
|
10
|
+
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-D_gJvsTS.esm.js";
|
|
11
11
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
12
12
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
13
13
|
import { i as isIOS } from "./platform-GIg4uPWe.esm.js";
|
|
@@ -2,17 +2,17 @@ import { F as setWasmIntegrityObserver, T as resolveWasmConfig, b as DEFAULT_WAS
|
|
|
2
2
|
import { a as setWasmOnDeviceMode, h as rearmWasmDiagnostics, m as getWasmDiagnosticsMode, n as getWarmupFacts, p as drainWasmDiagnostics, s as warmupWasm } from "./warmup-O3rAoe1-.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
4
4
|
import { b as resetAnalyticsBatcher, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./types-DLsivQsu.esm.js";
|
|
5
|
-
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-
|
|
6
|
-
import { i as createAnalyticsBatchingService, r as resetExperimentAssignments } from "./events-
|
|
7
|
-
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-
|
|
5
|
+
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
6
|
+
import { i as createAnalyticsBatchingService, r as resetExperimentAssignments } from "./events-Dlkhhx5O.esm.js";
|
|
7
|
+
import { S as noteTestingSignals, d as categoryForEndpoint, f as getStoredHttpConfig, h as upgradeToWasmHttpClient$1, m as resetHttpClientState, n as initializeTrueSightDiagnostics, o as resetTrueSight, p as installFreshHttpClient, s as setTrueSightExternalDrain, t as finalizeTrueSight, u as trueSightLog } from "./trueSightService-Dx8AqgKD.esm.js";
|
|
8
|
+
import "./trueSight-9VsfHXFt.esm.js";
|
|
9
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, a as resetSessionInit, c as setClientIpLookupEnabled, g as setStandaloneFlowPolicy, h as resolveStandaloneFlowPolicy, i as initializeSession, l as setClientWasmConfig, m as resetStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as registerFlowPreloader, s as setClientHostingApp, u as setClientWasmDisabled } from "./sessionInitializer-q5b8Qwr3.esm.js";
|
|
10
10
|
import { t as resolveLocalStorage } from "./safeStorage-UxDrnjwa.esm.js";
|
|
11
11
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
12
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
13
|
-
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-
|
|
12
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-D_T-MG_i.esm.js";
|
|
13
|
+
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-D_gJvsTS.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-xzRLIIMN.esm.js";
|
|
15
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
15
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-3OXrEqDE.esm.js";
|
|
16
16
|
//#region ../infra/src/wasm/wasmRuntimeProfile.ts
|
|
17
17
|
/**
|
|
18
18
|
* The WASM facts TrueSight reports as `session.webProfile.wasm`
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
2
|
-
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-
|
|
1
|
+
import { t as signatureMachine } from "./signatureStateMachine-CkES2vVv.esm.js";
|
|
2
|
+
import { n as createSignatureManagerFromActor, t as createSignatureManager } from "./signatureManager-3g4_cavt.esm.js";
|
|
3
3
|
export { createSignatureManager, createSignatureManagerFromActor, signatureMachine };
|