@incodetech/core 0.0.0-dev-20260313-486e658 → 0.0.0-dev-20260313-bc2dab4

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 (80) hide show
  1. package/dist/Actor-BAf9LRYf.d.ts +2 -0
  2. package/dist/StateMachine-DJpZF_HP.d.ts +2 -0
  3. package/dist/authentication.d.ts +10 -78
  4. package/dist/authentication.esm.js +11 -195
  5. package/dist/authenticationManager-4j4j8ac9.esm.js +197 -0
  6. package/dist/authenticationManager-DQL9XsaI.d.ts +66 -0
  7. package/dist/{backCameraStream-B57NWDGu.esm.js → backCameraStream-4aLwsDOv.esm.js} +1 -1
  8. package/dist/curp-validation.d.ts +4 -4
  9. package/dist/curp-validation.esm.js +5 -5
  10. package/dist/{deepsightLoader-BXTRzhYx.esm.js → deepsightLoader-C-Xil8cg.esm.js} +4 -4
  11. package/dist/{deepsightService-CTK55DG8.esm.js → deepsightService-BgqD33AH.esm.js} +3 -3
  12. package/dist/{deepsightService-CYCDsan2.d.ts → deepsightService-UhtHJCFb.d.ts} +131 -3
  13. package/dist/document-capture.d.ts +49 -49
  14. package/dist/document-capture.esm.js +6 -6
  15. package/dist/document-upload.d.ts +49 -49
  16. package/dist/document-upload.esm.js +5 -5
  17. package/dist/ekyb.d.ts +2 -2
  18. package/dist/ekyb.esm.js +6 -6
  19. package/dist/ekyc.d.ts +2 -2
  20. package/dist/ekyc.esm.js +6 -6
  21. package/dist/email.d.ts +3 -263
  22. package/dist/email.esm.js +6 -477
  23. package/dist/emailManager-DZeOYBQ6.d.ts +335 -0
  24. package/dist/emailManager-e7j__XBB.esm.js +486 -0
  25. package/dist/{events-b4_xvENs.esm.js → events-3HzCcoEy.esm.js} +2 -2
  26. package/dist/extensibility.d.ts +95 -0
  27. package/dist/extensibility.esm.js +17 -0
  28. package/dist/face-match.d.ts +1 -1
  29. package/dist/face-match.esm.js +5 -5
  30. package/dist/faceCaptureManagerFactory-CiQWYHp2.d.ts +610 -0
  31. package/dist/{faceCaptureSetup-10lCb_yE.esm.js → faceCaptureSetup-CF9TJlsc.esm.js} +11 -11
  32. package/dist/flow.d.ts +7 -7
  33. package/dist/flow.esm.js +5 -5
  34. package/dist/{flowCompletionService-DHXqHOAk.esm.js → flowCompletionService-CV8Ywiut.esm.js} +2 -2
  35. package/dist/geolocation.d.ts +1 -1
  36. package/dist/geolocation.esm.js +5 -5
  37. package/dist/government-validation.d.ts +1 -1
  38. package/dist/government-validation.esm.js +4 -4
  39. package/dist/id-A_upgNRR.esm.js +0 -0
  40. package/dist/id.d.ts +9 -9
  41. package/dist/id.esm.js +11 -10
  42. package/dist/{id-TUJyOPso.esm.js → idCaptureManager-B9BsU7-M.esm.js} +18 -11
  43. package/dist/{index-5ZEjz-8I.d.ts → idCaptureManager-D8FwP0TW.d.ts} +30 -8
  44. package/dist/index-BtQzTfU9.d.ts +1 -0
  45. package/dist/index.d.ts +21 -12
  46. package/dist/index.esm.js +33 -21
  47. package/dist/{lib-V3Lo-Jit.esm.js → lib-COh1FH9n.esm.js} +1 -1
  48. package/dist/phone.d.ts +3 -291
  49. package/dist/phone.esm.js +6 -551
  50. package/dist/phoneManager-B6fNmxhw.esm.js +560 -0
  51. package/dist/phoneManager-BsamACjL.d.ts +370 -0
  52. package/dist/redirect-to-mobile.d.ts +1 -1
  53. package/dist/redirect-to-mobile.esm.js +4 -4
  54. package/dist/selfie.d.ts +10 -408
  55. package/dist/selfie.esm.js +11 -118
  56. package/dist/selfieManager-ByV0akn-.esm.js +117 -0
  57. package/dist/selfieManager-Czysy-lv.d.ts +68 -0
  58. package/dist/session.d.ts +1 -1
  59. package/dist/session.esm.js +3 -3
  60. package/dist/{src-D3v6I2la.esm.js → src-BmVrWkLJ.esm.js} +2 -2
  61. package/dist/{stats-D76Thmqp.esm.js → stats-kLtQIgsA.esm.js} +1 -1
  62. package/dist/stats.esm.js +2 -2
  63. package/dist/{streamingEvents-CQq5fJCL.esm.js → streamingEvents-Cw6kqXEh.esm.js} +3 -3
  64. package/dist/{types-DnrAr9fb.d.ts → types-BugcSDaO.d.ts} +1 -1
  65. package/dist/{types-Bn54lmeM.d.ts → types-C9Jo2XOb.d.ts} +1 -1
  66. package/package.json +5 -1
  67. package/dist/Actor-B6Lr-x6S.d.ts +0 -2
  68. package/dist/StateMachine-WHeQE3lC.d.ts +0 -2
  69. package/dist/faceCaptureManagerFactory-D1NUo68Z.d.ts +0 -231
  70. package/dist/types-B4KNFqC4.d.ts +0 -130
  71. /package/dist/{Manager-CG5CQ1kY.d.ts → Manager-CXnC-tN_.d.ts} +0 -0
  72. /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
  73. /package/dist/{camera-D7zu0Mls.d.ts → camera-DDn9ILon.d.ts} +0 -0
  74. /package/dist/{chunk-B1Ox1Owh.esm.js → chunk-C4_ANvih.esm.js} +0 -0
  75. /package/dist/{endpoints-5sPFFmaB.esm.js → endpoints-IAlXA1zN.esm.js} +0 -0
  76. /package/dist/{flowCompletionService-DeWKduBI.d.ts → flowCompletionService-D4YDcHQR.d.ts} +0 -0
  77. /package/dist/{types-BYYaKde4.d.ts → types-DTieLton.d.ts} +0 -0
  78. /package/dist/{usStates-D4SmlpeT.esm.js → usStates-vWM_ZgEH.esm.js} +0 -0
  79. /package/dist/{warmup-Da5qDIWZ.d.ts → warmup-Bp_1oXoL.d.ts} +0 -0
  80. /package/dist/{xstate.esm-07M59Cte.esm.js → xstate.esm-CcoTezCZ.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as CameraStream } from "./camera-D7zu0Mls.js";
