@incodetech/core 0.0.0-dev-20260729-9e7b030a → 0.0.0-dev-20260729-a31df3b7

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 (87) hide show
  1. package/dist/{FaceDetectionProvider-BHweGBEM.d.ts → FaceDetectionProvider-Mh6q3EbA.d.ts} +1 -2
  2. package/dist/IIdCaptureCapability-Cj_aceph.d.ts +231 -0
  3. package/dist/{IStorageCapability-B8IGxCwe.d.ts → IStorageCapability-ORkQfK3F.d.ts} +112 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-CzR7Y6Ua.esm.js → apiError-CS9ZMDr2.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-CmkHvt7_.esm.js → authenticationManager-Cd4tefr2.esm.js} +2 -2
  9. package/dist/{authenticationManager-BGM8bpD0.d.ts → authenticationManager-Y2_MuGXy.d.ts} +1 -1
  10. package/dist/{authenticationStateMachine-O3acuOqq.esm.js → authenticationStateMachine-BnH1mizY.esm.js} +2 -2
  11. package/dist/consent.d.ts +1 -1
  12. package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-5HWbGwOa.d.ts} +9 -9
  13. package/dist/{deepsightLoader-CaUpu0Dy.esm.js → deepsightLoader-CN4B5ugn.esm.js} +3 -3
  14. package/dist/{deepsightService-CR-CYdka.d.ts → deepsightService-DLVQS_RH.d.ts} +2 -112
  15. package/dist/document-capture.d.ts +1 -1
  16. package/dist/document-upload.d.ts +4 -4
  17. package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-DeSYkGWc.d.ts} +70 -70
  18. package/dist/dynamic-forms.esm.js +2 -2
  19. package/dist/{dynamicFormsManager-BxUgij0L.esm.js → dynamicFormsManager-B80PGYEF.esm.js} +1 -1
  20. package/dist/{dynamicFormsStateMachine-D0cEsDMH.esm.js → dynamicFormsStateMachine-B7R09HRI.esm.js} +1 -1
  21. package/dist/ekyb.esm.js +3 -3
  22. package/dist/{ekybManager-LicVPYug.esm.js → ekybManager-Cg_boKM5.esm.js} +1 -1
  23. package/dist/{ekybStateMachine-IgLa1nXx.esm.js → ekybStateMachine-CAXjJ2gA.esm.js} +1 -1
  24. package/dist/electronic-signature.esm.js +1 -1
  25. package/dist/{electronicSignatureManager-DqPJCXMG.esm.js → electronicSignatureManager-JuycNykG.esm.js} +1 -1
  26. package/dist/extensibility.d.ts +14 -14
  27. package/dist/extensibility.esm.js +8 -8
  28. package/dist/{faceCaptureManagerFactory-2W_XduCs.esm.js → faceCaptureManagerFactory-Cd1uQnGS.esm.js} +1 -1
  29. package/dist/{faceCaptureManagerFactory-B92LFT16.d.ts → faceCaptureManagerFactory-K8iLKaRl.d.ts} +5 -4
  30. package/dist/{faceCaptureSetup-D-9s0vUS.esm.js → faceCaptureSetup-CS7exiIh.esm.js} +3 -2
  31. package/dist/flow.d.ts +5 -5
  32. package/dist/flow.esm.js +3 -3
  33. package/dist/{flowCompletionService-D_DJ1dNA.esm.js → flowCompletionService-C77_-GvG.esm.js} +1 -1
  34. package/dist/{flowServices-ZgW3UGcz.esm.js → flowServices-BuSZYjB9.esm.js} +3 -3
  35. package/dist/geolocation.esm.js +2 -2
  36. package/dist/{geolocationManager-oLdeMbdy.esm.js → geolocationManager-D2ptN5BO.esm.js} +1 -1
  37. package/dist/{geolocationStateMachine-CSDKlrHE.esm.js → geolocationStateMachine-fOQUnMxw.esm.js} +1 -1
  38. package/dist/id-ocr.d.ts +1 -1
  39. package/dist/id-selfie-flow.d.ts +179 -0
  40. package/dist/id-selfie-flow.esm.js +917 -0
  41. package/dist/id.d.ts +3 -2
  42. package/dist/id.esm.js +3 -2
  43. package/dist/{idCaptureManager-DAsfVDWq.esm.js → idCaptureManager-BokR8KKO.esm.js} +2 -1
  44. package/dist/{idCaptureManager-B2w2CGuV.d.ts → idCaptureManager-wKz4MXR8.d.ts} +10 -2
  45. package/dist/idCaptureServices-C3nAZ64o.esm.js +353 -0
  46. package/dist/{idCaptureStateMachine-BMZCf9M7.esm.js → idCaptureStateMachine-CM8EP_MM.esm.js} +38 -374
  47. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-dLuxey6y.d.ts} +1 -1
  48. package/dist/identity-reuse.d.ts +1 -1
  49. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
  50. package/dist/index.esm.js +1 -1
  51. package/dist/mandatory-consent.d.ts +2 -2
  52. package/dist/{mandatoryConsentManager-DOZSFZA2.d.ts → mandatoryConsentManager-DXlHM88Z.d.ts} +6 -6
  53. package/dist/manualReviewService-BnFXpAg9.esm.js +15 -0
  54. package/dist/{onDeviceFaceResults-D8FzOXsM.esm.js → onDeviceFaceResults-DFEU5wcC.esm.js} +3 -3
  55. package/dist/personhood.d.ts +4 -4
  56. package/dist/personhood.esm.js +3 -3
  57. package/dist/qe-signature.esm.js +1 -1
  58. package/dist/{recordingService-D6Hbc408.esm.js → recordingService-BwaHFQSV.esm.js} +2 -16
  59. package/dist/redirect-to-mobile.d.ts +2 -2
  60. package/dist/{redirectToMobileManager-BiVH2Ymm.d.ts → redirectToMobileManager-BD2PvT5B.d.ts} +1 -1
  61. package/dist/{runChildModule-CVKUUVl2.esm.js → runChildModule-1jsZfyb9.esm.js} +1 -1
  62. package/dist/selfie.d.ts +4 -4
  63. package/dist/selfie.esm.js +4 -4
  64. package/dist/{selfieManager-Cnw55Hp_.esm.js → selfieManager-hwv10r0j.esm.js} +2 -2
  65. package/dist/{selfieManager-CxeMb2tM.d.ts → selfieManager-tMxWiUk6.d.ts} +1 -1
  66. package/dist/{selfieStateMachine-D-wolitw.esm.js → selfieStateMachine-Cwb5y4OR.esm.js} +2 -2
  67. package/dist/{session-XugVyrIq.esm.js → session-DWfXLkyx.esm.js} +4 -4
  68. package/dist/session.esm.js +4 -4
  69. package/dist/{sessionInitializer-B3g2uAsl.esm.js → sessionInitializer-B58TmxdW.esm.js} +2 -2
  70. package/dist/{setup-BVuwm-QH.esm.js → setup-sxUVsl_J.esm.js} +4 -4
  71. package/dist/trueSight-D7YiTge6.esm.js +1 -0
  72. package/dist/{trueSightService-DGkNMx-E.esm.js → trueSightService-BIbE2pK1.esm.js} +1 -1
  73. package/dist/{types-4-pU2Nhm.d.ts → types-BsTkSXlg2.d.ts} +13 -232
  74. package/dist/{types-CrUhpMDP.d.ts → types-EELWyWpd.d.ts} +1 -1
  75. package/dist/{types-BBQjIaK4.d.ts → types-Hmd7U0JA.d.ts} +1 -1
  76. package/dist/video-selfie.d.ts +8 -100
  77. package/dist/video-selfie.esm.js +17 -608
  78. package/dist/videoSelfieCameraWarmer-lG-12ONu.esm.js +614 -0
  79. package/dist/videoSelfieStepDetector-144x423X.d.ts +117 -0
  80. package/dist/wasm.esm.js +1 -1
  81. package/dist/workflow.d.ts +1 -1
  82. package/dist/workflow.esm.js +14 -14
  83. package/package.json +8 -3
  84. package/dist/trueSight-DWfPmAL_.esm.js +0 -1
  85. /package/dist/{types-BX_XkMsQ.d.ts → types-BX_XkMsQ2.d.ts} +0 -0
  86. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  87. /package/dist/{types-DPIDuhut2.d.ts → types-DPIDuhut.d.ts} +0 -0
