@incodetech/core 0.0.0-dev-20260709-e9d0614f → 0.0.0-dev-20260709-36b8e7c1

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 (69) hide show
  1. package/dist/authentication.esm.js +12 -12
  2. package/dist/{authenticationManager-Bfeq_w07.esm.js → authenticationManager-iFiNf_D6.esm.js} +2 -2
  3. package/dist/{authenticationStateMachine-BkWA4Vcm.esm.js → authenticationStateMachine-_-3NW0oX.esm.js} +2 -2
  4. package/dist/{backCameraStream-POavVKz4.esm.js → backCameraStream-uixCSgiq.esm.js} +1 -1
  5. package/dist/{browserSimulation-DFpmweuc.esm.js → browserSimulation-CWJhFPZ2.esm.js} +1216 -153
  6. package/dist/certificate-issuance.d.ts +28 -28
  7. package/dist/consent.d.ts +1 -1
  8. package/dist/{consentManager-IkH3cHQp.d.ts → consentManager-Cg55dDe5.d.ts} +47 -47
  9. package/dist/cpf-ocr.d.ts +1 -1
  10. package/dist/{cpfOcrManager-It-dKOPr.d.ts → cpfOcrManager-egf2L0Et.d.ts} +17 -17
  11. package/dist/{deepsightLoader--uzeMW0e.esm.js → deepsightLoader-Cj2PerlR.esm.js} +5 -5
  12. package/dist/{deepsightService-BsLpJT8o.esm.js → deepsightService-DU9yBWg_.esm.js} +2 -2
  13. package/dist/device.d.ts +1 -9
  14. package/dist/device.esm.js +3 -3
  15. package/dist/document-capture.d.ts +1 -1
  16. package/dist/document-capture.esm.js +4 -4
  17. package/dist/document-upload.d.ts +46 -46
  18. package/dist/document-upload.esm.js +2 -2
  19. package/dist/{documentCaptureManager-Dwup6SOP.esm.js → documentCaptureManager-CDbQZ1jl.esm.js} +1 -1
  20. package/dist/{documentCaptureManager-Do3W64nY.d.ts → documentCaptureManager-Cz7gBQa3.d.ts} +234 -236
  21. package/dist/{documentCaptureStateMachine-BuI5VuAW.esm.js → documentCaptureStateMachine-CM4csLi9.esm.js} +14 -16
  22. package/dist/ekyb.esm.js +6 -6
  23. package/dist/{ekybStateMachine-DHRXWhGA.esm.js → ekybStateMachine-BHf7wsHS.esm.js} +1 -1
  24. package/dist/extensibility.d.ts +8 -8
  25. package/dist/extensibility.esm.js +21 -21
  26. package/dist/face-match.d.ts +1 -1
  27. package/dist/{faceCaptureManagerFactory-Clc6JTUL.esm.js → faceCaptureManagerFactory-Cfaiq169.esm.js} +1 -1
  28. package/dist/{faceCaptureSetup--0RKZXes.esm.js → faceCaptureSetup-DYPPQEON.esm.js} +2 -2
  29. package/dist/{faceMatchManager-BLNrKbeI.d.ts → faceMatchManager-wR-6pJ-t.d.ts} +2 -2
  30. package/dist/fiscal-qr.esm.js +2 -2
  31. package/dist/flow.d.ts +2 -2
  32. package/dist/flow.esm.js +5 -5
  33. package/dist/{flowServices-DDK4bMXx.esm.js → flowServices-CN-qbIDF.esm.js} +1 -1
  34. package/dist/geolocation.esm.js +3 -3
  35. package/dist/{geolocationManager-DCfJ_S4L.esm.js → geolocationManager-Y9FZP1w1.esm.js} +1 -1
  36. package/dist/{geolocationStateMachine-fRW4mvNt.esm.js → geolocationStateMachine-BXpXtbpl.esm.js} +1 -1
  37. package/dist/getBrowser-1yNcfFZR.esm.js +8 -0
  38. package/dist/home.d.ts +10 -10
  39. package/dist/id-ocr.d.ts +1 -1
  40. package/dist/id-verification.d.ts +1 -1
  41. package/dist/id.esm.js +11 -11
  42. package/dist/{idCaptureManager-Dz6au7T1.esm.js → idCaptureManager-DnglfDHb.esm.js} +1 -1
  43. package/dist/{idCaptureStateMachine-COqpgiFu.esm.js → idCaptureStateMachine-Dqhk1l7P.esm.js} +6 -6
  44. package/dist/{idOcrManager-Ddj8Zpn6.d.ts → idOcrManager-CPX5o1j6.d.ts} +52 -52
  45. package/dist/{idVerificationManager-DLeCBgHE.d.ts → idVerificationManager-CVn4mqjE.d.ts} +25 -25
  46. package/dist/identity-reuse.d.ts +1 -1
  47. package/dist/{identityReuseManager-CQ0uu66M.d.ts → identityReuseManager-CAIW177J.d.ts} +31 -31
  48. package/dist/index.esm.js +5 -5
  49. package/dist/mandatory-consent.d.ts +1 -1
  50. package/dist/{mandatoryConsentManager-BvjgzOv_.d.ts → mandatoryConsentManager-CRKGICe7.d.ts} +50 -50
  51. package/dist/{mediaRecorderOptions-BIn657lu.esm.js → mediaRecorderOptions-DuYelylE.esm.js} +1 -1
  52. package/dist/{onDeviceFaceResults-Dt_GP4Ez.esm.js → onDeviceFaceResults-C0lcz7Za.esm.js} +3 -3
  53. package/dist/personhood.esm.js +7 -7
  54. package/dist/{recordingService-AMay1uYQ.esm.js → recordingService-CMaZX7Fs.esm.js} +3 -3
  55. package/dist/selfie.esm.js +12 -12
  56. package/dist/{selfieManager-8oeew8KZ.esm.js → selfieManager-3T3-dsnX.esm.js} +2 -2
  57. package/dist/{selfieStateMachine-xJehn2CW.esm.js → selfieStateMachine-CmH5ZjoB.esm.js} +2 -2
  58. package/dist/session.esm.js +4 -4
  59. package/dist/{sessionInitializer-D_TErCvg.esm.js → sessionInitializer-BK6kw3bD.esm.js} +119 -4
  60. package/dist/{setup-DrcSOE02.esm.js → setup-HplmI6SC.esm.js} +1 -1
  61. package/dist/trust-graph.d.ts +2 -2
  62. package/dist/video-selfie.d.ts +2 -2
  63. package/dist/video-selfie.esm.js +9 -9
  64. package/dist/wasm.esm.js +5 -5
  65. package/dist/workflow.d.ts +105 -105
  66. package/dist/workflow.esm.js +17 -17
  67. package/package.json +3 -3
  68. package/dist/thumbmarkAdapter-CVyiGp0-.esm.js +0 -1194
  69. /package/dist/{platform-BoeUeUrV.esm.js → platform-0Ot-bF_a.esm.js} +0 -0
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-Nf1FHI2l.js";
2
2
  import { t as ActorRefFrom } from "./Actor-CVuNUOJR.js";
