@incodetech/core 2.0.0-alpha.11 → 2.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{OpenViduLogger-5b7KqNTo.esm.js → OpenViduLogger-CRbRNZA7.esm.js} +1 -1
  2. package/dist/OpenViduLogger-Dy5P806a.esm.js +3 -0
  3. package/dist/{warmup-Cijuyvoc.d.ts → StateMachine-pi8byl8C.d.ts} +4 -1
  4. package/dist/{addEvent-s2Za-pK3.esm.js → addEvent-BGKc_lHF.esm.js} +1 -1
  5. package/dist/{deepsightLoader-Bn2D0REl.esm.js → deepsightLoader-B36_XZ7r.esm.js} +3 -3
  6. package/dist/{recordingsRepository-CTjaf-ER.esm.js → deepsightService-BWxcc4OC.esm.js} +2 -33
  7. package/dist/email.d.ts +1 -1
  8. package/dist/email.esm.js +3 -3
  9. package/dist/{endpoints-B0ltwtb5.esm.js → endpoints-D9TGnxRK.esm.js} +336 -21
  10. package/dist/flow.d.ts +4 -303
  11. package/dist/flow.esm.js +4 -5
  12. package/dist/id-DHVSW_wJ.esm.js +1825 -0
  13. package/dist/id.d.ts +6 -0
  14. package/dist/id.esm.js +8 -0
  15. package/dist/index-CbF_uI-x.d.ts +618 -0
  16. package/dist/index.d.ts +8 -3
  17. package/dist/index.esm.js +7 -4
  18. package/dist/{lib-CykGFCEr.esm.js → lib-BJoLTN_W.esm.js} +2 -2
  19. package/dist/phone.d.ts +1 -1
  20. package/dist/phone.esm.js +3 -3
  21. package/dist/recordingsRepository-D5MURoVB.esm.js +40 -0
  22. package/dist/selfie.d.ts +22 -324
  23. package/dist/selfie.esm.js +34 -23
  24. package/dist/{permissionServices-BhD0KxsO.esm.js → streamingEvents-B3hNanPl.esm.js} +34 -3
  25. package/dist/types-BpCrZLU6.d.ts +302 -0
  26. package/dist/types-DZbrbPgj.d.ts +335 -0
  27. package/package.json +6 -2
  28. package/dist/OpenViduLogger-20ZYS-mT.esm.js +0 -3
  29. package/dist/StateMachine-BqPpBhOz.d.ts +0 -2
  30. package/dist/getBrowser-CLEzz0Hi.esm.js +0 -8
  31. package/dist/types-Dif6MQmX.d.ts +0 -5
  32. /package/dist/{Manager-Cy9-TMC9.d.ts → Manager-BZUZTRPx.d.ts} +0 -0
  33. /package/dist/{chunk-C_Yo44FK.esm.js → chunk-FbsBJI8u.esm.js} +0 -0
  34. /package/dist/{xstate.esm-2T5fOCTq.esm.js → xstate.esm-2hDiAXvZ.esm.js} +0 -0
package/dist/flow.d.ts CHANGED
@@ -1,308 +1,9 @@
1
- import { t as WasmPipeline } from "./warmup-Cijuyvoc.js";
2
- import { t as Manager } from "./Manager-Cy9-TMC9.js";
3
- import { t as AnyStateMachine } from "./StateMachine-BqPpBhOz.js";
1
+ import { r as WasmPipeline, t as AnyStateMachine } from "./StateMachine-pi8byl8C.js";
2
+ import { t as Manager } from "./Manager-BZUZTRPx.js";
3
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-BpCrZLU6.js";
4
4
 