@@ -1,6 +1,5 @@
1
1
  import { n as WasmPipeline } from "./warmup-Dv2alr2-.js";
2
- import { r as IncodeCanvas } from "./deepsightService-CR-CYdka.js";
3
- import { a as MLProviderConfig, i as IMLProviderCapability } from "./IStorageCapability-B8IGxCwe.js";
2
+ import { a as MLProviderConfig, i as IMLProviderCapability, o as IncodeCanvas } from "./IStorageCapability-ORkQfK3F.js";
4
3
  //#region ../infra/src/wasm/wasmWebClient.d.ts
5
4
  /**
6
5
  * Configuration shape that the C++ `WebApi` passes when calling `.post(...)`
@@ -0,0 +1,231 @@
1
+ import { a as MLProviderConfig, i as IMLProviderCapability, o as IncodeCanvas } from "./IStorageCapability-ORkQfK3F.js";
2
+ //#region ../infra/src/wasm/apiUtilities.d.ts
3
+ /**
4
+ * Shared WASM module loader.
5
+ *
6
+ * The pinned `webLib.wasm` (see `wasmDefaults.ts`) bundles BOTH the ML pipeline
7
+ * APIs (used by `mlWasmJSApi.ts`) AND a C++ `WebClient` HTTP client (used by
8
+ * `wasmWebClient.ts`). Both consumers must share a single instantiated
9
+ * `wasmModule` — calling the glue `Module()` factory twice would re-instantiate
10
+ * the WASM heap and produce divergent state.
11
+ *
12
+ * This module memoizes the load: the first caller (whichever arrives first —
13
+ * ML init or HTTP init) triggers the fetch + glue load, and subsequent callers
14
+ * await the same promise. Idempotent on success; on failure, the singleton is
15
+ * cleared so the next caller retries.
16
+ *
17
+ * SIMD fallback mirrors the legacy behavior: try the SIMD binary + SIMD glue
18
+ * (`webLibSimd.js` + `webLibSimd.wasm`) first, fall back to the non-SIMD pair
19
+ * (`webLib.js` + `webLib.wasm`) on instantiation failure. Each binary MUST be
20
+ * paired with its matching glue — the CDN ships them as paired artifacts and
21
+ * mixing them produces an unusable module.
22
+ */
23
+ declare global {
24
+ interface Window {
25
+ Module?: WasmGlueFactory;
26
+ wasmArrayBuffer: Uint8Array | null;
27
+ }
28
+ }
29
+ /** Opaque handle for the loaded WASM module instance. */
30
+ type WasmModule = Record<string, unknown>;
31
+ type WasmGlueFactory = () => Promise<WasmModule>;
32
+ //#endregion
33
+ //#region ../infra/src/wasm/mlWasmBridgeTypes.d.ts
34
+ /**
35
+ * Decoded PDF417 barcode surfaced from the WASM ID-capture pipeline during
36
+ * US Smart Capture. Mirrors SDK 1's `Pdf417DecodeResult`.
37
+ */
38
+ type Pdf417DecodeResult = {
39
+ text: string;
40
+ ecLevel: string;
41
+ rowNumber: number;
42
+ columnNumber: number;
43
+ codewordLengthInPixelsMin: number;
44
+ codewordLengthInPixelsMax: number;
45
+ correctedErrorsCount: number;
46
+ };
47
+ //#endregion
48
+ //#region ../infra/src/capabilities/IIdCaptureCapability.d.ts
49
+ /**
50
+ * Configuration for ID capture provider.
51
+ * Extends base ML provider config with ID-capture specific options.
52
+ */
53
+ interface IdCaptureConfig extends MLProviderConfig {
54
+ /**
55
+ * Load the video-selfie ID workflow (`IdVideoSelfiePipeline`, the simplified
56
+ * ID-capture pipeline without a capturing-manager timer, used by the
57
+ * video-selfie flow) instead of the default blur/glare ID pipeline.
58
+ */
59
+ videoSelfie?: boolean;
60
+ }
61
+ interface IdCaptureThresholds {
62
+ blurThreshold: number;
63
+ blurChangeThreshold: number;
64
+ glareThreshold: number;
65
+ clsThreshold: number;
66
+ sideThreshold: number;
67
+ iouThreshold: number;
68
+ idDetectedTimeout: number;
69
+ autocaptureTimeout: number;
70
+ framesAggregationInterval: number;
71
+ }
72
+ interface IdCaptureGeometry {
73
+ areaDown: number;
74
+ areaUp: number;
75
+ areaIOSPassportUp: number;
76
+ areaIOSPassportDown: number;
77
+ widthIOSUp: number;
78
+ widthIOSDown: number;
79
+ widthDown: number;
80
+ widthUp: number;
81
+ windowOuterWidth: number;
82
+ windowOuterHeight: number;
83
+ windowInnerWidth: number;
84
+ windowInnerHeight: number;
85
+ }
86
+ interface IdCaptureSettings {
87
+ isFixedMask: boolean;
88
+ isIPhone14OrHigher: boolean;
89
+ idType: string;
90
+ blurCheckEnabled: boolean;
91
+ glareCheckEnabled: boolean;
92
+ faceQualityCheckEnabled: boolean;
93
+ iouCheckEnabled: boolean;
94
+ fpsLimitEnabled: boolean;
95
+ }
96
+ type IdCaptureModelType = 'v1' | 'v2' | 'v3';
97
+ type DetectionOrientation = 'horizontal' | 'vertical';
98
+ interface IdCaptureCallbacks {
99
+ onFarAway?: () => void;
100
+ onDetectionStarted?: () => void;
101
+ onMaskChange?: (show: boolean, mask: boolean, top: number, orientation: DetectionOrientation) => void;
102
+ onBlur?: () => void;
103
+ onGlare?: () => void;
104
+ onCapturing?: () => void;
105
+ onCapture?: () => void;
106
+ onBestFrame?: (blur: number, glare: number, orientation: string) => void;
107
+ onIdNotDetected?: () => void;
108
+ onSwitchToManualCapture?: () => void;
109
+ onIdTypeChange?: (idType: string) => void;
110
+ onIdSideChange?: (side: string) => void;
111
+ onCapturingCounterValueChange?: (value: number) => void;
112
+ /**
113
+ * Fires when the WASM pipeline decodes a PDF417 barcode from the back of the
114
+ * ID during US Smart Capture. Only fires when barcode capture is enabled via
115
+ * `setBarcodeCaptureEnabled(true)`.
116
+ */
117
+ onBarcodeDecoded?: (decoded: Pdf417DecodeResult) => void;
118
+ }
119
+ /**
120
+ * WASM array type for quad coordinates.
121
+ * Use .get(index) instead of [index] to access elements.
122
+ */
123
+ interface QuadArray {
124
+ get(index: number): {
125
+ x: number;
126
+ y: number;
127
+ };
128
+ size?(): number;
129
+ length?: number;
130
+ }
131
+ interface IdCaptureProcessResult {
132
+ cls: number;
133
+ blur: number;
134
+ glare: number;
135
+ quad: QuadArray;
136
+ barQuad: QuadArray;
137
+ side: string;
138
+ size: number;
139
+ idType: string;
140
+ networkInferenceTime: number;
141
+ }
142
+ /**
143
+ * Capability interface for ID document capture.
144
+ * Extends the base ML provider capability with ID-capture specific methods.
145
+ */
146
+ interface IIdCaptureCapability extends IMLProviderCapability<IdCaptureConfig> {
147
+ /**
148
+ * Sets callbacks for ID capture events.
149
+ * @param callbacks - Object containing callback functions for various capture events
150
+ */
151
+ setCallbacks(callbacks: IdCaptureCallbacks): void;
152
+ /**
153
+ * Sets detection thresholds for quality checks.
154
+ * @param thresholds - Threshold values for blur, glare, and other quality metrics
155
+ */
156
+ setThresholds(thresholds: IdCaptureThresholds): void;
157
+ /**
158
+ * Sets geometry constraints for ID detection.
159
+ * @param geometry - Geometry parameters for ID positioning
160
+ */
161
+ setGeometry(geometry: IdCaptureGeometry): void;
162
+ /**
163
+ * Sets capture settings.
164
+ * @param settings - Configuration for capture behavior
165
+ */
166
+ setSettings(settings: IdCaptureSettings): void;
167
+ /**
168
+ * Sets the ML model type to use for ID detection.
169
+ * @param modelType - Model version ('v1', 'v2', or 'v3')
170
+ */
171
+ setModelType(modelType: IdCaptureModelType): void;
172
+ /**
173
+ * Gets the last process result from the most recent frame processing.
174
+ * Returns null if no frame has been processed yet.
175
+ * @returns The last process result with quad coordinates, or null if not available
176
+ */
177
+ getLastProcessResult(): IdCaptureProcessResult | null;
178
+ /**
179
+ * Transforms the canvas using perspective correction based on frame coordinates.
180
+ * @param canvas - The canvas to transform
181
+ * @param frameRect - Frame rectangle in canvas coordinates (x, y, w, h)
182
+ * @returns The transformed canvas
183
+ */
184
+ transformPerspective(canvas: IncodeCanvas, frameRect: {
185
+ x: number;
186
+ y: number;
187
+ w: number;
188
+ h: number;
189
+ }): IncodeCanvas;
190
+ /**
191
+ * Gets the captured canvas (transformed for preview).
192
+ * @returns The captured canvas, or null if not available
193
+ */
194
+ getCapturedCanvas(): IncodeCanvas | null;
195
+ /**
196
+ * Gets the original captured canvas (full frame for upload).
197
+ * @returns The original captured canvas, or null if not available
198
+ */
199
+ getOriginalCapturedCanvas(): IncodeCanvas | null;
200
+ /**
201
+ * Sets the captured canvases (original and transformed).
202
+ * Called by the state machine after capture and transformation.
203
+ * @param original - The original full-frame canvas (for upload)
204
+ * @param transformed - The transformed canvas (for preview)
205
+ */
206
+ setCapturedCanvases(original: IncodeCanvas, transformed: IncodeCanvas): void;
207
+ /**
208
+ * Enables/disables on-device PDF417 barcode capture on the detection loop.
209
+ * Used by US Smart Capture (enabled only on the back side).
210
+ */
211
+ setBarcodeCaptureEnabled(enabled: boolean): void;
212
+ /**
213
+ * When true, the WASM pipeline auto-captures the frame on barcode decode. The
214
+ * Flow keeps this false so the JS layer owns the submit decision.
215
+ */
216
+ setBarcodeAutoCaptureOnDecode(enabled: boolean): void;
217
+ /**
218
+ * Lazily loads the PDF417 enhancement model, resolved from the active WASM
219
+ * config's models base path (so self-hosted deployments resolve it too).
220
+ * Resolves to whether the model was applied — best-effort; decode still works
221
+ * without it. Loaded at most once per provider instance.
222
+ */
223
+ setBarcodeEnhancementModel(): Promise<boolean>;
224
+ /**
225
+ * The most recently decoded PDF417 barcode, or null if none decoded since the
226
+ * last reset. Complements the `onBarcodeDecoded` callback.
227
+ */
228
+ getLastDecodedBarcode(): Pdf417DecodeResult | null;
229
+ }
230
+ //#endregion
231
+ export { Pdf417DecodeResult as i, IIdCaptureCapability as n, IdCaptureSettings as r, DetectionOrientation as t };
@@ -1,3 +1,114 @@
1
+ //#region ../infra/src/media/canvas.d.ts
2
+ /**
3
+ * Class representing a canvas element for image capture and manipulation.
4
+ */
5
+ declare class IncodeCanvas {
6
+ canvas: HTMLCanvasElement;
7
+ private base64Image;
8
+ private blobData;
9
+ /**
10
+ * Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
11
+ * @param imageData - Frame pixels in RGBA format
12
+ * @returns An {@link IncodeCanvas} containing the provided pixels
13
+ */
14
+ static fromImageData(imageData: ImageData): IncodeCanvas;
15
+ /**
16
+ * Create a new canvas element.
17
+ * @param canvas_ - The canvas element to clone.
18
+ */
19
+ constructor(canvas_: HTMLCanvasElement);
20
+ /**
21
+ * Check if the current canvas is valid.
22
+ */
23
+ private checkCanvas;
24
+ /**
25
+ * Disposes of resources, including revoking object URLs to prevent memory leaks.
26
+ */
27
+ dispose(): void;
28
+ /**
29
+ * Release the data stored by IncodeCanvas.
30
+ */
31
+ release(): void;
32
+ /**
33
+ * Revokes the object URL if one exists, preventing memory leaks.
34
+ * Use this when you no longer need the preview image URL.
35
+ */
36
+ revokeObjectURL(): void;
37
+ /**
38
+ * Get the width of the canvas.
39
+ */
40
+ width(): number | null;
41
+ /**
42
+ * Get the height of the canvas.
43
+ */
44
+ height(): number | null;
45
+ /**
46
+ * Set the width of the canvas.
47
+ */
48
+ setWidth(width: number): void;
49
+ /**
50
+ * Set the height of the canvas.
51
+ */
52
+ setHeight(height: number): void;
53
+ /**
54
+ * Clone the current canvas.
55
+ */
56
+ clone(): IncodeCanvas | null;
57
+ /**
58
+ * Deep clone the current IncodeCanvas including blob data.
59
+ */
60
+ deepClone(): Promise<IncodeCanvas | null>;
61
+ /**
62
+ * Returns the drawing context on the canvas.
63
+ */
64
+ getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
65
+ /**
66
+ * Retrieves the image data from the canvas.
67
+ */
68
+ getImageData(): ImageData | null;
69
+ /**
70
+ * Updates the base64 representation of the current canvas image.
71
+ */
72
+ updateBase64Image(jpegQuality?: number): void;
73
+ /**
74
+ * Converts the current canvas element to a base64 string.
75
+ */
76
+ getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
77
+ /**
78
+ * Sets the base64 representation of the current canvas image.
79
+ */
80
+ setBase64Image(base64Image: string | null): void;
81
+ /**
82
+ * Updates the Blob representation of the current canvas image.
83
+ */
84
+ updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
85
+ /**
86
+ * Converts a base64 string to a Blob and creates a URL for it.
87
+ */
88
+ static base64ToBlob(base64: string): {
89
+ blob: Blob;
90
+ url: string;
91
+ } | null;
92
+ /**
93
+ * Retrieves the Blob data and its URL from the current canvas.
94
+ */
95
+ getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
96
+ blob: Blob;
97
+ url: string;
98
+ } | null;
99
+ /**
100
+ * Sets the Blob data of the current canvas image.
101
+ */
102
+ setBlobData(blobData: {
103
+ blob: Blob;
104
+ url: string;
105
+ }): Promise<void>;
106
+ /**
107
+ * Returns a resized canvas according to video element size.
108
+ */
109
+ getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
110
+ }
111
+ //#endregion
1
112
  //#region ../infra/src/capabilities/IMLProviderCapability.d.ts