1
+ import { t as CameraStream } from "./camera-DDn9ILon.js";
2
2
 
3
3
  //#region ../infra/src/media/canvas.d.ts
4
4
  /**
@@ -111,8 +111,61 @@ declare class IncodeCanvas {
111
111
  getResizedCanvas(videoElementWidth: number, videoElementHeight: number): IncodeCanvas | null;
112
112
  }
113
113
  //#endregion
114
+ //#region ../infra/src/capabilities/IMLProviderCapability.d.ts
115
+ /**
116
+ * Base configuration shared by all ML provider capabilities.
117
+ */
118
+ interface MLProviderConfig {
119
+ /** Path to the WASM binary */
120
+ wasmPath?: string;
121
+ /** Path to the SIMD-optimized WASM binary (optional) */
122
+ wasmSimdPath?: string;
123
+ /** Path to the WASM glue code */
124
+ glueCodePath?: string;
125
+ /** Whether to use SIMD optimizations (default: true) */
126
+ useSimd?: boolean;
127
+ /**
128
+ * Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
129
+ * If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
130
+ */
131
+ modelsBasePath?: string;
132
+ }
133
+ /**
134
+ * Base interface for ML provider capabilities.
135
+ * Provides common lifecycle and frame processing methods shared by
136
+ * FaceDetectionCapability and IdCaptureCapability.
137
+ */
138
+ interface IMLProviderCapability<TConfig extends MLProviderConfig> {
139
+ /**
140
+ * Whether the provider has been initialized and is ready to process frames.
141
+ */
142
+ readonly initialized: boolean;
143
+ /**
144
+ * Initializes the provider with the given configuration.
145
+ * If WASM was already warmed up via `setup()` or `warmupWasm()`, this returns almost instantly.
146
+ * @param config - Provider configuration including WASM paths
147
+ */
148
+ initialize(config: TConfig): Promise<void>;
149
+ /**
150
+ * Processes a frame through the ML pipeline.
151
+ * Callbacks set via `setCallbacks()` will be invoked based on the analysis results.
152
+ * @param image - Image data to process
153
+ * @throws Error if provider is not initialized
154
+ */
155
+ processFrame(image: ImageData): Promise<void>;
156
+ /**
157
+ * Resets the pipeline to its initial state.
158
+ * Safe to call even if not initialized (no-op in that case).
159
+ */
160
+ reset(): void;
161
+ /**
162
+ * Disposes of resources and resets initialization state.
163
+ * Safe to call even if not initialized.
164
+ */
165
+ dispose(): Promise<void>;
166
+ }
167
+ //#endregion
114
168
  //#region ../infra/src/capabilities/IMotionSensorCapability.d.ts