5
- //#region src/modules/flow/types.d.ts
6
- type EmptyConfig = Record<string, never>;
7
- type RegulationTypes = 'US' | 'Worldwide' | 'Other' | 'US_Illinois' | 'US_Texas' | 'US_California' | 'US_Washington';
8
- type TutorialIdConfig = {
9
- showTutorial: boolean;
10
- enableId: boolean;
11
- enablePassport: boolean;
12
- onlyFront: boolean;
13
- onlyBack: boolean;
14
- barcodeCapture: boolean;
15
- fetchAdditionalPage: boolean;
16
- secondId: boolean;
17
- thirdId: boolean;
18
- autoCaptureTimeout: number;
19
- deviceIdleTimeout: number;
20
- captureAttempts: number;
21
- manualUploadIdCapture: boolean;
22
- digitalIdsUpload: boolean;
23
- showDocumentChooserScreen: boolean;
24
- enableIdRecording: boolean;
25
- usSmartCapture: boolean;
26
- perCountryPerDocOverrides: Record<string, Record<string, {
27
- onlyFront: boolean;
28
- onlyBack: boolean;
29
- fetchAdditionalPage: boolean;
30
- }>>;
31
- };
32
- type FlowModuleConfig = {
33
- AUTHENTICATION: {
34
- showTutorial: boolean;
35
- autoCaptureTimeout: number;
36
- numberOfAttempts: number;
37
- type: 'ONE_TO_ONE';
38
- deepsightLiveness: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
39
- validateClosedEyes: boolean;
40
- validateFaceMask: boolean;
41
- validateHeadCover: boolean;
42
- validateLenses: boolean;
43
- };
44
- ADDRESS: {
45
- disableSkipPoa: boolean;
46
- title: string;
47
- text: string;
48
- };
49
- AE_SIGNATURE: {
50
- uploadDocument: boolean;
51
- downloadDocument: boolean;
52
- issuePermanentCertificate: boolean;
53
- allowWithoutScoreValidation: boolean;
54
- validationsToSkip: ('ID' | 'FACE_RECOGNITION' | 'OTP' | 'TOTAL_SCORE')[];
55
- };
56
- CURP_VALIDATION: {
57
- curpDataMatch: boolean;
58
- deceasedStatusVerification: boolean;
59
- };
60
- CUSTOM_FIELDS: {
61
- title: string;
62
- customFields: {
63
- name: string;
64
- alias: string;
65
- type: 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING';
66
- }[];
67
- };
68
- DOCUMENT_CAPTURE: {
69
- processingType: 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
70
- title: string;
71
- text: string;
72
- allowSkipDocumentCapture: boolean;
73
- };
74
- EKYB: {
75
- checkBusinessName: boolean;
76
- businessNameSource: 'userInput';
77
- checkAddress: boolean;
78
- address: 'userInput';
79
- checkTaxId: boolean;
80
- taxIdSource: 'userInput';
81
- checkUniqueBeneficialOwner: boolean;
82
- uniqueBeneficialOwnerSource: 'userInput';
83
- };
84
- EXTERNAL_VERIFICATION: {
85
- source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_1' | 'CL_1' | 'AR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1';
86
- checkName: boolean;
87
- nameSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
88
- checkEmail: boolean;
89
- emailSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
90
- checkAddress: boolean;
91
- addressSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
92
- checkPhone: boolean;
93
- phoneSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
94
- checkSsn: boolean;
95
- ssnSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
96
- checkDob: boolean;
97
- dobSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
98
- checkNationality: boolean;
99
- nationalitySource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
100
- checkDlNumber: boolean;
101
- dlNumberSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
102
- checkDlState: boolean;
103
- dlStateSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
104
- checkDlExpireAt: boolean;
105
- dlExpireAtSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
106
- checkLast4SSN: boolean;
107
- last4SSNSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
108
- checkIdNum: boolean;
109
- idNumSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
110
- checkIdNum1: boolean;
111
- idNum1Source: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
112
- checkGender: boolean;
113
- genderSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
114
- };
115
- EMAIL: {
116
- otpVerification: boolean;
117
- otpExpirationInMinutes: number;
118
- prefill?: boolean;
119
- };
120
- FACE_MATCH: {
121
- matchingType: 'selfieVsId' | 'selfieVsNfc' | 'idVsNfc' | 'nfc3Way';
122
- disableFaceMatchAnimation: boolean;
123
- };
124
- FINISH_GPT: {
125
- finishgptCompanyName: string;
126
- };
127
- GEOLOCATION: {
128
- allowUserToSkipGeolocation: boolean;
129
- };
130
- INE_VALIDATION: {
131
- facialValidation: boolean;
132
- alternativeFacialValidation: boolean;
133
- fallbackEnabled: boolean;
134
- scrapingMethod: boolean;
135
- scrapingV2: boolean;
136
- scrapingV3: boolean;
137
- failUnsupportedId: boolean;
138
- dataValidation: boolean;
139
- backgroundExecution: boolean;
140
- mockConnectionError: boolean;
141
- mockUserNotFoundError: boolean;
142
- mockOK: boolean;
143
- };
144
- GOVT_VALIDATION_PROVISIONING: {
145
- validationCountries: string[];
146
- facialValidation: boolean;
147
- dataValidation: boolean;
148
- faceAndDataValidation: boolean;
149
- addressValidation: boolean;
150
- backgroundExecution: boolean;
151
- faceMatchOverrideDataScore: boolean;
152
- useCroppedIdFacePhoto: boolean;
153
- };
154
- TUTORIAL_ID: TutorialIdConfig;
155
- ID: TutorialIdConfig;
156
- SECOND_ID: TutorialIdConfig;
157
- THIRD_ID: TutorialIdConfig;
158
- ID_OCR: {
159
- editableOcr: boolean;
160
- };
161
- INCODE_WATCHLIST: {
162
- failIfFaceOnBlocklist: boolean;
163
- addSuspectedFraudAutomatically: boolean;
164
- autoExecution: boolean;
165
- };
166
- INSTANT_BAV: {
167
- bavVendorCountry: 'US' | 'CA' | 'AU' | 'NZ' | 'BR' | 'MX' | 'CO' | 'UK' | 'EU';
168
- bavNumberOfRetries: number;
169
- };
170
- ML_CONSENT: {
171
- consentType: RegulationTypes;
172
- };
173
- NFC_SCAN: {
174
- nfcAvailability: boolean;
175
- nfcValidation: boolean;
176
- showInitialDataConfirmationScreen: boolean;
177
- };
178
- PHONE: {
179
- otpVerification: boolean;
180
- otpExpirationInMinutes: number;
181
- prefill: boolean;
182
- };
183
- SELFIE: {
184
- showTutorial: boolean;
185
- showPreview: boolean;
186
- assistedOnboarding: boolean;
187
- enableFaceRecording: boolean;
188
- autoCaptureTimeout: number;
189
- captureAttempts: number;
190
- validateLenses: boolean;
191
- validateFaceMask: boolean;
192
- validateHeadCover: boolean;
193
- validateClosedEyes: boolean;
194
- validateBrightness: boolean;
195
- deepsightLiveness: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
196
- };
197
- SIGNATURE: {
198
- title: string;
199
- subTitle: string;
200
- };
201
- USER_CONSENT: {
202
- title: string;
203
- text: string;
204
- };
205
- CONFERENCE: {
206
- enableConferenceOtp: boolean;
207
- };
208
- VIDEO_ONBOARDING: {
209
- useAsSelfie: boolean;
210
- showTutorials: boolean;
211
- companyName: string;
212
- checkLiveness: boolean;
213
- checkIdScan: boolean;
214
- checkDocumentScan: boolean;
215
- compareIdEnabled: boolean;
216
- compareOcrEnabled: boolean;
217
- compareBackIdEnabled: boolean;
218
- compareBackOcrEnabled: boolean;
219
- checkVoiceConsent: boolean;
220
- voiceConsentQuestions: number;
221
- selfieQualityAffectsScore: boolean;
222
- maxWaitingVideoSelfieFile: number;
223
- lastSecondsVideoQualityCheck: boolean;
224
- lastSecondsVideoQualityCheckDuration: number;
225
- validateClosedEyes: boolean;
226
- validateFaceMask: boolean;
227
- validateHeadCover: boolean;
228
- validateLenses: boolean;
229
- };
230
- DYNAMIC_FORMS: {
231
- screens: {
232
- title: string;
233
- hideTitle: boolean;
234
- questions: {
235
- questionId: string;
236
- overrides: string | null;
237
- isPredefined: boolean;
238
- predefinedQuestionType: string | null;
239
- question: string;
240
- inputType: 'NUMBER' | 'CPF' | 'COUNTRY' | 'NATIONALITY' | 'DATE' | 'PHONE' | 'EMAIL' | 'TEXT' | 'MULTISELECT' | 'YESNO' | 'SELECT';
241
- options: string[];
242
- }[];
243
- }[];
244
- };
245
- COMBINED_CONSENT: {
246
- combinedConsents: string;
247
- };
248
- QE_SIGNATURE: {
249
- uploadDocument: boolean;
250
- downloadDocument: boolean;
251
- };
252
- CERTIFICATE_ISSUANCE: {
253
- region: string;
254
- type: 'ONE_TIME' | 'SHORT_TERM' | 'LONG_TERM';
255
- };
256
- ANTIFRAUD: EmptyConfig;
257
- CHECKBOX_SIGNATURE: EmptyConfig;
258
- CROSS_DOCUMENT_DATA_MATCH: EmptyConfig;
259
- DEVICE_FINGERPRINT: EmptyConfig;
260
- FACE_ONBOARDING: EmptyConfig;
261
- FIELD_COMPARISON: EmptyConfig;
262
- FISCAL_QR: EmptyConfig;
263
- GENERATE_QR: EmptyConfig;
264
- INSTANT_VERIFY: EmptyConfig;
265
- IP_ADDRESS: EmptyConfig;
266
- NAME_CAPTURE: EmptyConfig;
267
- SHOW_RESULTS: EmptyConfig;
268
- STADIUM_SELECTOR: EmptyConfig;
269
- UNIVERSAL_IDENTITY: EmptyConfig;
270
- WATCHLIST: EmptyConfig;
271
- TRUST_GRAPH: EmptyConfig;
272
- WATCHLIST_BUSINESS: EmptyConfig;
273
- };
274
- type FlowModule = { [K in keyof FlowModuleConfig]: {
275
- key: K;
276
- configuration: FlowModuleConfig[K];
277
- } }[keyof FlowModuleConfig];
278
- type Flow = {
279
- flowId: string;
280
- name: string;
281
- autoApproveEnabled?: boolean;
282
- autoApproveLevel?: 'LOW' | 'MEDIUM' | 'HIGH';
283
- checkTutorials?: boolean;
284
- checkAuthorization?: boolean;
285
- redirectDesktopToMobile?: boolean;
286
- disableUnsupportedBrowserScreen?: boolean;
287
- qrPhishingResistance?: boolean;
288
- addContinueToDesktop?: boolean;
289
- redirectOriginOnly?: boolean;
290
- displayOnboardingResultOnDesktop?: boolean;
291
- enableMultipleOnboardings?: boolean;
292
- disableLaunchScreen?: boolean;
293
- enableSardineRisk?: boolean;
294
- mandatoryConsentCheck?: boolean;
295
- disableSmsOption?: boolean;
296
- mergeSessionRecordings?: boolean;
297
- ageAssurance?: boolean;
298
- flowModules: FlowModule[];
299
- enforceCaptureAttemptLimits?: boolean;
300
- enableFraudAi?: boolean;
301
- getEnableIdOnlyIdentity?: boolean;
302
- ds?: boolean;
303
- };
304
- //#endregion
305
5
  //#region src/modules/flow/flowAnalyzer.d.ts
