@incodetech/core 0.0.0-dev-20260715-dcc78bcd → 0.0.0-dev-20260716-ab304429

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 (41) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/authentication.esm.js +2 -2
  3. package/dist/{authenticationManager-DM7ttL5V.esm.js → authenticationManager-C6A_gEhH.esm.js} +2 -2
  4. package/dist/{authenticationStateMachine-DiI8jfmO.esm.js → authenticationStateMachine-MnSqXh8s.esm.js} +2 -2
  5. package/dist/{deepsightLoader-CQWGVLP0.esm.js → deepsightLoader-Dnd7Rajk.esm.js} +1 -1
  6. package/dist/document-capture.d.ts +1 -1
  7. package/dist/document-upload.d.ts +4 -4
  8. package/dist/{documentCaptureManager-Biz_PFqs.d.ts → documentCaptureManager-DBqK5ner.d.ts} +65 -65
  9. package/dist/ekyb.esm.js +2 -2
  10. package/dist/{ekybManager-BTcW4poN.esm.js → ekybManager-DbK688m-.esm.js} +1 -1
  11. package/dist/{ekybStateMachine-DmZLm35R.esm.js → ekybStateMachine-BmvMrUpO.esm.js} +1 -1
  12. package/dist/electronic-signature.d.ts +1 -1
  13. package/dist/extensibility.d.ts +1 -1
  14. package/dist/extensibility.esm.js +6 -6
  15. package/dist/{faceCaptureManagerFactory-CZLSziU3.esm.js → faceCaptureManagerFactory-BkuqYPE9.esm.js} +1 -1
  16. package/dist/{faceCaptureSetup-__lVldUG.esm.js → faceCaptureSetup-CJo_MFLc.esm.js} +2 -2
  17. package/dist/flow.esm.js +1 -1
  18. package/dist/{flowServices-BQEUaMg6.esm.js → flowServices-DtiBvqZ6.esm.js} +2 -2
  19. package/dist/id.esm.js +2 -2
  20. package/dist/{idCaptureManager-BGAdNNVq.esm.js → idCaptureManager-BFMN4aac.esm.js} +1 -1
  21. package/dist/{idCaptureStateMachine-DYgckwCg.esm.js → idCaptureStateMachine-DSVttQgS.esm.js} +5 -5
  22. package/dist/index.esm.js +1 -1
  23. package/dist/{onDeviceFaceResults-LRTvBL7m.esm.js → onDeviceFaceResults-Dtx5mUa3.esm.js} +1 -1
  24. package/dist/personhood.esm.js +2 -2
  25. package/dist/qe-signature.d.ts +2 -1
  26. package/dist/{recordingService-TuBlOjvH.esm.js → recordingService-CCavy7bJ.esm.js} +1 -1
  27. package/dist/selfie.esm.js +4 -4
  28. package/dist/{selfieManager-C4_2DgTF.esm.js → selfieManager-BZFO5-P9.esm.js} +2 -2
  29. package/dist/{selfieStateMachine-ODRceav2.esm.js → selfieStateMachine-DjaHbMKZ.esm.js} +2 -2
  30. package/dist/session-BadmZmbK.esm.js +1 -0
  31. package/dist/session.esm.js +2 -2
  32. package/dist/{sessionInitializer-Cjpnacyg.esm.js → sessionInitializer-D3TaaDyZ.esm.js} +1 -1
  33. package/dist/{setup-Hyb_Yiuu.esm.js → setup-Bdtm4xAl.esm.js} +1 -1
  34. package/dist/video-selfie.d.ts +5 -4
  35. package/dist/video-selfie.esm.js +119 -57
  36. package/dist/wasm.esm.js +1 -1
  37. package/dist/workflow.d.ts +4 -4
  38. package/dist/workflow.esm.js +5 -5
  39. package/package.json +5 -5
  40. package/dist/session-CQ2x2aLl.esm.js +0 -1
  41. /package/dist/{index-CKbmDFNq.d.ts → electronicSignatureManager-CKbmDFNq.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
- import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-CKbmDFNq.js";
2
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
3
3
  //#region src/modules/ae-signature/index.d.ts
4
4
  type AeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
5
5
  declare function createAeSignatureManager(options: {
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-DiI8jfmO.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DM7ttL5V.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C6A_gEhH.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CZLSziU3.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DiI8jfmO.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.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-__lVldUG.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,7 +1,7 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
2
  import { t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
4
- import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-Cjpnacyg.esm.js";
4
+ import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-D3TaaDyZ.esm.js";
5
5
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
6
6
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
7
7
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
@@ -1,2 +1,2 @@
1
- import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-Biz_PFqs.js";
1
+ import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-DBqK5ner.js";
2
2
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -38,10 +38,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
- setError: {
42
- type: "setError";
43
- params: NonReducibleUnknown;
44
- };
45
41
  setStream: {
46
42
  type: "setStream";
47
43
  params: NonReducibleUnknown;
@@ -54,6 +50,10 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
54
50
  type: "setProgress";
55
51
  params: NonReducibleUnknown;
56
52
  };
53
+ setError: {
54
+ type: "setError";
55
+ params: NonReducibleUnknown;
56
+ };
57
57
  clearError: {
58
58
  type: "clearError";
59
59
  params: NonReducibleUnknown;
@@ -174,6 +174,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
174
174
  }, EventObject>;
175
175
  id: string | undefined;
176
176
  };
177
+ initCamera: {
178
+ src: "initCamera";
179
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
180
+ id: string | undefined;
181
+ };
177
182
  requestPermission: {
178
183
  src: "requestPermission";
179
184
  logic: PromiseActorLogic<PermissionResult, {
@@ -182,11 +187,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
182
187
  }, EventObject>;
183
188
  id: string | undefined;
184
189
  };
185
- initCamera: {
186
- src: "initCamera";
187
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
188
- id: string | undefined;
189
- };
190
190
  checkPermission: {
191
191
  src: "checkPermission";
192
192
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -360,7 +360,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
360
360
  readonly initial: "tutorial";
361
361
  readonly context: ({ input }: {
362
362
  spawn: {
363
- <TSrc extends "uploadDocument" | "requestPermission" | "initCamera" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
363
+ <TSrc extends "uploadDocument" | "initCamera" | "requestPermission" | "checkPermission" | "finalizeDocumentRequest">(logic: TSrc, ...[options]: ({
364
364
  src: "uploadDocument";
365
365
  logic: PromiseActorLogic<DocumentUploadResponse, {
366
366
  capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
@@ -384,18 +384,12 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
384
384
  input?: InputFrom<T["logic"]> | undefined;
385
385
  syncSnapshot?: boolean;
386
386
  } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
387
- src: "requestPermission";
388
- logic: PromiseActorLogic<PermissionResult, {
389
- permissionResult?: PermissionResult;
390
- requestMotionPermission: boolean;
391
- }, EventObject>;
387
+ src: "initCamera";
388
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
392
389
  id: string | undefined;
393
390
  } extends (infer T_1) ? T_1 extends {
394
- src: "requestPermission";
395
- logic: PromiseActorLogic<PermissionResult, {
396
- permissionResult?: PermissionResult;
397
- requestMotionPermission: boolean;
398
- }, EventObject>;
391
+ src: "initCamera";
392
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
399
393
  id: string | undefined;
400
394
  } ? T_1 extends {
401
395
  src: TSrc;
@@ -405,12 +399,18 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
405
399
  input?: InputFrom<T_1["logic"]> | undefined;
406
400
  syncSnapshot?: boolean;
407
401
  } & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
408
- src: "initCamera";
409
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
402
+ src: "requestPermission";
403
+ logic: PromiseActorLogic<PermissionResult, {
404
+ permissionResult?: PermissionResult;
405
+ requestMotionPermission: boolean;
406
+ }, EventObject>;
410
407
  id: string | undefined;
411
408
  } extends (infer T_2) ? T_2 extends {
412
- src: "initCamera";
413
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
409
+ src: "requestPermission";
410
+ logic: PromiseActorLogic<PermissionResult, {
411
+ permissionResult?: PermissionResult;
412
+ requestMotionPermission: boolean;
413
+ }, EventObject>;
414
414
  id: string | undefined;
415
415
  } ? T_2 extends {
416
416
  src: TSrc;
@@ -463,6 +463,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
463
463
  }, EventObject>;
464
464
  id: string | undefined;
465
465
  };
466
+ initCamera: {
467
+ src: "initCamera";
468
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
469
+ id: string | undefined;
470
+ };
466
471
  requestPermission: {
467
472
  src: "requestPermission";
468
473
  logic: PromiseActorLogic<PermissionResult, {
@@ -471,11 +476,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
471
476
  }, EventObject>;
472
477
  id: string | undefined;
473
478
  };
474
- initCamera: {
475
- src: "initCamera";
476
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
477
- id: string | undefined;
478
- };
479
479
  checkPermission: {
480
480
  src: "checkPermission";
481
481
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -723,6 +723,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
723
723
  }, EventObject>;
724
724
  id: string | undefined;
725
725
  };
726
+ initCamera: {
727
+ src: "initCamera";
728
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
729
+ id: string | undefined;
730
+ };
726
731
  requestPermission: {
727
732
  src: "requestPermission";
728
733
  logic: PromiseActorLogic<PermissionResult, {
@@ -731,11 +736,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
731
736
  }, EventObject>;
732
737
  id: string | undefined;
733
738
  };
734
- initCamera: {
735
- src: "initCamera";
736
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
737
- id: string | undefined;
738
- };
739
739
  checkPermission: {
740
740
  src: "checkPermission";
741
741
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -808,6 +808,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
808
808
  }, EventObject>;
809
809
  id: string | undefined;
810
810
  };
811
+ initCamera: {
812
+ src: "initCamera";
813
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
814
+ id: string | undefined;
815
+ };
811
816
  requestPermission: {
812
817
  src: "requestPermission";
813
818
  logic: PromiseActorLogic<PermissionResult, {
@@ -816,11 +821,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
816
821
  }, EventObject>;
817
822
  id: string | undefined;
818
823
  };
819
- initCamera: {
820
- src: "initCamera";
821
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
822
- id: string | undefined;
823
- };
824
824
  checkPermission: {
825
825
  src: "checkPermission";
826
826
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -892,6 +892,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
892
892
  }, EventObject>;
893
893
  id: string | undefined;
894
894
  };
895
+ initCamera: {
896
+ src: "initCamera";
897
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
898
+ id: string | undefined;
899
+ };
895
900
  requestPermission: {
896
901
  src: "requestPermission";
897
902
  logic: PromiseActorLogic<PermissionResult, {
@@ -900,11 +905,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
900
905
  }, EventObject>;
901
906
  id: string | undefined;
902
907
  };
903
- initCamera: {
904
- src: "initCamera";
905
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
906
- id: string | undefined;
907
- };
908
908
  checkPermission: {
909
909
  src: "checkPermission";
910
910
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -977,6 +977,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
977
977
  }, EventObject>;
978
978
  id: string | undefined;
979
979
  };
980
+ initCamera: {
981
+ src: "initCamera";
982
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
983
+ id: string | undefined;
984
+ };
980
985
  requestPermission: {
981
986
  src: "requestPermission";
982
987
  logic: PromiseActorLogic<PermissionResult, {
@@ -985,11 +990,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
985
990
  }, EventObject>;
986
991
  id: string | undefined;
987
992
  };
988
- initCamera: {
989
- src: "initCamera";
990
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
991
- id: string | undefined;
992
- };
993
993
  checkPermission: {
994
994
  src: "checkPermission";
995
995
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1231,6 +1231,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1231
1231
  }, EventObject>;
1232
1232
  id: string | undefined;
1233
1233
  };
1234
+ initCamera: {
1235
+ src: "initCamera";
1236
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1237
+ id: string | undefined;
1238
+ };
1234
1239
  requestPermission: {
1235
1240
  src: "requestPermission";
1236
1241
  logic: PromiseActorLogic<PermissionResult, {
@@ -1239,11 +1244,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1239
1244
  }, EventObject>;
1240
1245
  id: string | undefined;
1241
1246
  };
1242
- initCamera: {
1243
- src: "initCamera";
1244
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1245
- id: string | undefined;
1246
- };
1247
1247
  checkPermission: {
1248
1248
  src: "checkPermission";
1249
1249
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1316,6 +1316,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1316
1316
  }, EventObject>;
1317
1317
  id: string | undefined;
1318
1318
  };
1319
+ initCamera: {
1320
+ src: "initCamera";
1321
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1322
+ id: string | undefined;
1323
+ };
1319
1324
  requestPermission: {
1320
1325
  src: "requestPermission";
1321
1326
  logic: PromiseActorLogic<PermissionResult, {
@@ -1324,11 +1329,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1324
1329
  }, EventObject>;
1325
1330
  id: string | undefined;
1326
1331
  };
1327
- initCamera: {
1328
- src: "initCamera";
1329
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1330
- id: string | undefined;
1331
- };
1332
1332
  checkPermission: {
1333
1333
  src: "checkPermission";
1334
1334
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1400,6 +1400,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1400
1400
  }, EventObject>;
1401
1401
  id: string | undefined;
1402
1402
  };