2
113
  /**
3
114
  * Base configuration shared by all ML provider capabilities.
@@ -128,4 +239,4 @@ interface IStorageCapability {
128
239
  clear(): Promise<void>;
129
240
  }
130
241
  //#endregion
131
- export { MLProviderConfig as a, IMLProviderCapability as i, IRecordingCapability as n, RecordingConnection as r, IStorageCapability as t };
242
+ export { MLProviderConfig as a, IMLProviderCapability as i, IRecordingCapability as n, IncodeCanvas as o, RecordingConnection as r, IStorageCapability as t };
@@ -1,4 +1,4 @@
1
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-DqPJCXMG.esm.js";
1
+ import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-JuycNykG.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-DGkNMx-E.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-BIbE2pK1.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B92LFT16.js";
2
- import { t as AuthenticationConfig } from "./types-CrUhpMDP.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BGM8bpD0.js";
1
+ import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-K8iLKaRl.js";
2
+ import { t as AuthenticationConfig } from "./types-EELWyWpd.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Y2_MuGXy.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-O3acuOqq.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CmkHvt7_.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BnH1mizY.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Cd4tefr2.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -2,8 +2,8 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
3
3
  import { n as eventModuleNames } from "./events-ethtfu2b.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-2W_XduCs.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-O3acuOqq.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Cd1uQnGS.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BnH1mizY.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B92LFT16.js";
3
+ import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-K8iLKaRl.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-D-9s0vUS.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-D8FzOXsM.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CS7exiIh.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-DFEU5wcC.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-uhDPdU6i.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-5HWbGwOa.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -78,14 +78,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
78
78
  type: "setError";
79
79
  params: NonReducibleUnknown;
80
80
  };
81
- clearError: {
82
- type: "clearError";
83
- params: NonReducibleUnknown;
84
- };
85
- resetContext: {
86
- type: "resetContext";
87
- params: NonReducibleUnknown;
88
- };
89
81
  setConsentData: {
90
82
  type: "setConsentData";
91
83
  params: NonReducibleUnknown;
@@ -94,10 +86,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
86
  type: "toggleCheckbox";
95
87
  params: NonReducibleUnknown;
96
88
  };
89
+ clearError: {
90
+ type: "clearError";
91
+ params: NonReducibleUnknown;
92
+ };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: NonReducibleUnknown;
96
+ };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
@@ -1,8 +1,8 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
2
  import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { l as trueSightLog } from "./trueSightService-DGkNMx-E.esm.js";
4
- import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-B3g2uAsl.esm.js";
5
- import "./trueSight-DWfPmAL_.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-BIbE2pK1.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-B58TmxdW.esm.js";
5
+ import "./trueSight-D7YiTge6.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
7
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
8
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
@@ -1,115 +1,5 @@
1
1
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
2
- //#region ../infra/src/media/canvas.d.ts
3
- /**
4
- * Class representing a canvas element for image capture and manipulation.
5
- */
6
- declare class IncodeCanvas {
7
- canvas: HTMLCanvasElement;
8
- private base64Image;
9
- private blobData;
10
- /**
11
- * Creates an {@link IncodeCanvas} from a raw {@link ImageData} frame.
12
- * @param imageData - Frame pixels in RGBA format
13
- * @returns An {@link IncodeCanvas} containing the provided pixels
14
- */
15
- static fromImageData(imageData: ImageData): IncodeCanvas;
16
- /**
17
- * Create a new canvas element.
18
- * @param canvas_ - The canvas element to clone.
19
- */
20
- constructor(canvas_: HTMLCanvasElement);
21
- /**
22
- * Check if the current canvas is valid.
23
- */
24
- private checkCanvas;
25
- /**
26
- * Disposes of resources, including revoking object URLs to prevent memory leaks.
27
- */
28
- dispose(): void;
29
- /**
30
- * Release the data stored by IncodeCanvas.
31
- */
32
- release(): void;
33
- /**
34
- * Revokes the object URL if one exists, preventing memory leaks.
35
- * Use this when you no longer need the preview image URL.
36
- */
37
- revokeObjectURL(): void;
38
- /**
39
- * Get the width of the canvas.
40
- */
41
- width(): number | null;
42
- /**
43
- * Get the height of the canvas.
44
- */
45
- height(): number | null;
46
- /**
47
- * Set the width of the canvas.
48
- */
49
- setWidth(width: number): void;
50
- /**
51
- * Set the height of the canvas.
52
- */
53
- setHeight(height: number): void;
54
- /**
55
- * Clone the current canvas.
56
- */
57
- clone(): IncodeCanvas | null;
58
- /**
59
- * Deep clone the current IncodeCanvas including blob data.
60
- */
61
- deepClone(): Promise<IncodeCanvas | null>;
62
- /**
63
- * Returns the drawing context on the canvas.
64
- */
65
- getContext(contextId: '2d', contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
66
- /**
67
- * Retrieves the image data from the canvas.
68
- */
69
- getImageData(): ImageData | null;
70
- /**
71
- * Updates the base64 representation of the current canvas image.
72
- */
73
- updateBase64Image(jpegQuality?: number): void;
74
- /**
75
- * Converts the current canvas element to a base64 string.
76
- */
77
- getBase64Image(jpegQuality?: number, includeDataURLPrefix?: boolean): string | null;
78
- /**
79
- * Sets the base64 representation of the current canvas image.
80
- */
81
- setBase64Image(base64Image: string | null): void;
82
- /**
83
- * Updates the Blob representation of the current canvas image.
84
- */
85
- updateBlob(jpegQuality?: number, includeDataURLPrefix?: boolean): void;
86
- /**
87
- * Converts a base64 string to a Blob and creates a URL for it.
88
- */
89
- static base64ToBlob(base64: string): {
90
- blob: Blob;
91
- url: string;
92
- } | null;
93
- /**
94
- * Retrieves the Blob data and its URL from the current canvas.
95
- */
96
- getBlobData(jpegQuality?: number, includeDataURLPrefix?: boolean): {
97
- blob: Blob;
98
- url: string;
99
- } | null;
100
- /**
101
- * Sets the Blob data of the current canvas image.
102
- */
103
- setBlobData(blobData: {
104
- blob: Blob;
105
- url: string;
106
- }): Promise<void>;
107
- /**
108
- * Returns a resized canvas according to video element size.
109
- */
110
- getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
111
- }
112
- //#endregion
2
+ import { o as IncodeCanvas } from "./IStorageCapability-ORkQfK3F.js";
113
3
  //#region ../infra/src/media/StreamCanvasCapture.d.ts
114
4
  type StreamCanvasCaptureOptions = {
115
5
  fps?: number;
@@ -215,4 +105,4 @@ type DeepsightPrcCheckParams = {
215
105
  constraints: MediaStreamConstraints;
216
106
  };
217
107
  //#endregion
218
- export { StreamCanvasCapture as n, IncodeCanvas as r, DeepsightService as t };
108
+ export { StreamCanvasCapture as n, DeepsightService as t };
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-B4BObr_7.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-pEqMY_Oo.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DeSYkGWc.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -42,6 +42,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
42
42
  type: "setError";
43
43
  params: NonReducibleUnknown;
44
44
  };
45
+ clearError: {
46
+ type: "clearError";
47
+ params: NonReducibleUnknown;
48
+ };
45
49
  setStream: {
46
50
  type: "setStream";
47
51
  params: NonReducibleUnknown;
@@ -54,10 +58,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
54
58
  type: "setProgress";
55
59
  params: NonReducibleUnknown;
56
60
  };
57
- clearError: {
58
- type: "clearError";
59
- params: NonReducibleUnknown;
60
- };
61
61
  stopStream: {
62
62
  type: "stopStream";
63
63
  params: NonReducibleUnknown;