@incodetech/core 2.0.0-alpha.1 → 2.0.0-alpha.10
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.
- package/dist/Manager-BGfxEmyv.d.ts +19 -0
- package/dist/OpenViduLogger-BdPfiZO6.esm.js +3 -0
- package/dist/OpenViduLogger-CQyDxBvM.esm.js +803 -0
- package/dist/StateMachine-DRE1oH2B.d.ts +2 -0
- package/dist/addEvent-W0ORK0jT.esm.js +16 -0
- package/dist/chunk-C_Yo44FK.esm.js +49 -0
- package/dist/email.d.ts +264 -0
- package/dist/email.esm.js +479 -0
- package/dist/endpoints-BSTFaHYo.esm.js +1706 -0
- package/dist/flow.d.ts +578 -0
- package/dist/flow.esm.js +628 -0
- package/dist/index.d.ts +226 -0
- package/dist/index.esm.js +155 -0
- package/dist/lib-Bu9XGMBW.esm.js +11700 -0
- package/dist/permissionServices-I6vX6DBy.esm.js +72 -0
- package/dist/phone.d.ts +292 -0
- package/dist/phone.esm.js +550 -0
- package/dist/selfie.d.ts +759 -0
- package/dist/selfie.esm.js +995 -0
- package/dist/types-iZi2rawo.d.ts +5 -0
- package/dist/warmup-CEJTfxQr.d.ts +55 -0
- package/dist/xstate.esm-B_rda9yU.esm.js +3261 -0
- package/package.json +14 -11
- package/src/camera/cameraActor.ts +0 -21
- package/src/camera/cameraService.test.ts +0 -437
- package/src/camera/cameraService.ts +0 -165
- package/src/camera/cameraServices.test.ts +0 -66
- package/src/camera/cameraServices.ts +0 -26
- package/src/camera/cameraStateMachine.test.ts +0 -602
- package/src/camera/cameraStateMachine.ts +0 -264
- package/src/camera/index.ts +0 -5
- package/src/camera/types.ts +0 -17
- package/src/device/getBrowser.ts +0 -31
- package/src/device/getDeviceClass.ts +0 -29
- package/src/device/index.ts +0 -2
- package/src/email/__mocks__/emailMocks.ts +0 -59
- package/src/email/emailActor.ts +0 -15
- package/src/email/emailManager.test.ts +0 -573
- package/src/email/emailManager.ts +0 -427
- package/src/email/emailServices.ts +0 -66
- package/src/email/emailStateMachine.test.ts +0 -741
- package/src/email/emailStateMachine.ts +0 -367
- package/src/email/index.ts +0 -39
- package/src/email/types.ts +0 -60
- package/src/events/addEvent.ts +0 -20
- package/src/events/types.ts +0 -7
- package/src/flow/__mocks__/flowMocks.ts +0 -84
- package/src/flow/flowActor.ts +0 -13
- package/src/flow/flowAnalyzer.test.ts +0 -266
- package/src/flow/flowAnalyzer.ts +0 -37
- package/src/flow/flowCompletionService.ts +0 -21
- package/src/flow/flowManager.test.ts +0 -560
- package/src/flow/flowManager.ts +0 -235
- package/src/flow/flowServices.test.ts +0 -109
- package/src/flow/flowServices.ts +0 -13
- package/src/flow/flowStateMachine.test.ts +0 -334
- package/src/flow/flowStateMachine.ts +0 -182
- package/src/flow/index.ts +0 -21
- package/src/flow/moduleLoader.test.ts +0 -136
- package/src/flow/moduleLoader.ts +0 -73
- package/src/flow/orchestratedFlowManager.test.ts +0 -240
- package/src/flow/orchestratedFlowManager.ts +0 -231
- package/src/flow/orchestratedFlowStateMachine.test.ts +0 -199
- package/src/flow/orchestratedFlowStateMachine.ts +0 -325
- package/src/flow/types.ts +0 -434
- package/src/http/__mocks__/api.ts +0 -88
- package/src/http/api.test.ts +0 -231
- package/src/http/api.ts +0 -90
- package/src/http/endpoints.ts +0 -17
- package/src/index.ts +0 -33
- package/src/permissions/index.ts +0 -2
- package/src/permissions/permissionServices.ts +0 -31
- package/src/permissions/types.ts +0 -3
- package/src/phone/__mocks__/phoneMocks.ts +0 -71
- package/src/phone/index.ts +0 -39
- package/src/phone/phoneActor.ts +0 -15
- package/src/phone/phoneManager.test.ts +0 -393
- package/src/phone/phoneManager.ts +0 -458
- package/src/phone/phoneServices.ts +0 -98
- package/src/phone/phoneStateMachine.test.ts +0 -918
- package/src/phone/phoneStateMachine.ts +0 -422
- package/src/phone/types.ts +0 -83
- package/src/recordings/recordingsRepository.test.ts +0 -87
- package/src/recordings/recordingsRepository.ts +0 -48
- package/src/recordings/streamingEvents.ts +0 -10
- package/src/selfie/__mocks__/selfieMocks.ts +0 -26
- package/src/selfie/index.ts +0 -14
- package/src/selfie/selfieActor.ts +0 -17
- package/src/selfie/selfieErrorUtils.test.ts +0 -116
- package/src/selfie/selfieErrorUtils.ts +0 -66
- package/src/selfie/selfieManager.test.ts +0 -297
- package/src/selfie/selfieManager.ts +0 -301
- package/src/selfie/selfieServices.ts +0 -362
- package/src/selfie/selfieStateMachine.test.ts +0 -283
- package/src/selfie/selfieStateMachine.ts +0 -804
- package/src/selfie/selfieUploadService.test.ts +0 -90
- package/src/selfie/selfieUploadService.ts +0 -81
- package/src/selfie/types.ts +0 -103
- package/src/session/index.ts +0 -5
- package/src/session/sessionService.ts +0 -78
- package/src/setup.test.ts +0 -61
- package/src/setup.ts +0 -171
- package/tsconfig.json +0 -13
- package/tsdown.config.ts +0 -22
- package/vitest.config.ts +0 -37
- package/vitest.setup.ts +0 -135
|
@@ -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 };
|