@incodetech/core 0.0.0-dev-20260402-682edb5 → 0.0.0-dev-20260402-7cf9db4
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/Actor-phIcsUhv.d.ts +2 -0
- package/dist/BaseWasmProvider-BFXU7jj8.esm.js +1536 -0
- package/dist/BrowserEnvironmentProvider-DApG6lNu.esm.js +89 -0
- package/dist/BrowserTimerProvider-CRhCvln7.esm.js +22 -0
- package/dist/Manager-BndLda4_.d.ts +19 -0
- package/dist/{events-Cc1xUUgF.esm.js → Manager-D_DMzMWz.esm.js} +114 -11
- package/dist/{warmup-CzfSiaMj.d.ts → StateMachine-CGAi8x_b.d.ts} +4 -1
- package/dist/StreamCanvasCapture-9VAzOfOv.esm.js +410 -0
- package/dist/WasmUtilProvider-DctESPCy.esm.js +114 -0
- package/dist/{addressSearch-DzOdaNEA.esm.js → addressSearch-CYGzuJJ3.esm.js} +3 -3
- package/dist/authentication.d.ts +9 -7
- package/dist/authentication.esm.js +12 -10
- package/dist/{authenticationManager-TaI12wf3.d.ts → authenticationManager-B5Yv9bDw.d.ts} +2 -2
- package/dist/{authenticationManager-CBSPCdJc.esm.js → authenticationManager-C9iQ1d2a.esm.js} +5 -5
- package/dist/{backCameraStream-BGAbuvw1.esm.js → backCameraStream-BJwEXNl4.esm.js} +2 -1
- package/dist/camera-D-MPXRbZ.esm.js +22 -0
- package/dist/camera-Dv2WEhGe.d.ts +4 -0
- package/dist/consent.d.ts +55 -54
- package/dist/consent.esm.js +2 -3
- package/dist/curp-validation.d.ts +5 -3
- package/dist/curp-validation.esm.js +2 -3
- package/dist/deepsightLoader-D2MKmB5z.esm.js +48 -0
- package/dist/{deepsightService-DxA--87N.d.ts → deepsightService-CWnhwXLw.d.ts} +223 -17
- package/dist/document-capture.d.ts +58 -56
- package/dist/document-capture.esm.js +5 -4
- package/dist/document-upload.d.ts +47 -45
- package/dist/document-upload.esm.js +5 -4
- package/dist/ekyb.d.ts +3 -2
- package/dist/ekyb.esm.js +8 -7
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +133 -123
- package/dist/email.d.ts +3 -2
- package/dist/email.esm.js +4 -4
- package/dist/{emailManager-DN_q_zxy.d.ts → emailManager-BIq6pJa8.d.ts} +11 -4
- package/dist/{emailManager-DSR9gQLX.esm.js → emailManager-C5GCSw78.esm.js} +43 -23
- package/dist/extensibility.d.ts +45 -43
- package/dist/extensibility.esm.js +26 -15
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -3
- package/dist/{faceCaptureManagerFactory-CGpkO_S3.d.ts → faceCaptureManagerFactory-CN5-GRxP.d.ts} +89 -142
- package/dist/{faceCaptureSetup-Rr7LUbBm.esm.js → faceCaptureSetup-DYRykM5Y.esm.js} +413 -7
- package/dist/flow.d.ts +6 -5
- package/dist/flow.esm.js +7 -7
- package/dist/{flowCompletionService-Bkaerugt.esm.js → flowCompletionService-CBvXiMKa.esm.js} +1 -1
- package/dist/{flowServices-Bt6lMLUI.esm.js → flowServices-CQ3rTJLE.esm.js} +2 -2
- package/dist/geolocation.d.ts +2 -1
- package/dist/geolocation.esm.js +16 -3
- package/dist/government-validation.d.ts +2 -1
- package/dist/government-validation.esm.js +3 -3
- package/dist/id.d.ts +9 -6
- package/dist/id.esm.js +14 -11
- package/dist/{idCaptureManager-Dc2NJMy_.d.ts → idCaptureManager-B1RWflj0.d.ts} +15 -12
- package/dist/{idCaptureManager-QyM4nIKM.esm.js → idCaptureManager-D5rjCu9r.esm.js} +178 -8
- package/dist/index.d.ts +68 -21
- package/dist/index.esm.js +440 -11
- package/dist/mandatory-consent.d.ts +58 -56
- package/dist/mandatory-consent.esm.js +2 -3
- package/dist/phone.d.ts +3 -2
- package/dist/phone.esm.js +4 -4
- package/dist/{phoneManager-D2A0hXXq.d.ts → phoneManager-Ba66ysK2.d.ts} +9 -2
- package/dist/{phoneManager-D2nZtu-b.esm.js → phoneManager-CQJim-Ky.esm.js} +32 -21
- package/dist/platform-B3nGssGZ.esm.js +83 -0
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/redirect-to-mobile.esm.js +3 -3
- package/dist/selfie.d.ts +9 -7
- package/dist/selfie.esm.js +12 -10
- package/dist/{selfieManager-B4Nnp7ws.d.ts → selfieManager-BnfnTPcx.d.ts} +2 -2
- package/dist/{selfieManager-CvE35L72.esm.js → selfieManager-DYW1C2GP.esm.js} +4 -3
- package/dist/session-TBPhHmyy.esm.js +3130 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +2 -2
- package/dist/signature.d.ts +3 -3
- package/dist/signature.esm.js +3 -4
- package/dist/{stats-D0m3TvIg.esm.js → stats-D4C7iDy1.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-oveF7RrS.d.ts → types-BWGxcjiZ.d.ts} +1 -1
- package/dist/{types-mQLzH6uw.d.ts → types-BX1ZlbSR.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/deepsightLoader-B93Oa9pS.esm.js +0 -24
- package/dist/deepsightService-CLUMQ5ee.esm.js +0 -235
- package/dist/index-BTaLQSj9.d.ts +0 -219
- package/dist/recordingsRepository-Djt_In2b.esm.js +0 -122
- package/dist/session-CUy9-Yzi.esm.js +0 -250
- package/dist/src-8rn6DoH7.esm.js +0 -6554
- /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
- /package/dist/{browserSimulation-C8gNnn5p.esm.js → browserSimulation-zWJAZ1vA.esm.js} +0 -0
- /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-DzzB3fcR.d.ts} +0 -0
- /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-C_CShl_d.d.ts} +0 -0
- /package/dist/{id-B30uqGbp.esm.js → id-Dv0it9CY.esm.js} +0 -0
- /package/dist/{index-LKrIp3Oo.d.ts → index-CuY8tqBC.d.ts} +0 -0
- /package/dist/{lib-qeMam2F_.esm.js → lib-B5byelWf.esm.js} +0 -0
|
@@ -1,3 +1,117 @@
|
|
|
1
|
+
import { a as WasmPipeline } from "./StateMachine-CGAi8x_b.js";
|
|
2
|
+
import { t as CameraStream } from "./camera-Dv2WEhGe.js";
|
|
3
|
+
|
|
4
|
+
//#region ../infra/src/media/canvas.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Class representing a canvas element for image capture and manipulation.
|
|
7
|
+
*/
|
|
8
|
+
declare class IncodeCanvas {
|
|
9
|
+
canvas: HTMLCanvasElement;
|
|
10
|
+
private base64Image;
|
|
11
|
+
private blobData;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
|
|
14
|
+
* @param imageData - Frame pixels in RGBA format
|
|
15
|
+
* @returns An {@link IncodeCanvas} containing the provided pixels
|
|
16
|
+
*/
|
|
17
|
+
static fromImageData(imageData: ImageData): IncodeCanvas;
|
|
18
|
+
/**
|
|
19
|
+
* Create a new canvas element.
|
|
20
|
+
* @param canvas_ - The canvas element to clone.
|
|
21
|
+
*/
|
|
22
|
+
constructor(canvas_: HTMLCanvasElement);
|
|
23
|
+
/**
|
|
24
|
+
* Check if the current canvas is valid.
|
|
25
|
+
*/
|
|
26
|
+
private checkCanvas;
|
|
27
|
+
/**
|
|
28
|
+
* Disposes of resources, including revoking object URLs to prevent memory leaks.
|
|
29
|
+
*/
|
|
30
|
+
dispose(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Release the data stored by IncodeCanvas.
|
|
33
|
+
*/
|
|
34
|
+
release(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Revokes the object URL if one exists, preventing memory leaks.
|
|
37
|
+
* Use this when you no longer need the preview image URL.
|
|
38
|
+
*/
|
|
39
|
+
revokeObjectURL(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Get the width of the canvas.
|
|
42
|
+
*/
|
|
43
|
+
width(): number | null;
|
|
44
|
+
/**
|
|
45
|
+
* Get the height of the canvas.
|
|
46
|
+
*/
|
|
47
|
+
height(): number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Set the width of the canvas.
|
|
50
|
+
*/
|
|
51
|
+
setWidth(width: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* Set the height of the canvas.
|
|
54
|
+
*/
|
|
55
|
+
setHeight(height: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* Clone the current canvas.
|
|
58
|
+
*/
|
|
59
|
+
clone(): IncodeCanvas | null;
|
|
60
|
+
/**
|
|
61
|
+
* Deep clone the current IncodeCanvas including blob data.
|
|
62
|
+
*/
|
|
63
|
+
deepClone(): Promise<IncodeCanvas | null>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns the drawing context on the canvas.
|
|
66
|
+
*/
|
|
67
|
+
getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves the image data from the canvas.
|
|
70
|
+
*/
|
|
71
|
+
getImageData(): ImageData | null;
|
|
72
|
+
/**
|
|
73
|
+
* Updates the base64 representation of the current canvas image.
|
|
74
|
+
*/
|
|
75
|
+
updateBase64Image(jpegQuality?: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* Converts the current canvas element to a base64 string.
|
|
78
|
+
*/
|
|
79
|
+
getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the base64 representation of the current canvas image.
|
|
82
|
+
*/
|
|
83
|
+
setBase64Image(base64Image: string | null): void;
|
|
84
|
+
/**
|
|
85
|
+
* Updates the Blob representation of the current canvas image.
|
|
86
|
+
*/
|
|
87
|
+
updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
* Converts a base64 string to a Blob and creates a URL for it.
|
|
90
|
+
*/
|
|
91
|
+
static base64ToBlob(base64: string): {
|
|
92
|
+
blob: Blob;
|
|
93
|
+
url: string;
|
|
94
|
+
} | null;
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves the Blob data and its URL from the current canvas.
|
|
97
|
+
*/
|
|
98
|
+
getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
|
|
99
|
+
blob: Blob;
|
|
100
|
+
url: string;
|
|
101
|
+
} | null;
|
|
102
|
+
/**
|
|
103
|
+
* Sets the Blob data of the current canvas image.
|
|
104
|
+
*/
|
|
105
|
+
setBlobData(blobData: {
|
|
106
|
+
blob: Blob;
|
|
107
|
+
url: string;
|
|
108
|
+
}): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns a resized canvas according to video element size.
|
|
111
|
+
*/
|
|
112
|
+
getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
1
115
|
//#region ../infra/src/capabilities/IMLProviderCapability.d.ts
|
|
2
116
|
/**
|
|
3
117
|
* Base configuration shared by all ML provider capabilities.
|
|
@@ -52,19 +166,6 @@ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
|
|
|
52
166
|
dispose(): Promise<void>;
|
|
53
167
|
}
|
|
54
168
|
//#endregion
|
|
55
|
-
//#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
|
|
56
|
-
|
|
57
|
-
type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
|
|
58
|
-
type MotionPermissionState = 'granted' | 'denied' | 'not-required';
|
|
59
|
-
type IMotionSensorCapability = {
|
|
60
|
-
requestPermission(): Promise<MotionPermissionState>;
|
|
61
|
-
start(): Promise<void>;
|
|
62
|
-
stop(): void;
|
|
63
|
-
check(): MotionStatus;
|
|
64
|
-
readonly isRunning: boolean;
|
|
65
|
-
readonly hasPermission: boolean;
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
68
169
|
//#region ../infra/src/capabilities/IRecordingCapability.d.ts
|
|
69
170
|
type RecordingPublisher = {
|
|
70
171
|
getStreamId: () => string | undefined;
|
|
@@ -107,6 +208,22 @@ type IRecordingCapability = {
|
|
|
107
208
|
connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
|
|
108
209
|
};
|
|
109
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
|
|
110
227
|
//#region ../infra/src/capabilities/IStorageCapability.d.ts
|
|
111
228
|
/**
|
|
112
229
|
* Storage capability interface for abstracting storage operations.
|
|
@@ -136,9 +253,98 @@ interface IStorageCapability {
|
|
|
136
253
|
clear(): Promise<void>;
|
|
137
254
|
}
|
|
138
255
|
//#endregion
|
|
139
|
-
//#region src/
|
|
140
|
-
type
|
|
141
|
-
|
|
256
|
+
//#region ../infra/src/media/StreamCanvasCapture.d.ts
|
|
257
|
+
type StreamCanvasCaptureOptions = {
|
|
258
|
+
fps?: number;
|
|
259
|
+
width?: number;
|
|
260
|
+
height?: number;
|
|
261
|
+
};
|
|
262
|
+
type StreamCanvasCaptureEventMap = {
|
|
263
|
+
frame: Event;
|
|
264
|
+
};
|
|
265
|
+
declare class StreamCanvasCapture {
|
|
266
|
+
private video;
|
|
267
|
+
private canvas;
|
|
268
|
+
private ctx;
|
|
269
|
+
private rafId;
|
|
270
|
+
private lastFrameTimeSeconds;
|
|
271
|
+
private lastTickTimeMs;
|
|
272
|
+
private hasFrame;
|
|
273
|
+
private disposed;
|
|
274
|
+
private eventTarget;
|
|
275
|
+
constructor(stream: CameraStream, options?: StreamCanvasCaptureOptions);
|
|
276
|
+
addEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
277
|
+
removeEventListener(type: keyof StreamCanvasCaptureEventMap, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
|
|
278
|
+
/**
|
|
279
|
+
* Returns the latest cached frame as an {@link IncodeCanvas}.
|
|
280
|
+
*/
|
|
281
|
+
getLatestCanvas(): IncodeCanvas | null;
|
|
282
|
+
/**
|
|
283
|
+
* Returns the latest cached frame as raw {@link ImageData}.
|
|
284
|
+
*/
|
|
285
|
+
getLatestFrame(): ImageData | null;
|
|
286
|
+
/**
|
|
287
|
+
* Disposes internal resources and stops the capture loop.
|
|
288
|
+
*/
|
|
289
|
+
dispose(): void;
|
|
290
|
+
private rafLoop;
|
|
291
|
+
private tick;
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
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>;
|
|
347
|
+
};
|
|
142
348
|
//#endregion
|
|
143
349
|
//#region src/internal/deepsight/metadataService.d.ts
|
|
144
350
|
type MetadataService = {
|
|
@@ -202,4 +408,4 @@ type DeepsightPrcCheckParams = {
|
|
|
202
408
|
constraints: MediaStreamConstraints;
|
|
203
409
|
};
|
|
204
410
|
//#endregion
|
|
205
|
-
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 };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./Actor-phIcsUhv.js";
|
|
2
|
+
import { t as CameraStream } from "./camera-Dv2WEhGe.js";
|
|
3
|
+
import { t as Manager } from "./Manager-BndLda4_.js";
|
|
4
|
+
import * as xstate67 from "xstate";
|
|
3
5
|
|
|
4
6
|
//#region src/modules/document-capture/types.d.ts
|
|
5
7
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -71,7 +73,7 @@ type DocumentCaptureInput = {
|
|
|
71
73
|
};
|
|
72
74
|
//#endregion
|
|
73
75
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
74
|
-
declare const documentCaptureMachine:
|
|
76
|
+
declare const documentCaptureMachine: xstate67.StateMachine<DocumentCaptureContext, {
|
|
75
77
|
type: "CAPTURE";
|
|
76
78
|
} | {
|
|
77
79
|
type: "FILE_SELECTED";
|
|
@@ -94,84 +96,84 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
94
96
|
} | {
|
|
95
97
|
type: "CLOSE";
|
|
96
98
|
}, {
|
|
97
|
-
[x: string]:
|
|
99
|
+
[x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
98
100
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
99
101
|
processingType: string;
|
|
100
102
|
onProgress: (progress: number) => void;
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
+
}, xstate67.EventObject>> | undefined;
|
|
104
|
+
}, xstate67.Values<{
|
|
103
105
|
initCamera: {
|
|
104
106
|
src: "initCamera";
|
|
105
|
-
logic:
|
|
107
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
106
108
|
id: string | undefined;
|
|
107
109
|
};
|
|
108
110
|
uploadDocument: {
|
|
109
111
|
src: "uploadDocument";
|
|
110
|
-
logic:
|
|
112
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
111
113
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
112
114
|
processingType: string;
|
|
113
115
|
onProgress: (progress: number) => void;
|
|
114
|
-
},
|
|
116
|
+
}, xstate67.EventObject>;
|
|
115
117
|
id: string | undefined;
|
|
116
118
|
};
|
|
117
|
-
}>,
|
|
119
|
+
}>, xstate67.Values<{
|
|
118
120
|
clearError: {
|
|
119
121
|
type: "clearError";
|
|
120
|
-
params:
|
|
122
|
+
params: xstate67.NonReducibleUnknown;
|
|
121
123
|
};
|
|
122
124
|
setStream: {
|
|
123
125
|
type: "setStream";
|
|
124
|
-
params:
|
|
125
|
-
};
|
|
126
|
-
setProgress: {
|
|
127
|
-
type: "setProgress";
|
|
128
|
-
params: xstate199.NonReducibleUnknown;
|
|
129
|
-
};
|
|
130
|
-
stopStream: {
|
|
131
|
-
type: "stopStream";
|
|
132
|
-
params: xstate199.NonReducibleUnknown;
|
|
126
|
+
params: xstate67.NonReducibleUnknown;
|
|
133
127
|
};
|
|
134
128
|
setCapturedDocument: {
|
|
135
129
|
type: "setCapturedDocument";
|
|
136
|
-
params:
|
|
130
|
+
params: xstate67.NonReducibleUnknown;
|
|
137
131
|
};
|
|
138
132
|
setFileTooLargeError: {
|
|
139
133
|
type: "setFileTooLargeError";
|
|
140
|
-
params:
|
|
134
|
+
params: xstate67.NonReducibleUnknown;
|
|
135
|
+
};
|
|
136
|
+
setProgress: {
|
|
137
|
+
type: "setProgress";
|
|
138
|
+
params: xstate67.NonReducibleUnknown;
|
|
141
139
|
};
|
|
142
140
|
setUploadError: {
|
|
143
141
|
type: "setUploadError";
|
|
144
|
-
params:
|
|
142
|
+
params: xstate67.NonReducibleUnknown;
|
|
145
143
|
};
|
|
146
144
|
decrementAttemptsRemaining: {
|
|
147
145
|
type: "decrementAttemptsRemaining";
|
|
148
|
-
params:
|
|
146
|
+
params: xstate67.NonReducibleUnknown;
|
|
149
147
|
};
|
|
150
148
|
setCaptureMethodFile: {
|
|
151
149
|
type: "setCaptureMethodFile";
|
|
152
|
-
params:
|
|
150
|
+
params: xstate67.NonReducibleUnknown;
|
|
153
151
|
};
|
|
154
152
|
setCaptureMethodCamera: {
|
|
155
153
|
type: "setCaptureMethodCamera";
|
|
156
|
-
params:
|
|
154
|
+
params: xstate67.NonReducibleUnknown;
|
|
157
155
|
};
|
|
158
156
|
clearCapturedDocument: {
|
|
159
157
|
type: "clearCapturedDocument";
|
|
160
|
-
params:
|
|
158
|
+
params: xstate67.NonReducibleUnknown;
|
|
161
159
|
};
|
|
162
160
|
setPendingNextPage: {
|
|
163
161
|
type: "setPendingNextPage";
|
|
164
|
-
params:
|
|
162
|
+
params: xstate67.NonReducibleUnknown;
|
|
165
163
|
};
|
|
166
164
|
clearForNextPage: {
|
|
167
165
|
type: "clearForNextPage";
|
|
168
|
-
params:
|
|
166
|
+
params: xstate67.NonReducibleUnknown;
|
|
169
167
|
};
|
|
170
168
|
resetProgress: {
|
|
171
169
|
type: "resetProgress";
|
|
172
|
-
params:
|
|
170
|
+
params: xstate67.NonReducibleUnknown;
|
|
171
|
+
};
|
|
172
|
+
stopStream: {
|
|
173
|
+
type: "stopStream";
|
|
174
|
+
params: xstate67.NonReducibleUnknown;
|
|
173
175
|
};
|
|
174
|
-
}>,
|
|
176
|
+
}>, xstate67.Values<{
|
|
175
177
|
allowSkip: {
|
|
176
178
|
type: "allowSkip";
|
|
177
179
|
params: unknown;
|
|
@@ -208,7 +210,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
208
210
|
type: "isPendingNextPage";
|
|
209
211
|
params: unknown;
|
|
210
212
|
};
|
|
211
|
-
}>, never, "
|
|
213
|
+
}>, never, "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "closed" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
|
|
212
214
|
readonly id: "documentCapture";
|
|
213
215
|
readonly initial: "tutorial";
|
|
214
216
|
readonly context: ({
|
|
@@ -217,67 +219,67 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
217
219
|
spawn: {
|
|
218
220
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
219
221
|
src: "initCamera";
|
|
220
|
-
logic:
|
|
222
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
221
223
|
id: string | undefined;
|
|
222
224
|
} extends infer T ? T extends {
|
|
223
225
|
src: "initCamera";
|
|
224
|
-
logic:
|
|
226
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
225
227
|
id: string | undefined;
|
|
226
228
|
} ? T extends {
|
|
227
229
|
src: TSrc;
|
|
228
|
-
} ?
|
|
230
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
229
231
|
id?: T["id"] | undefined;
|
|
230
232
|
systemId?: string;
|
|
231
|
-
input?:
|
|
233
|
+
input?: xstate67.InputFrom<T["logic"]> | undefined;
|
|
232
234
|
syncSnapshot?: boolean;
|
|
233
|
-
} & { [K in
|
|
235
|
+
} & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
234
236
|
src: "uploadDocument";
|
|
235
|
-
logic:
|
|
237
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
236
238
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
237
239
|
processingType: string;
|
|
238
240
|
onProgress: (progress: number) => void;
|
|
239
|
-
},
|
|
241
|
+
}, xstate67.EventObject>;
|
|
240
242
|
id: string | undefined;
|
|
241
243
|
} extends infer T_1 ? T_1 extends {
|
|
242
244
|
src: "uploadDocument";
|
|
243
|
-
logic:
|
|
245
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
244
246
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
245
247
|
processingType: string;
|
|
246
248
|
onProgress: (progress: number) => void;
|
|
247
|
-
},
|
|
249
|
+
}, xstate67.EventObject>;
|
|
248
250
|
id: string | undefined;
|
|
249
251
|
} ? T_1 extends {
|
|
250
252
|
src: TSrc;
|
|
251
|
-
} ?
|
|
253
|
+
} ? xstate67.ConditionalRequired<[options?: ({
|
|
252
254
|
id?: T_1["id"] | undefined;
|
|
253
255
|
systemId?: string;
|
|
254
|
-
input?:
|
|
256
|
+
input?: xstate67.InputFrom<T_1["logic"]> | undefined;
|
|
255
257
|
syncSnapshot?: boolean;
|
|
256
|
-
} & { [K_1 in
|
|
258
|
+
} & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
|
|
257
259
|
initCamera: {
|
|
258
260
|
src: "initCamera";
|
|
259
|
-
logic:
|
|
261
|
+
logic: xstate67.PromiseActorLogic<MediaStream, void, xstate67.EventObject>;
|
|
260
262
|
id: string | undefined;
|
|
261
263
|
};
|
|
262
264
|
uploadDocument: {
|
|
263
265
|
src: "uploadDocument";
|
|
264
|
-
logic:
|
|
266
|
+
logic: xstate67.PromiseActorLogic<DocumentUploadResponse, {
|
|
265
267
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
266
268
|
processingType: string;
|
|
267
269
|
onProgress: (progress: number) => void;
|
|
268
|
-
},
|
|
270
|
+
}, xstate67.EventObject>;
|
|
269
271
|
id: string | undefined;
|
|
270
272
|
};
|
|
271
273
|
}>, "src", TSrc>["logic"]>;
|
|
272
|
-
<TLogic extends
|
|
274
|
+
<TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
|
|
273
275
|
id?: never;
|
|
274
276
|
systemId?: string;
|
|
275
|
-
input?:
|
|
277
|
+
input?: xstate67.InputFrom<TLogic> | undefined;
|
|
276
278
|
syncSnapshot?: boolean;
|
|
277
|
-
} & { [K in
|
|
279
|
+
} & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
|
|
278
280
|
};
|
|
279
281
|
input: DocumentCaptureInput;
|
|
280
|
-
self:
|
|
282
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentCaptureContext, {
|
|
281
283
|
type: "CAPTURE";
|
|
282
284
|
} | {
|
|
283
285
|
type: "FILE_SELECTED";
|
|
@@ -299,7 +301,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
299
301
|
type: "SKIP";
|
|
300
302
|
} | {
|
|
301
303
|
type: "CLOSE";
|
|
302
|
-
}, Record<string,
|
|
304
|
+
}, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
|
|
303
305
|
type: "CAPTURE";
|
|
304
306
|
} | {
|
|
305
307
|
type: "FILE_SELECTED";
|
|
@@ -321,7 +323,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
321
323
|
type: "SKIP";
|
|
322
324
|
} | {
|
|
323
325
|
type: "CLOSE";
|
|
324
|
-
},
|
|
326
|
+
}, xstate67.AnyEventObject>;
|
|
325
327
|
}) => {
|
|
326
328
|
config: {
|
|
327
329
|
processingType: DocumentType;
|
|
@@ -458,7 +460,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
458
460
|
} | {
|
|
459
461
|
type: "CLOSE";
|
|
460
462
|
};
|
|
461
|
-
self:
|
|
463
|
+
self: xstate67.ActorRef<xstate67.MachineSnapshot<DocumentCaptureContext, {
|
|
462
464
|
type: "CAPTURE";
|
|
463
465
|
} | {
|
|
464
466
|
type: "FILE_SELECTED";
|
|
@@ -480,7 +482,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
480
482
|
type: "SKIP";
|
|
481
483
|
} | {
|
|
482
484
|
type: "CLOSE";
|
|
483
|
-
}, Record<string,
|
|
485
|
+
}, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
|
|
484
486
|
type: "CAPTURE";
|
|
485
487
|
} | {
|
|
486
488
|
type: "FILE_SELECTED";
|
|
@@ -502,7 +504,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
502
504
|
type: "SKIP";
|
|
503
505
|
} | {
|
|
504
506
|
type: "CLOSE";
|
|
505
|
-
},
|
|
507
|
+
}, xstate67.AnyEventObject>;
|
|
506
508
|
}) => {
|
|
507
509
|
capturedDocument: CapturedDocument;
|
|
508
510
|
processingType: DocumentType;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
1
|
+
import "./platform-B3nGssGZ.esm.js";
|
|
2
|
+
import { t as api } from "./api-3fZO5bmj.esm.js";
|
|
3
|
+
import { C as fromPromise, b as setup, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, w as createActor, x as assign } from "./Manager-D_DMzMWz.esm.js";
|
|
5
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
+
import { i as stopCameraStream } from "./camera-D-MPXRbZ.esm.js";
|
|
6
|
+
import { t as getBackCameraStream } from "./backCameraStream-BJwEXNl4.esm.js";
|
|
6
7
|
|
|
7
8
|
//#region src/modules/document-capture/types.ts
|
|
8
9
|
const PROCESSING_TYPE_MAP = {
|