@incodetech/core 0.0.0-dev-20260407-4677d7f → 0.0.0-dev-20260407-2c382da
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/{BaseWasmProvider-CQgeReKV.esm.js → BaseWasmProvider--AzPfwOm.esm.js} +785 -1
- package/dist/{xstate.esm-BXrcOcSC.esm.js → Manager-C6AGXEq_.esm.js} +507 -103
- package/dist/{warmup-CEOVQKby.d.ts → StateMachine-CM_aOfNL.d.ts} +4 -1
- package/dist/{recordingsRepository-blYn-iKZ.esm.js → StreamCanvasCapture-DkpkIgyL.esm.js} +215 -157
- package/dist/{WasmUtilProvider-C45HStLj.esm.js → WasmUtilProvider-BonqBWdj.esm.js} +1 -1
- package/dist/{addressSearch-C5qzDvkN.esm.js → addressSearch-B8Fo4v9V.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +3 -3
- package/dist/authentication.d.ts +9 -11
- package/dist/authentication.esm.js +13 -18
- package/dist/{authenticationManager-CW4qxgcq.esm.js → authenticationManager-B4gSCgrO.esm.js} +6 -7
- package/dist/{authenticationManager-CiXsOTdM.d.ts → authenticationManager-Bd10YGSO.d.ts} +2 -2
- package/dist/{backCameraStream-CUo1USCT.esm.js → backCameraStream-DF_d7hTz.esm.js} +2 -2
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +3 -3
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +3 -3
- package/dist/{deepsightLoader-Bs5jHgca.esm.js → deepsightLoader-DKgEdLIS.esm.js} +7 -10
- package/dist/{deepsightService-CMAtxAC9.d.ts → deepsightService-Ciu0atv5.d.ts} +197 -193
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +6 -6
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +6 -6
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +9 -9
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-DEIxY7l6.d.ts → emailManager-BQPIJR_O.d.ts} +2 -2
- package/dist/{emailManager-CZ2IGW0g.esm.js → emailManager-CpAwvP3v.esm.js} +4 -4
- package/dist/endpoints-CI5-28jT.esm.js +69 -0
- package/dist/extensibility.d.ts +13 -15
- package/dist/extensibility.esm.js +20 -25
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CWj-nXdx.d.ts → faceCaptureManagerFactory-CdwpYykv.d.ts} +6 -8
- package/dist/{faceCaptureSetup-DIE5cftl.esm.js → faceCaptureSetup-DbXgtcp7.esm.js} +10 -13
- package/dist/flow.d.ts +6 -7
- package/dist/flow.esm.js +8 -8
- package/dist/{flowCompletionService-N6-xypy-.esm.js → flowCompletionService-TnWijsSw.esm.js} +2 -2
- package/dist/{flowServices-xgqnJ64L.esm.js → flowServices-CO2sIR3D.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +4 -4
- package/dist/id-CzDAG_kM.esm.js +0 -0
- package/dist/id.d.ts +10 -11
- package/dist/id.esm.js +15 -19
- package/dist/{idCaptureManager-SHBRQ-X_.esm.js → idCaptureManager-DaLU1ug7.esm.js} +11 -15
- package/dist/{idCaptureManager-H-rkXnbK.d.ts → idCaptureManager-IdqsAASp.d.ts} +6 -7
- package/dist/index-BuVKc9bv.d.ts +1 -0
- package/dist/index.d.ts +611 -3
- package/dist/index.esm.js +562 -10
- package/dist/{lib-Cq5Wc-Hd.esm.js → lib-i-4qLKdG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-CscgaER2.esm.js → phoneManager-BAPHSXx8.esm.js} +4 -4
- package/dist/{phoneManager-Clfbrs6b.d.ts → phoneManager-DA8WUJtl.d.ts} +2 -2
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +9 -11
- package/dist/selfie.esm.js +13 -18
- package/dist/{selfieManager-DeGqD5aN.esm.js → selfieManager-BSkzncsa.esm.js} +4 -5
- package/dist/{selfieManager-h_hhEefT.d.ts → selfieManager-Dft5wZQ_.d.ts} +2 -2
- package/dist/{session-PLjFj_T3.esm.js → session-OglUYC9l.esm.js} +19 -5
- package/dist/session.d.ts +2 -46
- package/dist/session.esm.js +4 -7
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +3 -3
- package/dist/{stats-BZ1kFW4p.esm.js → stats-BVigf5Rn.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-T0VjZW3T.d.ts → types-CiLyvJGb.d.ts} +1 -1
- package/dist/{types-zH5PDmSe.d.ts → types-D8Y1faI5.d.ts} +1 -1
- package/package.json +2 -18
- package/dist/MotionSensorProvider-BTDLt08l.esm.js +0 -254
- package/dist/StateMachine-8d441d6x.d.ts +0 -2
- package/dist/camera.d.ts +0 -16
- package/dist/camera.esm.js +0 -5
- package/dist/deepsightService-C3gQ_9Ml.esm.js +0 -493
- package/dist/device.d.ts +0 -46
- package/dist/device.esm.js +0 -106
- package/dist/events-BlVGS-8F.esm.js +0 -472
- package/dist/events.d.ts +0 -232
- package/dist/events.esm.js +0 -4
- package/dist/getBrowser-B800KRAi.esm.js +0 -41
- package/dist/getDeviceClass-BKd2FOAf.esm.js +0 -14
- package/dist/http.d.ts +0 -57
- package/dist/http.esm.js +0 -3
- package/dist/permissionServices-CDqkkway.esm.js +0 -50
- package/dist/setup-DJ3dFl5k.d.ts +0 -120
- package/dist/setup-fvDWE7f8.esm.js +0 -450
- package/dist/types-qhLxpptI.d.ts +0 -5
- package/dist/wasm.d.ts +0 -15
- package/dist/wasm.esm.js +0 -10
- /package/dist/{Actor-C-jivmFF.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider--xQUs3sg.esm.js → BrowserEnvironmentProvider-BECjyw3_.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-CkHEwJFa.esm.js → BrowserTimerProvider-CIqH6hJp.esm.js} +0 -0
- /package/dist/{Manager-BqFybBV-.d.ts → Manager-CCT_-HuZ.d.ts} +0 -0
- /package/dist/{api-CyI8qTie.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{browserSimulation-yzDdWSBf.esm.js → browserSimulation-DYAk0Ipe.esm.js} +0 -0
- /package/dist/{camera-CKsQVNlH.d.ts → camera-6XJdOeBF.d.ts} +0 -0
- /package/dist/{camera-CsT06Zqy.esm.js → camera-DAuRUvnp.esm.js} +0 -0
- /package/dist/{chunk-BcQWkoAq.esm.js → chunk-D6hkk-hd.esm.js} +0 -0
- /package/dist/{displayErrors-CjMXlBnu.d.ts → displayErrors-CGJwvrTl.d.ts} +0 -0
- /package/dist/{flowCompletionService-BV6ThEJ1.d.ts → flowCompletionService-BOd4Rk8n.d.ts} +0 -0
- /package/dist/{platform-Dcuv6w60.esm.js → platform-DdhkonXk.esm.js} +0 -0
|
@@ -1,186 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as CameraStream } from "./camera-
|
|
1
|
+
import { a as WasmPipeline } from "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import { t as CameraStream } from "./camera-6XJdOeBF.js";
|
|
3
3
|
|
|
4
|
-
//#region ../infra/src/capabilities/IRecordingCapability.d.ts
|
|
5
|
-
type RecordingPublisher = {
|
|
6
|
-
getStreamId: () => string | undefined;
|
|
7
|
-
replaceVideoTrack: (track: MediaStreamTrack) => Promise<void>;
|
|
8
|
-
destroy: () => void;
|
|
9
|
-
};
|
|
10
|
-
type RecordingConnection = {
|
|
11
|
-
sessionId: string | undefined;
|
|
12
|
-
publisher: RecordingPublisher;
|
|
13
|
-
disconnect: () => Promise<void>;
|
|
14
|
-
};
|
|
15
|
-
type RecordingConnectionEvents = {
|
|
16
|
-
onSessionConnected?: (sessionId: string | undefined) => void;
|
|
17
|
-
onSessionDisconnected?: (sessionId: string | undefined) => void;
|
|
18
|
-
onSessionException?: (params: {
|
|
19
|
-
name?: string;
|
|
20
|
-
message?: string;
|
|
21
|
-
sessionId?: string;
|
|
22
|
-
}) => void;
|
|
23
|
-
onPublisherCreated?: (params: {
|
|
24
|
-
streamId?: string;
|
|
25
|
-
sessionId?: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
onPublisherError?: (params: {
|
|
28
|
-
message?: string;
|
|
29
|
-
sessionId?: string;
|
|
30
|
-
streamId?: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
};
|
|
33
|
-
type ConnectRecordingParams = {
|
|
34
|
-
sessionToken: string;
|
|
35
|
-
stream: MediaStream;
|
|
36
|
-
events?: RecordingConnectionEvents;
|
|
37
|
-
};
|
|
38
|
-
type IRecordingCapability = {
|
|
39
|
-
/**
|
|
40
|
-
* Connects to a recording session and publishes the provided media stream.
|
|
41
|
-
* Returns a connection handle that can be disconnected and used to manage the publisher.
|
|
42
|
-
*/
|
|
43
|
-
connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../infra/src/capabilities/IStorageCapability.d.ts
|
|
47
|
-
/**
|
|
48
|
-
* Storage capability interface for abstracting storage operations.
|
|
49
|
-
* Enables swapping between browser localStorage and future WASM-based storage.
|
|
50
|
-
*/
|
|
51
|
-
interface IStorageCapability {
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves a value from storage.
|
|
54
|
-
* @param key - The storage key
|
|
55
|
-
* @returns The stored value or null if not found
|
|
56
|
-
*/
|
|
57
|
-
get<T>(key: string): Promise<T | null>;
|
|
58
|
-
/**
|
|
59
|
-
* Stores a value in storage.
|
|
60
|
-
* @param key - The storage key
|
|
61
|
-
* @param value - The value to store (will be serialized)
|
|
62
|
-
*/
|
|
63
|
-
set<T>(key: string, value: T): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Removes a value from storage.
|
|
66
|
-
* @param key - The storage key to remove
|
|
67
|
-
*/
|
|
68
|
-
remove(key: string): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Clears all values from storage.
|
|
71
|
-
*/
|
|
72
|
-
clear(): Promise<void>;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region ../infra/src/capabilities/IMLProviderCapability.d.ts
|
|
76
|
-
/**
|
|
77
|
-
* Base configuration shared by all ML provider capabilities.
|
|
78
|
-
*/
|
|
79
|
-
interface MLProviderConfig {
|
|
80
|
-
/** Path to the WASM binary */
|
|
81
|
-
wasmPath?: string;
|
|
82
|
-
/** Path to the SIMD-optimized WASM binary (optional) */
|
|
83
|
-
wasmSimdPath?: string;
|
|
84
|
-
/** Path to the WASM glue code */
|
|
85
|
-
glueCodePath?: string;
|
|
86
|
-
/** Whether to use SIMD optimizations (default: true) */
|
|
87
|
-
useSimd?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
|
|
90
|
-
* If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
|
|
91
|
-
*/
|
|
92
|
-
modelsBasePath?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Base interface for ML provider capabilities.
|
|
96
|
-
* Provides common lifecycle and frame processing methods shared by
|
|
97
|
-
* FaceDetectionCapability and IdCaptureCapability.
|
|
98
|
-
*/
|
|
99
|
-
interface IMLProviderCapability<TConfig extends MLProviderConfig> {
|
|
100
|
-
/**
|
|
101
|
-
* Whether the provider has been initialized and is ready to process frames.
|
|
102
|
-
*/
|
|
103
|
-
readonly initialized: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Initializes the provider with the given configuration.
|
|
106
|
-
* If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
|
|
107
|
-
* @param config - Provider configuration including WASM paths
|
|
108
|
-
*/
|
|
109
|
-
initialize(config: TConfig): Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* Processes a frame through the ML pipeline.
|
|
112
|
-
* Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
|
|
113
|
-
* @param image - Image data to process
|
|
114
|
-
* @throws Error if provider is not initialized
|
|
115
|
-
*/
|
|
116
|
-
processFrame(image: ImageData): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Resets the pipeline to its initial state.
|
|
119
|
-
* Safe to call even if not initialized (no-op in that case).
|
|
120
|
-
*/
|
|
121
|
-
reset(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Disposes of resources and resets initialization state.
|
|
124
|
-
* Safe to call even if not initialized.
|
|
125
|
-
*/
|
|
126
|
-
dispose(): Promise<void>;
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
130
|
-
type WasmUtilConfig = MLProviderConfig & {
|
|
131
|
-
pipelines?: WasmPipeline[];
|
|
132
|
-
};
|
|
133
|
-
type VirtualCameraCheckOutput = {
|
|
134
|
-
canvas: HTMLCanvasElement | null;
|
|
135
|
-
itr: boolean | null;
|
|
136
|
-
skipped: boolean | null;
|
|
137
|
-
};
|
|
138
|
-
type IWasmUtilCapability = {
|
|
139
|
-
/**
|
|
140
|
-
* Whether the provider has been initialized and is ready to be used.
|
|
141
|
-
*/
|
|
142
|
-
readonly initialized: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Initializes the provider with the given configuration.
|
|
145
|
-
* If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
|
|
146
|
-
* @param config - Provider configuration including WASM paths
|
|
147
|
-
*/
|
|
148
|
-
initialize(config: WasmUtilConfig): Promise<void>;
|
|
149
|
-
/**
|
|
150
|
-
* Encrypts a base64 image using the WASM utility API.
|
|
151
|
-
* @param image - Base64 image string (no data URL prefix)
|
|
152
|
-
* @returns Encrypted string
|
|
153
|
-
*/
|
|
154
|
-
encryptImage(image: string): string;
|
|
155
|
-
setSdkVersion(version: string): void;
|
|
156
|
-
setSdkPlatform(platform: string): void;
|
|
157
|
-
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
158
|
-
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
159
|
-
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
160
|
-
setMotionStatus(status: string): void;
|
|
161
|
-
setBackgroundMode(backgroundMode: boolean): void;
|
|
162
|
-
setZc(zc: string): void;
|
|
163
|
-
setInspectorOpened(opened: boolean): void;
|
|
164
|
-
getMetadata(): string;
|
|
165
|
-
analyzeFrame(image: ImageData): Promise<void>;
|
|
166
|
-
getCheck(): string;
|
|
167
|
-
/**
|
|
168
|
-
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
169
|
-
* getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
|
|
170
|
-
*/
|
|
171
|
-
getPipelineState(): string;
|
|
172
|
-
estimatePerformance(): string;
|
|
173
|
-
isVirtualCamera(label: string | null): boolean;
|
|
174
|
-
prc(): Promise<void>;
|
|
175
|
-
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
176
|
-
ckvcks(data: ArrayBuffer): void;
|
|
177
|
-
getVersions(): Promise<unknown>;
|
|
178
|
-
/**
|
|
179
|
-
* Disposes of resources and resets initialization state.
|
|
180
|
-
*/
|
|
181
|
-
dispose(): Promise<void>;
|
|
182
|
-
};
|
|
183
|
-
//#endregion
|
|
184
4
|
//#region ../infra/src/media/canvas.d.ts
|
|
185
5
|
/**
|
|
186
6
|
* Class representing a canvas element for image capture and manipulation.
|
|
@@ -292,6 +112,147 @@ declare class IncodeCanvas {
|
|
|
292
112
|
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
293
113
|
}
|
|
294
114
|
//#endregion
|
|
115
|
+
//#region ../infra/src/capabilities/IMLProviderCapability.d.ts
|
|
116
|
+
/**
|
|
117
|
+
* Base configuration shared by all ML provider capabilities.
|
|
118
|
+
*/
|
|
119
|
+
interface MLProviderConfig {
|
|
120
|
+
/** Path to the WASM binary */
|
|
121
|
+
wasmPath?: string;
|
|
122
|
+
/** Path to the SIMD-optimized WASM binary (optional) */
|
|
123
|
+
wasmSimdPath?: string;
|
|
124
|
+
/** Path to the WASM glue code */
|
|
125
|
+
glueCodePath?: string;
|
|
126
|
+
/** Whether to use SIMD optimizations (default: true) */
|
|
127
|
+
useSimd?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
|
|
130
|
+
* If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
|
|
131
|
+
*/
|
|
132
|
+
modelsBasePath?: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Base interface for ML provider capabilities.
|
|
136
|
+
* Provides common lifecycle and frame processing methods shared by
|
|
137
|
+
* FaceDetectionCapability and IdCaptureCapability.
|
|
138
|
+
*/
|
|
139
|
+
interface IMLProviderCapability<TConfig extends MLProviderConfig> {
|
|
140
|
+
/**
|
|
141
|
+
* Whether the provider has been initialized and is ready to process frames.
|
|
142
|
+
*/
|
|
143
|
+
readonly initialized: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Initializes the provider with the given configuration.
|
|
146
|
+
* If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
|
|
147
|
+
* @param config - Provider configuration including WASM paths
|
|
148
|
+
*/
|
|
149
|
+
initialize(config: TConfig): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Processes a frame through the ML pipeline.
|
|
152
|
+
* Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
|
|
153
|
+
* @param image - Image data to process
|
|
154
|
+
* @throws Error if provider is not initialized
|
|
155
|
+
*/
|
|
156
|
+
processFrame(image: ImageData): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Resets the pipeline to its initial state.
|
|
159
|
+
* Safe to call even if not initialized (no-op in that case).
|
|
160
|
+
*/
|
|
161
|
+
reset(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Disposes of resources and resets initialization state.
|
|
164
|
+
* Safe to call even if not initialized.
|
|
165
|
+
*/
|
|
166
|
+
dispose(): Promise<void>;
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region ../infra/src/capabilities/IRecordingCapability.d.ts
|
|
170
|
+
type RecordingPublisher = {
|
|
171
|
+
getStreamId: () => string | undefined;
|
|
172
|
+
replaceVideoTrack: (track: MediaStreamTrack) => Promise<void>;
|
|
173
|
+
destroy: () => void;
|
|
174
|
+
};
|
|
175
|
+
type RecordingConnection = {
|
|
176
|
+
sessionId: string | undefined;
|
|
177
|
+
publisher: RecordingPublisher;
|
|
178
|
+
disconnect: () => Promise<void>;
|
|
179
|
+
};
|
|
180
|
+
type RecordingConnectionEvents = {
|
|
181
|
+
onSessionConnected?: (sessionId: string | undefined) => void;
|
|
182
|
+
onSessionDisconnected?: (sessionId: string | undefined) => void;
|
|
183
|
+
onSessionException?: (params: {
|
|
184
|
+
name?: string;
|
|
185
|
+
message?: string;
|
|
186
|
+
sessionId?: string;
|
|
187
|
+
}) => void;
|
|
188
|
+
onPublisherCreated?: (params: {
|
|
189
|
+
streamId?: string;
|
|
190
|
+
sessionId?: string;
|
|
191
|
+
}) => void;
|
|
192
|
+
onPublisherError?: (params: {
|
|
193
|
+
message?: string;
|
|
194
|
+
sessionId?: string;
|
|
195
|
+
streamId?: string;
|
|
196
|
+
}) => void;
|
|
197
|
+
};
|
|
198
|
+
type ConnectRecordingParams = {
|
|
199
|
+
sessionToken: string;
|
|
200
|
+
stream: MediaStream;
|
|
201
|
+
events?: RecordingConnectionEvents;
|
|
202
|
+
};
|
|
203
|
+
type IRecordingCapability = {
|
|
204
|
+
/**
|
|
205
|
+
* Connects to a recording session and publishes the provided media stream.
|
|
206
|
+
* Returns a connection handle that can be disconnected and used to manage the publisher.
|
|
207
|
+
*/
|
|
208
|
+
connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
|
|
209
|
+
};
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/internal/permissions/types.d.ts
|
|
212
|
+
type PermissionResult = 'granted' | 'denied' | 'prompt';
|
|
213
|
+
type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
216
|
+
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
217
|
+
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
218
|
+
type IMotionSensorCapability = {
|
|
219
|
+
requestPermission(): Promise<MotionPermissionState>;
|
|
220
|
+
start(): Promise<void>;
|
|
221
|
+
stop(): void;
|
|
222
|
+
check(): MotionStatus;
|
|
223
|
+
readonly isRunning: boolean;
|
|
224
|
+
readonly hasPermission: boolean;
|
|
225
|
+
};
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region ../infra/src/capabilities/IStorageCapability.d.ts
|
|
228
|
+
/**
|
|
229
|
+
* Storage capability interface for abstracting storage operations.
|
|
230
|
+
* Enables swapping between browser localStorage and future WASM-based storage.
|
|
231
|
+
*/
|
|
232
|
+
interface IStorageCapability {
|
|
233
|
+
/**
|
|
234
|
+
* Retrieves a value from storage.
|
|
235
|
+
* @param key - The storage key
|
|
236
|
+
* @returns The stored value or null if not found
|
|
237
|
+
*/
|
|
238
|
+
get<T>(key: string): Promise<T | null>;
|
|
239
|
+
/**
|
|
240
|
+
* Stores a value in storage.
|
|
241
|
+
* @param key - The storage key
|
|
242
|
+
* @param value - The value to store (will be serialized)
|
|
243
|
+
*/
|
|
244
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* Removes a value from storage.
|
|
247
|
+
* @param key - The storage key to remove
|
|
248
|
+
*/
|
|
249
|
+
remove(key: string): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Clears all values from storage.
|
|
252
|
+
*/
|
|
253
|
+
clear(): Promise<void>;
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
295
256
|
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
296
257
|
type StreamCanvasCaptureOptions = {
|
|
297
258
|
fps?: number;
|
|
@@ -330,16 +291,59 @@ declare class StreamCanvasCapture {
|
|
|
330
291
|
private tick;
|
|
331
292
|
}
|
|
332
293
|
//#endregion
|
|
333
|
-
//#region ../infra/src/capabilities/
|
|
334
|
-
type
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
294
|
+
//#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
|
|
295
|
+
type WasmUtilConfig = MLProviderConfig & {
|
|
296
|
+
pipelines?: WasmPipeline[];
|
|
297
|
+
};
|
|
298
|
+
type VirtualCameraCheckOutput = {
|
|
299
|
+
canvas: HTMLCanvasElement | null;
|
|
300
|
+
itr: boolean | null;
|
|
301
|
+
skipped: boolean | null;
|
|
302
|
+
};
|
|
303
|
+
type IWasmUtilCapability = {
|
|
304
|
+
/**
|
|
305
|
+
* Whether the provider has been initialized and is ready to be used.
|
|
306
|
+
*/
|
|
307
|
+
readonly initialized: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Initializes the provider with the given configuration.
|
|
310
|
+
* If WASM was already warmed up via `warmupWasm()`, this returns almost instantly.
|
|
311
|
+
* @param config - Provider configuration including WASM paths
|
|
312
|
+
*/
|
|
313
|
+
initialize(config: WasmUtilConfig): Promise<void>;
|
|
314
|
+
/**
|
|
315
|
+
* Encrypts a base64 image using the WASM utility API.
|
|
316
|
+
* @param image - Base64 image string (no data URL prefix)
|
|
317
|
+
* @returns Encrypted string
|
|
318
|
+
*/
|
|
319
|
+
encryptImage(image: string): string;
|
|
320
|
+
setSdkVersion(version: string): void;
|
|
321
|
+
setSdkPlatform(platform: string): void;
|
|
322
|
+
setDeviceInfo(deviceInfo: object, overrideExisting?: boolean): void;
|
|
323
|
+
setBrowserInfo(browserInfo: object, overrideExisting?: boolean): void;
|
|
324
|
+
setCameraInfo(cameraInfo: object, overrideExisting?: boolean): void;
|
|
325
|
+
setMotionStatus(status: string): void;
|
|
326
|
+
setBackgroundMode(backgroundMode: boolean): void;
|
|
327
|
+
setZc(zc: string): void;
|
|
328
|
+
setInspectorOpened(opened: boolean): void;
|
|
329
|
+
getMetadata(): string;
|
|
330
|
+
analyzeFrame(image: ImageData): Promise<void>;
|
|
331
|
+
getCheck(): string;
|
|
332
|
+
/**
|
|
333
|
+
* Gets the current pipeline state. Must be called before setMotionStatus(),
|
|
334
|
+
* getCheck(), setBackgroundMode(), and getMetadata() for proper metadata generation.
|
|
335
|
+
*/
|
|
336
|
+
getPipelineState(): string;
|
|
337
|
+
estimatePerformance(): string;
|
|
338
|
+
isVirtualCamera(label: string | null): boolean;
|
|
339
|
+
prc(): Promise<void>;
|
|
340
|
+
poc(output: VirtualCameraCheckOutput): Promise<void>;
|
|
341
|
+
ckvcks(data: ArrayBuffer): void;
|
|
342
|
+
getVersions(): Promise<unknown>;
|
|
343
|
+
/**
|
|
344
|
+
* Disposes of resources and resets initialization state.
|
|
345
|
+
*/
|
|
346
|
+
dispose(): Promise<void>;
|
|
343
347
|
};
|
|
344
348
|
//#endregion
|
|
345
349
|
//#region src/internal/deepsight/metadataService.d.ts
|
|
@@ -404,4 +408,4 @@ type DeepsightPrcCheckParams = {
|
|
|
404
408
|
constraints: MediaStreamConstraints;
|
|
405
409
|
};
|
|
406
410
|
//#endregion
|
|
407
|
-
export {
|
|
411
|
+
export { StreamCanvasCapture as a, PermissionResult as c, RecordingConnection as d, IMLProviderCapability as f, WasmUtilConfig as i, PermissionStatus as l, IncodeCanvas as m, IWasmUtilCapability as n, IStorageCapability as o, MLProviderConfig as p, VirtualCameraCheckOutput as r, IMotionSensorCapability as s, DeepsightService as t, IRecordingCapability as u };
|