@incodetech/core 0.0.0-dev-20260323-d5fdccb → 0.0.0-dev-20260324-90ddcfd

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 (82) hide show
  1. package/dist/{addressSearch-BBIa1heY.esm.js → addressSearch-DCaEdoev.esm.js} +4 -4
  2. package/dist/authentication.d.ts +10 -10
  3. package/dist/authentication.esm.js +11 -10
  4. package/dist/{authenticationManager-DZFI79F5.d.ts → authenticationManager-C-Mmg1uU.d.ts} +2 -2
  5. package/dist/{authenticationManager-h6dB_vib.esm.js → authenticationManager-CEGYyu8r.esm.js} +6 -6
  6. package/dist/{backCameraStream-BPxNH3Pg.esm.js → backCameraStream-BPzo60FO.esm.js} +1 -1
  7. package/dist/browserSimulation-DYAk0Ipe.esm.js +20 -0
  8. package/dist/consent.d.ts +56 -56
  9. package/dist/consent.esm.js +4 -4
  10. package/dist/curp-validation.d.ts +4 -4
  11. package/dist/curp-validation.esm.js +4 -4
  12. package/dist/{deepsightLoader-CZ_4kZPK.esm.js → deepsightLoader-ErxPZUBZ.esm.js} +5 -4
  13. package/dist/{deepsightService-DFek2Sxh.esm.js → deepsightService-BcdwWkYD.esm.js} +5 -23
  14. package/dist/{deepsightService-foKxxo3y.d.ts → deepsightService-C47Uyf6m.d.ts} +1 -1
  15. package/dist/document-capture.d.ts +60 -60
  16. package/dist/document-capture.esm.js +5 -5
  17. package/dist/document-upload.d.ts +52 -52
  18. package/dist/document-upload.esm.js +5 -5
  19. package/dist/ekyb.d.ts +2 -2
  20. package/dist/ekyb.esm.js +8 -6
  21. package/dist/ekyc.d.ts +2 -2
  22. package/dist/ekyc.esm.js +5 -5
  23. package/dist/email.d.ts +3 -3
  24. package/dist/email.esm.js +5 -5
  25. package/dist/{emailManager-OpJLWD9-.esm.js → emailManager-1W2Uh6du.esm.js} +4 -4
  26. package/dist/{emailManager-lUXVfa0R.d.ts → emailManager-CN9sSCz6.d.ts} +2 -2
  27. package/dist/{endpoints-Bydn-Ave.esm.js → endpoints-b2PxFIku.esm.js} +2 -0
  28. package/dist/{events-DzHYCTUI.esm.js → events-CbNkXF2Q.esm.js} +2 -2
  29. package/dist/extensibility.d.ts +14 -14
  30. package/dist/extensibility.esm.js +16 -14
  31. package/dist/face-match.d.ts +1 -1
  32. package/dist/face-match.esm.js +4 -4
  33. package/dist/{faceCaptureManagerFactory-Bavynz5Q.d.ts → faceCaptureManagerFactory-UFhWTbej.d.ts} +7 -7
  34. package/dist/{faceCaptureSetup-BOmXn1op.esm.js → faceCaptureSetup-CoeOjXeo.esm.js} +8 -8
  35. package/dist/flow.d.ts +7 -7
  36. package/dist/flow.esm.js +8 -6
  37. package/dist/{flowCompletionService-C-pC9OZ9.esm.js → flowCompletionService-DkbMP576.esm.js} +2 -2
  38. package/dist/{flowServices-Cc1HxYIC.esm.js → flowServices-jrv5Zxbr.esm.js} +48 -4
  39. package/dist/geolocation.d.ts +1 -1
  40. package/dist/geolocation.esm.js +4 -4
  41. package/dist/government-validation.d.ts +1 -1
  42. package/dist/government-validation.esm.js +4 -4
  43. package/dist/id.d.ts +9 -9
  44. package/dist/id.esm.js +12 -10
  45. package/dist/{idCaptureManager-DPzinE1o.esm.js → idCaptureManager-BniIgM20.esm.js} +43 -226
  46. package/dist/{idCaptureManager-Ih_zvBCr.d.ts → idCaptureManager-Dn7_eHt9.d.ts} +22 -8
  47. package/dist/index.d.ts +19 -10
  48. package/dist/index.esm.js +12 -10
  49. package/dist/{lib-3ivDs79I.esm.js → lib-VFNBaz_7.esm.js} +1 -1
  50. package/dist/mandatory-consent.d.ts +411 -0
  51. package/dist/mandatory-consent.esm.js +198 -0
  52. package/dist/phone.d.ts +3 -3
  53. package/dist/phone.esm.js +5 -5
  54. package/dist/{phoneManager-pTIOvlCD.d.ts → phoneManager-B0MT8wYz.d.ts} +2 -2
  55. package/dist/{phoneManager-BwBW-tRA.esm.js → phoneManager-Cvp5LFN7.esm.js} +4 -4
  56. package/dist/{recordingsRepository-DVPWOR9j.esm.js → recordingsRepository-DGWSMj-_.esm.js} +3 -3
  57. package/dist/redirect-to-mobile.d.ts +1 -1
  58. package/dist/redirect-to-mobile.esm.js +4 -4
  59. package/dist/selfie.d.ts +10 -10
  60. package/dist/selfie.esm.js +11 -10
  61. package/dist/{selfieManager-DT0oJmpD.esm.js → selfieManager-BxwT4tDD.esm.js} +3 -3
  62. package/dist/{selfieManager-uSCpF37G.d.ts → selfieManager-DSn8EPLE.d.ts} +2 -2
  63. package/dist/session-4QVMNIs5.esm.js +243 -0
  64. package/dist/session.d.ts +1 -1
  65. package/dist/session.esm.js +3 -3
  66. package/dist/{src-Cmpz4Jmw.esm.js → src-BX-m0lbm.esm.js} +2 -2
  67. package/dist/{stats-D76Thmqp.esm.js → stats-BaWAv541.esm.js} +1 -1
  68. package/dist/stats.esm.js +2 -2
  69. package/dist/{types-DSJflCEU.d.ts → types-0A1THNYO.d.ts} +5 -2
  70. package/dist/{types-CHzupruc.d.ts → types-BYFeUhw0.d.ts} +1 -1
  71. package/package.json +7 -3
  72. /package/dist/{Actor-D6rhGxJy.d.ts → Actor-By8WNHi-.d.ts} +0 -0
  73. /package/dist/{Manager-CVDYGoSq.d.ts → Manager-BWqHEUjI.d.ts} +0 -0
  74. /package/dist/{StateMachine-BqtRw_hz.d.ts → StateMachine-dxjI9q0V.d.ts} +0 -0
  75. /package/dist/{api-3fZO5bmj.esm.js → api-C2uzxrpN.esm.js} +0 -0
  76. /package/dist/{camera-CVBwqx-j.d.ts → camera-BCRgkMoe.d.ts} +0 -0
  77. /package/dist/{chunk-C24vxluH.esm.js → chunk-NXK2ElUW.esm.js} +0 -0
  78. /package/dist/{displayErrors-BgtBHbfb.d.ts → displayErrors-CV7ux9Fr.d.ts} +0 -0
  79. /package/dist/{flowCompletionService-De8JDo87.d.ts → flowCompletionService-sG6KA8y2.d.ts} +0 -0
  80. /package/dist/{id-r_CoQ3r-.esm.js → id-C3aKMJhc.esm.js} +0 -0
  81. /package/dist/{index-LKrIp3Oo.d.ts → index-DGdyPh8A.d.ts} +0 -0
  82. /package/dist/{warmup-DoQLFT3z.d.ts → warmup-B_dntecl.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as isApiConfigured, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
2
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
2
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
5
5
  function getTimestamp() {
@@ -1,17 +1,17 @@
1
- import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-Ih_zvBCr.js";
2
- import { a as IStorageCapability } from "./deepsightService-foKxxo3y.js";
3
- import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-Bavynz5Q.js";
4
- import "./warmup-DoQLFT3z.js";
5
- import "./Manager-CVDYGoSq.js";
6
- import "./camera-CVBwqx-j.js";
7
- import { n as createActor } from "./Actor-D6rhGxJy.js";
8
- import { r as fromPromise } from "./StateMachine-BqtRw_hz.js";
9
- import "./types-CHzupruc.js";
10
- import "./types-DSJflCEU.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-uSCpF37G.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DZFI79F5.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-lUXVfa0R.js";
14
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-pTIOvlCD.js";
1
+ import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-Dn7_eHt9.js";
2
+ import { a as IStorageCapability } from "./deepsightService-C47Uyf6m.js";
3
+ import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-UFhWTbej.js";
4
+ import "./warmup-B_dntecl.js";
5
+ import "./Manager-BWqHEUjI.js";
6
+ import "./camera-BCRgkMoe.js";
7
+ import { n as createActor } from "./Actor-By8WNHi-.js";
8
+ import { r as fromPromise } from "./StateMachine-dxjI9q0V.js";
9
+ import "./types-BYFeUhw0.js";
10
+ import "./types-0A1THNYO.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-DSn8EPLE.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-C-Mmg1uU.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CN9sSCz6.js";
14
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-B0MT8wYz.js";
15
15
 
16
16
  //#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
17
17
  /**
@@ -1,16 +1,18 @@
1
- import { S as createActor, x as fromPromise } from "./events-DzHYCTUI.esm.js";
2
- import "./backCameraStream-BPxNH3Pg.esm.js";
3
- import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-Cmpz4Jmw.esm.js";
4
- import "./recordingsRepository-DVPWOR9j.esm.js";
5
- import "./deepsightService-DFek2Sxh.esm.js";
6
- import "./api-3fZO5bmj.esm.js";
7
- import "./endpoints-Bydn-Ave.esm.js";
8
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DPzinE1o.esm.js";
9
- import "./stats-D76Thmqp.esm.js";
10
- import { t as faceCaptureMachine } from "./faceCaptureSetup-BOmXn1op.esm.js";
11
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-h6dB_vib.esm.js";
12
- import { n as createEmailManagerFromActor } from "./emailManager-OpJLWD9-.esm.js";
13
- import { n as createSelfieManagerFromActor } from "./selfieManager-DT0oJmpD.esm.js";
14
- import { n as createPhoneManagerFromActor } from "./phoneManager-BwBW-tRA.esm.js";
1
+ import { S as createActor, x as fromPromise } from "./events-CbNkXF2Q.esm.js";
2
+ import "./backCameraStream-BPzo60FO.esm.js";
3
+ import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-BX-m0lbm.esm.js";
4
+ import "./recordingsRepository-DGWSMj-_.esm.js";
5
+ import "./browserSimulation-DYAk0Ipe.esm.js";
6
+ import "./api-C2uzxrpN.esm.js";
7
+ import "./endpoints-b2PxFIku.esm.js";
8
+ import "./session-4QVMNIs5.esm.js";
9
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-BniIgM20.esm.js";
10
+ import "./deepsightService-BcdwWkYD.esm.js";
11
+ import "./stats-BaWAv541.esm.js";
12
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CoeOjXeo.esm.js";
13
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CEGYyu8r.esm.js";
14
+ import { n as createEmailManagerFromActor } from "./emailManager-1W2Uh6du.esm.js";
15
+ import { n as createSelfieManagerFromActor } from "./selfieManager-BxwT4tDD.esm.js";
16
+ import { n as createPhoneManagerFromActor } from "./phoneManager-Cvp5LFN7.esm.js";
15
17
 
16
18
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVDYGoSq.js";
1
+ import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,7 +1,7 @@
1
- import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
- import { A as createManager } from "./src-Cmpz4Jmw.esm.js";
3
- import { t as api } from "./api-3fZO5bmj.esm.js";
4
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
2
+ import { A as createManager } from "./src-BX-m0lbm.esm.js";
3
+ import { t as api } from "./api-C2uzxrpN.esm.js";
4
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
5
5
 
6
6
  //#region src/modules/face-match/faceMatchServices.ts
7
7
  /**
@@ -1,10 +1,10 @@
1
- import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-foKxxo3y.js";
2
- import { n as WasmPipeline } from "./warmup-DoQLFT3z.js";
3
- import { t as Manager } from "./Manager-CVDYGoSq.js";
4
- import { t as CameraStream } from "./camera-CVBwqx-j.js";
5
- import { t as ActorRefFrom } from "./Actor-D6rhGxJy.js";
6
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BqtRw_hz.js";
7
- import { r as FlowModuleConfig, t as Flow } from "./types-DSJflCEU.js";
1
+ import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-C47Uyf6m.js";
2
+ import { n as WasmPipeline } from "./warmup-B_dntecl.js";
3
+ import { t as Manager } from "./Manager-BWqHEUjI.js";
4
+ import { t as CameraStream } from "./camera-BCRgkMoe.js";
5
+ import { t as ActorRefFrom } from "./Actor-By8WNHi-.js";
6
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-dxjI9q0V.js";
7
+ import { r as FlowModuleConfig, t as Flow } from "./types-0A1THNYO.js";
8
8
 
9
9
  //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
10
10
  /**
@@ -1,10 +1,10 @@
1
- import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-BPxNH3Pg.esm.js";
3
- import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-Cmpz4Jmw.esm.js";
4
- import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-DVPWOR9j.esm.js";
5
- import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
6
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
7
- import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
1
+ import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-BPzo60FO.esm.js";
3
+ import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-BX-m0lbm.esm.js";
4
+ import { a as checkPermission, c as getDeviceClass, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-DGWSMj-_.esm.js";
5
+ import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
6
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
7
+ import { t as addDeviceStats } from "./stats-BaWAv541.esm.js";
8
8
 
9
9
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
10
10
  function getPermissionStatus(snapshot) {
@@ -364,7 +364,7 @@ async function stopRecording(session) {
364
364
  }
365
365
  }
366
366
  async function initializeDeepsightSession(options) {
367
- const { loadDeepsightSession } = await import("./deepsightLoader-CZ_4kZPK.esm.js");
367
+ const { loadDeepsightSession } = await import("./deepsightLoader-ErxPZUBZ.esm.js");
368
368
  return loadDeepsightSession({
369
369
  ds: options.ds,
370
370
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { n as WasmPipeline } from "./warmup-DoQLFT3z.js";
2
- import { t as Manager } from "./Manager-CVDYGoSq.js";
3
- import "./camera-CVBwqx-j.js";
4
- import { t as AnyStateMachine } from "./StateMachine-BqtRw_hz.js";
5
- import "./types-CHzupruc.js";
6
- import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-DSJflCEU.js";
7
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-De8JDo87.js";
1
+ import { n as WasmPipeline } from "./warmup-B_dntecl.js";
2
+ import { t as Manager } from "./Manager-BWqHEUjI.js";
3
+ import "./camera-BCRgkMoe.js";
4
+ import { t as AnyStateMachine } from "./StateMachine-dxjI9q0V.js";
5
+ import "./types-BYFeUhw0.js";
6
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-0A1THNYO.js";
7
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-sG6KA8y2.js";
8
8
 
9
9
  //#region src/modules/flow/flowUtils.d.ts
10
10
 
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,11 @@
1
- import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
- import { A as createManager } from "./src-Cmpz4Jmw.esm.js";
3
- import "./api-3fZO5bmj.esm.js";
4
- import "./endpoints-Bydn-Ave.esm.js";
5
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
6
- import { t as getFinishStatus } from "./flowCompletionService-C-pC9OZ9.esm.js";
1
+ import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
2
+ import { A as createManager } from "./src-BX-m0lbm.esm.js";
3
+ import "./browserSimulation-DYAk0Ipe.esm.js";
4
+ import "./api-C2uzxrpN.esm.js";
5
+ import "./endpoints-b2PxFIku.esm.js";
6
+ import "./session-4QVMNIs5.esm.js";
7
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-jrv5Zxbr.esm.js";
8
+ import { t as getFinishStatus } from "./flowCompletionService-DkbMP576.esm.js";
7
9
 
8
10
  //#region src/modules/flow/flowStateMachine.ts
9
11
  const flowMachine = setup({
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-3fZO5bmj.esm.js";
2
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { t as api } from "./api-C2uzxrpN.esm.js";
2
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
@@ -1,5 +1,6 @@
1
- import { t as api } from "./api-3fZO5bmj.esm.js";
2
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { t as api } from "./api-C2uzxrpN.esm.js";
2
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
3
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./session-4QVMNIs5.esm.js";
3
4
 
4
5
  //#region src/modules/flow/flowUtils.ts
5
6
  const WASM_MODULE_PIPELINES = {
@@ -68,15 +69,58 @@ function normalizeFlowModules(modules) {
68
69
 
69
70
  //#endregion
70
71
  //#region src/modules/flow/flowServices.ts
72
+ const REGULATION_TYPES = [
73
+ "US",
74
+ "Worldwide",
75
+ "Other",
76
+ "US_Illinois",
77
+ "US_Texas",
78
+ "US_California",
79
+ "US_Washington"
80
+ ];
81
+ const REGULATION_TYPE_ALIASES = {
82
+ us: "US",
83
+ worldwide: "Worldwide",
84
+ worldwide_consent: "Worldwide",
85
+ other: "Other",
86
+ us_illinois: "US_Illinois",
87
+ usillinois: "US_Illinois",
88
+ us_texas: "US_Texas",
89
+ ustexas: "US_Texas",
90
+ us_california: "US_California",
91
+ uscalifornia: "US_California",
92
+ us_washington: "US_Washington",
93
+ uswashington: "US_Washington"
94
+ };
95
+ function toRegulationType(value) {
96
+ if (!value) return "Other";
97
+ if (REGULATION_TYPES.includes(value)) return value;
98
+ return REGULATION_TYPE_ALIASES[value.trim().toLowerCase().replace(/[\s-]+/g, "_")] ?? "Other";
99
+ }
100
+ function prependMandatoryConsent(flow) {
101
+ if (flow.mandatoryConsentCheck === false) return flow;
102
+ const fingerprintResult = getSessionFingerprintResult();
103
+ if (!fingerprintResult?.showMandatoryConsent) return flow;
104
+ if (flow.flowModules.find((module) => module.key === "MANDATORY_CONSENT")) return flow;
105
+ const mandatoryConsentModule = {
106
+ key: "MANDATORY_CONSENT",
107
+ configuration: { consentType: toRegulationType(fingerprintResult.regulationType) }
108
+ };
109
+ return {
110
+ ...flow,
111
+ flowModules: [mandatoryConsentModule, ...flow.flowModules]
112
+ };
113
+ }
71
114
  const getFlow = async (signal) => {
115
+ await initializeSession({ signal }).catch(() => void 0);
72
116
  const res = await api.get(endpoints.flow, { signal });
73
117
  if (!res.ok) throw new Error(`GET /flow failed: ${res.status} ${res.statusText}`);
74
118
  const data = res.data;
75
119
  const normalizedModules = normalizeFlowModules(data.flowModules ?? []);
76
- return {
120
+ return prependMandatoryConsent({
77
121
  ...data,
78
122
  flowModules: normalizedModules
79
- };
123
+ });
80
124
  };
81
125
 
82
126
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVDYGoSq.js";
1
+ import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
4
4
  type GeolocationCoords = {
@@ -1,7 +1,7 @@
1
- import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
- import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-Cmpz4Jmw.esm.js";
3
- import { t as api } from "./api-3fZO5bmj.esm.js";
4
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
2
+ import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-BX-m0lbm.esm.js";
3
+ import { t as api } from "./api-C2uzxrpN.esm.js";
4
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
5
5
 
6
6
  //#region src/modules/geolocation/geolocationServices.ts
7
7
  async function addGeolocation(params, signal) {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVDYGoSq.js";
1
+ import { t as Manager } from "./Manager-BWqHEUjI.js";
2
2
 
3
3
  //#region src/modules/government-validation/types.d.ts
4
4
  type GovernmentValidationConfig = {
@@ -1,7 +1,7 @@
1
- import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-DzHYCTUI.esm.js";
2
- import { A as createManager, g as BrowserTimerProvider } from "./src-Cmpz4Jmw.esm.js";
3
- import { t as api } from "./api-3fZO5bmj.esm.js";
4
- import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
1
+ import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-CbNkXF2Q.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-BX-m0lbm.esm.js";
3
+ import { t as api } from "./api-C2uzxrpN.esm.js";
4
+ import { t as endpoints } from "./endpoints-b2PxFIku.esm.js";
5
5
 
6
6
  //#region src/modules/government-validation/governmentValidationServices.ts
7
7
  async function processGovernmentValidation(signal) {
package/dist/id.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-Ih_zvBCr.js";
2
- import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-foKxxo3y.js";
3
- import "./Manager-CVDYGoSq.js";
4
- import { t as CameraStream } from "./camera-CVBwqx-j.js";
5
- import "./Actor-D6rhGxJy.js";
6
- import "./StateMachine-BqtRw_hz.js";
7
- import "./types-CHzupruc.js";
8
- import "./types-DSJflCEU.js";
9
- import "./index-LKrIp3Oo.js";
1
+ import { A as IdCaptureEvent, B as UploadIdResponse, C as CapturedImage, D as IdCaptureConfig, E as ID_ERROR_CODES, F as IdDocumentType, H as IdCaptureSettings, I as IdError, L as IdErrorCode, M as IdCaptureInput, N as IdCaptureMode, O as IdCaptureContext, P as IdCaptureThresholds, R as IdFlowStep, S as CaptureIdResponse, T as DetectionStatus, V as DetectionOrientation, _ as CreateIdCaptureActorOptions, a as IdCaptureInitResult, b as IdCaptureMachine, c as UploadIdImageParams, d as processId, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, j as IdCaptureGeometry, k as IdCaptureDependencies, l as ValidationError, m as stopStream, n as IdCaptureState, o as InitializeIdCaptureParams, p as stopRecording, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as IdCaptureActor, w as DetectionArea, x as idCaptureMachine, y as createIdCaptureActor, z as RecordingSession } from "./idCaptureManager-Dn7_eHt9.js";
2
+ import { n as PermissionResult, r as PermissionStatus } from "./deepsightService-C47Uyf6m.js";
3
+ import "./Manager-BWqHEUjI.js";
4
+ import { t as CameraStream } from "./camera-BCRgkMoe.js";
5
+ import "./Actor-By8WNHi-.js";
6
+ import "./StateMachine-dxjI9q0V.js";
7
+ import "./types-BYFeUhw0.js";
8
+ import "./types-0A1THNYO.js";
9
+ import "./index-DGdyPh8A.js";
10
10
  export { CameraStream, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
package/dist/id.esm.js CHANGED
@@ -1,12 +1,14 @@
1
- import "./events-DzHYCTUI.esm.js";
2
- import "./backCameraStream-BPxNH3Pg.esm.js";
3
- import "./src-Cmpz4Jmw.esm.js";
4
- import "./recordingsRepository-DVPWOR9j.esm.js";
5
- import "./deepsightService-DFek2Sxh.esm.js";
6
- import "./api-3fZO5bmj.esm.js";
7
- import "./endpoints-Bydn-Ave.esm.js";
8
- import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-DPzinE1o.esm.js";
9
- import "./stats-D76Thmqp.esm.js";
10
- import "./id-r_CoQ3r-.esm.js";
1
+ import "./events-CbNkXF2Q.esm.js";
2
+ import "./backCameraStream-BPzo60FO.esm.js";
3
+ import "./src-BX-m0lbm.esm.js";
4
+ import "./recordingsRepository-DGWSMj-_.esm.js";
5
+ import "./browserSimulation-DYAk0Ipe.esm.js";
6
+ import "./api-C2uzxrpN.esm.js";
7
+ import "./endpoints-b2PxFIku.esm.js";
8
+ import "./session-4QVMNIs5.esm.js";
9
+ import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-BniIgM20.esm.js";
10
+ import "./deepsightService-BcdwWkYD.esm.js";
11
+ import "./stats-BaWAv541.esm.js";
12
+ import "./id-C3aKMJhc.esm.js";
11
13
 
12
14
  export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };