@incodetech/core 0.0.0-dev-20260817-acfa6f73 → 0.0.0-dev-20260817-941e76d2

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 (115) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-Bm4ZX5t3.esm.js → BrowserDiagnosticsCryptoProvider-CPcF1K4D.esm.js} +1 -1
  2. package/dist/{BrowserStorageProvider-k-FDkC4W.esm.js → BrowserStorageProvider-C8847M9W.esm.js} +1 -1
  3. package/dist/FaceDetectionProvider-Cn1wS-sA.d.ts +95 -0
  4. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-DDWlQzhi.d.ts} +2 -32
  5. package/dist/IWasmUtilCapability-5-Pncgma.d.ts +149 -0
  6. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-CxTjgXe6.esm.js} +1 -1
  7. package/dist/ae-signature.esm.js +1 -1
  8. package/dist/{apiError-B3T64yxT.esm.js → apiError-B3TI9TK9.esm.js} +1 -1
  9. package/dist/authentication.d.ts +3 -3
  10. package/dist/authentication.esm.js +2 -2
  11. package/dist/{authenticationManager-CVURxKl7.esm.js → authenticationManager-BL7RvcC8.esm.js} +4 -4
  12. package/dist/{authenticationManager-D8DEugXP.d.ts → authenticationManager-Cb4b4dgt.d.ts} +1 -1
  13. package/dist/{authenticationStateMachine-B-0XBXp-.esm.js → authenticationStateMachine-D1XsBKTx.esm.js} +2 -2
  14. package/dist/avatar.d.ts +1 -2
  15. package/dist/camera.esm.js +1 -1
  16. package/dist/createFaceAvatar-pUEkdk4X.d.ts +489 -0
  17. package/dist/curp-validation.d.ts +1 -1
  18. package/dist/{curpValidationManager-BxWhpCLA.d.ts → curpValidationManager-C_TQjX2P.d.ts} +1 -1
  19. package/dist/{deepsightLoader-C9G0gmwl.esm.js → deepsightLoader-BnU_V6rk.esm.js} +6 -6
  20. package/dist/{deepsightService-DLVQS_RH.d.ts → deepsightService-Dr7sNZ5r.d.ts} +2 -1
  21. package/dist/document-capture.d.ts +2 -2
  22. package/dist/document-capture.esm.js +2 -2
  23. package/dist/document-upload.d.ts +4 -4
  24. package/dist/{documentCaptureManager-CaXWUo_N.esm.js → documentCaptureManager-D7A4k-GE.esm.js} +1 -1
  25. package/dist/{documentCaptureManager-Bvipl_tY.d.ts → documentCaptureManager-DlGYd-sJ.d.ts} +67 -67
  26. package/dist/{documentCaptureStateMachine-DpWiaUPB.esm.js → documentCaptureStateMachine-fk7MDfSZ.esm.js} +2 -2
  27. package/dist/dynamic-forms.d.ts +2 -2
  28. package/dist/dynamic-forms.esm.js +2 -2
  29. package/dist/{dynamicFormsManager-CIFvUb6Q.esm.js → dynamicFormsManager-CH1eSNvy.esm.js} +1 -1
  30. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-DhveFHPS.d.ts} +1 -1
  31. package/dist/{dynamicFormsStateMachine-C8_koaQ2.esm.js → dynamicFormsStateMachine-D144f-2m.esm.js} +1 -1
  32. package/dist/ekyb.d.ts +1 -1
  33. package/dist/ekyb.esm.js +3 -3
  34. package/dist/{ekybManager-DvHK24Ai.esm.js → ekybManager-BBJwCOsR.esm.js} +1 -1
  35. package/dist/{ekybStateMachine-Bd9SGUOZ.esm.js → ekybStateMachine-jym81TFF.esm.js} +1 -1
  36. package/dist/electronic-signature.esm.js +1 -1
  37. package/dist/{electronicSignatureManager-DdhVjAVe.esm.js → electronicSignatureManager-CWYfI4hO.esm.js} +1 -1
  38. package/dist/extensibility.d.ts +14 -12
  39. package/dist/extensibility.esm.js +12 -12
  40. package/dist/{faceCaptureManagerFactory-fq0Rl3ik.d.ts → faceCaptureManagerFactory-CKyaVKsu.d.ts} +17 -45
  41. package/dist/{faceCaptureManagerFactory-9X4WspD-.esm.js → faceCaptureManagerFactory-DysNuSGO.esm.js} +3 -3
  42. package/dist/{faceCaptureSetup-D1xDWdEi.esm.js → faceCaptureSetup-DXCPmEv2.esm.js} +4 -4
  43. package/dist/flow-events.d.ts +1 -1
  44. package/dist/flow.d.ts +8 -8
  45. package/dist/flow.esm.js +3 -3
  46. package/dist/{flowCompletionService-CBCd4sTT.esm.js → flowCompletionService-DvWL2nH-.esm.js} +1 -1
  47. package/dist/{flowServices-Clyz_AFS.esm.js → flowServices-CAz3XO92.esm.js} +3 -3
  48. package/dist/geolocation.esm.js +2 -2
  49. package/dist/{geolocationManager-Dnp8XTcy.esm.js → geolocationManager-CPwKn86Q.esm.js} +1 -1
  50. package/dist/{geolocationStateMachine-BBMCEfv9.esm.js → geolocationStateMachine-Cm28EW1O.esm.js} +1 -1
  51. package/dist/home.d.ts +1 -1
  52. package/dist/id-selfie-flow.d.ts +3 -2
  53. package/dist/id-selfie-flow.esm.js +8 -8
  54. package/dist/id.d.ts +3 -3
  55. package/dist/id.esm.js +4 -4
  56. package/dist/{idCaptureDefaults-WeHbQM7W.esm.js → idCaptureDefaults-Dowxd3J3.esm.js} +4 -3
  57. package/dist/{idCaptureManager-BG07OgVe.esm.js → idCaptureManager-BuFn4xQl.esm.js} +5 -5
  58. package/dist/{idCaptureManager-DVWM-L4V.d.ts → idCaptureManager-DlCqj6R1.d.ts} +4 -4
  59. package/dist/{idCaptureServices-CqRJOcig.esm.js → idCaptureServices-Bn656NFx.esm.js} +3 -3
  60. package/dist/{idCaptureStateMachine-DhnmhN0s.esm.js → idCaptureStateMachine-CBpdXe7D.esm.js} +9 -9
  61. package/dist/{index-Bivs6yJF.d.ts → index-BwudEtre.d.ts} +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.esm.js +1 -1
  64. package/dist/mandatory-consent.d.ts +2 -2
  65. package/dist/{mandatoryConsentManager-CVxw-noP.d.ts → mandatoryConsentManager-BZpKPJ1b.d.ts} +1 -1
  66. package/dist/{onDeviceFaceResults-DnxtQAz3.esm.js → onDeviceFaceResults-DT9SoUq7.esm.js} +4 -4
  67. package/dist/{permissionGuards-D2OgV9XX.esm.js → permissionGuards-BEgOUwwQ.esm.js} +1 -1
  68. package/dist/{permissionServices-B7sMtZ8f.esm.js → permissionServices-BPUkbztJ.esm.js} +2 -2
  69. package/dist/personhood.d.ts +5 -4
  70. package/dist/personhood.esm.js +6 -6
  71. package/dist/qe-signature.esm.js +1 -1
  72. package/dist/{recordingService-0VWL71An.esm.js → recordingService-DgwNVrR4.esm.js} +1 -1
  73. package/dist/{runChildModule-Dlr2Kwvn.esm.js → runChildModule-BCd-d039.esm.js} +1 -1
  74. package/dist/{safeStorage-Ep56I-f_.esm.js → safeStorage-2nOSCCnG.esm.js} +43 -70
  75. package/dist/selfie.d.ts +4 -4
  76. package/dist/selfie.esm.js +6 -6
  77. package/dist/{selfieManager-CsFpBfry.esm.js → selfieManager-DfeUZfgL.esm.js} +4 -4
  78. package/dist/{selfieManager-DlAKn0rp.d.ts → selfieManager-Dxj984_L.d.ts} +2 -11
  79. package/dist/{selfieStateMachine-DWDmcet8.esm.js → selfieStateMachine-CHSNxzhO.esm.js} +2 -2
  80. package/dist/{session-BuGZN95Y.esm.js → session-CuM9od2S.esm.js} +4 -4
  81. package/dist/session.d.ts +1 -9
  82. package/dist/session.esm.js +4 -4
  83. package/dist/{sessionInitializer-ShclX9vD.esm.js → sessionInitializer-D_B-8Ujt.esm.js} +2 -2
  84. package/dist/{setup-DywQeePQ.d.ts → setup-BwA7zG5D.d.ts} +19 -31
  85. package/dist/{setup-1lLa3WHQ.esm.js → setup-y1bXyMoz.esm.js} +14 -8
  86. package/dist/trueSight-lNCajJAf.esm.js +1 -0
  87. package/dist/{trueSightService-CNuiVjvN.esm.js → trueSightService-zTWODJoh.esm.js} +4 -4
  88. package/dist/{types-GqIocZi-.d.ts → types-BUdX2CB-.d.ts} +5 -4
  89. package/dist/{types-8LPRL1Ni2.d.ts → types-BlrYfFj3.d.ts} +1 -1
  90. package/dist/types-OehE3PKn.d.ts +6 -0
  91. package/dist/{types-Cyiwbg-r.d.ts → types-RMhiEIm9.d.ts} +4 -80
  92. package/dist/types-W5OCjqmi.d.ts +10 -0
  93. package/dist/{types-CRw2IBPn.d.ts → types-s0fF3TpX.d.ts} +1 -0
  94. package/dist/video-selfie.d.ts +3 -3
  95. package/dist/video-selfie.esm.js +4 -4
  96. package/dist/{videoSelfieCameraWarmer-C95ZbuSU.esm.js → videoSelfieCameraWarmer-Da9lJmK8.esm.js} +4 -4
  97. package/dist/{videoSelfieStepDetector-TyrYWahm.d.ts → videoSelfieStepDetector-Bw5t6XCU.d.ts} +4 -3
  98. package/dist/warmup-CXHBgvFC.d.ts +117 -0
  99. package/dist/wasm.d.ts +23 -5
  100. package/dist/wasm.esm.js +31 -4
  101. package/dist/{wasmDefaults-DTUrftxR.esm.js → wasmDefaults-BrwMccqW.esm.js} +27 -12
  102. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-Dd7Yj25O.esm.js} +1 -1
  103. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-BzFsDjU6.esm.js} +82 -22
  104. package/dist/workflow.d.ts +5 -5
  105. package/dist/workflow.esm.js +15 -15
  106. package/package.json +1 -1
  107. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  108. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  109. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  110. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  111. package/dist/trueSight-BxA2W2OB.esm.js +0 -1
  112. package/dist/types-C2JzKH_L.d.ts +0 -6
  113. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  114. /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
  115. /package/dist/{types-DelMqZLe2.d.ts → types-DelMqZLe.d.ts} +0 -0