3
3
  import { t as CameraStream } from "./camera-BKIKKx_i.js";
4
4
  import { n as PermissionStatus, t as PermissionResult } from "./types-4Zm5rOiY.js";
5
- import * as xstate615 from "xstate";
5
+ import * as xstate1147 from "xstate";
6
6
 
7
7
  //#region src/modules/document-capture/types.d.ts
8
8
  type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
@@ -107,7 +107,7 @@ type DocumentCaptureInput = {
107
107
  };
108
108
  //#endregion
109
109
  //#region src/modules/document-capture/documentCaptureStateMachine.d.ts
110
- declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureContext, {
110
+ declare const documentCaptureMachine: xstate1147.StateMachine<DocumentCaptureContext, {
111
111
  type: "CAPTURE";
112
112
  } | {
113
113
  type: "FILE_SELECTED";
@@ -154,145 +154,145 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
154
154
  } | {
155
155
  type: "CLOSE";
156
156
  }, {
157
- [x: string]: xstate615.ActorRefFromLogic<xstate615.PromiseActorLogic<DocumentUploadResponse, {
157
+ [x: string]: xstate1147.ActorRefFromLogic<xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>> | xstate1147.ActorRefFromLogic<xstate1147.PromiseActorLogic<DocumentUploadResponse, {
158
158
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
159
159
  processingType: string;
160
160
  onProgress: (progress: number) => void;
161
- }, xstate615.EventObject>> | xstate615.ActorRefFromLogic<xstate615.PromiseActorLogic<PermissionResult, {
161
+ }, xstate1147.EventObject>> | xstate1147.ActorRefFromLogic<xstate1147.PromiseActorLogic<PermissionResult, {
162
162
  permissionResult?: PermissionResult;
163
163
  requestMotionPermission: boolean;
164
- }, xstate615.EventObject>> | xstate615.ActorRefFromLogic<xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>> | xstate615.ActorRefFromLogic<xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>> | xstate615.ActorRefFromLogic<xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
164
+ }, xstate1147.EventObject>> | xstate1147.ActorRefFromLogic<xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>> | xstate1147.ActorRefFromLogic<xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
165
165
  processingType: string;
166
- }, xstate615.EventObject>> | undefined;
167
- }, xstate615.Values<{
166
+ }, xstate1147.EventObject>> | undefined;
167
+ }, xstate1147.Values<{
168
168
  uploadDocument: {
169
169
  src: "uploadDocument";
170
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
170
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
171
171
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
172
172
  processingType: string;
173
173
  onProgress: (progress: number) => void;
174
- }, xstate615.EventObject>;
174
+ }, xstate1147.EventObject>;
175
175
  id: string | undefined;
176
176
  };
177
177
  requestPermission: {
178
178
  src: "requestPermission";
179
- logic: xstate615.PromiseActorLogic<PermissionResult, {
179
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
180
180
  permissionResult?: PermissionResult;
181
181
  requestMotionPermission: boolean;
182
- }, xstate615.EventObject>;
183
- id: string | undefined;
184
- };
185
- checkPermission: {
186
- src: "checkPermission";
187
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
182
+ }, xstate1147.EventObject>;
188
183
  id: string | undefined;
189
184
  };
190
185
  initCamera: {
191
186
  src: "initCamera";
192
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
187
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
188
+ id: string | undefined;
189
+ };
190
+ checkPermission: {
191
+ src: "checkPermission";
192
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
193
193
  id: string | undefined;
194
194
  };
195
195
  finalizeDocumentRequest: {
196
196
  src: "finalizeDocumentRequest";
197
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
197
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
198
198
  processingType: string;
199
- }, xstate615.EventObject>;
199
+ }, xstate1147.EventObject>;
200
200
  id: string | undefined;
201
201
  };
