@incodetech/core 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (71) hide show
  1. package/.turbo/turbo-build.log +33 -0
  2. package/.turbo/turbo-coverage.log +22 -0
  3. package/.turbo/turbo-format.log +6 -0
  4. package/.turbo/turbo-lint$colon$fix.log +77 -0
  5. package/.turbo/turbo-lint.log +95 -0
  6. package/.turbo/turbo-test.log +870 -0
  7. package/.turbo/turbo-typecheck.log +5 -0
  8. package/coverage/base.css +224 -0
  9. package/coverage/block-navigation.js +87 -0
  10. package/coverage/favicon.png +0 -0
  11. package/coverage/index.html +221 -0
  12. package/coverage/prettify.css +1 -0
  13. package/coverage/prettify.js +2 -0
  14. package/coverage/sort-arrow-sprite.png +0 -0
  15. package/coverage/sorter.js +210 -0
  16. package/coverage/src/camera/cameraService.ts.html +580 -0
  17. package/coverage/src/camera/cameraServices.ts.html +163 -0
  18. package/coverage/src/camera/cameraStateMachine.ts.html +877 -0
  19. package/coverage/src/camera/index.html +146 -0
  20. package/coverage/src/email/emailActor.ts.html +130 -0
  21. package/coverage/src/email/emailManager.ts.html +1366 -0
  22. package/coverage/src/email/emailStateMachine.ts.html +1186 -0
  23. package/coverage/src/email/index.html +146 -0
  24. package/coverage/src/flow/flowActor.ts.html +124 -0
  25. package/coverage/src/flow/flowAnalyzer.ts.html +196 -0
  26. package/coverage/src/flow/flowManager.ts.html +790 -0
  27. package/coverage/src/flow/flowServices.ts.html +124 -0
  28. package/coverage/src/flow/flowStateMachine.ts.html +631 -0
  29. package/coverage/src/flow/index.html +221 -0
  30. package/coverage/src/flow/moduleLoader.ts.html +304 -0
  31. package/coverage/src/flow/orchestratedFlowManager.ts.html +778 -0
  32. package/coverage/src/flow/orchestratedFlowStateMachine.ts.html +1060 -0
  33. package/coverage/src/http/api.ts.html +355 -0
  34. package/coverage/src/http/endpoints.ts.html +136 -0
  35. package/coverage/src/http/index.html +131 -0
  36. package/coverage/src/index.html +116 -0
  37. package/coverage/src/phone/index.html +146 -0
  38. package/coverage/src/phone/phoneActor.ts.html +130 -0
  39. package/coverage/src/phone/phoneManager.ts.html +1459 -0
  40. package/coverage/src/phone/phoneStateMachine.ts.html +1351 -0
  41. package/coverage/src/recordings/index.html +116 -0
  42. package/coverage/src/recordings/recordingsRepository.ts.html +229 -0
  43. package/coverage/src/selfie/index.html +191 -0
  44. package/coverage/src/selfie/selfieActor.ts.html +136 -0
  45. package/coverage/src/selfie/selfieErrorUtils.ts.html +283 -0
  46. package/coverage/src/selfie/selfieManager.ts.html +988 -0
  47. package/coverage/src/selfie/selfieStateMachine.ts.html +2497 -0
  48. package/coverage/src/selfie/selfieUploadService.ts.html +328 -0
  49. package/coverage/src/selfie/types.ts.html +394 -0
  50. package/coverage/src/setup.ts.html +598 -0
  51. package/dist/Manager-6BwbaI_H.d.ts +19 -0
  52. package/dist/StateMachine-7c1gcu94.d.ts +2 -0
  53. package/dist/addEvent-1Mi5CEiq.esm.js +16 -0
  54. package/dist/chunk-C_Yo44FK.esm.js +49 -0
  55. package/dist/email.d.ts +264 -0
  56. package/dist/email.esm.js +479 -0
  57. package/dist/endpoints-D_pUMaqA.esm.js +1701 -0
  58. package/dist/flow.d.ts +578 -0
  59. package/dist/flow.esm.js +628 -0
  60. package/dist/index.d.ts +226 -0
  61. package/dist/index.esm.js +155 -0
  62. package/dist/lib-CyIAFRfr.esm.js +12499 -0
  63. package/dist/permissionServices-CVR0Pq38.esm.js +72 -0
  64. package/dist/phone.d.ts +292 -0
  65. package/dist/phone.esm.js +550 -0
  66. package/dist/selfie.d.ts +758 -0
  67. package/dist/selfie.esm.js +978 -0
  68. package/dist/types-tq1ypYSL.d.ts +5 -0
  69. package/dist/warmup-Dr7OcFND.d.ts +55 -0
  70. package/dist/xstate.esm-B_rda9yU.esm.js +3261 -0
  71. package/package.json +11 -11
@@ -0,0 +1,5 @@
1
+ //#region src/permissions/types.d.ts
2
+ type PermissionResult = 'granted' | 'denied' | 'prompt';
3
+ type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
4
+ //#endregion
5
+ export { PermissionStatus as n, PermissionResult as t };
@@ -0,0 +1,55 @@
1
+ //#region ../infra/src/wasm/warmup.d.ts
2
+ /**
3
+ * All available ML pipelines in the SDK.
4
+ * - 'selfie' - Face detection for selfie capture
5
+ * - 'idCapture' - Document detection for ID capture
6
+ */
7
+ type WasmPipeline = 'selfie' | 'idCapture';
8
+ interface WarmupConfig {
9
+ wasmPath: string;
10
+ wasmSimdPath?: string;
11
+ glueCodePath: string;
12
+ useSimd?: boolean;
13
+ pipelines?: readonly WasmPipeline[];
14
+ /**
15
+ * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
16
+ * If not provided, models are expected to be in the same directory as the WASM files.
17
+ */
18
+ modelsBasePath?: string;
19
+ /**
20
+ * Custom model files per pipeline. If not provided, uses default models.
21
+ * Keys are pipeline names, values are arrays of model file names.
22
+ */
23
+ pipelineModels?: Partial<Record<WasmPipeline, string[]>>;
24
+ }
25
+ /**
26
+ * Preloads WASM binary and ML models at app startup.
27
+ * Runs asynchronously - app can continue while WASM loads in background.
28
+ *
29
+ * Model files are automatically loaded based on the pipeline type.
30
+ * By default, models are expected in a 'models' subdirectory relative to the WASM binary.
31
+ *
32
+ * @param config - Configuration for WASM warmup
33
+ * @returns Promise that resolves when WASM is ready
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * // Basic usage - models loaded from /wasm/v2/models/
38
+ * warmupWasm({
39
+ * wasmPath: '/wasm/v2/ml-wasm.wasm',
40
+ * glueCodePath: '/wasm/v2/ml-wasm.js',
41
+ * pipelines: ['selfie', 'idCapture'],
42
+ * });
43
+ *
44
+ * // With explicit models path
45
+ * warmupWasm({
46
+ * wasmPath: '/wasm/v2/ml-wasm.wasm',
47
+ * glueCodePath: '/wasm/v2/ml-wasm.js',
48
+ * modelsBasePath: 'https://cdn.example.com/wasm/v2/models',
49
+ * pipelines: ['selfie'],
50
+ * });
51
+ * ```
52
+ */
53
+ declare function warmupWasm(config: WarmupConfig): Promise<void>;
54
+ //#endregion
55
+ export { warmupWasm as n, WasmPipeline as t };