@incodetech/core 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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/ae-signature.d.ts +2 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/authentication.d.ts +3 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BCm7eGoK.d.ts → authenticationManager-Ce1nLm5y.d.ts} +1 -1
- package/dist/{authenticationManager-Cmio9w7i.esm.js → authenticationManager-DW449fW3.esm.js} +2 -2
- package/dist/{authenticationStateMachine-CrkXvIhE.esm.js → authenticationStateMachine-CrvxMmoJ.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{deepsightLoader-Be2xONxN.esm.js → deepsightLoader-BCxEZjuI.esm.js} +1 -1
- package/dist/document-capture.d.ts +2 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/{documentCaptureManager-CBP2DkPr.d.ts → documentCaptureManager-pEqMY_Oo.d.ts} +2 -104
- package/dist/dynamic-forms.d.ts +2 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dposae2l.d.ts → dynamicFormsManager-BYac2uEY.d.ts} +2 -48
- package/dist/{dynamicFormsManager-Fi2O2RUM.esm.js → dynamicFormsManager-DI0sCyVB.esm.js} +1 -1
- package/dist/ekyb.d.ts +2 -1
- package/dist/ekyb.esm.js +3 -2
- package/dist/{ekybManager-CObZ7foB.esm.js → ekybManager-D46NN7cx.esm.js} +1 -1
- package/dist/{ekybManager-CBX0tM04.d.ts → ekybManager-Dzswb_b8.d.ts} +3 -48
- package/dist/{ekybStateMachine-Cw4pz_hf.esm.js → ekybStateMachine-DX7KeqlM.esm.js} +2 -170
- package/dist/ekyc.esm.js +3 -2
- package/dist/{ekycManager-CI7sN4Ln.esm.js → ekycManager-DRrG5I6e.esm.js} +1 -1
- package/dist/{ekycStateMachine-DFQdmBXl.esm.js → ekycStateMachine-DRbbavZy.esm.js} +2 -223
- package/dist/ekycUtils-Dew1rBG0.esm.js +223 -0
- package/dist/electronic-signature.d.ts +2 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/extensibility.d.ts +12 -11
- package/dist/extensibility.esm.js +9 -9
- package/dist/{faceCaptureManagerFactory-DPf1rRsd.d.ts → faceCaptureManagerFactory-BUE6z9iY.d.ts} +2 -4
- package/dist/{faceCaptureManagerFactory-CeUzH_6U.esm.js → faceCaptureManagerFactory-BcntOvvC.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CtiVwaPe.esm.js → faceCaptureSetup-BUAw6zY_.esm.js} +2 -2
- package/dist/flow.d.ts +44 -1
- package/dist/flow.esm.js +4 -11
- package/dist/flowServices-BU1mMxoQ.esm.js +596 -0
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-bZDyI0gy.esm.js → geolocationManager-zeqAcVHC.esm.js} +1 -1
- package/dist/id-ocr.d.ts +2 -1
- package/dist/id.d.ts +2 -1
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Dqn6U25Q.esm.js → idCaptureManager-BqmmPXFm.esm.js} +3 -4
- package/dist/idCaptureManager-CtsYvX-Z.d.ts +405 -0
- package/dist/{idCaptureStateMachine-B7atraNp.esm.js → idCaptureStateMachine-CnKkMNrI.esm.js} +8 -50
- package/dist/{idOcrManager-B-JyjyPb.d.ts → idOcrManager-DlYG277_.d.ts} +2 -163
- package/dist/{index-CKbmDFNq.d.ts → index-DGcdhk8Y.d.ts} +2 -64
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -1
- package/dist/{mandatoryConsentManager-Bc9AKBft.d.ts → mandatoryConsentManager-Ck2e2W4o.d.ts} +6 -25
- package/dist/{onDeviceFaceResults-CbO3AqMC.esm.js → onDeviceFaceResults-CWMT6JTR.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/qe-signature.d.ts +2 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-YhyXG0Ch.esm.js → recordingService-CfT3nmFO.esm.js} +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/{redirectToMobileManager-NVQM3o5P.d.ts → redirectToMobileManager-DZlJhqvq.d.ts} +2 -40
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-CgmJu62N.esm.js → selfieManager-D-QJUh3X.esm.js} +2 -2
- package/dist/{selfieManager-Dq9wNlcg.d.ts → selfieManager-LabfZln4.d.ts} +1 -1
- package/dist/{selfieStateMachine-C_piZ4gb.esm.js → selfieStateMachine-BH-U-y6R.esm.js} +2 -2
- package/dist/session-BU4MkUEc.esm.js +1 -0
- package/dist/session.d.ts +2 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-B5tU3IQv.esm.js → sessionInitializer-DT7IYwRx.esm.js} +58 -11
- package/dist/{setup-BBfVpTog.d.ts → setup-B1WTXTQV.d.ts} +15 -0
- package/dist/{setup-Cx9IY17e.esm.js → setup-DXdKnXXf.esm.js} +21 -7
- package/dist/types-B4BObr_7.d.ts +105 -0
- package/dist/types-BAvkiv6L.d.ts +6 -0
- package/dist/types-BQgIv5p8.d.ts +21 -0
- package/dist/types-BfHiko5D.d.ts +48 -0
- package/dist/types-CBJI9n6h.d.ts +163 -0
- package/dist/{idCaptureManager-DTe_5dcI.d.ts → types-D0ohdBDu.d.ts} +2 -407
- package/dist/types-DPIDuhut2.d.ts +40 -0
- package/dist/types-DWaEoU0I.d.ts +64 -0
- package/dist/types-xIEGXWk8.d.ts +48 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +16 -11
- package/package.json +1 -1
- package/dist/flowServices-Caz-Bdol.esm.js +0 -209
- package/dist/session-CoL4WBRi.esm.js +0 -1
- package/dist/videoSelfieSteps-DHcibfYH.esm.js +0 -57
- package/dist/{dynamicFormsStateMachine-DiPpuHgF.esm.js → dynamicFormsStateMachine-BQqAwNQ-.esm.js} +1 -1
- package/dist/{electronicSignatureManager-DGFwHdro.esm.js → electronicSignatureManager-BXIpAJ5m.esm.js} +1 -1
- package/dist/{geolocationStateMachine-ByU6-nbM.esm.js → geolocationStateMachine-DxSETS9_.esm.js} +1 -1
|
@@ -1,231 +1,10 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
3
|
+
import { a as ADDRESS_STATE_SOURCES, c as EMAIL_SOURCES, d as NAME_SOURCES, f as POSTAL_CODE_SOURCES, h as TAX_ID_SOURCES, i as toEkycConfig, l as HOUSE_NO_SOURCES, m as STREET_SOURCES, n as getEKYCFields, o as CITY_SOURCES, p as STATE_CODE_HINTS, r as isFieldOptional, s as COUNTRY_SELECTOR_DISABLED_SOURCES, t as getEKYCCountry, u as MIDDLE_NAME_SOURCES } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
3
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
6
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
6
7
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DEYnZoez.esm.js";
|
|
7
|
-
//#region src/modules/ekyc/ekycConsts.ts
|
|
8
|
-
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
|
9
|
-
const STATE_CODE_HINTS = {
|
|
10
|
-
US: "CA, NY",
|
|
11
|
-
CA: "ON, QC",
|
|
12
|
-
BR: "RJ, SP",
|
|
13
|
-
MX: "JAL, NLE",
|
|
14
|
-
GB: "ENG, SCT",
|
|
15
|
-
ES: "MD, CT",
|
|
16
|
-
AR: "B, C, K"
|
|
17
|
-
};
|
|
18
|
-
const ADDRESS_FIELDS = [
|
|
19
|
-
"address",
|
|
20
|
-
"houseNo",
|
|
21
|
-
"street",
|
|
22
|
-
"address2",
|
|
23
|
-
"city",
|
|
24
|
-
"state",
|
|
25
|
-
"postalCode"
|
|
26
|
-
];
|
|
27
|
-
const DRIVERS_LICENSE_FIELDS = [
|
|
28
|
-
"dlNumber",
|
|
29
|
-
"dlState",
|
|
30
|
-
"dlExpireAt"
|
|
31
|
-
];
|
|
32
|
-
const DOB_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
33
|
-
const ADDRESS_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
34
|
-
const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
35
|
-
const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
36
|
-
const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
|
|
37
|
-
const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
38
|
-
const PHONE_OPTIONAL_SOURCES = ["CA_RES_CREDIT", "UK_VOTER_REGISTER"];
|
|
39
|
-
const NAME_SOURCES = [
|
|
40
|
-
"US_TELCO_1",
|
|
41
|
-
"US_TELCO_2",
|
|
42
|
-
"US_TELCO_4",
|
|
43
|
-
"US_ADDRESS_1",
|
|
44
|
-
"US_CREDIT_BUREAU_1",
|
|
45
|
-
"US_DRIVERS_LICENSE_1",
|
|
46
|
-
"CA_RES_CREDIT",
|
|
47
|
-
"SERPRO",
|
|
48
|
-
"SE_1",
|
|
49
|
-
"GR_1",
|
|
50
|
-
"GT_1",
|
|
51
|
-
"AR_1",
|
|
52
|
-
"ES_1",
|
|
53
|
-
"UK_VOTER_REGISTER",
|
|
54
|
-
"CL_1",
|
|
55
|
-
"INDIA_PAN"
|
|
56
|
-
];
|
|
57
|
-
const HOUSE_NO_SOURCES = [
|
|
58
|
-
"SERPRO",
|
|
59
|
-
"BR_GOVT_1",
|
|
60
|
-
"GR_1",
|
|
61
|
-
"ES_1"
|
|
62
|
-
];
|
|
63
|
-
const STREET_SOURCES = [
|
|
64
|
-
"US_TELCO_1",
|
|
65
|
-
"US_TELCO_2",
|
|
66
|
-
"US_CREDIT_BUREAU_1",
|
|
67
|
-
"CA_RES_CREDIT",
|
|
68
|
-
"SERPRO",
|
|
69
|
-
"BR_GOVT_1",
|
|
70
|
-
"AR_1",
|
|
71
|
-
"ES_1",
|
|
72
|
-
"UK_VOTER_REGISTER"
|
|
73
|
-
];
|
|
74
|
-
const CITY_SOURCES = [
|
|
75
|
-
"US_TELCO_1",
|
|
76
|
-
"US_TELCO_2",
|
|
77
|
-
"US_CREDIT_BUREAU_1",
|
|
78
|
-
"CA_RES_CREDIT",
|
|
79
|
-
"SERPRO",
|
|
80
|
-
"BR_GOVT_1",
|
|
81
|
-
"AR_1",
|
|
82
|
-
"ES_1",
|
|
83
|
-
"UK_VOTER_REGISTER"
|
|
84
|
-
];
|
|
85
|
-
const ADDRESS_STATE_SOURCES = [
|
|
86
|
-
"US_TELCO_1",
|
|
87
|
-
"US_TELCO_2",
|
|
88
|
-
"US_CREDIT_BUREAU_1",
|
|
89
|
-
"US_DRIVERS_LICENSE_1",
|
|
90
|
-
"CA_RES_CREDIT",
|
|
91
|
-
"SERPRO",
|
|
92
|
-
"BR_GOVT_1",
|
|
93
|
-
"AR_1",
|
|
94
|
-
"ES_1"
|
|
95
|
-
];
|
|
96
|
-
const POSTAL_CODE_SOURCES = [
|
|
97
|
-
"US_TELCO_1",
|
|
98
|
-
"US_TELCO_2",
|
|
99
|
-
"US_CREDIT_BUREAU_1",
|
|
100
|
-
"CA_RES_CREDIT",
|
|
101
|
-
"SERPRO",
|
|
102
|
-
"BR_GOVT_1",
|
|
103
|
-
"AR_1",
|
|
104
|
-
"ES_1",
|
|
105
|
-
"UK_VOTER_REGISTER"
|
|
106
|
-
];
|
|
107
|
-
const TAX_ID_SOURCES = [
|
|
108
|
-
"GT_1",
|
|
109
|
-
"ES_1",
|
|
110
|
-
"CL_1"
|
|
111
|
-
];
|
|
112
|
-
const MIDDLE_NAME_SOURCES = [
|
|
113
|
-
"US_CREDIT_BUREAU_1",
|
|
114
|
-
"CA_RES_CREDIT",
|
|
115
|
-
"UK_VOTER_REGISTER",
|
|
116
|
-
"GR_1",
|
|
117
|
-
"AR_1",
|
|
118
|
-
"ES_1",
|
|
119
|
-
"CL_1",
|
|
120
|
-
"INDIA_PAN"
|
|
121
|
-
];
|
|
122
|
-
const PHONE_RISK_ADDONS = ["phoneCheck", "advancedPhoneCheck"];
|
|
123
|
-
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/modules/ekyc/ekycUtils.ts
|
|
126
|
-
function mapToEKYCvalue(field) {
|
|
127
|
-
switch (field) {
|
|
128
|
-
case "poa": return "poa_document";
|
|
129
|
-
case "document": return "document_scan";
|
|
130
|
-
case "phoneModuleInput": return "phone_module_input";
|
|
131
|
-
case "emailModuleInput": return "email_module_input";
|
|
132
|
-
default: return "user_input";
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
136
|
-
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
137
|
-
}
|
|
138
|
-
/** Maps raw backend module config to a field-source mapping */
|
|
139
|
-
function getEKYCFields(config) {
|
|
140
|
-
const hasPhoneRiskAddon = hasRiskAddon(config.riskAddons, PHONE_RISK_ADDONS);
|
|
141
|
-
const hasEmailRiskAddon = hasRiskAddon(config.riskAddons, EMAIL_RISK_ADDONS);
|
|
142
|
-
const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
|
|
143
|
-
const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
|
|
144
|
-
return {
|
|
145
|
-
name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
|
|
146
|
-
SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
|
|
147
|
-
address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
|
|
148
|
-
"date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
|
|
149
|
-
email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
|
|
150
|
-
phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
|
|
151
|
-
nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
|
|
152
|
-
dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
|
|
153
|
-
dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
|
|
154
|
-
dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
|
|
155
|
-
last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
|
|
156
|
-
idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
|
|
157
|
-
idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
|
|
158
|
-
gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
|
|
159
|
-
panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
/** Maps a verification source string to a country code */
|
|
163
|
-
function getEKYCCountry(source) {
|
|
164
|
-
switch (source) {
|
|
165
|
-
case "BR_GOVT_1":
|
|
166
|
-
case "SERPRO": return "BR";
|
|
167
|
-
case "MX_CONSUMER_1": return "MX";
|
|
168
|
-
case "UK_CREDIT_BUREAU_1":
|
|
169
|
-
case "UK_VOTER_REGISTER": return "GB";
|
|
170
|
-
case "ES_1": return "ES";
|
|
171
|
-
case "CL_1": return "CL";
|
|
172
|
-
case "AR_1": return "AR";
|
|
173
|
-
case "GR_1": return "GR";
|
|
174
|
-
case "GT_1": return "GT";
|
|
175
|
-
case "CO_1": return "CO";
|
|
176
|
-
case "CR_1": return "CR";
|
|
177
|
-
case "CA_RES_CREDIT": return "CA";
|
|
178
|
-
case "INDIA_PAN": return "IN";
|
|
179
|
-
default: return "US";
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Returns true if the input carries any raw-shape signal — i.e. a non-empty
|
|
184
|
-
* `source` or at least one `check*` flag set. Used by `toEkycConfig` to
|
|
185
|
-
* distinguish a raw backend config from an unconfigured / empty input.
|
|
186
|
-
*/
|
|
187
|
-
function hasRawSignal(c) {
|
|
188
|
-
return Boolean(c.source || c.checkName || c.checkEmail || c.checkAddress || c.checkPhone || c.checkSsn || c.checkDob || c.checkNationality || c.checkDlNumber || c.checkDlState || c.checkDlExpireAt || c.checkLast4SSN || c.checkIdNum || c.checkIdNum1 || c.checkGender || c.checkPanNumber || c.riskAddons?.length);
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
|
192
|
-
*
|
|
193
|
-
* Accepts either:
|
|
194
|
-
* - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
|
|
195
|
-
* returned unchanged.
|
|
196
|
-
* - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
|
|
197
|
-
* fields, as embedded in a workflow node or returned by
|
|
198
|
-
* `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
|
|
199
|
-
* - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
|
|
200
|
-
* so the machine still lands in `misconfigured` instead of a silent
|
|
201
|
-
* empty form.
|
|
202
|
-
*
|
|
203
|
-
* Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
|
|
204
|
-
*/
|
|
205
|
-
function toEkycConfig(config) {
|
|
206
|
-
if (config.flowId || config.verificationFields) return config;
|
|
207
|
-
if (!hasRawSignal(config)) return config;
|
|
208
|
-
const source = config.source ?? "";
|
|
209
|
-
return {
|
|
210
|
-
verificationFields: getEKYCFields(config),
|
|
211
|
-
source,
|
|
212
|
-
fieldsCountry: getEKYCCountry(source),
|
|
213
|
-
enablePhoneRisk: config.enablePhoneRisk
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
/** Determines if a field is optional given the current config source */
|
|
217
|
-
function isFieldOptional(fieldName, configSource) {
|
|
218
|
-
if (fieldName === "middleName") return true;
|
|
219
|
-
if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
|
|
220
|
-
if (fieldName === "street") return false;
|
|
221
|
-
if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
|
|
222
|
-
if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
|
|
223
|
-
if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
|
|
224
|
-
if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
|
|
225
|
-
if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
|
|
226
|
-
return false;
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
8
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
230
9
|
var metadata_min_json_default = {
|
|
231
10
|
"version": 4,
|
|
@@ -10650,4 +10429,4 @@ const ekycMachine = setup({
|
|
|
10650
10429
|
}
|
|
10651
10430
|
});
|
|
10652
10431
|
//#endregion
|
|
10653
|
-
export {
|
|
10432
|
+
export { ekycMachine as t };
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
//#region src/modules/ekyc/ekycConsts.ts
|
|
2
|
+
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
|
3
|
+
const STATE_CODE_HINTS = {
|
|
4
|
+
US: "CA, NY",
|
|
5
|
+
CA: "ON, QC",
|
|
6
|
+
BR: "RJ, SP",
|
|
7
|
+
MX: "JAL, NLE",
|
|
8
|
+
GB: "ENG, SCT",
|
|
9
|
+
ES: "MD, CT",
|
|
10
|
+
AR: "B, C, K"
|
|
11
|
+
};
|
|
12
|
+
const ADDRESS_FIELDS = [
|
|
13
|
+
"address",
|
|
14
|
+
"houseNo",
|
|
15
|
+
"street",
|
|
16
|
+
"address2",
|
|
17
|
+
"city",
|
|
18
|
+
"state",
|
|
19
|
+
"postalCode"
|
|
20
|
+
];
|
|
21
|
+
const DRIVERS_LICENSE_FIELDS = [
|
|
22
|
+
"dlNumber",
|
|
23
|
+
"dlState",
|
|
24
|
+
"dlExpireAt"
|
|
25
|
+
];
|
|
26
|
+
const DOB_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
27
|
+
const ADDRESS_OPTIONAL_SOURCES = ["US_TELCO_1", "UK_VOTER_REGISTER"];
|
|
28
|
+
const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
29
|
+
const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
30
|
+
const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
|
|
31
|
+
const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
32
|
+
const PHONE_OPTIONAL_SOURCES = ["CA_RES_CREDIT", "UK_VOTER_REGISTER"];
|
|
33
|
+
const NAME_SOURCES = [
|
|
34
|
+
"US_TELCO_1",
|
|
35
|
+
"US_TELCO_2",
|
|
36
|
+
"US_TELCO_4",
|
|
37
|
+
"US_ADDRESS_1",
|
|
38
|
+
"US_CREDIT_BUREAU_1",
|
|
39
|
+
"US_DRIVERS_LICENSE_1",
|
|
40
|
+
"CA_RES_CREDIT",
|
|
41
|
+
"SERPRO",
|
|
42
|
+
"SE_1",
|
|
43
|
+
"GR_1",
|
|
44
|
+
"GT_1",
|
|
45
|
+
"AR_1",
|
|
46
|
+
"ES_1",
|
|
47
|
+
"UK_VOTER_REGISTER",
|
|
48
|
+
"CL_1",
|
|
49
|
+
"INDIA_PAN"
|
|
50
|
+
];
|
|
51
|
+
const HOUSE_NO_SOURCES = [
|
|
52
|
+
"SERPRO",
|
|
53
|
+
"BR_GOVT_1",
|
|
54
|
+
"GR_1",
|
|
55
|
+
"ES_1"
|
|
56
|
+
];
|
|
57
|
+
const STREET_SOURCES = [
|
|
58
|
+
"US_TELCO_1",
|
|
59
|
+
"US_TELCO_2",
|
|
60
|
+
"US_CREDIT_BUREAU_1",
|
|
61
|
+
"CA_RES_CREDIT",
|
|
62
|
+
"SERPRO",
|
|
63
|
+
"BR_GOVT_1",
|
|
64
|
+
"AR_1",
|
|
65
|
+
"ES_1",
|
|
66
|
+
"UK_VOTER_REGISTER"
|
|
67
|
+
];
|
|
68
|
+
const CITY_SOURCES = [
|
|
69
|
+
"US_TELCO_1",
|
|
70
|
+
"US_TELCO_2",
|
|
71
|
+
"US_CREDIT_BUREAU_1",
|
|
72
|
+
"CA_RES_CREDIT",
|
|
73
|
+
"SERPRO",
|
|
74
|
+
"BR_GOVT_1",
|
|
75
|
+
"AR_1",
|
|
76
|
+
"ES_1",
|
|
77
|
+
"UK_VOTER_REGISTER"
|
|
78
|
+
];
|
|
79
|
+
const ADDRESS_STATE_SOURCES = [
|
|
80
|
+
"US_TELCO_1",
|
|
81
|
+
"US_TELCO_2",
|
|
82
|
+
"US_CREDIT_BUREAU_1",
|
|
83
|
+
"US_DRIVERS_LICENSE_1",
|
|
84
|
+
"CA_RES_CREDIT",
|
|
85
|
+
"SERPRO",
|
|
86
|
+
"BR_GOVT_1",
|
|
87
|
+
"AR_1",
|
|
88
|
+
"ES_1"
|
|
89
|
+
];
|
|
90
|
+
const POSTAL_CODE_SOURCES = [
|
|
91
|
+
"US_TELCO_1",
|
|
92
|
+
"US_TELCO_2",
|
|
93
|
+
"US_CREDIT_BUREAU_1",
|
|
94
|
+
"CA_RES_CREDIT",
|
|
95
|
+
"SERPRO",
|
|
96
|
+
"BR_GOVT_1",
|
|
97
|
+
"AR_1",
|
|
98
|
+
"ES_1",
|
|
99
|
+
"UK_VOTER_REGISTER"
|
|
100
|
+
];
|
|
101
|
+
const TAX_ID_SOURCES = [
|
|
102
|
+
"GT_1",
|
|
103
|
+
"ES_1",
|
|
104
|
+
"CL_1"
|
|
105
|
+
];
|
|
106
|
+
const MIDDLE_NAME_SOURCES = [
|
|
107
|
+
"US_CREDIT_BUREAU_1",
|
|
108
|
+
"CA_RES_CREDIT",
|
|
109
|
+
"UK_VOTER_REGISTER",
|
|
110
|
+
"GR_1",
|
|
111
|
+
"AR_1",
|
|
112
|
+
"ES_1",
|
|
113
|
+
"CL_1",
|
|
114
|
+
"INDIA_PAN"
|
|
115
|
+
];
|
|
116
|
+
const PHONE_RISK_ADDONS = ["phoneCheck", "advancedPhoneCheck"];
|
|
117
|
+
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/modules/ekyc/ekycUtils.ts
|
|
120
|
+
function mapToEKYCvalue(field) {
|
|
121
|
+
switch (field) {
|
|
122
|
+
case "poa": return "poa_document";
|
|
123
|
+
case "document": return "document_scan";
|
|
124
|
+
case "phoneModuleInput": return "phone_module_input";
|
|
125
|
+
case "emailModuleInput": return "email_module_input";
|
|
126
|
+
default: return "user_input";
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
130
|
+
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
131
|
+
}
|
|
132
|
+
/** Maps raw backend module config to a field-source mapping */
|
|
133
|
+
function getEKYCFields(config) {
|
|
134
|
+
const hasPhoneRiskAddon = hasRiskAddon(config.riskAddons, PHONE_RISK_ADDONS);
|
|
135
|
+
const hasEmailRiskAddon = hasRiskAddon(config.riskAddons, EMAIL_RISK_ADDONS);
|
|
136
|
+
const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
|
|
137
|
+
const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
|
|
138
|
+
return {
|
|
139
|
+
name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
|
|
140
|
+
SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
|
|
141
|
+
address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
|
|
142
|
+
"date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
|
|
143
|
+
email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
|
|
144
|
+
phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
|
|
145
|
+
nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
|
|
146
|
+
dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
|
|
147
|
+
dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
|
|
148
|
+
dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
|
|
149
|
+
last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
|
|
150
|
+
idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
|
|
151
|
+
idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
|
|
152
|
+
gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
|
|
153
|
+
panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/** Maps a verification source string to a country code */
|
|
157
|
+
function getEKYCCountry(source) {
|
|
158
|
+
switch (source) {
|
|
159
|
+
case "BR_GOVT_1":
|
|
160
|
+
case "SERPRO": return "BR";
|
|
161
|
+
case "MX_CONSUMER_1": return "MX";
|
|
162
|
+
case "UK_CREDIT_BUREAU_1":
|
|
163
|
+
case "UK_VOTER_REGISTER": return "GB";
|
|
164
|
+
case "ES_1": return "ES";
|
|
165
|
+
case "CL_1": return "CL";
|
|
166
|
+
case "AR_1": return "AR";
|
|
167
|
+
case "GR_1": return "GR";
|
|
168
|
+
case "GT_1": return "GT";
|
|
169
|
+
case "CO_1": return "CO";
|
|
170
|
+
case "CR_1": return "CR";
|
|
171
|
+
case "CA_RES_CREDIT": return "CA";
|
|
172
|
+
case "INDIA_PAN": return "IN";
|
|
173
|
+
default: return "US";
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns true if the input carries any raw-shape signal — i.e. a non-empty
|
|
178
|
+
* `source` or at least one `check*` flag set. Used by `toEkycConfig` to
|
|
179
|
+
* distinguish a raw backend config from an unconfigured / empty input.
|
|
180
|
+
*/
|
|
181
|
+
function hasRawSignal(c) {
|
|
182
|
+
return Boolean(c.source || c.checkName || c.checkEmail || c.checkAddress || c.checkPhone || c.checkSsn || c.checkDob || c.checkNationality || c.checkDlNumber || c.checkDlState || c.checkDlExpireAt || c.checkLast4SSN || c.checkIdNum || c.checkIdNum1 || c.checkGender || c.checkPanNumber || c.riskAddons?.length);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
|
186
|
+
*
|
|
187
|
+
* Accepts either:
|
|
188
|
+
* - A manager-ready `EkycConfig` (with `flowId` or `verificationFields`) →
|
|
189
|
+
* returned unchanged.
|
|
190
|
+
* - A raw backend `EkycModuleConfig` (with `source` + `check*` / `*Source`
|
|
191
|
+
* fields, as embedded in a workflow node or returned by
|
|
192
|
+
* `/omni/flow/onboarding/configuration`) → derived into an `EkycConfig`.
|
|
193
|
+
* - A config with no recognizable signal (e.g. `{}`) → returned unchanged,
|
|
194
|
+
* so the machine still lands in `misconfigured` instead of a silent
|
|
195
|
+
* empty form.
|
|
196
|
+
*
|
|
197
|
+
* Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
|
|
198
|
+
*/
|
|
199
|
+
function toEkycConfig(config) {
|
|
200
|
+
if (config.flowId || config.verificationFields) return config;
|
|
201
|
+
if (!hasRawSignal(config)) return config;
|
|
202
|
+
const source = config.source ?? "";
|
|
203
|
+
return {
|
|
204
|
+
verificationFields: getEKYCFields(config),
|
|
205
|
+
source,
|
|
206
|
+
fieldsCountry: getEKYCCountry(source),
|
|
207
|
+
enablePhoneRisk: config.enablePhoneRisk
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/** Determines if a field is optional given the current config source */
|
|
211
|
+
function isFieldOptional(fieldName, configSource) {
|
|
212
|
+
if (fieldName === "middleName") return true;
|
|
213
|
+
if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
|
|
214
|
+
if (fieldName === "street") return false;
|
|
215
|
+
if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
|
|
216
|
+
if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
|
|
217
|
+
if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
|
|
218
|
+
if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
|
|
219
|
+
if (fieldName === "phone") return PHONE_OPTIONAL_SOURCES.includes(configSource);
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
export { ADDRESS_STATE_SOURCES as a, EMAIL_SOURCES as c, NAME_SOURCES as d, POSTAL_CODE_SOURCES as f, TAX_ID_SOURCES as h, toEkycConfig as i, HOUSE_NO_SOURCES as l, STREET_SOURCES as m, getEKYCFields as n, CITY_SOURCES as o, STATE_CODE_HINTS as p, isFieldOptional as r, COUNTRY_SELECTOR_DISABLED_SOURCES as s, getEKYCCountry as t, MIDDLE_NAME_SOURCES as u };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as ElectronicSignatureConfig, d as QeConsentKey, g as getDefaultConsentChecks, h as getConsentKeys, i as ConsentKey, l as ElectronicSignatureVariant, m as areAllConsented, n as AeConsentKey, r as ConsentChecks, s as ElectronicSignatureDocument, t as AE_CONSENT_KEYS, u as QE_CONSENT_KEYS } from "./types-DWaEoU0I.js";
|
|
2
|
+
import { i as electronicSignatureMachine, n as ElectronicSignatureState, r as createElectronicSignatureManager, t as ElectronicSignatureManager } from "./index-DGcdhk8Y.js";
|
|
2
3
|
export { AE_CONSENT_KEYS, type AeConsentKey, type ConsentChecks, type ConsentKey, type ElectronicSignatureConfig, type ElectronicSignatureDocument, type ElectronicSignatureManager, type ElectronicSignatureState, type ElectronicSignatureVariant, QE_CONSENT_KEYS, type QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, o as getConsentKeys, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -3,28 +3,29 @@ import { n as fromCallback } from "./callback-645_omgz.js";
|
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-BY36bS12.js";
|
|
6
|
-
import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { _ as SendFaceImageResponse, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, v as AuthenticationActor } from "./faceCaptureManagerFactory-BUE6z9iY.js";
|
|
7
7
|
import { n as BaseWasmProvider } from "./FaceDetectionProvider-BHweGBEM.js";
|
|
8
8
|
import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
|
|
9
9
|
import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-DMMk51Ec.js";
|
|
10
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
11
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
10
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-LabfZln4.js";
|
|
11
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Ce1nLm5y.js";
|
|
12
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
|
|
13
13
|
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-C-3PWS2h.js";
|
|
14
14
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
15
15
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-DRQrbEhj.js";
|
|
16
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
17
|
-
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-
|
|
18
|
-
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-
|
|
16
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
|
|
17
|
+
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-BYac2uEY.js";
|
|
18
|
+
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
19
19
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
20
20
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
21
|
-
import {
|
|
21
|
+
import { n as CaptureIdResponse } from "./types-D0ohdBDu.js";
|
|
22
|
+
import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CtsYvX-Z.js";
|
|
22
23
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
23
24
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-v2TH5g7e.js";
|
|
24
25
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
25
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
26
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
27
|
-
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-
|
|
26
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Ck2e2W4o.js";
|
|
27
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DlYG277_.js";
|
|
28
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-DZlJhqvq.js";
|
|
28
29
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
|
|
29
30
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
30
31
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-DT7IYwRx.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-CFsD4BgV.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BUAw6zY_.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DW449fW3.esm.js";
|
|
9
9
|
import { n as createConsentManagerFromActor } from "./consentManager-0EiBXYtL.esm.js";
|
|
10
10
|
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Bu32le9u.esm.js";
|
|
11
11
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-Dw7euiiZ.esm.js";
|
|
12
12
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-BGj9U3E0.esm.js";
|
|
13
13
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DBRQX16v.esm.js";
|
|
14
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
15
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
16
|
-
import { n as createEkycManagerFromActor } from "./ekycManager-
|
|
14
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DI0sCyVB.esm.js";
|
|
15
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-D46NN7cx.esm.js";
|
|
16
|
+
import { n as createEkycManagerFromActor } from "./ekycManager-DRrG5I6e.esm.js";
|
|
17
17
|
import { n as createEmailManagerFromActor } from "./emailManager-Dmt1YrtS.esm.js";
|
|
18
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
19
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
18
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-D-QJUh3X.esm.js";
|
|
19
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BqmmPXFm.esm.js";
|
|
20
20
|
import { n as createPhoneManagerFromActor } from "./phoneManager-C3aqq6jS.esm.js";
|
|
21
21
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BjMJHKLP.esm.js";
|
|
22
22
|
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-USUE9qDr.esm.js";
|
|
23
23
|
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-BOOjm7SU.esm.js";
|
|
24
24
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-gscmFPxD.esm.js";
|
|
25
25
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-Ct_5C_La.esm.js";
|
|
26
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
26
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-zeqAcVHC.esm.js";
|
|
27
27
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BTsyXjv6.esm.js";
|
|
28
28
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-fPX11GnX.esm.js";
|
|
29
29
|
//#region src/internal/fingerprint/fingerprintApi.ts
|
package/dist/{faceCaptureManagerFactory-DPf1rRsd.d.ts → faceCaptureManagerFactory-BUE6z9iY.d.ts}
RENAMED
|
@@ -11,6 +11,7 @@ import { t as AvatarId } from "./createFaceAvatar-BEj18KXi.js";
|
|
|
11
11
|
import { i as FlowModuleConfig } from "./types-BjTTkLmd.js";
|
|
12
12
|
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode, r as FaceCaptureDependencies, t as BaseFaceCaptureConfig } from "./types-DMMk51Ec.js";
|
|
13
13
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
14
|
+
import { t as AuthenticationConfig } from "./types-BAvkiv6L.js";
|
|
14
15
|
//#region src/modules/authentication/authenticationStateMachine.d.ts
|
|
15
16
|
declare const _authenticationMachine: AnyStateMachine;
|
|
16
17
|
type AuthenticationMachine = typeof _authenticationMachine;
|
|
@@ -53,9 +54,6 @@ interface FaceFeed extends FaceFeedReader {
|
|
|
53
54
|
signalEyesClosed(): void;
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
|
-
//#region src/modules/authentication/types.d.ts
|
|
57
|
-
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
58
|
-
//#endregion
|
|
59
57
|
//#region src/modules/authentication/authenticationActor.d.ts
|
|
60
58
|
type CreateAuthenticationActorOptions = {
|
|
61
59
|
config: AuthenticationConfig;
|
|
@@ -433,4 +431,4 @@ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, modu
|
|
|
433
431
|
};
|
|
434
432
|
type FaceCaptureManager = ReturnType<typeof createFaceCaptureManagerFromActor>;
|
|
435
433
|
//#endregion
|
|
436
|
-
export {
|
|
434
|
+
export { SendFaceImageResponse as _, SelfieCaptureOnlyMachine as a, createAuthenticationActor as b, SelfieActor as c, FaceCaptureContext as d, FaceCaptureEvent as f, SelfieConfig as g, SelfieCaptureOnlyConfig as h, SelfieCaptureOnlyActor as i, SelfieMachine as l, faceCaptureMachine as m, FaceCaptureManagerState as n, selfieCaptureOnlyMachine as o, FaceCaptureInput as p, CreateSelfieCaptureOnlyActorOptions as r, CreateSelfieActorOptions as s, FaceCaptureManager as t, selfieMachine as u, AuthenticationActor as v, authenticationMachine as x, CreateAuthenticationActorOptions as y };
|
package/dist/{faceCaptureManagerFactory-CeUzH_6U.esm.js → faceCaptureManagerFactory-BcntOvvC.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { n as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { n as concealmentToAvatar } from "./faceCaptureSetup-BUAw6zY_.esm.js";
|
|
5
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
6
6
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.esm.js";
|
|
7
7
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
|
|
|
2
2
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
|
|
5
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-CWMT6JTR.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
9
9
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-5Cu6a8iN.esm.js";
|
|
10
|
-
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-
|
|
10
|
+
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CfT3nmFO.esm.js";
|
|
11
11
|
//#region src/internal/avatar/concealment.ts
|
|
12
12
|
/**
|
|
13
13
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|