202
- }>, xstate615.Values<{
202
+ }>, xstate1147.Values<{
203
203
  setStream: {
204
204
  type: "setStream";
205
- params: xstate615.NonReducibleUnknown;
205
+ params: xstate1147.NonReducibleUnknown;
206
+ };
207
+ setProgress: {
208
+ type: "setProgress";
209
+ params: xstate1147.NonReducibleUnknown;
210
+ };
211
+ clearError: {
212
+ type: "clearError";
213
+ params: xstate1147.NonReducibleUnknown;
214
+ };
215
+ stopStream: {
216
+ type: "stopStream";
217
+ params: xstate1147.NonReducibleUnknown;
206
218
  };
207
219
  setCapturedDocument: {
208
220
  type: "setCapturedDocument";
209
- params: xstate615.NonReducibleUnknown;
221
+ params: xstate1147.NonReducibleUnknown;
210
222
  };
211
223
  setFileTooLargeError: {
212
224
  type: "setFileTooLargeError";
213
- params: xstate615.NonReducibleUnknown;
214
- };
215
- setProgress: {
216
- type: "setProgress";
217
- params: xstate615.NonReducibleUnknown;
225
+ params: xstate1147.NonReducibleUnknown;
218
226
  };
219
227
  setUploadError: {
220
228
  type: "setUploadError";
221
- params: xstate615.NonReducibleUnknown;
229
+ params: xstate1147.NonReducibleUnknown;
222
230
  };
223
231
  setFinalizeError: {
224
232
  type: "setFinalizeError";
225
- params: xstate615.NonReducibleUnknown;
233
+ params: xstate1147.NonReducibleUnknown;
226
234
  };
227
235
  decrementAttemptsRemaining: {
228
236
  type: "decrementAttemptsRemaining";
229
- params: xstate615.NonReducibleUnknown;
237
+ params: xstate1147.NonReducibleUnknown;
230
238
  };
231
239
  setCaptureMethodFile: {
232
240
  type: "setCaptureMethodFile";
233
- params: xstate615.NonReducibleUnknown;
241
+ params: xstate1147.NonReducibleUnknown;
234
242
  };
235
243
  setCaptureMethodCamera: {
236
244
  type: "setCaptureMethodCamera";
237
- params: xstate615.NonReducibleUnknown;
245
+ params: xstate1147.NonReducibleUnknown;
238
246
  };
239
247
  setCaptureMethodGallery: {
240
248
  type: "setCaptureMethodGallery";
241
- params: xstate615.NonReducibleUnknown;
249
+ params: xstate1147.NonReducibleUnknown;
242
250
  };
243
251
  clearCaptureMethod: {
244
252
  type: "clearCaptureMethod";
245
- params: xstate615.NonReducibleUnknown;
253
+ params: xstate1147.NonReducibleUnknown;
246
254
  };
247
255
  openMethodSelection: {
248
256
  type: "openMethodSelection";
249
- params: xstate615.NonReducibleUnknown;
257
+ params: xstate1147.NonReducibleUnknown;
250
258
  };
251
259
  closeMethodSelection: {
252
260
  type: "closeMethodSelection";
253
- params: xstate615.NonReducibleUnknown;
261
+ params: xstate1147.NonReducibleUnknown;
254
262
  };
255
263
  openHelp: {
256
264
  type: "openHelp";
257
- params: xstate615.NonReducibleUnknown;
265
+ params: xstate1147.NonReducibleUnknown;
258
266
  };
259
267
  closeHelp: {
260
268
  type: "closeHelp";
261
- params: xstate615.NonReducibleUnknown;
269
+ params: xstate1147.NonReducibleUnknown;
262
270
  };
263
271
  clearCapturedDocument: {
264
272
  type: "clearCapturedDocument";
265
- params: xstate615.NonReducibleUnknown;
273
+ params: xstate1147.NonReducibleUnknown;
266
274
  };
267
275
  resetPageNumber: {
268
276
  type: "resetPageNumber";
269
- params: xstate615.NonReducibleUnknown;
277
+ params: xstate1147.NonReducibleUnknown;
270
278
  };
271
279
  clearCapturedDocumentGalleryRetake: {
272
280
  type: "clearCapturedDocumentGalleryRetake";
273
- params: xstate615.NonReducibleUnknown;
281
+ params: xstate1147.NonReducibleUnknown;
274
282
  };
275
283
  setNextPageType: {
276
284
  type: "setNextPageType";
277
- params: xstate615.NonReducibleUnknown;
285
+ params: xstate1147.NonReducibleUnknown;
278
286
  };
279
287
  clearForNextPage: {
280
288
  type: "clearForNextPage";
281
- params: xstate615.NonReducibleUnknown;
282
- };
283
- clearError: {
284
- type: "clearError";
285
- params: xstate615.NonReducibleUnknown;
289
+ params: xstate1147.NonReducibleUnknown;
286
290
  };
287
291
  resetProgress: {
288
292
  type: "resetProgress";
289
- params: xstate615.NonReducibleUnknown;
290
- };
291
- stopStream: {
292
- type: "stopStream";
293
- params: xstate615.NonReducibleUnknown;
293
+ params: xstate1147.NonReducibleUnknown;
294
294
  };
295
- }>, xstate615.Values<{
295
+ }>, xstate1147.Values<{
296
296
  allowSkip: {
297
297
  type: "allowSkip";
298
298
  params: unknown;
@@ -353,153 +353,153 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
353
353
  type: "fileSizeOkForNonGallery";
354
354
  params: unknown;
355
355
  };
356
- }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "nextPage" | "finalizing" | {
356
+ }>, never, "uploading" | "closed" | "success" | "finished" | "initCamera" | "capturing" | "finalizing" | "tutorial" | "preview" | "failure" | "nextPage" | {
357
357
  permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
358
- }, string, DocumentCaptureInput, xstate615.NonReducibleUnknown, xstate615.EventObject, xstate615.MetaObject, {
358
+ }, string, DocumentCaptureInput, xstate1147.NonReducibleUnknown, xstate1147.EventObject, xstate1147.MetaObject, {
359
359
  readonly id: "documentCapture";
360
360
  readonly initial: "tutorial";
361
361
  readonly context: ({
362
362
  input
363
363
  }: {
364
364
  spawn: {
365
- <TSrc extends "uploadDocument" | "requestPermission" | "checkPermission" | "initCamera" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
365
+ <TSrc extends "uploadDocument" | "requestPermission" | "initCamera" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
366
366
  src: "uploadDocument";
367
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
367
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
368
368
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
369
369
  processingType: string;
370
370
  onProgress: (progress: number) => void;
371
- }, xstate615.EventObject>;
371
+ }, xstate1147.EventObject>;
372
372
  id: string | undefined;
373
373
  } extends infer T ? T extends {
374
374
  src: "uploadDocument";
375
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
375
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
376
376
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
377
377
  processingType: string;
378
378
  onProgress: (progress: number) => void;
379
- }, xstate615.EventObject>;
379
+ }, xstate1147.EventObject>;
380
380
  id: string | undefined;