@@ -1,50 +0,0 @@
1
- import { n as AvatarFaceState, t as AvatarAssetsOverrides } from "./IFaceAvatarCapability-BrL19G0s.js";
2
- //#region src/internal/avatar/createFaceAvatar.d.ts
3
- /**
4
- * Shared face-avatar dispatch — the single code path BOTH the selfie module
5
- * (`faceCapture` runAvatar actor) and the public `@incodetech/core/avatar` facade
6
- * use, so every camera module mounts avatars the same way. Lives in `internal/`
7
- * (not `modules/`) because `internal/` may not import from `modules/`; the public
8
- * `modules/avatar` entry is a thin re-export of this. See
9
- * docs/features/FACE_AVATAR.md.
10
- *
11
- * Public catalog of shippable face avatars. Each id maps to a lazily-loaded
12
- * provider, so a module only pays the bundle cost of the avatar it picks:
13
- * - `avatar-3d` → 3D VRM character, MediaPipe-tracked (premium look).
14
- * - `avatar-2d` → stylized 2D "satin" face, MediaPipe-tracked. Also the
15
- * personhood avatar.
16
- * - `privacy-lens` → WebGL frosted-glass lens over the real video (no tracking).
17
- *
18
- * (The Incode-data 2D avatar is parked — kept in infra, not in the public
19
- * catalog. See docs/features/FACE_AVATAR.md → Parked: the Incode-data avatar.)
20
- */
21
- type AvatarId = 'avatar-3d' | 'avatar-2d' | 'privacy-lens';
22
- interface FaceAvatarOptions {
23
- /** Which avatar to render. */
24
- variant: AvatarId;
25
- /** The already-acquired camera stream (the host module owns it). */
26
- stream: MediaStream;
27
- /** Runtime asset overrides (MediaPipe wasm/model, VRM); defaults to the CDN layout. */
28
- assets?: AvatarAssetsOverrides;
29
- /** Upper bound on the avatar's internal detect/render loop (default 30). */
30
- maxFps?: number;
31
- /** Initial verdict cue; defaults to `detecting`. */
32
- initialState?: AvatarFaceState;
33
- }
34
- interface FaceAvatarHandle {
35
- /** The canvas to mount in place of the live video. */
36
- readonly canvas: HTMLCanvasElement;
37
- /** Push a verdict cue (no-op for avatars without a verdict visual). */
38
- setState(state: AvatarFaceState): void;
39
- /** Tear down the loop, model and hidden decode video. */
40
- stop(): void;
41
- }
42
- /**
43
- * Mounts a cosmetic face avatar: lazy-loads the chosen provider, starts it on the
44
- * given stream, and returns a handle to mount the canvas + push verdict cues. The
45
- * avatar is **cosmetic-only** — it never feeds the authoritative
46
- * detection/quality/liveness/upload pipeline.
47
- */
48
- declare function createFaceAvatar(options: FaceAvatarOptions): Promise<FaceAvatarHandle>;
49
- //#endregion
50
- export { createFaceAvatar as i, FaceAvatarHandle as n, FaceAvatarOptions as r, AvatarId as t };
@@ -1 +0,0 @@
1
- import "./trueSightService-CNuiVjvN.esm.js";
@@ -1,6 +0,0 @@
1
- import { i as FlowModuleConfig } from "./types-CRw2IBPn.js";
2
- import { t as BaseFaceCaptureConfig } from "./types-Cyiwbg-r.js";
3
- //#region src/modules/authentication/types.d.ts
4
- type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
- //#endregion
6
- export { AuthenticationConfig as t };
@@ -1,82 +0,0 @@
1
- //#region ../infra/src/wasm/warmup.d.ts
2
- /**
3
- * All available ML pipelines in the SDK.
4
- * - 'selfie' - Face detection for selfie capture (default 4-model bundle)
5
- * - 'onDeviceSelfie' - Face detection + on-device liveness + age estimation
6
- * (6-model bundle for the on-device face-results submission flow). Mutually
7
- * exclusive with 'selfie' for a given session — both use FaceProcessingApi.
8
- * - 'idCapture' - Document detection for ID capture
9
- * - 'videoSelfie' - Face detection tuned for the video-selfie flow
10
- * (frame-aggregation best-shot; same 4-model bundle as 'selfie').
11
- * - 'videoSelfieId' - Document detection tuned for the video-selfie flow
12
- * (simplified ID capture, no capturing-manager timer).
13
- */
14
- type WasmPipeline = 'selfie' | 'onDeviceSelfie' | 'idCapture' | 'videoSelfie' | 'videoSelfieId';
15
- interface WarmupConfig {
16
- /**
17
- * Self-hosted WASM root directory. When set, resolves standard filenames
18
- * (`webLib.wasm`, `webLib.js`, `models/`, etc.) under this path.
19
- * Individual path fields override values derived from `basePath`.
20
- * Pin a specific ml-wasm-kit version here when self-hosting so SDK updates
21
- * do not change which binaries your app loads.
22
- */
23
- basePath?: string;
24
- wasmPath: string;
25
- wasmSimdPath?: string;
26
- glueCodePath: string;
27
- /**
28
- * Path to the SIMD-optimized WASM glue code (paired with `wasmSimdPath`).
29
- * If omitted, defaults to a sibling `.js` derived from `wasmSimdPath`.
30
- */
31
- glueCodeSimdPath?: string;
32
- useSimd?: boolean;
33
- pipelines?: readonly WasmPipeline[];
34
- /**
35
- * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
36
- * If not provided, models are expected to be in the same directory as the WASM files.
37
- */
38
- modelsBasePath?: string;
39
- /**
40
- * Custom model files per pipeline. If not provided, uses default models.
41
- * Keys are pipeline names, values are arrays of model file names.
42
- */
43
- pipelineModels?: Partial<Record<WasmPipeline, string[]>>;
44
- /**
45
- * On-device mode. When true, the native WASM module skips full fingerprint
46
- * collection on init and keeps only the device-detection DTO. Applied just
47
- * before the WASM module initializes. Omit to leave the current setting
48
- * (e.g. one already set via setup()'s `fingerprint` option) unchanged.
49
- */
50
- onDeviceMode?: boolean;
51
- }
52
- /**
53
- * Preloads WASM binary and ML models at app startup.
54
- * Runs asynchronously - app can continue while WASM loads in background.
55
- *
56
- * Model files are automatically loaded based on the pipeline type.
57
- * By default, models are expected in a 'models' subdirectory relative to the WASM binary.
58
- *
59
- * @param config - Configuration for WASM warmup
60
- * @returns Promise that resolves when WASM is ready
61
- *
62
- * @example
63
- * ```ts
64
- * // Basic usage - models loaded from /wasm/v2/models/
65
- * warmupWasm({
66
- * wasmPath: '/wasm/v2/ml-wasm.wasm',
67
- * glueCodePath: '/wasm/v2/ml-wasm.js',
68
- * pipelines: ['selfie', 'idCapture'],
69
- * });
70
- *
71
- * // With explicit models path
72
- * warmupWasm({
73
- * wasmPath: '/wasm/v2/ml-wasm.wasm',
74
- * glueCodePath: '/wasm/v2/ml-wasm.js',
75
- * modelsBasePath: 'https://cdn.example.com/wasm/v2/models',
76
- * pipelines: ['selfie'],
77
- * });
78
- * ```
79
- */
80
- declare function warmupWasm(config: WarmupConfig): Promise<void>;
81
- //#endregion
82
- export { WasmPipeline as n, warmupWasm as r, WarmupConfig as t };