1403
+ initCamera: {
1404
+ src: "initCamera";
1405
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1406
+ id: string | undefined;
1407
+ };
1403
1408
  requestPermission: {
1404
1409
  src: "requestPermission";
1405
1410
  logic: PromiseActorLogic<PermissionResult, {
@@ -1408,11 +1413,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1408
1413
  }, EventObject>;
1409
1414
  id: string | undefined;
1410
1415
  };
1411
- initCamera: {
1412
- src: "initCamera";
1413
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1414
- id: string | undefined;
1415
- };
1416
1416
  checkPermission: {
1417
1417
  src: "checkPermission";
1418
1418
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
@@ -1535,6 +1535,11 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1535
1535
  }, EventObject>;
1536
1536
  id: string | undefined;
1537
1537
  };
1538
+ initCamera: {
1539
+ src: "initCamera";
1540
+ logic: PromiseActorLogic<MediaStream, void, EventObject>;
1541
+ id: string | undefined;
1542
+ };
1538
1543
  requestPermission: {
1539
1544
  src: "requestPermission";
1540
1545
  logic: PromiseActorLogic<PermissionResult, {
@@ -1543,11 +1548,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
1543
1548
  }, EventObject>;
1544
1549
  id: string | undefined;
1545
1550
  };
1546
- initCamera: {
1547
- src: "initCamera";
1548
- logic: PromiseActorLogic<MediaStream, void, EventObject>;
1549
- id: string | undefined;
1550
- };
1551
1551
  checkPermission: {
1552
1552
  src: "checkPermission";
1553
1553
  logic: PromiseActorLogic<PermissionResult, void, EventObject>;
package/dist/ekyb.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-DmZLm35R.esm.js";
2
- import { t as createEkybManager } from "./ekybManager-BTcW4poN.esm.js";
1
+ import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
2
+ import { t as createEkybManager } from "./ekybManager-DbK688m-.esm.js";
3
3
  export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as ekybMachine } from "./ekybStateMachine-DmZLm35R.esm.js";