381
381
  } ? T extends {
382
382
  src: TSrc;
383
- } ? xstate615.ConditionalRequired<[options?: ({
383
+ } ? xstate1147.ConditionalRequired<[options?: ({
384
384
  id?: T["id"] | undefined;
385
385
  systemId?: string;
386
- input?: xstate615.InputFrom<T["logic"]> | undefined;
386
+ input?: xstate1147.InputFrom<T["logic"]> | undefined;
387
387
  syncSnapshot?: boolean;
388
- } & { [K in xstate615.RequiredActorOptions<T>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredActorOptions<T>>> : never : never : never) | ({
388
+ } & { [K in xstate1147.RequiredActorOptions<T>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredActorOptions<T>>> : never : never : never) | ({
389
389
  src: "requestPermission";
390
- logic: xstate615.PromiseActorLogic<PermissionResult, {
390
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
391
391
  permissionResult?: PermissionResult;
392
392
  requestMotionPermission: boolean;
393
- }, xstate615.EventObject>;
393
+ }, xstate1147.EventObject>;
394
394
  id: string | undefined;
395
395
  } extends infer T_1 ? T_1 extends {
396
396
  src: "requestPermission";
397
- logic: xstate615.PromiseActorLogic<PermissionResult, {
397
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
398
398
  permissionResult?: PermissionResult;
399
399
  requestMotionPermission: boolean;
400
- }, xstate615.EventObject>;
400
+ }, xstate1147.EventObject>;
401
401
  id: string | undefined;
402
402
  } ? T_1 extends {
403
403
  src: TSrc;
404
- } ? xstate615.ConditionalRequired<[options?: ({
404
+ } ? xstate1147.ConditionalRequired<[options?: ({
405
405
  id?: T_1["id"] | undefined;
406
406
  systemId?: string;
407
- input?: xstate615.InputFrom<T_1["logic"]> | undefined;
407
+ input?: xstate1147.InputFrom<T_1["logic"]> | undefined;
408
408
  syncSnapshot?: boolean;
409
- } & { [K_1 in xstate615.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredActorOptions<T_1>>> : never : never : never) | ({
410
- src: "checkPermission";
411
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
409
+ } & { [K_1 in xstate1147.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredActorOptions<T_1>>> : never : never : never) | ({
410
+ src: "initCamera";
411
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
412
412
  id: string | undefined;
413
413
  } extends infer T_2 ? T_2 extends {
414
- src: "checkPermission";
415
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
414
+ src: "initCamera";
415
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
416
416
  id: string | undefined;
417
417
  } ? T_2 extends {
418
418
  src: TSrc;
419
- } ? xstate615.ConditionalRequired<[options?: ({
419
+ } ? xstate1147.ConditionalRequired<[options?: ({
420
420
  id?: T_2["id"] | undefined;
421
421
  systemId?: string;
422
- input?: xstate615.InputFrom<T_2["logic"]> | undefined;
422
+ input?: xstate1147.InputFrom<T_2["logic"]> | undefined;
423
423
  syncSnapshot?: boolean;
424
- } & { [K_2 in xstate615.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredActorOptions<T_2>>> : never : never : never) | ({
425
- src: "initCamera";
426
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
424
+ } & { [K_2 in xstate1147.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredActorOptions<T_2>>> : never : never : never) | ({
425
+ src: "checkPermission";
426
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
427
427
  id: string | undefined;
428
428
  } extends infer T_3 ? T_3 extends {
429
- src: "initCamera";
430
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
429
+ src: "checkPermission";
430
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
431
431
  id: string | undefined;
432
432
  } ? T_3 extends {
433
433
  src: TSrc;
434
- } ? xstate615.ConditionalRequired<[options?: ({
434
+ } ? xstate1147.ConditionalRequired<[options?: ({
435
435
  id?: T_3["id"] | undefined;
436
436
  systemId?: string;
437
- input?: xstate615.InputFrom<T_3["logic"]> | undefined;
437
+ input?: xstate1147.InputFrom<T_3["logic"]> | undefined;
438
438
  syncSnapshot?: boolean;
439
- } & { [K_3 in xstate615.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredActorOptions<T_3>>> : never : never : never) | ({
439
+ } & { [K_3 in xstate1147.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredActorOptions<T_3>>> : never : never : never) | ({
440
440
  src: "finalizeDocumentRequest";
441
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
441
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
442
442
  processingType: string;
443
- }, xstate615.EventObject>;
443
+ }, xstate1147.EventObject>;
444
444
  id: string | undefined;
445
445
  } extends infer T_4 ? T_4 extends {
446
446
  src: "finalizeDocumentRequest";
447
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
447
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
448
448
  processingType: string;
449
- }, xstate615.EventObject>;
449
+ }, xstate1147.EventObject>;
450
450
  id: string | undefined;
451
451
  } ? T_4 extends {
452
452
  src: TSrc;
453
- } ? xstate615.ConditionalRequired<[options?: ({
453
+ } ? xstate1147.ConditionalRequired<[options?: ({
454
454
  id?: T_4["id"] | undefined;
455
455
  systemId?: string;
456
- input?: xstate615.InputFrom<T_4["logic"]> | undefined;
456
+ input?: xstate1147.InputFrom<T_4["logic"]> | undefined;
457
457
  syncSnapshot?: boolean;
458
- } & { [K_4 in xstate615.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredActorOptions<T_4>>> : never : never : never)): xstate615.ActorRefFromLogic<xstate615.GetConcreteByKey<xstate615.Values<{
458
+ } & { [K_4 in xstate1147.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredActorOptions<T_4>>> : never : never : never)): xstate1147.ActorRefFromLogic<xstate1147.GetConcreteByKey<xstate1147.Values<{
459
459
  uploadDocument: {
460
460
  src: "uploadDocument";
461
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
461
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
462
462
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
463
463
  processingType: string;
464
464
  onProgress: (progress: number) => void;
465
- }, xstate615.EventObject>;
465
+ }, xstate1147.EventObject>;
466
466
  id: string | undefined;
467
467
  };
468
468
  requestPermission: {
469
469
  src: "requestPermission";
470
- logic: xstate615.PromiseActorLogic<PermissionResult, {
470
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
471
471
  permissionResult?: PermissionResult;
472
472
  requestMotionPermission: boolean;
473
- }, xstate615.EventObject>;
474
- id: string | undefined;
475
- };
476
- checkPermission: {
477
- src: "checkPermission";
478
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
473
+ }, xstate1147.EventObject>;
479
474
  id: string | undefined;
480
475
  };
481
476
  initCamera: {
482
477
  src: "initCamera";
483
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
478
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
479
+ id: string | undefined;
480
+ };
481
+ checkPermission: {
482
+ src: "checkPermission";
483
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
484
484
  id: string | undefined;
485
485
  };
486
486
  finalizeDocumentRequest: {
487
487
  src: "finalizeDocumentRequest";
488
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
488
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
489
489
  processingType: string;
490
- }, xstate615.EventObject>;
490
+ }, xstate1147.EventObject>;
491
491
  id: string | undefined;
492
492
  };
493
493
  }>, "src", TSrc>["logic"]>;
494
- <TLogic extends xstate615.AnyActorLogic>(src: TLogic, ...[options]: xstate615.ConditionalRequired<[options?: ({
494
+ <TLogic extends xstate1147.AnyActorLogic>(src: TLogic, ...[options]: xstate1147.ConditionalRequired<[options?: ({
495
495
  id?: never;
496
496
  systemId?: string;
497
- input?: xstate615.InputFrom<TLogic> | undefined;
497
+ input?: xstate1147.InputFrom<TLogic> | undefined;
498
498
  syncSnapshot?: boolean;
499
- } & { [K in xstate615.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate615.IsNotNever<xstate615.RequiredLogicInput<TLogic>>>): xstate615.ActorRefFromLogic<TLogic>;
499
+ } & { [K in xstate1147.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1147.IsNotNever<xstate1147.RequiredLogicInput<TLogic>>>): xstate1147.ActorRefFromLogic<TLogic>;
500
500
  };
501
501
  input: DocumentCaptureInput;
502
- self: xstate615.ActorRef<xstate615.MachineSnapshot<DocumentCaptureContext, {
502
+ self: xstate1147.ActorRef<xstate1147.MachineSnapshot<DocumentCaptureContext, {
503
503
  type: "CAPTURE";
504
504
  } | {
505
505
  type: "FILE_SELECTED";
@@ -545,7 +545,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
545
545
  type: "BACK";
546
546
  } | {
547
547
  type: "CLOSE";
548
- }, Record<string, xstate615.AnyActorRef | undefined>, xstate615.StateValue, string, unknown, any, any>, {
548
+ }, Record<string, xstate1147.AnyActorRef | undefined>, xstate1147.StateValue, string, unknown, any, any>, {
549
549
  type: "CAPTURE";
550
550
  } | {
551
551
  type: "FILE_SELECTED";
@@ -591,7 +591,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
591
591
  type: "BACK";
592
592
  } | {
593
593
  type: "CLOSE";
594
- }, xstate615.AnyEventObject>;
594
+ }, xstate1147.AnyEventObject>;
595
595
  }) => {
596
596
  config: {
597
597
  processingType: DocumentType;
@@ -669,7 +669,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
669
669
  readonly onDone: readonly [{
670
670
  readonly target: "#documentCapture.initCamera";
671
671
  readonly guard: "isCameraPermissionGranted";
672
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
672
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
673
673
  type: "CAPTURE";
674
674
  } | {
675
675
  type: "FILE_SELECTED";
@@ -715,46 +715,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
715
715
  type: "BACK";
716
716
  } | {
717
717
  type: "CLOSE";
718
- }, undefined, xstate615.Values<{
718
+ }, undefined, xstate1147.Values<{
719
719
  uploadDocument: {
720
720
  src: "uploadDocument";
721
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
721
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
722
722
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
723
723
  processingType: string;
724
724
  onProgress: (progress: number) => void;
725
- }, xstate615.EventObject>;
725
+ }, xstate1147.EventObject>;
726
726
  id: string | undefined;
727
727
  };
728
728
  requestPermission: {
729
729
  src: "requestPermission";
730
- logic: xstate615.PromiseActorLogic<PermissionResult, {
730
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
731
731
  permissionResult?: PermissionResult;
732
732
  requestMotionPermission: boolean;
733
- }, xstate615.EventObject>;
734
- id: string | undefined;
735
- };
736
- checkPermission: {
737
- src: "checkPermission";
738
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
733
+ }, xstate1147.EventObject>;
739
734
  id: string | undefined;
740
735
  };
741
736
  initCamera: {
742
737
  src: "initCamera";
743
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
738
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
739
+ id: string | undefined;
740
+ };
741
+ checkPermission: {
742
+ src: "checkPermission";
743
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
744
744
  id: string | undefined;
745
745
  };
746
746
  finalizeDocumentRequest: {
747
747
  src: "finalizeDocumentRequest";
748
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
748
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
749
749
  processingType: string;
750
- }, xstate615.EventObject>;
750
+ }, xstate1147.EventObject>;
751
751
  id: string | undefined;
752
752
  };
753
753
  }>, never, never, never, never>;
754
754
  }, {
755
755
  readonly target: "denied";
756
756
  readonly guard: "isCameraPermissionDenied";
757
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
757
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
758
758
  type: "CAPTURE";
759
759
  } | {
760
760
  type: "FILE_SELECTED";
@@ -800,45 +800,45 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
800
800
  type: "BACK";
801
801
  } | {
802
802
  type: "CLOSE";
803
- }, undefined, xstate615.Values<{
803
+ }, undefined, xstate1147.Values<{
804
804
  uploadDocument: {
805
805
  src: "uploadDocument";
806
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
806
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
807
807
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
808
808
  processingType: string;
809
809
  onProgress: (progress: number) => void;
810
- }, xstate615.EventObject>;
810
+ }, xstate1147.EventObject>;
811
811
  id: string | undefined;
812
812
  };
813
813
  requestPermission: {
814
814
  src: "requestPermission";
815
- logic: xstate615.PromiseActorLogic<PermissionResult, {
815
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
816
816
  permissionResult?: PermissionResult;
817
817
  requestMotionPermission: boolean;
818
- }, xstate615.EventObject>;
819
- id: string | undefined;
820
- };
821
- checkPermission: {
822
- src: "checkPermission";
823
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
818
+ }, xstate1147.EventObject>;
824
819
  id: string | undefined;
825
820
  };
826
821
  initCamera: {
827
822
  src: "initCamera";
828
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
823
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
824
+ id: string | undefined;
825
+ };
826
+ checkPermission: {
827
+ src: "checkPermission";
828
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
829
829
  id: string | undefined;
830
830
  };
831
831
  finalizeDocumentRequest: {
832
832
  src: "finalizeDocumentRequest";
833
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
833
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
834
834
  processingType: string;
835
- }, xstate615.EventObject>;
835
+ }, xstate1147.EventObject>;
836
836
  id: string | undefined;
837
837
  };
838
838
  }>, never, never, never, never>;
839
839
  }, {
840
840
  readonly target: "waitingForUser";
841
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
841
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
842
842
  type: "CAPTURE";
843
843
  } | {
844
844
  type: "FILE_SELECTED";
@@ -884,46 +884,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
884
884
  type: "BACK";
885
885
  } | {
886
886
  type: "CLOSE";
887
- }, undefined, xstate615.Values<{
887
+ }, undefined, xstate1147.Values<{
888
888
  uploadDocument: {
889
889
  src: "uploadDocument";
890
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
890
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
891
891
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
892
892
  processingType: string;
893
893
  onProgress: (progress: number) => void;
894
- }, xstate615.EventObject>;
894
+ }, xstate1147.EventObject>;
895
895
  id: string | undefined;
896
896
  };
897
897
  requestPermission: {
898
898
  src: "requestPermission";
899
- logic: xstate615.PromiseActorLogic<PermissionResult, {
899
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
900
900
  permissionResult?: PermissionResult;
901
901
  requestMotionPermission: boolean;
902
- }, xstate615.EventObject>;
903
- id: string | undefined;
904
- };
905
- checkPermission: {
906
- src: "checkPermission";
907
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
902
+ }, xstate1147.EventObject>;
908
903
  id: string | undefined;
909
904
  };
910
905
  initCamera: {
911
906
  src: "initCamera";
912
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
907
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
908
+ id: string | undefined;
909
+ };
910
+ checkPermission: {
911
+ src: "checkPermission";
912
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
913
913
  id: string | undefined;
914
914
  };
915
915
  finalizeDocumentRequest: {
916
916
  src: "finalizeDocumentRequest";
917
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
917
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
918
918
  processingType: string;
919
- }, xstate615.EventObject>;
919
+ }, xstate1147.EventObject>;
920
920
  id: string | undefined;
921
921
  };
922
922
  }>, never, never, never, never>;
923
923
  }];
924
924
  readonly onError: {
925
925
  readonly target: "waitingForUser";
926
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.ErrorActorEvent<unknown, string>, {
926
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.ErrorActorEvent<unknown, string>, {
927
927
  type: "CAPTURE";
928
928
  } | {
929
929
  type: "FILE_SELECTED";
@@ -969,39 +969,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
969
969
  type: "BACK";
970
970
  } | {
971
971
  type: "CLOSE";
972
- }, undefined, xstate615.Values<{
972
+ }, undefined, xstate1147.Values<{
973
973
  uploadDocument: {
974
974
  src: "uploadDocument";
975
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
975
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
976
976
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
977
977
  processingType: string;
978
978
  onProgress: (progress: number) => void;
979
- }, xstate615.EventObject>;
979
+ }, xstate1147.EventObject>;
980
980
  id: string | undefined;
981
981
  };
982
982
  requestPermission: {
983
983
  src: "requestPermission";
984
- logic: xstate615.PromiseActorLogic<PermissionResult, {
984
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
985
985
  permissionResult?: PermissionResult;
986
986
  requestMotionPermission: boolean;
987
- }, xstate615.EventObject>;
988
- id: string | undefined;
989
- };
990
- checkPermission: {
991
- src: "checkPermission";
992
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
987
+ }, xstate1147.EventObject>;
993
988
  id: string | undefined;
994
989
  };
995
990
  initCamera: {
996
991
  src: "initCamera";
997
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
992
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
993
+ id: string | undefined;
994
+ };
995
+ checkPermission: {
996
+ src: "checkPermission";
997
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
998
998
  id: string | undefined;
999
999
  };
1000
1000
  finalizeDocumentRequest: {
1001
1001
  src: "finalizeDocumentRequest";
1002
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
1002
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
1003
1003
  processingType: string;
1004
- }, xstate615.EventObject>;
1004
+ }, xstate1147.EventObject>;
1005
1005
  id: string | undefined;
1006
1006
  };
1007
1007
  }>, never, never, never, never>;
@@ -1079,7 +1079,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1079
1079
  } | {
1080
1080
  type: "CLOSE";
1081
1081
  };
1082
- self: xstate615.ActorRef<xstate615.MachineSnapshot<DocumentCaptureContext, {
1082
+ self: xstate1147.ActorRef<xstate1147.MachineSnapshot<DocumentCaptureContext, {
1083
1083
  type: "CAPTURE";
1084
1084
  } | {
1085
1085
  type: "FILE_SELECTED";
@@ -1125,7 +1125,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1125
1125
  type: "BACK";
1126
1126
  } | {
1127
1127
  type: "CLOSE";
1128
- }, Record<string, xstate615.AnyActorRef>, xstate615.StateValue, string, unknown, any, any>, {
1128
+ }, Record<string, xstate1147.AnyActorRef>, xstate1147.StateValue, string, unknown, any, any>, {
1129
1129
  type: "CAPTURE";
1130
1130
  } | {
1131
1131
  type: "FILE_SELECTED";
@@ -1171,7 +1171,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1171
1171
  type: "BACK";
1172
1172
  } | {
1173
1173
  type: "CLOSE";
1174
- }, xstate615.AnyEventObject>;
1174
+ }, xstate1147.AnyEventObject>;
1175
1175
  }) => {
1176
1176
  permissionResult: PermissionResult | undefined;
1177
1177
  requestMotionPermission: false;
@@ -1179,7 +1179,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1179
1179
  readonly onDone: readonly [{
1180
1180
  readonly target: "#documentCapture.initCamera";
1181
1181
  readonly guard: "isCameraPermissionGranted";
1182
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
1182
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
1183
1183
  type: "CAPTURE";
1184
1184
  } | {
1185
1185
  type: "FILE_SELECTED";
@@ -1225,46 +1225,46 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1225
1225
  type: "BACK";
1226
1226
  } | {
1227
1227
  type: "CLOSE";
1228
- }, undefined, xstate615.Values<{
1228
+ }, undefined, xstate1147.Values<{
1229
1229
  uploadDocument: {
1230
1230
  src: "uploadDocument";
1231
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
1231
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
1232
1232
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1233
1233
  processingType: string;
1234
1234
  onProgress: (progress: number) => void;
1235
- }, xstate615.EventObject>;
1235
+ }, xstate1147.EventObject>;
1236
1236
  id: string | undefined;
1237
1237
  };
1238
1238
  requestPermission: {
1239
1239
  src: "requestPermission";
1240
- logic: xstate615.PromiseActorLogic<PermissionResult, {
1240
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
1241
1241
  permissionResult?: PermissionResult;
1242
1242
  requestMotionPermission: boolean;
1243
- }, xstate615.EventObject>;
1244
- id: string | undefined;
1245
- };
1246
- checkPermission: {
1247
- src: "checkPermission";
1248
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
1243
+ }, xstate1147.EventObject>;
1249
1244
  id: string | undefined;
1250
1245
  };
1251
1246
  initCamera: {
1252
1247
  src: "initCamera";
1253
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
1248
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
1249
+ id: string | undefined;
1250
+ };
1251
+ checkPermission: {
1252
+ src: "checkPermission";
1253
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
1254
1254
  id: string | undefined;
1255
1255
  };
1256
1256
  finalizeDocumentRequest: {
1257
1257
  src: "finalizeDocumentRequest";
1258
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
1258
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
1259
1259
  processingType: string;
1260
- }, xstate615.EventObject>;
1260
+ }, xstate1147.EventObject>;
1261
1261
  id: string | undefined;
1262
1262
  };
1263
1263
  }>, never, never, never, never>;
1264
1264
  }, {
1265
1265
  readonly target: "denied";
1266
1266
  readonly guard: "isCameraPermissionDenied";
1267
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
1267
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
1268
1268
  type: "CAPTURE";
1269
1269
  } | {
1270
1270
  type: "FILE_SELECTED";
@@ -1310,45 +1310,45 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1310
1310
  type: "BACK";
1311
1311
  } | {
1312
1312
  type: "CLOSE";
1313
- }, undefined, xstate615.Values<{
1313
+ }, undefined, xstate1147.Values<{
1314
1314
  uploadDocument: {
1315
1315
  src: "uploadDocument";
1316
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
1316
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
1317
1317
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1318
1318
  processingType: string;
1319
1319
  onProgress: (progress: number) => void;
1320
- }, xstate615.EventObject>;
1320
+ }, xstate1147.EventObject>;
1321
1321
  id: string | undefined;
1322
1322
  };
1323
1323
  requestPermission: {
1324
1324
  src: "requestPermission";
1325
- logic: xstate615.PromiseActorLogic<PermissionResult, {
1325
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
1326
1326
  permissionResult?: PermissionResult;
1327
1327
  requestMotionPermission: boolean;
1328
- }, xstate615.EventObject>;
1329
- id: string | undefined;
1330
- };
1331
- checkPermission: {
1332
- src: "checkPermission";
1333
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
1328
+ }, xstate1147.EventObject>;
1334
1329
  id: string | undefined;
1335
1330
  };
1336
1331
  initCamera: {
1337
1332
  src: "initCamera";
1338
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
1333
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
1334
+ id: string | undefined;
1335
+ };
1336
+ checkPermission: {
1337
+ src: "checkPermission";
1338
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
1339
1339
  id: string | undefined;
1340
1340
  };
1341
1341
  finalizeDocumentRequest: {
1342
1342
  src: "finalizeDocumentRequest";
1343
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
1343
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
1344
1344
  processingType: string;
1345
- }, xstate615.EventObject>;
1345
+ }, xstate1147.EventObject>;
1346
1346
  id: string | undefined;
1347
1347
  };