115
-
116
169
  type MotionStatus = 'PASS' | 'FAIL' | 'UNCLEAR';
117
170
  type MotionPermissionState = 'granted' | 'denied' | 'not-required';
118
171
  type IMotionSensorCapability = {
@@ -124,6 +177,77 @@ type IMotionSensorCapability = {
124
177
  readonly hasPermission: boolean;
125
178
  };
126
179
  //#endregion
180
+ //#region ../infra/src/capabilities/IRecordingCapability.d.ts
181
+ type RecordingPublisher = {
182
+ getStreamId: () => string | undefined;
183
+ replaceVideoTrack: (track: MediaStreamTrack) => Promise<void>;
184
+ destroy: () => void;
185
+ };
186
+ type RecordingConnection = {
187
+ sessionId: string | undefined;
188
+ publisher: RecordingPublisher;
189
+ disconnect: () => Promise<void>;
190
+ };
191
+ type RecordingConnectionEvents = {
192
+ onSessionConnected?: (sessionId: string | undefined) => void;
193
+ onSessionDisconnected?: (sessionId: string | undefined) => void;
194
+ onSessionException?: (params: {
195
+ name?: string;
196
+ message?: string;
197
+ sessionId?: string;
198
+ }) => void;
199
+ onPublisherCreated?: (params: {
200
+ streamId?: string;
201
+ sessionId?: string;
202
+ }) => void;
203
+ onPublisherError?: (params: {
204
+ message?: string;
205
+ sessionId?: string;
206
+ streamId?: string;
207
+ }) => void;
208
+ };
209
+ type ConnectRecordingParams = {
210
+ sessionToken: string;
211
+ stream: MediaStream;
212
+ events?: RecordingConnectionEvents;
213
+ };
214
+ type IRecordingCapability = {
215
+ /**
216
+ * Connects to a recording session and publishes the provided media stream.
217
+ * Returns a connection handle that can be disconnected and used to manage the publisher.
218
+ */
219
+ connect: (params: ConnectRecordingParams) => Promise<RecordingConnection>;
220
+ };
221
+ //#endregion
222
+ //#region ../infra/src/capabilities/IStorageCapability.d.ts
223
+ /**
224
+ * Storage capability interface for abstracting storage operations.
225
+ * Enables swapping between browser localStorage and future WASM-based storage.
226
+ */
227
+ interface IStorageCapability {
228
+ /**
229
+ * Retrieves a value from storage.
230
+ * @param key - The storage key
231
+ * @returns The stored value or null if not found
232
+ */
233
+ get<T>(key: string): Promise<T | null>;
234
+ /**
235
+ * Stores a value in storage.
236
+ * @param key - The storage key
237
+ * @param value - The value to store (will be serialized)
238
+ */
239
+ set<T>(key: string, value: T): Promise<void>;
240
+ /**
241
+ * Removes a value from storage.
242
+ * @param key - The storage key to remove
243
+ */
244
+ remove(key: string): Promise<void>;
245
+ /**
246
+ * Clears all values from storage.
247
+ */
248
+ clear(): Promise<void>;
249
+ }
250
+ //#endregion
127
251
  //#region ../infra/src/media/StreamCanvasCapture.d.ts
128
252
  type StreamCanvasCaptureOptions = {
129
253
  fps?: number;
@@ -162,6 +286,10 @@ declare class StreamCanvasCapture {
162
286
  private tick;
163
287
  }
164
288
  //#endregion
289
+ //#region src/internal/permissions/types.d.ts
290
+ type PermissionResult = 'granted' | 'denied' | 'prompt';
291
+ type PermissionStatus = 'idle' | 'requesting' | 'denied' | 'learnMore';
292
+ //#endregion
165
293
  //#region src/internal/deepsight/metadataService.d.ts
166
294
  type MetadataService = {
167
295
  initialize(sdkVersion: string, disableIpify?: boolean): Promise<void>;
@@ -222,4 +350,4 @@ type DeepsightPrcCheckParams = {
222
350
  constraints: MediaStreamConstraints;
223
351
  };
224
352
  //#endregion
225
- export { IncodeCanvas as i, StreamCanvasCapture as n, IMotionSensorCapability as r, DeepsightService as t };
353
+ export { IStorageCapability as a, IMotionSensorCapability as c, IncodeCanvas as d, StreamCanvasCapture as i, IMLProviderCapability as l, PermissionResult as n, IRecordingCapability as o, PermissionStatus as r, RecordingConnection as s, DeepsightService as t, MLProviderConfig as u };
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
- import { t as CameraStream } from "./camera-D7zu0Mls.js";
3
- import * as xstate0 from "xstate";
1
+ import { t as Manager } from "./Manager-CXnC-tN_.js";
2
+ import { t as CameraStream } from "./camera-DDn9ILon.js";
3
+ import * as xstate276 from "xstate";
4
4
 
5
5
  //#region src/modules/document-capture/types.d.ts
6
6
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -72,7 +72,7 @@ type DocumentCaptureInput = {
72
72
  };
73
73
  //#endregion
74
74
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
75
- declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContext, {
75
+ declare const documentCaptureMachine: xstate276.StateMachine<DocumentCaptureContext, {
76
76
  type: "CAPTURE";
77
77
  } | {
78
78
  type: "FILE_SELECTED";
@@ -95,31 +95,43 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
95
95
  } | {
96
96
  type: "CLOSE";
97
97
  }, {
98
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<DocumentUploadResponse, {
98
+ [x: string]: xstate276.ActorRefFromLogic<xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>> | xstate276.ActorRefFromLogic<xstate276.PromiseActorLogic<DocumentUploadResponse, {
99
99
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
100
100
  processingType: string;
101
101
  onProgress: (progress: number) => void;
102
- }, xstate0.EventObject>> | undefined;
103
- }, xstate0.Values<{
102
+ }, xstate276.EventObject>> | undefined;
103
+ }, xstate276.Values<{
104
104
  initCamera: {
105
105
  src: "initCamera";
106
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
106
+ logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
107
107
  id: string | undefined;
108
108
  };
109
109
  uploadDocument: {
110
110
  src: "uploadDocument";
111
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
111
+ logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
112
112
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
113
113
  processingType: string;
114
114
  onProgress: (progress: number) => void;
115
- }, xstate0.EventObject>;
115
+ }, xstate276.EventObject>;
116
116
  id: string | undefined;
117
117
  };
118
- }>, xstate0.Values<{
118
+ }>, xstate276.Values<{
119
119
  setStream: {
120
120
  type: "setStream";
121
121
  params: unknown;
122
122
  };
123
+ setProgress: {
124
+ type: "setProgress";
125
+ params: unknown;
126
+ };
127
+ clearError: {
128
+ type: "clearError";
129
+ params: unknown;
130
+ };
131
+ stopStream: {
132
+ type: "stopStream";
133
+ params: unknown;
134
+ };
123
135
  setCapturedDocument: {
124
136
  type: "setCapturedDocument";
125
137
  params: unknown;
@@ -128,10 +140,6 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
128
140
  type: "setFileTooLargeError";
129
141
  params: unknown;
130
142
  };
131
- setProgress: {
132
- type: "setProgress";
133
- params: unknown;
134
- };
135
143
  setUploadError: {
136
144
  type: "setUploadError";
137
145
  params: unknown;
@@ -160,18 +168,10 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
160
168
  type: "clearForNextPage";
161
169
  params: unknown;
162
170
  };
163
- clearError: {
164
- type: "clearError";
165
- params: unknown;
166
- };
167
171
  resetProgress: {
168
172
  type: "resetProgress";
169
173
  params: unknown;
170
174
  };
171
- stopStream: {
172
- type: "stopStream";
173
- params: unknown;
174
- };
175
175
  trackTutorial: {
176
176
  type: "trackTutorial";
177
177
  params: unknown;
@@ -196,7 +196,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
196
196
  type: "trackFailure";
197
197
  params: unknown;
198
198
  };
199
- }>, xstate0.Values<{
199
+ }>, xstate276.Values<{
200
200
  allowSkip: {
201
201
  type: "allowSkip";
202
202
  params: unknown;
@@ -229,7 +229,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
229
229
  type: "isPendingNextPage";
230
230
  params: unknown;
231
231
  };
232
- }>, never, "initCamera" | "tutorial" | "capturing" | "preview" | "finished" | "closed" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
232
+ }>, never, "finished" | "initCamera" | "capturing" | "closed" | "uploading" | "tutorial" | "preview" | "failure" | "success", string, DocumentCaptureInput, xstate276.NonReducibleUnknown, xstate276.EventObject, xstate276.MetaObject, {
233
233
  readonly id: "documentCapture";
234
234
  readonly initial: "tutorial";
235
235
  readonly context: ({
@@ -238,67 +238,67 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
238
238
  spawn: {
239
239
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
240
240
  src: "initCamera";
241
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
241
+ logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
242
242
  id: string | undefined;
243
243
  } extends infer T ? T extends {
244
244
  src: "initCamera";
245
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
245
+ logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
246
246
  id: string | undefined;
247
247
  } ? T extends {
248
248
  src: TSrc;
249
- } ? xstate0.ConditionalRequired<[options?: ({
249
+ } ? xstate276.ConditionalRequired<[options?: ({
250
250
  id?: T["id"] | undefined;
251
251
  systemId?: string;
252
- input?: xstate0.InputFrom<T["logic"]> | undefined;
252
+ input?: xstate276.InputFrom<T["logic"]> | undefined;
253
253
  syncSnapshot?: boolean;
254
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
254
+ } & { [K in xstate276.RequiredActorOptions<T>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredActorOptions<T>>> : never : never : never) | ({
255
255
  src: "uploadDocument";
256
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
256
+ logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
257
257
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
258
258
  processingType: string;
259
259
  onProgress: (progress: number) => void;
260
- }, xstate0.EventObject>;
260
+ }, xstate276.EventObject>;
261
261
  id: string | undefined;
262
262
  } extends infer T_1 ? T_1 extends {
263
263
  src: "uploadDocument";
264
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
264
+ logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
265
265
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
266
266
  processingType: string;
267
267
  onProgress: (progress: number) => void;
268
- }, xstate0.EventObject>;
268
+ }, xstate276.EventObject>;
269
269
  id: string | undefined;
270
270
  } ? T_1 extends {
271
271
  src: TSrc;
272
- } ? xstate0.ConditionalRequired<[options?: ({
272
+ } ? xstate276.ConditionalRequired<[options?: ({
273
273
  id?: T_1["id"] | undefined;
274
274
  systemId?: string;
275
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
275
+ input?: xstate276.InputFrom<T_1["logic"]> | undefined;
276
276
  syncSnapshot?: boolean;
277
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
277
+ } & { [K_1 in xstate276.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredActorOptions<T_1>>> : never : never : never)): xstate276.ActorRefFromLogic<xstate276.GetConcreteByKey<xstate276.Values<{
278
278
  initCamera: {
279
279
  src: "initCamera";
280
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
280
+ logic: xstate276.PromiseActorLogic<MediaStream, void, xstate276.EventObject>;
281
281
  id: string | undefined;
282
282
  };
283
283
  uploadDocument: {
284
284
  src: "uploadDocument";
285
- logic: xstate0.PromiseActorLogic<DocumentUploadResponse, {
285
+ logic: xstate276.PromiseActorLogic<DocumentUploadResponse, {
286
286
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
287
287
  processingType: string;
288
288
  onProgress: (progress: number) => void;
289
- }, xstate0.EventObject>;
289
+ }, xstate276.EventObject>;
290
290
  id: string | undefined;
291
291
  };
292
292
  }>, "src", TSrc>["logic"]>;
293
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
293
+ <TLogic extends xstate276.AnyActorLogic>(src: TLogic, ...[options]: xstate276.ConditionalRequired<[options?: ({
294
294
  id?: never;
295
295
  systemId?: string;
296
- input?: xstate0.InputFrom<TLogic> | undefined;
296
+ input?: xstate276.InputFrom<TLogic> | undefined;
297
297
  syncSnapshot?: boolean;
298
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
298
+ } & { [K in xstate276.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate276.IsNotNever<xstate276.RequiredLogicInput<TLogic>>>): xstate276.ActorRefFromLogic<TLogic>;
299
299
  };
300
300
  input: DocumentCaptureInput;
301
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
301
+ self: xstate276.ActorRef<xstate276.MachineSnapshot<DocumentCaptureContext, {
302
302
  type: "CAPTURE";
303
303
  } | {
304
304
  type: "FILE_SELECTED";
@@ -320,7 +320,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
320
320
  type: "SKIP";
321
321
  } | {
322
322
  type: "CLOSE";
323
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
323
+ }, Record<string, xstate276.AnyActorRef | undefined>, xstate276.StateValue, string, unknown, any, any>, {
324
324
  type: "CAPTURE";
325
325
  } | {
326
326
  type: "FILE_SELECTED";
@@ -342,7 +342,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
342
342
  type: "SKIP";
343
343
  } | {
344
344
  type: "CLOSE";
345
- }, xstate0.AnyEventObject>;
345
+ }, xstate276.AnyEventObject>;
346
346
  }) => {
347
347
  config: {
348
348
  processingType: DocumentType;
@@ -479,7 +479,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
479
479
  } | {
480
480
  type: "CLOSE";
481
481
  };
482
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentCaptureContext, {
482
+ self: xstate276.ActorRef<xstate276.MachineSnapshot<DocumentCaptureContext, {
483
483
  type: "CAPTURE";
484
484
  } | {
485
485
  type: "FILE_SELECTED";
@@ -501,7 +501,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
501
501
  type: "SKIP";
502
502
  } | {
503
503
  type: "CLOSE";
504
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
504
+ }, Record<string, xstate276.AnyActorRef>, xstate276.StateValue, string, unknown, any, any>, {
505
505
  type: "CAPTURE";
506
506
  } | {
507
507
  type: "FILE_SELECTED";
@@ -523,7 +523,7 @@ declare const documentCaptureMachine: xstate0.StateMachine<DocumentCaptureContex
523
523
  type: "SKIP";
524
524
  } | {
525
525
  type: "CLOSE";
526
- }, xstate0.AnyEventObject>;
526
+ }, xstate276.AnyEventObject>;
527
527
  }) => {
528
528
  capturedDocument: CapturedDocument;
529
529
  processingType: DocumentType;
@@ -1,9 +1,9 @@
1
- import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-b4_xvENs.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.esm.js";
3
- import { A as createManager, k as stopCameraStream } from "./src-D3v6I2la.esm.js";
4
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
5
- import { t as api } from "./api-3fZO5bmj.esm.js";
6
- import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
1
+ import { n as eventModuleNames, r as eventScreenNames, u as screenOpened } from "./events-3HzCcoEy.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-4aLwsDOv.esm.js";
3
+ import { A as createManager, k as stopCameraStream } from "./src-BmVrWkLJ.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
5
+ import { t as api } from "./api-C2uzxrpN.esm.js";
6
+ import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
7
7
 
8
8
  //#region src/modules/document-capture/types.ts
9
9
  const PROCESSING_TYPE_MAP = {
@@ -1,10 +1,10 @@
1
- import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
- import "./camera-D7zu0Mls.js";
3
- import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DnrAr9fb.js";
4
- import * as xstate58 from "xstate";
1
+ import { t as Manager } from "./Manager-CXnC-tN_.js";
2
+ import "./camera-DDn9ILon.js";
3
+ import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-BugcSDaO.js";
4
+ import * as xstate212 from "xstate";
5
5
 
6
6
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
7
- declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext, {
7
+ declare const documentUploadMachine: xstate212.StateMachine<DocumentUploadContext, {
8
8
  type: "START";
9
9
  } | {
10
10
  type: "CAPTURE";
@@ -17,52 +17,52 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
17
17
  } | {
18
18
  type: "CLOSE";
19
19
  }, {
20
- [x: string]: xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>> | xstate58.ActorRefFromLogic<xstate58.PromiseActorLogic<void, {
20
+ [x: string]: xstate212.ActorRefFromLogic<xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>> | xstate212.ActorRefFromLogic<xstate212.PromiseActorLogic<void, {
21
21
  imageBase64: string;
22
22
  documentType: string;
23
23
  onProgress: (progress: number) => void;
24
- }, xstate58.EventObject>> | undefined;
25
- }, xstate58.Values<{
24
+ }, xstate212.EventObject>> | undefined;
25
+ }, xstate212.Values<{
26
26
  initCamera: {
27
27
  src: "initCamera";
28
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
28
+ logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
29
29
  id: string | undefined;
30
30
  };
31
31
  uploadDocument: {
32
32
  src: "uploadDocument";
33
- logic: xstate58.PromiseActorLogic<void, {
33
+ logic: xstate212.PromiseActorLogic<void, {
34
34
  imageBase64: string;
35
35
  documentType: string;
36
36
  onProgress: (progress: number) => void;
37
- }, xstate58.EventObject>;
37
+ }, xstate212.EventObject>;
38
38
  id: string | undefined;
39
39
  };
40
- }>, xstate58.Values<{
40
+ }>, xstate212.Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: xstate212.NonReducibleUnknown;
44
+ };
41
45
  setStream: {
42
46
  type: "setStream";
43
- params: xstate58.NonReducibleUnknown;
47
+ params: xstate212.NonReducibleUnknown;
48
+ };
49
+ setImageAndClearError: {
50
+ type: "setImageAndClearError";
51
+ params: xstate212.NonReducibleUnknown;
44
52
  };
45
53
  setProgress: {
46
54
  type: "setProgress";
47
- params: xstate58.NonReducibleUnknown;
55
+ params: xstate212.NonReducibleUnknown;
48
56
  };
49
57
  clearError: {
50
58
  type: "clearError";
51
- params: xstate58.NonReducibleUnknown;
59
+ params: xstate212.NonReducibleUnknown;
52
60
  };
53
61
  stopStream: {
54
62
  type: "stopStream";
55
- params: xstate58.NonReducibleUnknown;
56
- };
57
- setImageAndClearError: {
58
- type: "setImageAndClearError";
59
- params: xstate58.NonReducibleUnknown;
60
- };
61
- setError: {
62
- type: "setError";
63
- params: xstate58.NonReducibleUnknown;
63
+ params: xstate212.NonReducibleUnknown;
64
64
  };
65
- }>, never, never, "error" | "initCamera" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate58.NonReducibleUnknown, xstate58.EventObject, xstate58.MetaObject, {
65
+ }>, never, never, "error" | "idle" | "finished" | "initCamera" | "capturing" | "closed" | "uploading", string, DocumentUploadInput, xstate212.NonReducibleUnknown, xstate212.EventObject, xstate212.MetaObject, {
66
66
  readonly id: "documentUpload";
67
67
  readonly initial: "idle";
68
68
  readonly context: ({
@@ -71,67 +71,67 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
71
71
  spawn: {
72
72
  <TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
73
73
  src: "initCamera";
74
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
74
+ logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
75
75
  id: string | undefined;
76
76
  } extends infer T ? T extends {
77
77
  src: "initCamera";
78
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
78
+ logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
79
79
  id: string | undefined;
80
80
  } ? T extends {
81
81
  src: TSrc;
82
- } ? xstate58.ConditionalRequired<[options?: ({
82
+ } ? xstate212.ConditionalRequired<[options?: ({
83
83
  id?: T["id"] | undefined;
84
84
  systemId?: string;
85
- input?: xstate58.InputFrom<T["logic"]> | undefined;
85
+ input?: xstate212.InputFrom<T["logic"]> | undefined;
86
86
  syncSnapshot?: boolean;
87
- } & { [K in xstate58.RequiredActorOptions<T>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T>>> : never : never : never) | ({
87
+ } & { [K in xstate212.RequiredActorOptions<T>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredActorOptions<T>>> : never : never : never) | ({
88
88
  src: "uploadDocument";
89
- logic: xstate58.PromiseActorLogic<void, {
89
+ logic: xstate212.PromiseActorLogic<void, {
90
90
  imageBase64: string;
91
91
  documentType: string;
92
92
  onProgress: (progress: number) => void;
93
- }, xstate58.EventObject>;
93
+ }, xstate212.EventObject>;
94
94
  id: string | undefined;
95
95
  } extends infer T_1 ? T_1 extends {
96
96
  src: "uploadDocument";
97
- logic: xstate58.PromiseActorLogic<void, {
97
+ logic: xstate212.PromiseActorLogic<void, {
98
98
  imageBase64: string;
99
99
  documentType: string;
100
100
  onProgress: (progress: number) => void;
101
- }, xstate58.EventObject>;
101
+ }, xstate212.EventObject>;
102
102
  id: string | undefined;
103
103
  } ? T_1 extends {
104
104
  src: TSrc;
105
- } ? xstate58.ConditionalRequired<[options?: ({
105
+ } ? xstate212.ConditionalRequired<[options?: ({
106
106
  id?: T_1["id"] | undefined;
107
107
  systemId?: string;
108
- input?: xstate58.InputFrom<T_1["logic"]> | undefined;
108
+ input?: xstate212.InputFrom<T_1["logic"]> | undefined;
109
109
  syncSnapshot?: boolean;
110
- } & { [K_1 in xstate58.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredActorOptions<T_1>>> : never : never : never)): xstate58.ActorRefFromLogic<xstate58.GetConcreteByKey<xstate58.Values<{
110
+ } & { [K_1 in xstate212.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredActorOptions<T_1>>> : never : never : never)): xstate212.ActorRefFromLogic<xstate212.GetConcreteByKey<xstate212.Values<{
111
111
  initCamera: {
112
112
  src: "initCamera";
113
- logic: xstate58.PromiseActorLogic<MediaStream, void, xstate58.EventObject>;
113
+ logic: xstate212.PromiseActorLogic<MediaStream, void, xstate212.EventObject>;
114
114
  id: string | undefined;
115
115
  };
116
116
  uploadDocument: {
117
117
  src: "uploadDocument";
118
- logic: xstate58.PromiseActorLogic<void, {
118
+ logic: xstate212.PromiseActorLogic<void, {
119
119
  imageBase64: string;
120
120
  documentType: string;
121
121
  onProgress: (progress: number) => void;
122
- }, xstate58.EventObject>;
122
+ }, xstate212.EventObject>;
123
123
  id: string | undefined;
124
124
  };
125
125
  }>, "src", TSrc>["logic"]>;
126
- <TLogic extends xstate58.AnyActorLogic>(src: TLogic, ...[options]: xstate58.ConditionalRequired<[options?: ({
126
+ <TLogic extends xstate212.AnyActorLogic>(src: TLogic, ...[options]: xstate212.ConditionalRequired<[options?: ({
127
127
  id?: never;
128
128
  systemId?: string;
129
- input?: xstate58.InputFrom<TLogic> | undefined;
129
+ input?: xstate212.InputFrom<TLogic> | undefined;
130
130
  syncSnapshot?: boolean;
131
- } & { [K in xstate58.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate58.IsNotNever<xstate58.RequiredLogicInput<TLogic>>>): xstate58.ActorRefFromLogic<TLogic>;
131
+ } & { [K in xstate212.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate212.IsNotNever<xstate212.RequiredLogicInput<TLogic>>>): xstate212.ActorRefFromLogic<TLogic>;
132
132
  };
133
133
  input: DocumentUploadInput;
134
- self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
134
+ self: xstate212.ActorRef<xstate212.MachineSnapshot<DocumentUploadContext, {
135
135
  type: "START";
136
136
  } | {
137
137
  type: "CAPTURE";
@@ -143,7 +143,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
143
143
  type: "RETRY";
144
144
  } | {
145
145
  type: "CLOSE";
146
- }, Record<string, xstate58.AnyActorRef | undefined>, xstate58.StateValue, string, unknown, any, any>, {
146
+ }, Record<string, xstate212.AnyActorRef | undefined>, xstate212.StateValue, string, unknown, any, any>, {
147
147
  type: "START";
148
148
  } | {
149
149
  type: "CAPTURE";
@@ -155,7 +155,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
155
155
  type: "RETRY";
156
156
  } | {
157
157
  type: "CLOSE";
158
- }, xstate58.AnyEventObject>;
158
+ }, xstate212.AnyEventObject>;
159
159
  }) => {
160
160
  config: DocumentUploadConfig;
161
161
  stream: undefined;
@@ -225,7 +225,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
225
225
  } | {
226
226
  type: "CLOSE";
227
227
  };
228
- self: xstate58.ActorRef<xstate58.MachineSnapshot<DocumentUploadContext, {
228
+ self: xstate212.ActorRef<xstate212.MachineSnapshot<DocumentUploadContext, {
229
229
  type: "START";
230
230
  } | {
231
231
  type: "CAPTURE";
@@ -237,7 +237,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
237
237
  type: "RETRY";
238
238
  } | {
239
239
  type: "CLOSE";
240
- }, Record<string, xstate58.AnyActorRef>, xstate58.StateValue, string, unknown, any, any>, {
240
+ }, Record<string, xstate212.AnyActorRef>, xstate212.StateValue, string, unknown, any, any>, {
241
241
  type: "START";
242
242
  } | {
243
243
  type: "CAPTURE";
@@ -249,7 +249,7 @@ declare const documentUploadMachine: xstate58.StateMachine<DocumentUploadContext
249
249
  type: "RETRY";
250
250
  } | {
251
251
  type: "CLOSE";
252
- }, xstate58.AnyEventObject>;
252
+ }, xstate212.AnyEventObject>;
253
253
  }) => {
254
254
  imageBase64: string;
255
255
  documentType: string;
@@ -1,8 +1,8 @@
1
- import { t as getBackCameraStream } from "./backCameraStream-B57NWDGu.esm.js";
2
- import { A as createManager, k as stopCameraStream } from "./src-D3v6I2la.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
- import { t as api } from "./api-3fZO5bmj.esm.js";
5
- import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
1
+ import { t as getBackCameraStream } from "./backCameraStream-4aLwsDOv.esm.js";
2
+ import { A as createManager, k as stopCameraStream } from "./src-BmVrWkLJ.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-CcoTezCZ.esm.js";
4
+ import { t as api } from "./api-C2uzxrpN.esm.js";
5
+ import { t as endpoints } from "./endpoints-IAlXA1zN.esm.js";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadServices.ts
8
8
  async function uploadDocument({ imageBase64, documentType, onProgress, signal }) {