@incodetech/core 0.0.0-dev-20260302-ad37d43 → 0.0.0-dev-20260302-10177f1

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 (55) hide show
  1. package/dist/authentication.d.ts +8 -8
  2. package/dist/authentication.esm.js +9 -9
  3. package/dist/{backCameraStream-Ly-xbK9L.esm.js → backCameraStream-u3xcpGFM.esm.js} +1 -1
  4. package/dist/curp-validation.d.ts +3 -3
  5. package/dist/curp-validation.esm.js +4 -4
  6. package/dist/{deepsightLoader-nGQDTgVU.esm.js → deepsightLoader-C3qKZdo7.esm.js} +4 -4
  7. package/dist/{deepsightService-CpmpXOnj.esm.js → deepsightService-BaQxZ72c.esm.js} +3 -3
  8. package/dist/{deepsightService-p7oLftiG.d.ts → deepsightService-c3UUVOav.d.ts} +1 -1
  9. package/dist/document-upload.d.ts +2 -2
  10. package/dist/document-upload.esm.js +4 -4
  11. package/dist/ekyb.d.ts +113 -0
  12. package/dist/ekyb.esm.js +650 -0
  13. package/dist/ekyc.d.ts +148 -0
  14. package/dist/ekyc.esm.js +10688 -0
  15. package/dist/email.d.ts +1 -1
  16. package/dist/email.esm.js +4 -4
  17. package/dist/{endpoints-BK1EjE1H.esm.js → endpoints-DsYhzvVt.esm.js} +5 -0
  18. package/dist/{events-DuBPhaxY.esm.js → events-1rBD3IOL.esm.js} +6 -4
  19. package/dist/face-match.d.ts +1 -1
  20. package/dist/face-match.esm.js +4 -4
  21. package/dist/{faceCaptureManagerFactory-5Blo_gz0.d.ts → faceCaptureManagerFactory-YsqEukVD.d.ts} +5 -5
  22. package/dist/{faceCaptureSetup-JLWm8_vt.esm.js → faceCaptureSetup-D5B3BosZ.esm.js} +8 -8
  23. package/dist/flow.d.ts +5 -5
  24. package/dist/flow.esm.js +3 -3
  25. package/dist/geolocation.d.ts +1 -1
  26. package/dist/geolocation.esm.js +4 -4
  27. package/dist/government-validation.d.ts +1 -1
  28. package/dist/government-validation.esm.js +3 -3
  29. package/dist/{id-D-cS-Z6o.esm.js → id-C5k61nTP.esm.js} +24 -11
  30. package/dist/id.d.ts +8 -8
  31. package/dist/id.esm.js +9 -9
  32. package/dist/{index-B_VIYINf.d.ts → index-DjI-ueIb.d.ts} +7 -7
  33. package/dist/index.d.ts +11 -9
  34. package/dist/index.esm.js +9 -9
  35. package/dist/{lib-EkjqkOuB.esm.js → lib-0ctN_ZlJ.esm.js} +1 -1
  36. package/dist/phone.d.ts +1 -1
  37. package/dist/phone.esm.js +4 -4
  38. package/dist/selfie.d.ts +8 -8
  39. package/dist/selfie.esm.js +9 -9
  40. package/dist/{src-Bjg2C1oP.esm.js → src-BAxRO0Rv.esm.js} +2 -2
  41. package/dist/{stats-Baxc8J0w.esm.js → stats-Df76BRkJ.esm.js} +1 -1
  42. package/dist/stats.esm.js +2 -2
  43. package/dist/{streamingEvents-BrVlVGe7.esm.js → streamingEvents-Cf-UwbXh.esm.js} +3 -3
  44. package/dist/types-BOC09Z_x.d.ts +20 -0
  45. package/dist/{types-Skrj9_8y.d.ts → types-Lr7oy_-5.d.ts} +1 -1
  46. package/dist/usStates-D0l6Y6l7.esm.js +210 -0
  47. package/package.json +9 -1
  48. /package/dist/{Actor-DYtyiYF1.d.ts → Actor-pA_tOrQP.d.ts} +0 -0
  49. /package/dist/{Manager-C647XkuZ.d.ts → Manager-DxhSby9F.d.ts} +0 -0
  50. /package/dist/{StateMachine-B3u4LjaP.d.ts → StateMachine-CZg50Irf.d.ts} +0 -0
  51. /package/dist/{api-J0YE3G-C.esm.js → api-BgBQu3t4.esm.js} +0 -0
  52. /package/dist/{chunk-3k-zyWo_.esm.js → chunk-DdchHsRp.esm.js} +0 -0
  53. /package/dist/{types-CLuw51tO.d.ts → types-DGmAf_rg.d.ts} +0 -0
  54. /package/dist/{types-B3jgq_IJ.d.ts → types-Za6hs44v.d.ts} +0 -0
  55. /package/dist/{warmup-BIZ_8rAa.d.ts → warmup-Cli0uoFe.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
- import "./types-CLuw51tO.js";
2
- import "./warmup-BIZ_8rAa.js";
3
- import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-5Blo_gz0.js";
4
- import { t as Manager } from "./Manager-C647XkuZ.js";
5
- import "./types-B3jgq_IJ.js";
6
- import { t as ActorRefFrom } from "./Actor-DYtyiYF1.js";
7
- import { t as AnyStateMachine } from "./StateMachine-B3u4LjaP.js";
8
- import { r as FlowModuleConfig } from "./types-Skrj9_8y.js";
1
+ import "./types-DGmAf_rg.js";
2
+ import "./warmup-Cli0uoFe.js";
3
+ import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-YsqEukVD.js";
4
+ import { t as Manager } from "./Manager-DxhSby9F.js";
5
+ import "./types-Za6hs44v.js";
6
+ import { t as ActorRefFrom } from "./Actor-pA_tOrQP.js";
7
+ import { t as AnyStateMachine } from "./StateMachine-CZg50Irf.js";
8
+ import { r as FlowModuleConfig } from "./types-Lr7oy_-5.js";
9
9
 
10
10
  //#region src/modules/authentication/authenticationStateMachine.d.ts
11
11
  declare const _authenticationMachine: AnyStateMachine;
@@ -1,12 +1,12 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-DuBPhaxY.esm.js";
2
- import "./backCameraStream-Ly-xbK9L.esm.js";
3
- import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-Bjg2C1oP.esm.js";
4
- import { a as fromPromise, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
5
- import { c as getDeviceClass } from "./streamingEvents-BrVlVGe7.esm.js";
6
- import "./deepsightService-CpmpXOnj.esm.js";
7
- import { t as api } from "./api-J0YE3G-C.esm.js";
8
- import "./stats-Baxc8J0w.esm.js";
9
- import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-JLWm8_vt.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-1rBD3IOL.esm.js";
2
+ import "./backCameraStream-u3xcpGFM.esm.js";
3
+ import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-BAxRO0Rv.esm.js";
4
+ import { a as fromPromise, o as createActor, r as assign, t as endpoints } from "./endpoints-DsYhzvVt.esm.js";
5
+ import { c as getDeviceClass } from "./streamingEvents-Cf-UwbXh.esm.js";
6
+ import "./deepsightService-BaQxZ72c.esm.js";
7
+ import { t as api } from "./api-BgBQu3t4.esm.js";
8
+ import "./stats-Df76BRkJ.esm.js";
9
+ import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-D5B3BosZ.esm.js";
10
10
 
11
11
  //#region src/modules/authentication/authenticationErrorUtils.ts
12
12
  const AUTH_ERROR_MAP = {
@@ -1,4 +1,4 @@
1
- import { C as applyTrackConstraints, E as stopCameraStream, F as isIPhone14OrHigher, I as isSafari, M as isAndroid, P as isIOS, T as requestCameraAccess, w as enumerateVideoDevices } from "./src-Bjg2C1oP.esm.js";
1
+ import { C as applyTrackConstraints, E as stopCameraStream, F as isIPhone14OrHigher, I as isSafari, M as isAndroid, P as isIOS, T as requestCameraAccess, w as enumerateVideoDevices } from "./src-BAxRO0Rv.esm.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/ITimerCapability.ts
4
4
  function sleep(ms) {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-C647XkuZ.js";
2
- import "./types-B3jgq_IJ.js";
3
- import { r as FlowModuleConfig } from "./types-Skrj9_8y.js";
1
+ import { t as Manager } from "./Manager-DxhSby9F.js";
2
+ import "./types-Za6hs44v.js";
3
+ import { r as FlowModuleConfig } from "./types-Lr7oy_-5.js";
4
4
 
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-DuBPhaxY.esm.js";
2
- import { D as createManager } from "./src-Bjg2C1oP.esm.js";
3
- import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
- import { t as api } from "./api-J0YE3G-C.esm.js";
1
+ import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-1rBD3IOL.esm.js";
2
+ import { D as createManager } from "./src-BAxRO0Rv.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DsYhzvVt.esm.js";
4
+ import { t as api } from "./api-BgBQu3t4.esm.js";
5
5
 
6
6
  //#region src/modules/curp-validation/curpValidationUtils.ts
7
7
  const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
@@ -1,7 +1,7 @@
1
- import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-Bjg2C1oP.esm.js";
2
- import { t as createDeepsightService } from "./deepsightService-CpmpXOnj.esm.js";
3
- import "./api-J0YE3G-C.esm.js";
4
- import "./stats-Baxc8J0w.esm.js";
1
+ import { g as BrowserEnvironmentProvider, l as MotionSensorProvider, r as WasmUtilProvider, s as VisibilityProvider } from "./src-BAxRO0Rv.esm.js";
2
+ import { t as createDeepsightService } from "./deepsightService-BaQxZ72c.esm.js";
3
+ import "./api-BgBQu3t4.esm.js";
4
+ import "./stats-Df76BRkJ.esm.js";
5
5
 
6
6
  //#region src/internal/deepsight/deepsightLoader.ts
7
7
  const SDK_VERSION = "2.0.0";
@@ -1,6 +1,6 @@
1
- import { E as stopCameraStream, S as IncodeCanvas, T as requestCameraAccess, j as getUserAgent, k as getDeviceInfo, x as createHiddenVideoElement } from "./src-Bjg2C1oP.esm.js";
2
- import { t as api } from "./api-J0YE3G-C.esm.js";
3
- import { t as addDeviceStats } from "./stats-Baxc8J0w.esm.js";
1
+ import { E as stopCameraStream, S as IncodeCanvas, T as requestCameraAccess, j as getUserAgent, k as getDeviceInfo, x as createHiddenVideoElement } from "./src-BAxRO0Rv.esm.js";
2
+ import { t as api } from "./api-BgBQu3t4.esm.js";
3
+ import { t as addDeviceStats } from "./stats-Df76BRkJ.esm.js";
4
4
 
5
5
  //#region src/internal/device/browserSimulation.ts
6
6
  const AUTOMATION_MARKERS = {
@@ -1,4 +1,4 @@
1
- import { i as CameraStream } from "./types-B3jgq_IJ.js";
1
+ import { i as CameraStream } from "./types-Za6hs44v.js";
2
2
 
3
3
  //#region ../infra/src/media/canvas.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-C647XkuZ.js";
2
- import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-B3jgq_IJ.js";
1
+ import { t as Manager } from "./Manager-DxhSby9F.js";
2
+ import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Za6hs44v.js";
3
3
  import * as xstate0 from "xstate";
4
4
 
5
5
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
@@ -1,7 +1,7 @@
1
- import { t as getBackCameraStream } from "./backCameraStream-Ly-xbK9L.esm.js";
2
- import { D as createManager, E as stopCameraStream } from "./src-Bjg2C1oP.esm.js";
3
- import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-BK1EjE1H.esm.js";
4
- import { t as api } from "./api-J0YE3G-C.esm.js";
1
+ import { t as getBackCameraStream } from "./backCameraStream-u3xcpGFM.esm.js";
2
+ import { D as createManager, E as stopCameraStream } from "./src-BAxRO0Rv.esm.js";
3
+ import { a as fromPromise, n as setup, o as createActor, r as assign, t as endpoints } from "./endpoints-DsYhzvVt.esm.js";
4
+ import { t as api } from "./api-BgBQu3t4.esm.js";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadServices.ts
7
7
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {
package/dist/ekyb.d.ts ADDED
@@ -0,0 +1,113 @@
1
+ import { t as Manager } from "./Manager-DxhSby9F.js";
2
+ import { t as FieldDef } from "./types-BOC09Z_x.js";
3
+
4
+ //#region src/modules/ekyb/types.d.ts
5
+ type UboEntry = {
6
+ id: string;
7
+ name: string;
8
+ surname: string;
9
+ };
10
+ type EkybFormValues = {
11
+ country: string;
12
+ businessName?: string;
13
+ street?: string;
14
+ houseNo?: string;
15
+ addressLine2?: string;
16
+ city?: string;
17
+ state?: string;
18
+ postalCode?: string;
19
+ taxId?: string;
20
+ };
21
+ type EkybConfig = {
22
+ verificationFields?: string[];
23
+ checkBusinessName?: boolean;
24
+ checkAddress?: boolean;
25
+ checkTaxId?: boolean;
26
+ checkUniqueBeneficialOwner?: boolean;
27
+ };
28
+ type EkybFieldDef = FieldDef & {
29
+ optionalForCountries?: string[];
30
+ };
31
+ type EkybCountry = 'BR' | 'US' | 'GB' | 'ES' | 'IT' | 'FR' | 'DE' | 'IL' | 'MX' | 'CN' | 'NG' | 'CM' | 'KE';
32
+ //#endregion
33
+ //#region src/modules/ekyb/ekybStateMachine.d.ts
34
+ declare const ekybMachine: any;
35
+ //#endregion
36
+ //#region src/modules/ekyb/ekybActor.d.ts
37
+ type CreateEkybActorOptions = {
38
+ config: EkybConfig;
39
+ };
40
+ //#endregion
41
+ //#region src/modules/ekyb/ekybManager.d.ts
42
+ type EkybFormState = {
43
+ status: 'form';
44
+ country: string;
45
+ availableCountries: readonly string[];
46
+ fields: EkybFieldDef[];
47
+ values: EkybFormValues;
48
+ errors: Record<string, string>;
49
+ displayErrors: Record<string, string>;
50
+ isValid: boolean;
51
+ ubos: UboEntry[];
52
+ canAddUbo: boolean;
53
+ };
54
+ type EkybSubmittingState = {
55
+ status: 'submitting';
56
+ };
57
+ type EkybSuccessState = {
58
+ status: 'success';
59
+ };
60
+ type EkybErrorState = {
61
+ status: 'error';
62
+ errorMessage: string;
63
+ };
64
+ type EkybFinishedState = {
65
+ status: 'finished';
66
+ };
67
+ type EkybClosedState = {
68
+ status: 'closed';
69
+ };
70
+ /**
71
+ * Discriminated union of all possible eKYB manager states.
72
+ */
73
+ type EkybState = EkybFormState | EkybSubmittingState | EkybSuccessState | EkybErrorState | EkybFinishedState | EkybClosedState;
74
+ /**
75
+ * Creates an eKYB manager for headless or UI-driven usage.
76
+ */
77
+ declare function createEkybManager(options: CreateEkybActorOptions): Manager<EkybState> & {
78
+ /** Sets the country and resets/revalidates fields */
79
+ setCountry(country: string): void;
80
+ /** Sets a form field value and triggers revalidation */
81
+ setField(name: string, value: string): void;
82
+ /** Adds a new UBO entry (max 8) */
83
+ addUbo(): void;
84
+ /** Removes a UBO entry by index */
85
+ removeUbo(index: number): void;
86
+ /** Sets a UBO field (name or surname) */
87
+ setUboField(index: number, field: "name" | "surname", value: string): void;
88
+ /** Submits the form (requires isValid to be true) */
89
+ submit(): void;
90
+ /** Retries from failure state, returning to the form */
91
+ retry(): void;
92
+ /** Closes/dismisses the module */
93
+ close(): void;
94
+ };
95
+ type EkybManager = ReturnType<typeof createEkybManager>;
96
+ //#endregion
97
+ //#region src/modules/ekyb/ekybConstants.d.ts
98
+ /**
99
+ * Countries available in all environments.
100
+ * Sorted alphabetically by display name.
101
+ */
102
+ declare const SUPPORTED_COUNTRIES: readonly EkybCountry[];
103
+ /**
104
+ * Additional countries available only in dev/staging environments.
105
+ */
106
+ declare const DEV_ONLY_COUNTRIES: readonly EkybCountry[];
107
+ /**
108
+ * Union of all recognized country codes (prod + dev).
109
+ */
110
+ declare const ALL_COUNTRIES: readonly EkybCountry[];
111
+ declare function isSupportedCountry(code: string): code is EkybCountry;
112
+ //#endregion
113
+ export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, type EkybConfig, type EkybCountry, type EkybFieldDef, type EkybManager, type EkybState, SUPPORTED_COUNTRIES, type UboEntry, createEkybManager, ekybMachine, isSupportedCountry };