1348
1348
  }>, never, never, never, never>;
1349
1349
  }, {
1350
1350
  readonly target: "waitingForUser";
1351
- readonly actions: xstate615.ActionFunction<DocumentCaptureContext, xstate615.DoneActorEvent<PermissionResult, string>, {
1351
+ readonly actions: xstate1147.ActionFunction<DocumentCaptureContext, xstate1147.DoneActorEvent<PermissionResult, string>, {
1352
1352
  type: "CAPTURE";
1353
1353
  } | {
1354
1354
  type: "FILE_SELECTED";
@@ -1394,39 +1394,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1394
1394
  type: "BACK";
1395
1395
  } | {
1396
1396
  type: "CLOSE";
1397
- }, undefined, xstate615.Values<{
1397
+ }, undefined, xstate1147.Values<{
1398
1398
  uploadDocument: {
1399
1399
  src: "uploadDocument";
1400
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
1400
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
1401
1401
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1402
1402
  processingType: string;
1403
1403
  onProgress: (progress: number) => void;
1404
- }, xstate615.EventObject>;
1404
+ }, xstate1147.EventObject>;
1405
1405
  id: string | undefined;
1406
1406
  };
1407
1407
  requestPermission: {
1408
1408
  src: "requestPermission";
1409
- logic: xstate615.PromiseActorLogic<PermissionResult, {
1409
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
1410
1410
  permissionResult?: PermissionResult;
1411
1411
  requestMotionPermission: boolean;
1412
- }, xstate615.EventObject>;
1413
- id: string | undefined;
1414
- };
1415
- checkPermission: {
1416
- src: "checkPermission";
1417
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
1412
+ }, xstate1147.EventObject>;
1418
1413
  id: string | undefined;
1419
1414
  };