4
+ import { t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
5
5
  //#region src/modules/ekyb/ekybActor.ts
6
6
  /**
7
7
  * Creates and starts an eKYB actor.
@@ -3,7 +3,7 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DH-IPF-w.esm.js";
6
- import { t as getFlow } from "./flowServices-BQEUaMg6.esm.js";
6
+ import { t as getFlow } from "./flowServices-DtiBvqZ6.esm.js";
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  /**
9
9
  * Countries available in all environments.
@@ -1,2 +1,2 @@
1
- import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-CKbmDFNq.js";
1
+ import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
2
2
  export { AE_CONSENT_KEYS, type AeConsentKey, type ConsentChecks, type ConsentKey, type ElectronicSignatureConfig, type ElectronicSignatureDocument, type ElectronicSignatureManager, type ElectronicSignatureState, type ElectronicSignatureVariant, QE_CONSENT_KEYS, type QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -13,7 +13,7 @@ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentStat
13
13
  import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-CQkUAeWO.js";
14
14
  import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
15
15
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager--HSBTwOy.js";
16
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-Biz_PFqs.js";
16
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DBqK5ner.js";
17
17
  import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-Dposae2l.js";
18
18
  import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-CBX0tM04.js";
19
19
  import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
@@ -1,22 +1,22 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-Cjpnacyg.esm.js";
2
+ import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-D3TaaDyZ.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { n as createAntifraudManagerFromActor } from "./antifraudManager-CL2YhiVX.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-__lVldUG.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DM7ttL5V.esm.js";
8
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C6A_gEhH.esm.js";
9
9
  import { n as createConsentManagerFromActor } from "./consentManager-D3GyyH5u.esm.js";
10
10
  import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Cwm0MesJ.esm.js";
11
11
  import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9rdIO8Qk.esm.js";
12
12
  import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-C2i9Lzx9.esm.js";
13
13
  import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DijbJFun.esm.js";
14
14
  import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-COik5bJ7.esm.js";
15
- import { n as createEkybManagerFromActor } from "./ekybManager-BTcW4poN.esm.js";
15
+ import { n as createEkybManagerFromActor } from "./ekybManager-DbK688m-.esm.js";
16
16
  import { n as createEkycManagerFromActor } from "./ekycManager-BSMlIpGA.esm.js";
17
17
  import { n as createEmailManagerFromActor } from "./emailManager-c-mDLieD.esm.js";
18
- import { n as createSelfieManagerFromActor } from "./selfieManager-C4_2DgTF.esm.js";
19
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BGAdNNVq.esm.js";
18
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BZFO5-P9.esm.js";
19
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BFMN4aac.esm.js";
20
20
  import { n as createPhoneManagerFromActor } from "./phoneManager-KbcmjEeH.esm.js";
21
21
  import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-DHfJZTVo.esm.js";
22
22
  import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-5LlxYad-.esm.js";
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { n as concealmentToAvatar } from "./faceCaptureSetup-__lVldUG.esm.js";
4
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-CJo_MFLc.esm.js";
5
5
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
6
6
  import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
7
7
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
2
2
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
5
- import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
5
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
6
6
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
7
7
  import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
8
8
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
9
9
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
10
- import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-TuBlOjvH.esm.js";
10
+ import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CCavy7bJ.esm.js";
11
11
  //#region src/internal/avatar/concealment.ts
12
12
  /**
13
13
  * Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
package/dist/flow.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
2
2
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BQEUaMg6.esm.js";
4
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-DtiBvqZ6.esm.js";
5
5
  import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
6
6
  import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
7
7
  //#region src/modules/flow/noOpFlowModuleMachine.ts
@@ -1,8 +1,8 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-Cjpnacyg.esm.js";
3
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D3TaaDyZ.esm.js";
4
4
  import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
5
- import "./session-CQ2x2aLl.esm.js";
5
+ import "./session-BadmZmbK.esm.js";
6
6
  import { r as videoSelfieWasmPipelines } from "./videoSelfieSteps-DHcibfYH.esm.js";
7
7
  //#region src/modules/flow/flowUtils.ts
8
8
  const WASM_MODULE_PIPELINES = {
package/dist/id.esm.js CHANGED
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
2
2
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
4
4
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
5
- import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-DYgckwCg.esm.js";
6
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BGAdNNVq.esm.js";
5
+ import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-DSVttQgS.esm.js";
6
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BFMN4aac.esm.js";
7
7
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
8
8
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
9
9
  function buildSubImage(canvas) {
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
4
4
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
5
5
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
6
6
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
7
- import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DYgckwCg.esm.js";
7
+ import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DSVttQgS.esm.js";
8
8
  //#region src/modules/id/digitalUpload/instrumentation.ts
9
9
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
10
10
  function isHoldingState(value) {
@@ -3,20 +3,20 @@ import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
3
3
  import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
4
4
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
6
- import { t as getDisableIpify } from "./sessionInitializer-Cjpnacyg.esm.js";
6
+ import { t as getDisableIpify } from "./sessionInitializer-D3TaaDyZ.esm.js";
7
7
  import { n as isDesktop } from "./platform-wmV7oTAJ.esm.js";
8
8
  import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
10
10
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
11
- import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
11
+ import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
12
12
  import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
13
13
  import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
14
14
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
15
15
  import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
16
16
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
17
17
  import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
18
- import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-TuBlOjvH.esm.js";
19
- import "./session-CQ2x2aLl.esm.js";
18
+ import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-CCavy7bJ.esm.js";
19
+ import "./session-BadmZmbK.esm.js";
20
20
  import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-Dzfws4i0.esm.js";
21
21
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
22
22
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1522,7 +1522,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
1522
1522
  });
1523
1523
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
1524
1524
  if (!input.dependencies) return;
1525
- const { loadDeepsightSession } = await import("./deepsightLoader-CQWGVLP0.esm.js");
1525
+ const { loadDeepsightSession } = await import("./deepsightLoader-Dnd7Rajk.esm.js");
1526
1526
  return loadDeepsightSession({
1527
1527
  ds: input.ds,
1528
1528
  storage: input.dependencies.storage,
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, o as setup, r as isConfigured } from "./setup-Hyb_Yiuu.esm.js";
1
+ import { i as reset, o as setup, r as isConfigured } from "./setup-Bdtm4xAl.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -516,7 +516,7 @@ async function stopRecording(session) {
516
516
  }
517
517
  }
518
518
  async function initializeDeepsightSession(options) {
519
- const { loadDeepsightSession } = await import("./deepsightLoader-CQWGVLP0.esm.js");
519
+ const { loadDeepsightSession } = await import("./deepsightLoader-Dnd7Rajk.esm.js");
520
520
  return loadDeepsightSession({
521
521
  ds: options.ds,
522
522
  storage: options.storage
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
4
4
  import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-DzT65Fvf.esm.js";
5
5
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
7
- import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-Cjpnacyg.esm.js";
7
+ import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-D3TaaDyZ.esm.js";
8
8
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
9
9
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
10
10
  import { i as requestPermission, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
11
11
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
12
12
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
13
- import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
13
+ import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
14
14
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
15
15
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
16
16
  //#region ../infra/src/crypto/randomUUID.ts
@@ -1,5 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
- import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-CKbmDFNq.js";
2
+ import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
3
+ import "./electronic-signature.js";
3
4
  //#region src/modules/qe-signature/index.d.ts
4
5
  type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
5
6
  declare function createQeSignatureManager(options: {
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
3
  import { t as isAndroid } from "./platform-wmV7oTAJ.esm.js";
4
- import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
4
+ import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-BhSZDDNb.esm.js";
6
6
  //#region src/internal/manualReview/manualReviewService.ts
7
7
  async function flagFaceManualReview() {
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
- import { t as faceCaptureMachine } from "./faceCaptureSetup-__lVldUG.esm.js";
6
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CZLSziU3.esm.js";
5
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
6
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
7
7
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
8
8
  import { t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
9
- import { t as selfieMachine } from "./selfieStateMachine-ODRceav2.esm.js";
10
- import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-C4_2DgTF.esm.js";
9
+ import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
10
+ import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BZFO5-P9.esm.js";
11
11
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
12
12
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
13
13
  /**
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
2
  import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
3
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CZLSziU3.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-ODRceav2.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
7
7
  //#region src/modules/selfie/selfieActor.ts
8
8
  function createSelfieActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,7 +1,7 @@
1
1
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-__lVldUG.esm.js";
4
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
4
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
5
5
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
6
6
  import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
7
7
  Object.values(FACE_ERROR_CODES);
@@ -0,0 +1 @@
1
+ import "./sessionInitializer-D3TaaDyZ.esm.js";
@@ -1,8 +1,8 @@
1
1
  import { n as getApi } from "./api-BDTZNnca.esm.js";
2
2
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
3
- import { i as initializeSession } from "./sessionInitializer-Cjpnacyg.esm.js";
3
+ import { i as initializeSession } from "./sessionInitializer-D3TaaDyZ.esm.js";
4
4
  import { n as toIncodeApiError, t as IncodeApiError } from "./apiError-COvIGYWe.esm.js";
5
- import "./session-CQ2x2aLl.esm.js";
5
+ import "./session-BadmZmbK.esm.js";
6
6
  import { n as getFinishStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
7
7
  //#region src/internal/session/sessionService.ts
8
8
  /**
@@ -1608,7 +1608,7 @@ function isBrowserSimulation(browserEnv) {
1608
1608
  }
1609
1609
  //#endregion
1610
1610
  //#region src/internal/version/sdkVersion.ts
1611
- const SDK_VERSION = "0.0.0-dev-20260715-dcc78bcd";
1611
+ const SDK_VERSION = "0.0.0-dev-20260716-ab304429";
1612
1612
  //#endregion
1613
1613
  //#region src/internal/fingerprint/fingerprintService.ts
1614
1614
  function formatOsVersion(os) {
@@ -5,7 +5,7 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
5
5
  import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
6
6
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
7
7
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
8
- import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-Cjpnacyg.esm.js";
8
+ import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-D3TaaDyZ.esm.js";
9
9
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-N-xlKhZK.esm.js";
10
10
  //#region ../infra/src/wasm/wasmDefaults.ts
11
11
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
@@ -107,6 +107,7 @@ declare class MultipartRecordingService {
107
107
  }
108
108
  //#endregion
109
109
  //#region src/modules/video-selfie/videoSelfieStepDetector.d.ts
110
+ type VideoSelfieDetectionStatus = DetectionStatus | 'wrongSide';
110
111
  /**
111
112
  * Runs the WASM detection + backend validation for a single capture step over
112
113
  * the given camera stream. Resolves once the step is captured AND validated by
@@ -118,7 +119,7 @@ type StepDetector = (params: {
118
119
  step: VideoSelfieStep;
119
120
  stream: MediaStream;
120
121
  signal: AbortSignal;
121
- onStatus?: (status: DetectionStatus) => void;
122
+ onStatus?: (status: VideoSelfieDetectionStatus) => void;
122
123
  }) => Promise<void>;
123
124
  //#endregion
124
125
  //#region src/modules/video-selfie/videoSelfieRecordingMachine.d.ts
@@ -140,7 +141,7 @@ type CreateVideoSelfieRecordingActorOptions = {
140
141
  };
141
142
  //#endregion
142
143
  //#region src/modules/video-selfie/videoSelfieRecordingManager.d.ts
143
- type VideoSelfieRecordingStatus = 'idle' | 'starting' | 'recording' | 'switchingCamera' | 'finalizing' | 'finished' | 'error' | 'aborted';
144
+ type VideoSelfieRecordingStatus = 'idle' | 'starting' | 'recording' | 'flippingId' | 'switchingCamera' | 'finalizing' | 'success' | 'finished' | 'error' | 'aborted';
144
145
  type VideoSelfieRecordingState = {
145
146
  /** Current lifecycle status. */
146
147
  status: VideoSelfieRecordingStatus;
@@ -160,8 +161,8 @@ type VideoSelfieRecordingState = {
160
161
  */
161
162
  composite: MediaStream | undefined;
162
163
  /** Live per-step detection feedback (e.g. `tooFar`, `blur`, `detecting`). */
163
- detectionStatus: DetectionStatus | undefined;
164
- /** The completed upload id, available once `status === 'finished'`. */
164
+ detectionStatus: VideoSelfieDetectionStatus | undefined;
165
+ /** The completed upload id, available during `success` and `finished`. */
165
166
  recordingId: string | null;
166
167
  /** Failure detail, set when `status === 'error'`. */
167
168
  error: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-Hyb_Yiuu.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-Bdtm4xAl.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as api } from "./api-BDTZNnca.esm.js";
5
5
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
@@ -7,7 +7,7 @@ import { c as createManager, o as createActor, r as assign, t as setup } from ".
7
7
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
8
8
  import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
9
9
  import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
10
- import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-LRTvBL7m.esm.js";
10
+ import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
11
11
  import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
12
12
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
13
13
  import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
@@ -45,6 +45,7 @@ function isFaceRecognitionMatch(confidence) {
45
45
  * after this many tries the step rejects. Mirrors V1's `numberOfTries`.
46
46
  */
47
47
  const MAX_SELFIE_ATTEMPTS = 3;
48
+ const SELFIE_SUCCESS_DWELL_MS = 900;
48
49
  /**
49
50
  * How long the ID step holds on the "success" state (green check) after the
50
51
  * backend validates a side, before advancing. Gives the user a beat to see the
@@ -52,15 +53,15 @@ const MAX_SELFIE_ATTEMPTS = 3;
52
53
  * IdVideoSelfie success flash.
53
54
  */
54
55
  const ID_SUCCESS_DWELL_MS = 900;
55
- /**
56
- * How long an ID step holds the "show the front / back of your ID" instruction
57
- * before autocapture is armed. No frame is captured or validated during this
58
- * window, so the guidance can't be overwritten by capture feedback before the
59
- * user has read it. Mirrors the UI's `ID_INSTRUCTION_DWELL_MS` message pin.
60
- */
61
- const ID_INSTRUCTION_DWELL_MS = 3e3;
56
+ function abortError() {
57
+ return /* @__PURE__ */ new Error("aborted");
58
+ }
59
+ function throwIfAborted(signal) {
60
+ if (signal.aborted) throw abortError();
61
+ }
62
62
  /** Resolves after `ms`, or rejects early if `signal` aborts. */
63
63
  function delay(ms, signal) {
64
+ if (signal.aborted) return Promise.reject(abortError());
64
65
  const timerProvider = BrowserTimerProvider.getInstance();
65
66
  return new Promise((resolve, reject) => {
66
67
  const timer = timerProvider.setTimeout(() => {
@@ -69,11 +70,19 @@ function delay(ms, signal) {
69
70
  }, ms);
70
71
  const onAbort = () => {
71
72
  timerProvider.clearTimeout(timer);
72
- reject(/* @__PURE__ */ new Error("aborted"));
73
+ reject(abortError());
73
74
  };
74
75
  signal.addEventListener("abort", onAbort, { once: true });
76
+ if (signal.aborted) onAbort();
75
77
  });
76
78
  }
79
+ function isWrongVideoSelfieIdSide(step, reportedSide) {
80
+ const side = reportedSide.toLowerCase();
81
+ if (side === "wrong") return true;
82
+ const isFront = side.includes("front") && !side.includes("back");
83
+ const isBack = side.includes("back") && !side.includes("front");
84
+ return step === "frontId" ? isBack : isFront;
85
+ }
77
86
  /**
78
87
  * Builds the default per-step detector from the module config. Today it
79
88
  * auto-captures the `selfie` step (face detection → `add/face` → `process/face`);
@@ -107,6 +116,10 @@ async function detectSelfie(params) {
107
116
  useOnDeviceWorkflow: false,
108
117
  videoSelfie: true
109
118
  });
119
+ if (signal.aborted) {
120
+ provider.dispose();
121
+ throw abortError();
122
+ }
110
123
  provider.setChecksEnabled({
111
124
  lenses: config.validateLenses ?? false,
112
125
  mask: config.validateFaceMask ?? false,
@@ -126,32 +139,41 @@ async function detectSelfie(params) {
126
139
  autoCaptureTimeout: SELFIE_AUTOCAPTURE_MS / 1e3
127
140
  };
128
141
  const runAttempt = () => new Promise((resolve, reject) => {
129
- const onAbort = () => {
130
- detection.cleanup();
131
- reject(/* @__PURE__ */ new Error("aborted"));
132
- };
133
- const settle = (run) => {
142
+ if (signal.aborted) {
143
+ reject(abortError());
144
+ return;
145
+ }
146
+ let settled = false;
147
+ function settle(run) {
148
+ if (settled) return;
149
+ settled = true;
134
150
  signal.removeEventListener("abort", onAbort);
135
151
  run();
136
- };
137
- signal.addEventListener("abort", onAbort, { once: true });
152
+ }
138
153
  const detection = startDetection({
139
154
  config: detectionConfig,
140
155
  capturer,
141
156
  provider,
142
157
  onUpdate: (status) => onStatus?.(status),
143
158
  onSuccess: (canvas, faceCoordinates) => {
159
+ onStatus?.("capturing");
144
160
  (async () => {
145
161
  try {
162
+ const encryptedBase64Image = await encryptSelfieImage({
163
+ canvas,
164
+ dependencies: { getWasmUtil: async () => deps.getWasmUtil() }
165
+ });
166
+ throwIfAborted(signal);
146
167
  await uploadSelfie({
147
- encryptedBase64Image: await encryptSelfieImage({
148
- canvas,
149
- dependencies: { getWasmUtil: async () => deps.getWasmUtil() }
150
- }),
168
+ encryptedBase64Image,
151
169
  faceCoordinates,
152
170
  imageType
153
171
  });
172
+ throwIfAborted(signal);
154
173
  await processFace(imageType);
174
+ throwIfAborted(signal);
175
+ onStatus?.("success");
176
+ await delay(SELFIE_SUCCESS_DWELL_MS, signal);
155
177
  settle(resolve);
156
178
  } catch (error) {
157
179
  settle(() => reject(error instanceof Error ? error : new Error(String(error))));
@@ -159,6 +181,12 @@ async function detectSelfie(params) {
159
181
  })();
160
182
  }
161
183
  });
184
+ function onAbort() {
185
+ detection.cleanup();
186
+ settle(() => reject(abortError()));
187
+ }
188
+ signal.addEventListener("abort", onAbort, { once: true });
189
+ if (signal.aborted) onAbort();
162
190
  });
163
191
  try {
164
192
  for (let attempt = 1; attempt <= MAX_SELFIE_ATTEMPTS; attempt++) try {
@@ -179,6 +207,10 @@ async function detectId(params) {
179
207
  const { step, config, stream, signal, onStatus } = params;
180
208
  const provider = new IdCaptureProvider();
181
209
  await provider.initialize({ videoSelfie: true });
210
+ if (signal.aborted) {
211
+ provider.dispose();
212
+ throw abortError();
213
+ }
182
214
  const windowDimensions = getWindowDimensions();
183
215
  provider.setGeometry({
184
216
  ...DEFAULT_ID_CAPTURE_GEOMETRY,
@@ -202,16 +234,43 @@ async function detectId(params) {
202
234
  const capturer = new StreamCanvasCapture(stream);
203
235
  return new Promise((resolve, reject) => {
204
236
  let validating = false;
205
- let armed = false;
237
+ let wrongSide = false;
238
+ let settled = false;
239
+ let toreDown = false;
240
+ const session = new StreamCanvasProcessingSession({
241
+ capturer,
242
+ provider
243
+ });
244
+ function teardown() {
245
+ if (toreDown) return;
246
+ toreDown = true;
247
+ session.dispose();
248
+ capturer.dispose();
249
+ provider.dispose();
250
+ }
251
+ function settle(run) {
252
+ if (settled) return;
253
+ settled = true;
254
+ signal.removeEventListener("abort", onAbort);
255
+ teardown();
256
+ run();
257
+ }
258
+ function onAbort() {
259
+ settle(() => reject(abortError()));
260
+ }
206
261
  provider.setCallbacks({
207
262
  onFarAway: () => {
208
- if (armed && !validating) onStatus?.("tooFar");
263
+ if (!validating && !wrongSide) onStatus?.("tooFar");
209
264
  },
210
265
  onBlur: () => {
211
- if (armed && !validating) onStatus?.("blur");
266
+ if (!validating && !wrongSide) onStatus?.("blur");
267
+ },
268
+ onIdSideChange: (side) => {
269
+ wrongSide = isWrongVideoSelfieIdSide(step, side);
270
+ onStatus?.(wrongSide ? "wrongSide" : "detecting");
212
271
  },
213
272
  onCapturing: () => {
214
- if (!armed || validating) return;
273
+ if (validating || wrongSide) return;
215
274
  const base64Image = capturer.getLatestCanvas()?.getBase64Image();
216
275
  if (!base64Image) return;
217
276
  validating = true;
@@ -219,41 +278,22 @@ async function detectId(params) {
219
278
  (async () => {
220
279
  try {
221
280
  if (await validateIdFrame(step, config, base64Image)) {
281
+ throwIfAborted(signal);
222
282
  onStatus?.("success");
223
283
  await delay(ID_SUCCESS_DWELL_MS, signal);
224
- teardown();
225
- resolve();
284
+ settle(resolve);
226
285
  return;
227
286
  }
228
287
  validating = false;
229
288
  } catch (error) {
230
- teardown();
231
- reject(error instanceof Error ? error : new Error(String(error)));
289
+ settle(() => reject(error instanceof Error ? error : new Error(String(error))));
232
290
  }
233
291
  })();
234
292
  }
235
293
  });
236
- const session = new StreamCanvasProcessingSession({
237
- capturer,
238
- provider
239
- });
240
- let toreDown = false;
241
- const teardown = () => {
242
- if (toreDown) return;
243
- toreDown = true;
244
- session.dispose();
245
- capturer.dispose();
246
- provider.dispose();
247
- };
248
- signal.addEventListener("abort", () => {
249
- teardown();
250
- reject(/* @__PURE__ */ new Error("aborted"));
251
- }, { once: true });
252
- delay(ID_INSTRUCTION_DWELL_MS, signal).then(() => {
253
- if (toreDown || signal.aborted) return;
254
- armed = true;
255
- onStatus?.("detecting");
256
- }).catch(() => {});
294
+ onStatus?.("detecting");
295
+ signal.addEventListener("abort", onAbort, { once: true });
296
+ if (signal.aborted) onAbort();
257
297
  });
258
298
  }
259
299
  /** Runs the configured ID/OCR comparisons for a captured ID frame. */
@@ -700,6 +740,8 @@ function detectionErrorFromEvent(event) {
700
740
  return event.error;
701
741
  }
702
742
  const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
743
+ const ID_FLIP_DWELL_MS = 4e3;
744
+ const FINAL_SUCCESS_DWELL_MS = 3e3;
703
745
  function waitForDwell(ms, signal) {
704
746
  const timerProvider = BrowserTimerProvider.getInstance();
705
747
  return new Promise((resolve) => {
@@ -728,9 +770,9 @@ function waitForDwell(ms, signal) {
728
770
  * validation; success advances the step (switching the camera when the next
729
771
  * step's facing differs), and the final step finalizes the multipart upload.
730
772
  *
731
- * Teardown: `ABORT` is accepted from ANY non-final state and every terminal
732
- * state runs `cleanup` on entry, so no settled path leaves camera or mic
733
- * tracks running. XState v5 executes NO exit actions on an external
773
+ * Teardown: `ABORT` is accepted from ANY non-final state and every settled
774
+ * path runs `cleanup`, so no path leaves camera or mic tracks running.
775
+ * XState v5 executes NO exit actions on an external
734
776
  * `actor.stop()`, so the manager sends `ABORT` before stopping the actor —
735
777
  * never stop this actor directly without aborting first.
736
778
  */
@@ -740,6 +782,10 @@ const videoSelfieRecordingSetup = setup({
740
782
  events: {},
741
783
  input: {}
742
784
  },
785
+ delays: {
786
+ ID_FLIP_DWELL: ID_FLIP_DWELL_MS,
787
+ FINAL_SUCCESS_DWELL: FINAL_SUCCESS_DWELL_MS
788
+ },
743
789
  actors: {
744
790
  acquireCamera: fromPromise(async ({ input, signal }) => {
745
791
  const stream = await input.acquire(input.facingMode, input.withAudio);
@@ -807,6 +853,7 @@ const videoSelfieRecordingSetup = setup({
807
853
  },
808
854
  guards: {
809
855
  isLastStep: ({ context }) => context.stepIndex >= context.steps.length - 1,
856
+ nextStepFlipsId: ({ context }) => context.steps[context.stepIndex] === "frontId" && context.steps[context.stepIndex + 1] === "backId",
810
857
  nextStepFlipsCamera: ({ context }) => facingModeForStep(context.steps[context.stepIndex]) !== facingModeForStep(context.steps[context.stepIndex + 1]),
811
858
  uploadReturnedNoRecordingId: ({ event }) => recordingIdFromEvent(event) === null
812
859
  }
@@ -816,6 +863,10 @@ const ADVANCE_TRANSITIONS = [
816
863
  target: "finalizing",
817
864
  guard: "isLastStep"
818
865
  },
866
+ {
867
+ target: "flippingId",
868
+ guard: "nextStepFlipsId"
869
+ },
819
870
  {
820
871
  target: "switchingCamera",
821
872
  guard: "nextStepFlipsCamera",
@@ -901,6 +952,16 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
901
952
  }
902
953
  }
903
954
  },
955
+ flippingId: {
956
+ after: { ID_FLIP_DWELL: {
957
+ target: "recording",
958
+ actions: "advanceStep"
959
+ } },
960
+ on: { NEXT_STEP: {
961
+ target: "recording",
962
+ actions: "advanceStep"
963
+ } }
964
+ },
904
965
  switchingCamera: { invoke: {
905
966
  src: "switchCamera",
906
967
  input: ({ context }) => ({
@@ -927,7 +988,7 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
927
988
  guard: "uploadReturnedNoRecordingId",
928
989
  actions: [assign({ recordingId: ({ event }) => recordingIdFromEvent(event) }), "setUploadFailedError"]
929
990
  }, {
930
- target: "finished",
991
+ target: "success",
931
992
  actions: assign({ recordingId: ({ event }) => recordingIdFromEvent(event) })
932
993
  }],
933
994
  onError: {
@@ -935,10 +996,11 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
935
996
  actions: assign({ error: ({ event }) => errorFromEvent(event) })
936
997
  }
937
998
  } },
938
- finished: {
939
- type: "final",
940
- entry: "cleanup"
999
+ success: {
1000
+ entry: "cleanup",
1001
+ after: { FINAL_SUCCESS_DWELL: "finished" }
941
1002
  },
1003
+ finished: { type: "final" },
942
1004
  error: {
943
1005
  type: "final",
944
1006
  entry: "cleanup"
package/dist/wasm.esm.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
2
- import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-Hyb_Yiuu.esm.js";
2
+ import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-Bdtm4xAl.esm.js";
3
3
  export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
@@ -320,6 +320,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
320
320
  id: string | undefined;
321
321
  };
322
322
  }>, Values<{
323
+ setError: {
324
+ type: "setError";
325
+ params: NonReducibleUnknown;
326
+ };
323
327
  setLoadingResult: {
324
328
  type: "setLoadingResult";
325
329
  params: NonReducibleUnknown;
@@ -348,10 +352,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
348
352
  type: "setFinishStatusFailed";
349
353
  params: NonReducibleUnknown;
350
354
  };
351
- setError: {
352
- type: "setError";
353
- params: NonReducibleUnknown;
354
- };
355
355
  setModuleError: {
356
356
  type: "setModuleError";
357
357
  params: NonReducibleUnknown;
@@ -1,25 +1,25 @@
1
1
  import { t as api } from "./api-BDTZNnca.esm.js";
2
2
  import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
3
  import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
4
- import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-Cjpnacyg.esm.js";
4
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D3TaaDyZ.esm.js";
5
5
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
8
8
  import { n as electronicSignatureMachine } from "./electronicSignatureManager-DSZu9OHT.esm.js";
9
9
  import "./ae-signature.esm.js";
10
10
  import { t as antifraudMachine } from "./antifraudStateMachine-Bf-IiCq7.esm.js";
11
- import { t as authenticationMachine } from "./authenticationStateMachine-DiI8jfmO.esm.js";
11
+ import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
12
12
  import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Ce568YfR.esm.js";
13
13
  import { t as consentMachine } from "./consentStateMachine-Pc3Ez3mV.esm.js";
14
14
  import { t as curpValidationMachine } from "./curpValidationStateMachine-7i3TD8J2.esm.js";
15
15
  import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D23XTxl2.esm.js";
16
16
  import { t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
17
17
  import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
18
- import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-DmZLm35R.esm.js";
18
+ import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
19
19
  import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
20
20
  import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
21
- import { t as selfieMachine } from "./selfieStateMachine-ODRceav2.esm.js";
22
- import { t as idCaptureMachine } from "./idCaptureStateMachine-DYgckwCg.esm.js";
21
+ import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
22
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-DSVttQgS.esm.js";
23
23
  import { t as phoneMachine } from "./phoneStateMachine-wDQtaT38.esm.js";
24
24
  import { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
25
25
  import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BN4Obfl7.esm.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/core",
3
- "version": "0.0.0-dev-20260715-dcc78bcd",
3
+ "version": "0.0.0-dev-20260716-ab304429",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -272,12 +272,12 @@
272
272
  "@zxing/browser": "0.1.5"
273
273
  },
274
274
  "devDependencies": {
275
- "@vitest/coverage-v8": "^4.0.13",
275
+ "@vitest/coverage-v8": "4.1.4",
276
276
  "tsdown": "^0.22.8",
277
277
  "typescript": "^5.9.3",
278
- "vitest": "^4.0.13",
279
- "@incodetech/config": "1.0.2",
280
- "@incodetech/infra": "1.2.0"
278
+ "vitest": "4.1.4",
279
+ "@incodetech/infra": "1.2.0",
280
+ "@incodetech/config": "1.0.2"
281
281
  },
282
282
  "scripts": {
283
283
  "build": "tsdown -c tsdown.config.ts",
@@ -1 +0,0 @@
1
- import "./sessionInitializer-Cjpnacyg.esm.js";