6
+
306
7
  /**
307
8
  * Analyzes a flow configuration and returns the WASM pipelines needed.
308
9
  * Use this to conditionally warmup WASM only when required by the flow.
package/dist/flow.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { b as createManager, n as api, t as endpoints } from "./endpoints-B0ltwtb5.esm.js";
2
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-2T5fOCTq.esm.js";
1
+ import { E as createManager, n as api, t as endpoints } from "./endpoints-D9TGnxRK.esm.js";
2
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-2hDiAXvZ.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowAnalyzer.ts
5
5
  const WASM_MODULE_PIPELINES = {
@@ -344,6 +344,7 @@ const orchestratedFlowMachine = setup({
344
344
  }),
345
345
  runChildModule: fromCallback(({ sendBack, input }) => {
346
346
  const { machine, config } = input;
347
+ if (!machine) return () => {};
347
348
  const actor = createActor(machine, { input: { config } });
348
349
  const subscription = actor.subscribe({
349
350
  complete: () => {
@@ -457,10 +458,8 @@ const orchestratedFlowMachine = setup({
457
458
  src: "runChildModule",
458
459
  input: ({ context }) => {
459
460
  if (!context.currentStep) throw new Error("No current step");
460
- const machine = context.registeredModules[context.currentStep];
461
- if (!machine) throw new Error(`Module ${context.currentStep} not registered`);
462
461
  return {
463
- machine,
462
+ machine: context.registeredModules[context.currentStep],
464
463
  config: context.config
465
464
  };
466
465
  },