1420
1415
  initCamera: {
1421
1416
  src: "initCamera";
1422
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
1417
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
1418
+ id: string | undefined;
1419
+ };
1420
+ checkPermission: {
1421
+ src: "checkPermission";
1422
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
1423
1423
  id: string | undefined;
1424
1424
  };
1425
1425
  finalizeDocumentRequest: {
1426
1426
  src: "finalizeDocumentRequest";
1427
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
1427
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
1428
1428
  processingType: string;
1429
- }, xstate615.EventObject>;
1429
+ }, xstate1147.EventObject>;
1430
1430
  id: string | undefined;
1431
1431
  };
1432
1432
  }>, never, never, never, never>;
@@ -1437,7 +1437,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1437
1437
  };
1438
1438
  };
1439
1439
  readonly denied: {
1440
- readonly entry: xstate615.ActionFunction<DocumentCaptureContext, {
1440
+ readonly entry: xstate1147.ActionFunction<DocumentCaptureContext, {
1441
1441
  type: "CAPTURE";
1442
1442
  } | {
1443
1443
  type: "FILE_SELECTED";
@@ -1529,39 +1529,39 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1529
1529
  type: "BACK";
1530
1530
  } | {
1531
1531
  type: "CLOSE";
1532
- }, undefined, xstate615.Values<{
1532
+ }, undefined, xstate1147.Values<{
1533
1533
  uploadDocument: {
1534
1534
  src: "uploadDocument";
1535
- logic: xstate615.PromiseActorLogic<DocumentUploadResponse, {
1535
+ logic: xstate1147.PromiseActorLogic<DocumentUploadResponse, {
1536
1536
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
1537
1537
  processingType: string;
1538
1538
  onProgress: (progress: number) => void;
1539
- }, xstate615.EventObject>;
1539
+ }, xstate1147.EventObject>;
1540
1540
  id: string | undefined;
1541
1541
  };
1542
1542
  requestPermission: {
1543
1543
  src: "requestPermission";
1544
- logic: xstate615.PromiseActorLogic<PermissionResult, {
1544
+ logic: xstate1147.PromiseActorLogic<PermissionResult, {
1545
1545
  permissionResult?: PermissionResult;
1546
1546
  requestMotionPermission: boolean;
1547
- }, xstate615.EventObject>;
1548
- id: string | undefined;
1549
- };
1550
- checkPermission: {
1551
- src: "checkPermission";
1552
- logic: xstate615.PromiseActorLogic<PermissionResult, void, xstate615.EventObject>;
1547
+ }, xstate1147.EventObject>;
1553
1548
  id: string | undefined;
1554
1549
  };
1555
1550
  initCamera: {
1556
1551
  src: "initCamera";
1557
- logic: xstate615.PromiseActorLogic<MediaStream, void, xstate615.EventObject>;
1552
+ logic: xstate1147.PromiseActorLogic<MediaStream, void, xstate1147.EventObject>;
1553
+ id: string | undefined;
1554
+ };
1555
+ checkPermission: {
1556
+ src: "checkPermission";
1557
+ logic: xstate1147.PromiseActorLogic<PermissionResult, void, xstate1147.EventObject>;
1558
1558
  id: string | undefined;
1559
1559
  };
1560
1560
  finalizeDocumentRequest: {
1561
1561
  src: "finalizeDocumentRequest";
1562
- logic: xstate615.PromiseActorLogic<FinalizeDocumentResponse, {
1562
+ logic: xstate1147.PromiseActorLogic<FinalizeDocumentResponse, {
1563
1563
  processingType: string;
1564
- }, xstate615.EventObject>;
1564
+ }, xstate1147.EventObject>;
1565
1565
  id: string | undefined;
1566
1566
  };
1567
1567
  }>, never, never, never, never>;
@@ -1699,7 +1699,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1699
1699
  } | {
1700
1700
  type: "CLOSE";
1701
1701
  };
1702
- self: xstate615.ActorRef<xstate615.MachineSnapshot<DocumentCaptureContext, {
1702
+ self: xstate1147.ActorRef<xstate1147.MachineSnapshot<DocumentCaptureContext, {
1703
1703
  type: "CAPTURE";
1704
1704
  } | {
1705
1705
  type: "FILE_SELECTED";
@@ -1745,7 +1745,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1745
1745
  type: "BACK";
1746
1746
  } | {
1747
1747
  type: "CLOSE";
1748
- }, Record<string, xstate615.AnyActorRef>, xstate615.StateValue, string, unknown, any, any>, {
1748
+ }, Record<string, xstate1147.AnyActorRef>, xstate1147.StateValue, string, unknown, any, any>, {
1749
1749
  type: "CAPTURE";
1750
1750
  } | {
1751
1751
  type: "FILE_SELECTED";
@@ -1791,7 +1791,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1791
1791
  type: "BACK";
1792
1792
  } | {
1793
1793
  type: "CLOSE";
1794
- }, xstate615.AnyEventObject>;
1794
+ }, xstate1147.AnyEventObject>;
1795
1795
  }) => {
1796
1796
  capturedDocument: CapturedDocument;
1797
1797
  processingType: DocumentType;
@@ -1904,7 +1904,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1904
1904
  } | {
1905
1905
  type: "CLOSE";
1906
1906
  };
