@incodetech/core 0.0.0-dev-20260209-168e887 → 0.0.0-dev-20260212-7db2d06

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 (43) hide show
  1. package/dist/OpenViduLogger-Bz7LPAnM.esm.js +3 -0
  2. package/dist/{OpenViduLogger-Cut9zn-U.esm.js → OpenViduLogger-CPED-Apt.esm.js} +1 -1
  3. package/dist/StateMachine-BTwgcH8g.d.ts +58 -0
  4. package/dist/authentication.d.ts +6 -5
  5. package/dist/authentication.esm.js +8 -8
  6. package/dist/curp-validation.d.ts +95 -0
  7. package/dist/curp-validation.esm.js +548 -0
  8. package/dist/{deepsightLoader-DHzfMqHS.esm.js → deepsightLoader-ClEe-KdI.esm.js} +4 -4
  9. package/dist/{deepsightService-DLabZ49g.esm.js → deepsightService-DY1w5Amz.esm.js} +3 -3
  10. package/dist/{deepsightService-D9Isk8fg.d.ts → deepsightService-X02Vowli.d.ts} +2 -2
  11. package/dist/email.d.ts +1 -1
  12. package/dist/email.esm.js +4 -4
  13. package/dist/{endpoints-CJtl25ka.esm.js → endpoints-DxmUJ8rX.esm.js} +4 -1
  14. package/dist/{events-CieIKgPk.esm.js → events-CuIAKgDr.esm.js} +2 -2
  15. package/dist/face-match.d.ts +1 -1
  16. package/dist/face-match.esm.js +4 -4
  17. package/dist/{faceCaptureManagerFactory-CZgmP4pc.d.ts → faceCaptureManagerFactory-CNQN7doV.d.ts} +4 -3
  18. package/dist/{faceCaptureSetup-DRbBF7AJ.esm.js → faceCaptureSetup-iJblI_NP.esm.js} +7 -7
  19. package/dist/flow.d.ts +3 -2
  20. package/dist/flow.esm.js +3 -3
  21. package/dist/{id-2r4nZyH_.esm.js → id-BbXYE__Q.esm.js} +8 -8
  22. package/dist/id.d.ts +7 -6
  23. package/dist/id.esm.js +8 -8
  24. package/dist/{index-C0SJR9cc.d.ts → index-B4Ei_1T2.d.ts} +6 -5
  25. package/dist/index.d.ts +7 -6
  26. package/dist/index.esm.js +8 -8
  27. package/dist/{lib-BbiUxUyg.esm.js → lib-DkCxYA3C.esm.js} +2 -2
  28. package/dist/phone.d.ts +1 -1
  29. package/dist/phone.esm.js +4 -4
  30. package/dist/selfie.d.ts +6 -5
  31. package/dist/selfie.esm.js +8 -8
  32. package/dist/{src-BFHUdMI6.esm.js → src-CGwA8Bgy.esm.js} +15 -5
  33. package/dist/{stats-DuS7aVaJ.esm.js → stats-ftyC31aH.esm.js} +1 -1
  34. package/dist/stats.esm.js +2 -2
  35. package/dist/{streamingEvents-DM6KFfsz.esm.js → streamingEvents-IkhAllE0.esm.js} +3 -3
  36. package/dist/{types-Dc1nBvy2.d.ts → types-c0XgGLsM.d.ts} +1 -58
  37. package/package.json +5 -1
  38. package/dist/OpenViduLogger-D_YCgaLD.esm.js +0 -3
  39. /package/dist/{Actor-uC1hxvGo.d.ts → Actor-DVQMXFy4.d.ts} +0 -0
  40. /package/dist/{Manager-BiAYYF50.d.ts → Manager-DfrNSCCo.d.ts} +0 -0
  41. /package/dist/{api-Cqrn4bGi.esm.js → api-DlSxxyGw.esm.js} +0 -0
  42. /package/dist/{chunk-CbPq_V01.esm.js → chunk-CzJBZnft.esm.js} +0 -0
  43. /package/dist/{types-u31qr1MR.d.ts → types-DGhQYTse.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ import { t as require_OpenViduLogger } from "./OpenViduLogger-CPED-Apt.esm.js";
2
+
3
+ export default require_OpenViduLogger();
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "./chunk-CbPq_V01.esm.js";
1
+ import { t as __commonJS } from "./chunk-CzJBZnft.esm.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
4
4
  var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
@@ -0,0 +1,58 @@
1
+ import { AnyStateMachine, StateMachine } from "xstate";
2
+
3
+ //#region ../infra/src/wasm/warmup.d.ts
4
+
5
+ /**
6
+ * All available ML pipelines in the SDK.
7
+ * - 'selfie' - Face detection for selfie capture
8
+ * - 'idCapture' - Document detection for ID capture
9
+ */
10
+ type WasmPipeline = 'selfie' | 'idCapture';
11
+ interface WarmupConfig {
12
+ wasmPath: string;
13
+ wasmSimdPath?: string;
14
+ glueCodePath: string;
15
+ useSimd?: boolean;
16
+ pipelines?: readonly WasmPipeline[];
17
+ /**
18
+ * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
19
+ * If not provided, models are expected to be in the same directory as the WASM files.
20
+ */
21
+ modelsBasePath?: string;
22
+ /**
23
+ * Custom model files per pipeline. If not provided, uses default models.
24
+ * Keys are pipeline names, values are arrays of model file names.
25
+ */
26
+ pipelineModels?: Partial<Record<WasmPipeline, string[]>>;
27
+ }
28
+ /**
29
+ * Preloads WASM binary and ML models at app startup.
30
+ * Runs asynchronously - app can continue while WASM loads in background.
31
+ *
32
+ * Model files are automatically loaded based on the pipeline type.
33
+ * By default, models are expected in a 'models' subdirectory relative to the WASM binary.
34
+ *
35
+ * @param config - Configuration for WASM warmup
36
+ * @returns Promise that resolves when WASM is ready
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * // Basic usage - models loaded from /wasm/v2/models/
41
+ * warmupWasm({
42
+ * wasmPath: '/wasm/v2/ml-wasm.wasm',
43
+ * glueCodePath: '/wasm/v2/ml-wasm.js',
44
+ * pipelines: ['selfie', 'idCapture'],
45
+ * });
46
+ *
47
+ * // With explicit models path
48
+ * warmupWasm({
49
+ * wasmPath: '/wasm/v2/ml-wasm.wasm',
50
+ * glueCodePath: '/wasm/v2/ml-wasm.js',
51
+ * modelsBasePath: 'https://cdn.example.com/wasm/v2/models',
52
+ * pipelines: ['selfie'],
53
+ * });
54
+ * ```
55
+ */
56
+ declare function warmupWasm(config: WarmupConfig): Promise<void>;
57
+ //#endregion
58
+ export { warmupWasm as i, StateMachine as n, WasmPipeline as r, AnyStateMachine as t };
@@ -1,8 +1,9 @@
1
- import "./types-u31qr1MR.js";
2
- import { a as AnyStateMachine, r as FlowModuleConfig } from "./types-Dc1nBvy2.js";
3
- import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CZgmP4pc.js";
4
- import { t as Manager } from "./Manager-BiAYYF50.js";
5
- import { t as ActorRefFrom } from "./Actor-uC1hxvGo.js";
1
+ import "./types-DGhQYTse.js";
2
+ import { t as AnyStateMachine } from "./StateMachine-BTwgcH8g.js";
3
+ import { a as FaceCaptureDependencies, n as FaceCaptureManagerState, r as BaseFaceCaptureConfig, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CNQN7doV.js";
4
+ import { t as Manager } from "./Manager-DfrNSCCo.js";
5
+ import { t as ActorRefFrom } from "./Actor-DVQMXFy4.js";
6
+ import { r as FlowModuleConfig } from "./types-c0XgGLsM.js";
6
7
 
7
8
  //#region src/modules/authentication/authenticationStateMachine.d.ts
8
9
  declare const _authenticationMachine: AnyStateMachine;
@@ -1,11 +1,11 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-CieIKgPk.esm.js";
2
- import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-BFHUdMI6.esm.js";
3
- import { a as fromPromise, o as createActor, r as assign, t as endpoints } from "./endpoints-CJtl25ka.esm.js";
4
- import { c as getDeviceClass } from "./streamingEvents-DM6KFfsz.esm.js";
5
- import "./deepsightService-DLabZ49g.esm.js";
6
- import { t as api } from "./api-Cqrn4bGi.esm.js";
7
- import "./stats-DuS7aVaJ.esm.js";
8
- import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-DRbBF7AJ.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-CuIAKgDr.esm.js";
2
+ import { m as BrowserStorageProvider, r as WasmUtilProvider } from "./src-CGwA8Bgy.esm.js";
3
+ import { a as fromPromise, o as createActor, r as assign, t as endpoints } from "./endpoints-DxmUJ8rX.esm.js";
4
+ import { c as getDeviceClass } from "./streamingEvents-IkhAllE0.esm.js";
5
+ import "./deepsightService-DY1w5Amz.esm.js";
6
+ import { t as api } from "./api-DlSxxyGw.esm.js";
7
+ import "./stats-ftyC31aH.esm.js";
8
+ import { a as FACE_ERROR_CODES, n as faceCaptureMachine, o as createFaceCaptureManager, t as FACE_CAPTURE_EVENT_CODES } from "./faceCaptureSetup-iJblI_NP.esm.js";
9
9
 
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
11
11
  const AUTH_ERROR_MAP = {
@@ -0,0 +1,95 @@
1
+ import { t as Manager } from "./Manager-DfrNSCCo.js";
2
+ import { r as FlowModuleConfig } from "./types-c0XgGLsM.js";
3
+
4
+ //#region src/modules/curp-validation/types.d.ts
5
+ type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
6
+ /** Maximum validation retries before auto-advancing. @default 1 */
7
+ maxRetries?: number;
8
+ /** Whether to attempt OCR pre-fill on load. @default true */
9
+ prefillFromOcr?: boolean;
10
+ };
11
+ /** CURP generation form data */
12
+ type GenerateCurpForm = {
13
+ name: string;
14
+ firstLastName: string;
15
+ secondLastName: string;
16
+ gender: 'H' | 'M' | 'X' | '';
17
+ birthDate: string;
18
+ birthState: string;
19
+ };
20
+ //#endregion
21
+ //#region src/modules/curp-validation/curpValidationStateMachine.d.ts
22
+
23
+ declare const curpValidationMachine: any;
24
+ //#endregion
25
+ //#region src/modules/curp-validation/curpValidationActor.d.ts
26
+ type CreateCurpValidationActorOptions = {
27
+ config: CurpValidationConfig;
28
+ };
29
+ //#endregion
30
+ //#region src/modules/curp-validation/curpValidationManager.d.ts
31
+ type CurpValidationIdleState = {
32
+ status: 'idle';
33
+ };
34
+ type CurpValidationLoadingState = {
35
+ status: 'loading';
36
+ };
37
+ type CurpValidationEnterCurpState = {
38
+ status: 'enterCurp';
39
+ curp: string;
40
+ isValid: boolean;
41
+ };
42
+ type CurpValidationVerifyingState = {
43
+ status: 'verifying';
44
+ };
45
+ type CurpValidationSuccessState = {
46
+ status: 'success';
47
+ };
48
+ type CurpValidationFailureState = {
49
+ status: 'failure';
50
+ retriesLeft: number;
51
+ };
52
+ type CurpValidationGenerateCurpState = {
53
+ status: 'generateCurp';
54
+ form: GenerateCurpForm;
55
+ isValid: boolean;
56
+ };
57
+ type CurpValidationGeneratingState = {
58
+ status: 'generating';
59
+ };
60
+ type CurpValidationConfirmCurpState = {
61
+ status: 'confirmCurp';
62
+ curp: string;
63
+ };
64
+ type CurpValidationGenerateErrorState = {
65
+ status: 'generateError';
66
+ retriesLeft: number;
67
+ };
68
+ type CurpValidationFinishedState = {
69
+ status: 'finished';
70
+ };
71
+ type CurpValidationClosedState = {
72
+ status: 'closed';
73
+ };
74
+ type CurpValidationState = CurpValidationIdleState | CurpValidationLoadingState | CurpValidationEnterCurpState | CurpValidationVerifyingState | CurpValidationSuccessState | CurpValidationFailureState | CurpValidationGenerateCurpState | CurpValidationGeneratingState | CurpValidationConfirmCurpState | CurpValidationGenerateErrorState | CurpValidationFinishedState | CurpValidationClosedState;
75
+ declare function createCurpValidationManager(options: CreateCurpValidationActorOptions): Manager<CurpValidationState> & {
76
+ load(): void;
77
+ setCurp(curp: string): void;
78
+ verify(): void;
79
+ switchToGenerate(): void;
80
+ setGenerateForm(form: Partial<GenerateCurpForm>): void;
81
+ generate(): void;
82
+ confirmGenerated(): void;
83
+ retry(): void;
84
+ close(): void;
85
+ };
86
+ type CurpValidationManager = ReturnType<typeof createCurpValidationManager>;
87
+ //#endregion
88
+ //#region src/modules/curp-validation/curpValidationUtils.d.ts
89
+ type MexicanState = {
90
+ value: string;
91
+ label: string;
92
+ };
93
+ declare const mexicanStates: MexicanState[];
94
+ //#endregion
95
+ export { type CurpValidationConfig, type CurpValidationManager, type CurpValidationState, type GenerateCurpForm, createCurpValidationManager, curpValidationMachine, mexicanStates };