1907
- self: xstate615.ActorRef<xstate615.MachineSnapshot<DocumentCaptureContext, {
1907
+ self: xstate1147.ActorRef<xstate1147.MachineSnapshot<DocumentCaptureContext, {
1908
1908
  type: "CAPTURE";
1909
1909
  } | {
1910
1910
  type: "FILE_SELECTED";
@@ -1950,7 +1950,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1950
1950
  type: "BACK";
1951
1951
  } | {
1952
1952
  type: "CLOSE";
1953
- }, Record<string, xstate615.AnyActorRef>, xstate615.StateValue, string, unknown, any, any>, {
1953
+ }, Record<string, xstate1147.AnyActorRef>, xstate1147.StateValue, string, unknown, any, any>, {
1954
1954
  type: "CAPTURE";
1955
1955
  } | {
1956
1956
  type: "FILE_SELECTED";
@@ -1996,7 +1996,7 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
1996
1996
  type: "BACK";
1997
1997
  } | {
1998
1998
  type: "CLOSE";
1999
- }, xstate615.AnyEventObject>;
1999
+ }, xstate1147.AnyEventObject>;
2000
2000
  }) => {
2001
2001
  processingType: DocumentType;
2002
2002
  };
@@ -2016,15 +2016,13 @@ declare const documentCaptureMachine: xstate615.StateMachine<DocumentCaptureCont
2016
2016
  readonly guard: "canRetry";
2017
2017
  readonly actions: readonly ["clearError", "clearCapturedDocument", "resetPageNumber"];
2018
2018
  };
2019
- readonly CLOSE: {
2020
- readonly target: "closed";
2021
- };
2022
- };
2023
- readonly after: {
2024
- readonly 3000: {
2019
+ readonly CONTINUE: {
2025
2020
  readonly target: "finished";
2026
2021
  readonly guard: "attemptsExhausted";
2027
2022
  };
2023
+ readonly CLOSE: {
2024
+ readonly target: "closed";
2025
+ };
2028
2026
  };
2029
2027
  };
2030
2028
  readonly finished: {