@incodetech/core 0.0.0-dev-20260313-2675d26 → 0.0.0-dev-20260313-18a17d6

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 (65) hide show
  1. package/dist/authentication.d.ts +9 -9
  2. package/dist/authentication.esm.js +10 -10
  3. package/dist/{backCameraStream-DXS4n4yS.esm.js → backCameraStream-ZcgmV6ek.esm.js} +1 -1
  4. package/dist/curp-validation.d.ts +4 -4
  5. package/dist/curp-validation.esm.js +5 -5
  6. package/dist/{deepsightLoader-CCuD-pzB.esm.js → deepsightLoader-ChivsvQS.esm.js} +4 -4
  7. package/dist/{deepsightService-Dv1ILk27.d.ts → deepsightService-CYCDsan2.d.ts} +1 -1
  8. package/dist/{deepsightService-D2rnPj53.esm.js → deepsightService-DJ6yJFWI.esm.js} +3 -3
  9. package/dist/document-capture.d.ts +49 -49
  10. package/dist/document-capture.esm.js +6 -6
  11. package/dist/document-upload.d.ts +49 -49
  12. package/dist/document-upload.esm.js +5 -5
  13. package/dist/ekyb.d.ts +2 -2
  14. package/dist/ekyb.esm.js +6 -6
  15. package/dist/ekyc.d.ts +2 -2
  16. package/dist/ekyc.esm.js +6 -6
  17. package/dist/email.d.ts +1 -1
  18. package/dist/email.esm.js +5 -5
  19. package/dist/{endpoints-PMCuQkqs.esm.js → endpoints-5sPFFmaB.esm.js} +4 -1
  20. package/dist/{events-Bf73PAdv.esm.js → events-b4_xvENs.esm.js} +2 -2
  21. package/dist/face-match.d.ts +1 -1
  22. package/dist/face-match.esm.js +5 -5
  23. package/dist/{faceCaptureManagerFactory-FEuTMK4j.d.ts → faceCaptureManagerFactory-CMLiRjYr.d.ts} +5 -5
  24. package/dist/{faceCaptureSetup-pxm6Cjua.esm.js → faceCaptureSetup-2WooW-jJ.esm.js} +9 -9
  25. package/dist/flow.d.ts +14 -7
  26. package/dist/flow.esm.js +9 -5
  27. package/dist/{flowCompletionService-C2Cjw8WY.esm.js → flowCompletionService-DHXqHOAk.esm.js} +2 -2
  28. package/dist/geolocation.d.ts +1 -1
  29. package/dist/geolocation.esm.js +5 -5
  30. package/dist/government-validation.d.ts +1 -1
  31. package/dist/government-validation.esm.js +4 -4
  32. package/dist/{id-aQ6PcfVo.esm.js → id-DbIx2_iD.esm.js} +10 -10
  33. package/dist/id.d.ts +9 -9
  34. package/dist/id.esm.js +10 -10
  35. package/dist/{index-C_QjKcTy.d.ts → index-CSEcy73I.d.ts} +7 -7
  36. package/dist/index.d.ts +10 -10
  37. package/dist/index.esm.js +10 -10
  38. package/dist/{lib-DVaeY7hq.esm.js → lib-V3Lo-Jit.esm.js} +1 -1
  39. package/dist/phone.d.ts +1 -1
  40. package/dist/phone.esm.js +5 -5
  41. package/dist/redirect-to-mobile.d.ts +106 -0
  42. package/dist/redirect-to-mobile.esm.js +338 -0
  43. package/dist/selfie.d.ts +9 -9
  44. package/dist/selfie.esm.js +10 -10
  45. package/dist/session.d.ts +1 -1
  46. package/dist/session.esm.js +3 -3
  47. package/dist/{src-BJhTmsja.esm.js → src-DJirOlIN.esm.js} +2 -2
  48. package/dist/{stats-De--Z9N5.esm.js → stats-D76Thmqp.esm.js} +1 -1
  49. package/dist/stats.esm.js +2 -2
  50. package/dist/{streamingEvents-t3E89TmG.esm.js → streamingEvents-CuDSXpr7.esm.js} +3 -3
  51. package/dist/{types-DrdrHHxZ.d.ts → types-Bn54lmeM.d.ts} +1 -1
  52. package/dist/{types-B_l5fu_D.d.ts → types-DnrAr9fb.d.ts} +1 -1
  53. package/package.json +7 -3
  54. /package/dist/{Actor-SKZvDOCc.d.ts → Actor-B6Lr-x6S.d.ts} +0 -0
  55. /package/dist/{Manager-CVog-etk.d.ts → Manager-CG5CQ1kY.d.ts} +0 -0
  56. /package/dist/{StateMachine-Coiuk0UD.d.ts → StateMachine-WHeQE3lC.d.ts} +0 -0
  57. /package/dist/{api-CdJjfxTX.esm.js → api-3fZO5bmj.esm.js} +0 -0
  58. /package/dist/{camera-HI2fNiV5.d.ts → camera-D7zu0Mls.d.ts} +0 -0
  59. /package/dist/{chunk-3Wl3T5mL.esm.js → chunk-B1Ox1Owh.esm.js} +0 -0
  60. /package/dist/{flowCompletionService-DtL1jOz4.d.ts → flowCompletionService-DeWKduBI.d.ts} +0 -0
  61. /package/dist/{types-dSdX5z-n.d.ts → types-B4KNFqC4.d.ts} +0 -0
  62. /package/dist/{types-WhAUdEJw.d.ts → types-BYYaKde4.d.ts} +0 -0
  63. /package/dist/{usStates-IoVg25OV.esm.js → usStates-D4SmlpeT.esm.js} +0 -0
  64. /package/dist/{warmup-CO10kO5G.d.ts → warmup-CAEKix9h.d.ts} +0 -0
  65. /package/dist/{xstate.esm-yA5caGbx.esm.js → xstate.esm-07M59Cte.esm.js} +0 -0
package/dist/ekyb.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Bf73PAdv.esm.js";
2
- import { O as createManager } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
6
- import { t as usStateOptions } from "./usStates-IoVg25OV.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
2
+ import { O as createManager } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
+ import { t as usStateOptions } from "./usStates-D4SmlpeT.esm.js";
7
7
 
8
8
  //#region src/modules/ekyb/ekybConstants.ts
9
9
  const UBO_INPUT_LIMIT = 8;
package/dist/ekyc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
2
- import { t as FieldDef } from "./types-WhAUdEJw.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
+ import { t as FieldDef } from "./types-BYYaKde4.js";
3
3
 
4
4
  //#region src/modules/ekyc/types.d.ts
5
5
  type EkycFieldSource = 'user_input' | 'document_scan' | 'poa_document' | 'phone_module_input' | 'email_module_input' | false;
package/dist/ekyc.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Bf73PAdv.esm.js";
2
- import { O as createManager, m as BrowserTimerProvider } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
6
- import { t as usStateOptions } from "./usStates-IoVg25OV.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
2
+ import { O as createManager, m as BrowserTimerProvider } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
+ import { t as usStateOptions } from "./usStates-D4SmlpeT.esm.js";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
9
9
  var metadata_min_json_default = {
package/dist/email.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
2
 
3
3
  //#region src/modules/email/types.d.ts
4
4
 
package/dist/email.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Bf73PAdv.esm.js";
2
- import { O as createManager, m as BrowserTimerProvider } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
2
+ import { O as createManager, m as BrowserTimerProvider } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
6
 
7
7
  //#region src/modules/email/emailServices.ts
8
8
  async function fetchEmail(signal) {
@@ -49,7 +49,10 @@ const endpoints = {
49
49
  documentV3: "/omni/add/document/v3",
50
50
  documentLegacy: "/omni/add/document",
51
51
  cfdi: "/omni/process/cfdi",
52
- finishStatus: "/omni/finish-status"
52
+ finishStatus: "/omni/finish-status",
53
+ onboardingUrl: "/omni/onboarding-url",
54
+ sendRedirectSms: "/omni/notify/send-sms",
55
+ qrRefreshUuid: "/omni/qr/refresh"
53
56
  };
54
57
 
55
58
  //#endregion
@@ -1,5 +1,5 @@
1
- import { i as isApiConfigured, r as getToken, t as api } from "./api-CdJjfxTX.esm.js";
2
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
5
5
  function getTimestamp() {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,8 +1,8 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Bf73PAdv.esm.js";
2
- import { O as createManager } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
2
+ import { O as createManager } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
6
 
7
7
  //#region src/modules/face-match/faceMatchServices.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-dSdX5z-n.js";
2
- import { t as WasmPipeline } from "./warmup-CO10kO5G.js";
3
- import { t as Manager } from "./Manager-CVog-etk.js";
4
- import { t as CameraStream } from "./camera-HI2fNiV5.js";
5
- import { t as Flow } from "./types-DrdrHHxZ.js";
1
+ import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-B4KNFqC4.js";
2
+ import { t as WasmPipeline } from "./warmup-CAEKix9h.js";
3
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
4
+ import { t as CameraStream } from "./camera-D7zu0Mls.js";
5
+ import { t as Flow } from "./types-Bn54lmeM.js";
6
6
 
7
7
  //#region ../infra/src/capabilities/IWasmUtilCapability.d.ts
8
8
  type WasmUtilConfig = MLProviderConfig & {
@@ -1,11 +1,11 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-Bf73PAdv.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DXS4n4yS.esm.js";
3
- import { D as stopCameraStream, E as requestCameraAccess, O as createManager, a as FaceDetectionProvider, b as StreamCanvasCapture, d as LocalRecordingProvider, l as OpenViduRecordingProvider, y as StreamCanvasProcessingSession } from "./src-BJhTmsja.esm.js";
4
- import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
5
- import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-t3E89TmG.esm.js";
6
- import { r as getToken, t as api } from "./api-CdJjfxTX.esm.js";
7
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
8
- import { t as addDeviceStats } from "./stats-De--Z9N5.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-ZcgmV6ek.esm.js";
3
+ import { D as stopCameraStream, E as requestCameraAccess, O as createManager, a as FaceDetectionProvider, b as StreamCanvasCapture, d as LocalRecordingProvider, l as OpenViduRecordingProvider, y as StreamCanvasProcessingSession } from "./src-DJirOlIN.esm.js";
4
+ import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
5
+ import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-CuDSXpr7.esm.js";
6
+ import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
7
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
8
+ import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
9
9
 
10
10
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
11
11
  function getPermissionStatus(snapshot) {
@@ -445,7 +445,7 @@ async function stopRecording(session) {
445
445
  }
446
446
  }
447
447
  async function initializeDeepsightSession(options) {
448
- const { loadDeepsightSession } = await import("./deepsightLoader-CCuD-pzB.esm.js");
448
+ const { loadDeepsightSession } = await import("./deepsightLoader-ChivsvQS.esm.js");
449
449
  return loadDeepsightSession({
450
450
  ds: options.ds,
451
451
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { t as WasmPipeline } from "./warmup-CO10kO5G.js";
2
- import { t as Manager } from "./Manager-CVog-etk.js";
3
- import "./camera-HI2fNiV5.js";
4
- import { t as AnyStateMachine } from "./StateMachine-Coiuk0UD.js";
5
- import "./types-B_l5fu_D.js";
6
- import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-DrdrHHxZ.js";
7
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-DtL1jOz4.js";
1
+ import { t as WasmPipeline } from "./warmup-CAEKix9h.js";
2
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
3
+ import "./camera-D7zu0Mls.js";
4
+ import { t as AnyStateMachine } from "./StateMachine-WHeQE3lC.js";
5
+ import "./types-DnrAr9fb.js";
6
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-Bn54lmeM.js";
7
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-DeWKduBI.js";
8
8
 
9
9
  //#region src/modules/flow/flowUtils.d.ts
10
10
 
@@ -195,6 +195,8 @@ type OrchestratedFlowEvent = {
195
195
  type: 'RESET';
196
196
  } | {
197
197
  type: 'MODULE_COMPLETE';
198
+ } | {
199
+ type: 'COMPLETE_FLOW';
198
200
  } | {
199
201
  type: '*';
200
202
  [key: string]: unknown;
@@ -264,6 +266,11 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
264
266
  * ```
265
267
  */
266
268
  completeModule(): void;
269
+ /**
270
+ * Skip all remaining modules and go straight to the completion step.
271
+ * Used when the flow was completed externally (e.g. via redirect to mobile).
272
+ */
273
+ completeFlow(): void;
267
274
  /**
268
275
  * Signal that the current module encountered an error.
269
276
  * Call this from your UI component's `onError` callback if you want
package/dist/flow.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import { O as createManager } from "./src-BJhTmsja.esm.js";
2
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
3
- import { t as api } from "./api-CdJjfxTX.esm.js";
4
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
5
- import { t as getFinishStatus } from "./flowCompletionService-C2Cjw8WY.esm.js";
1
+ import { O as createManager } from "./src-DJirOlIN.esm.js";
2
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
3
+ import { t as api } from "./api-3fZO5bmj.esm.js";
4
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
5
+ import { t as getFinishStatus } from "./flowCompletionService-DHXqHOAk.esm.js";
6
6
 
7
7
  //#region src/modules/flow/flowUtils.ts
8
8
  const WASM_MODULE_PIPELINES = {
@@ -531,6 +531,7 @@ const orchestratedFlowMachine = setup({
531
531
  target: "error",
532
532
  actions: assign(({ event }) => ({ error: String(event.error) }))
533
533
  },
534
+ COMPLETE_FLOW: { target: "completing" },
534
535
  RESET: {
535
536
  target: "idle",
536
537
  actions: "resetContext"
@@ -634,6 +635,9 @@ function createApi({ actor, getSnapshot }) {
634
635
  completeModule() {
635
636
  actor.send({ type: "MODULE_COMPLETE" });
636
637
  },
638
+ completeFlow() {
639
+ actor.send({ type: "COMPLETE_FLOW" });
640
+ },
637
641
  errorModule(error) {
638
642
  actor.send({
639
643
  type: "MODULE_ERROR",
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-CdJjfxTX.esm.js";
2
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
4
4
  type GeolocationCoords = {
@@ -1,8 +1,8 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-Bf73PAdv.esm.js";
2
- import { F as isIOS, N as isAndroid, O as createManager, v as BrowserGeolocationProvider } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { d as addEvent, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
2
+ import { F as isIOS, N as isAndroid, O as createManager, v as BrowserGeolocationProvider } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
6
 
7
7
  //#region src/modules/geolocation/geolocationServices.ts
8
8
  async function addGeolocation(params, signal) {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
2
 
3
3
  //#region src/modules/government-validation/types.d.ts
4
4
  type GovernmentValidationConfig = {
@@ -1,7 +1,7 @@
1
- import { O as createManager, m as BrowserTimerProvider } from "./src-BJhTmsja.esm.js";
2
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
3
- import { t as api } from "./api-CdJjfxTX.esm.js";
4
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { O as createManager, m as BrowserTimerProvider } from "./src-DJirOlIN.esm.js";
2
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
3
+ import { t as api } from "./api-3fZO5bmj.esm.js";
4
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
5
5
 
6
6
  //#region src/modules/government-validation/governmentValidationServices.ts
7
7
  async function processGovernmentValidation(signal) {
@@ -1,12 +1,12 @@
1
- import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-Bf73PAdv.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-DXS4n4yS.esm.js";
3
- import { C as IncodeCanvas, O as createManager, P as isDesktop, _ as BrowserEnvironmentProvider, b as StreamCanvasCapture, f as IpifyProvider, g as BrowserInfoProvider, h as BrowserStorageProvider, i as IdCaptureProvider, j as getWindowDimensions, l as OpenViduRecordingProvider, m as BrowserTimerProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as FingerprintProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, y as StreamCanvasProcessingSession } from "./src-BJhTmsja.esm.js";
4
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
5
- import { i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-t3E89TmG.esm.js";
6
- import { n as isBrowserSimulation } from "./deepsightService-D2rnPj53.esm.js";
7
- import { n as getApi, r as getToken, t as api } from "./api-CdJjfxTX.esm.js";
8
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
9
- import { t as addDeviceStats } from "./stats-De--Z9N5.esm.js";
1
+ import { d as addEvent, m as revokeObjectURL, n as eventModuleNames } from "./events-b4_xvENs.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-ZcgmV6ek.esm.js";
3
+ import { C as IncodeCanvas, O as createManager, P as isDesktop, _ as BrowserEnvironmentProvider, b as StreamCanvasCapture, f as IpifyProvider, g as BrowserInfoProvider, h as BrowserStorageProvider, i as IdCaptureProvider, j as getWindowDimensions, l as OpenViduRecordingProvider, m as BrowserTimerProvider, n as DEFAULT_ID_CAPTURE_THRESHOLDS, p as FingerprintProvider, t as DEFAULT_ID_CAPTURE_MODEL_VERSION, y as StreamCanvasProcessingSession } from "./src-DJirOlIN.esm.js";
4
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
5
+ import { i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-CuDSXpr7.esm.js";
6
+ import { n as isBrowserSimulation } from "./deepsightService-DJ6yJFWI.esm.js";
7
+ import { n as getApi, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
8
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
9
+ import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
10
10
 
11
11
  //#region src/internal/session/sessionService.ts
12
12
  /**
@@ -896,7 +896,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
896
896
  });
897
897
  const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
898
898
  if (!input.dependencies) return;
899
- const { loadDeepsightSession } = await import("./deepsightLoader-CCuD-pzB.esm.js");
899
+ const { loadDeepsightSession } = await import("./deepsightLoader-ChivsvQS.esm.js");
900
900
  return loadDeepsightSession({
901
901
  ds: input.ds,
902
902
  storage: input.dependencies.storage,
package/dist/id.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-C_QjKcTy.js";
2
- import "./deepsightService-Dv1ILk27.js";
3
- import { n as PermissionStatus, t as PermissionResult } from "./types-dSdX5z-n.js";
4
- import "./Manager-CVog-etk.js";
5
- import { t as CameraStream } from "./camera-HI2fNiV5.js";
6
- import "./Actor-SKZvDOCc.js";
7
- import "./StateMachine-Coiuk0UD.js";
8
- import "./types-B_l5fu_D.js";
9
- import "./types-DrdrHHxZ.js";
1
+ import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-CSEcy73I.js";
2
+ import "./deepsightService-CYCDsan2.js";
3
+ import { n as PermissionStatus, t as PermissionResult } from "./types-B4KNFqC4.js";
4
+ import "./Manager-CG5CQ1kY.js";
5
+ import { t as CameraStream } from "./camera-D7zu0Mls.js";
6
+ import "./Actor-B6Lr-x6S.js";
7
+ import "./StateMachine-WHeQE3lC.js";
8
+ import "./types-DnrAr9fb.js";
9
+ import "./types-Bn54lmeM.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,12 @@
1
- import "./events-Bf73PAdv.esm.js";
2
- import "./backCameraStream-DXS4n4yS.esm.js";
3
- import "./src-BJhTmsja.esm.js";
4
- import "./xstate.esm-yA5caGbx.esm.js";
5
- import "./streamingEvents-t3E89TmG.esm.js";
6
- import "./deepsightService-D2rnPj53.esm.js";
7
- import "./api-CdJjfxTX.esm.js";
8
- import "./endpoints-PMCuQkqs.esm.js";
9
- import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-aQ6PcfVo.esm.js";
10
- import "./stats-De--Z9N5.esm.js";
1
+ import "./events-b4_xvENs.esm.js";
2
+ import "./backCameraStream-ZcgmV6ek.esm.js";
3
+ import "./src-DJirOlIN.esm.js";
4
+ import "./xstate.esm-07M59Cte.esm.js";
5
+ import "./streamingEvents-CuDSXpr7.esm.js";
6
+ import "./deepsightService-DJ6yJFWI.esm.js";
7
+ import "./api-3fZO5bmj.esm.js";
8
+ import "./endpoints-5sPFFmaB.esm.js";
9
+ import { a as processId, c as stopStream, d as ID_ERROR_CODES, i as initializeIdCapture, l as uploadIdImage, n as createIdCaptureActor, o as startRecordingSession, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-DbIx2_iD.esm.js";
10
+ import "./stats-D76Thmqp.esm.js";
11
11
 
12
12
  export { ID_ERROR_CODES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
@@ -1,10 +1,10 @@
1
- import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-Dv1ILk27.js";
2
- import { a as RecordingConnection, i as IRecordingCapability, n as PermissionStatus, o as IMLProviderCapability, r as IStorageCapability, s as MLProviderConfig, t as PermissionResult } from "./types-dSdX5z-n.js";
3
- import { t as Manager } from "./Manager-CVog-etk.js";
4
- import { t as CameraStream } from "./camera-HI2fNiV5.js";
5
- import { t as ActorRefFrom } from "./Actor-SKZvDOCc.js";
6
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-Coiuk0UD.js";
7
- import { i as TutorialIdConfig, t as Flow } from "./types-DrdrHHxZ.js";
1
+ import { i as IncodeCanvas, n as StreamCanvasCapture, r as IMotionSensorCapability, t as DeepsightService } from "./deepsightService-CYCDsan2.js";
2
+ import { a as RecordingConnection, i as IRecordingCapability, n as PermissionStatus, o as IMLProviderCapability, r as IStorageCapability, s as MLProviderConfig, t as PermissionResult } from "./types-B4KNFqC4.js";
3
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
4
+ import { t as CameraStream } from "./camera-D7zu0Mls.js";
5
+ import { t as ActorRefFrom } from "./Actor-B6Lr-x6S.js";
6
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-WHeQE3lC.js";
7
+ import { i as TutorialIdConfig, t as Flow } from "./types-Bn54lmeM.js";
8
8
 
9
9
  //#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
10
10
  interface IAnalyticsCapability {
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-C_QjKcTy.js";
2
- import "./deepsightService-Dv1ILk27.js";
3
- import { n as PermissionStatus, t as PermissionResult } from "./types-dSdX5z-n.js";
4
- import { n as warmupWasm, t as WasmPipeline } from "./warmup-CO10kO5G.js";
5
- import "./Manager-CVog-etk.js";
6
- import { t as CameraStream } from "./camera-HI2fNiV5.js";
7
- import "./Actor-SKZvDOCc.js";
8
- import "./StateMachine-Coiuk0UD.js";
9
- import "./types-B_l5fu_D.js";
10
- import "./types-DrdrHHxZ.js";
1
+ import { A as IdCaptureGeometry, B as DetectionOrientation, C as DetectionArea, D as IdCaptureContext, E as IdCaptureConfig, F as IdError, I as IdErrorCode, L as IdFlowStep, M as IdCaptureMode, N as IdCaptureThresholds, O as IdCaptureDependencies, P as IdDocumentType, R as RecordingSession, S as CapturedImage, T as ID_ERROR_CODES, V as IdCaptureSettings, _ as IdCaptureActor, a as InitializeIdCaptureParams, b as idCaptureMachine, c as ValidationError, d as startRecordingSession, f as stopRecording, g as CreateIdCaptureActorOptions, h as validateUploadResponse, i as IdCaptureInitResult, j as IdCaptureInput, k as IdCaptureEvent, l as initializeIdCapture, m as uploadIdImage, n as IdCaptureState, o as StartRecordingParams, p as stopStream, r as createIdCaptureManager, s as UploadIdImageParams, t as IdCaptureManager, u as processId, v as createIdCaptureActor, w as DetectionStatus, x as CaptureIdResponse, y as IdCaptureMachine, z as UploadIdResponse } from "./index-CSEcy73I.js";
2
+ import "./deepsightService-CYCDsan2.js";
3
+ import { n as PermissionStatus, t as PermissionResult } from "./types-B4KNFqC4.js";
4
+ import { n as warmupWasm, t as WasmPipeline } from "./warmup-CAEKix9h.js";
5
+ import "./Manager-CG5CQ1kY.js";
6
+ import { t as CameraStream } from "./camera-D7zu0Mls.js";
7
+ import "./Actor-B6Lr-x6S.js";
8
+ import "./StateMachine-WHeQE3lC.js";
9
+ import "./types-DnrAr9fb.js";
10
+ import "./types-Bn54lmeM.js";
11
11
 
12
12
  //#region ../infra/src/capabilities/IScreenOrientationCapability.d.ts
13
13
  type ScreenOrientationState = 'portrait' | 'landscape';
package/dist/index.esm.js CHANGED
@@ -1,13 +1,13 @@
1
- import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-Bf73PAdv.esm.js";
2
- import "./backCameraStream-DXS4n4yS.esm.js";
3
- import { I as isIPad, c as ScreenOrientationProvider, k as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-BJhTmsja.esm.js";
4
- import "./xstate.esm-yA5caGbx.esm.js";
5
- import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-t3E89TmG.esm.js";
6
- import "./deepsightService-D2rnPj53.esm.js";
7
- import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-CdJjfxTX.esm.js";
8
- import "./endpoints-PMCuQkqs.esm.js";
9
- import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-aQ6PcfVo.esm.js";
10
- import "./stats-De--Z9N5.esm.js";
1
+ import { a as videoSelfieEvents, c as screenClosed, d as addEvent, f as flushEventQueue, i as tutorialScreenNamesMapper, l as screenEvent, n as eventModuleNames, o as moduleClosed, p as subscribeEvent, r as eventScreenNames, s as moduleOpened, t as cameraScreenNamesMapper, u as screenOpened } from "./events-b4_xvENs.esm.js";
2
+ import "./backCameraStream-ZcgmV6ek.esm.js";
3
+ import { I as isIPad, c as ScreenOrientationProvider, k as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-DJirOlIN.esm.js";
4
+ import "./xstate.esm-07M59Cte.esm.js";
5
+ import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-CuDSXpr7.esm.js";
6
+ import "./deepsightService-DJ6yJFWI.esm.js";
7
+ import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-3fZO5bmj.esm.js";
8
+ import "./endpoints-5sPFFmaB.esm.js";
9
+ import { _ as createSession, a as processId, c as stopStream, d as ID_ERROR_CODES, f as getDisableIpify, g as resetSessionInit, h as isSessionInitialized, i as initializeIdCapture, l as uploadIdImage, m as initializeSession, n as createIdCaptureActor, o as startRecordingSession, p as getSessionFeatures, r as idCaptureMachine, s as stopRecording, t as createIdCaptureManager, u as validateUploadResponse } from "./id-DbIx2_iD.esm.js";
10
+ import "./stats-D76Thmqp.esm.js";
11
11
 
12
12
  //#region src/setup.ts
13
13
  let wasmConfig;
@@ -1,4 +1,4 @@
1
- import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-3Wl3T5mL.esm.js";
1
+ import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-B1Ox1Owh.esm.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
4
4
  var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
package/dist/phone.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CVog-etk.js";
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
2
 
3
3
  //#region src/modules/phone/types.d.ts
4
4
 
package/dist/phone.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Bf73PAdv.esm.js";
2
- import { O as createManager, m as BrowserTimerProvider } from "./src-BJhTmsja.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-yA5caGbx.esm.js";
4
- import { t as api } from "./api-CdJjfxTX.esm.js";
5
- import { t as endpoints } from "./endpoints-PMCuQkqs.esm.js";
1
+ import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-b4_xvENs.esm.js";
2
+ import { O as createManager, m as BrowserTimerProvider } from "./src-DJirOlIN.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-07M59Cte.esm.js";
4
+ import { t as api } from "./api-3fZO5bmj.esm.js";
5
+ import { t as endpoints } from "./endpoints-5sPFFmaB.esm.js";
6
6
 
7
7
  //#region src/modules/phone/phoneServices.ts
8
8
  async function fetchPhone(signal) {
@@ -0,0 +1,106 @@
1
+ import { t as Manager } from "./Manager-CG5CQ1kY.js";
2
+
3
+ //#region src/modules/redirect-to-mobile/types.d.ts
4
+ type RedirectToMobileConfig = {
5
+ flowId?: string;
6
+ url?: string;
7
+ disableSmsOption?: boolean;
8
+ addContinueToDesktop?: boolean;
9
+ qrPhishingResistance?: boolean;
10
+ authHint?: string;
11
+ externalId?: string;
12
+ lang?: string;
13
+ };
14
+ //#endregion
15
+ //#region src/modules/redirect-to-mobile/redirectToMobileStateMachine.d.ts
16
+
17
+ declare const redirectToMobileMachine: any;
18
+ //#endregion
19
+ //#region src/modules/redirect-to-mobile/redirectToMobileActor.d.ts
20
+ type CreateRedirectToMobileActorOptions = {
21
+ config: RedirectToMobileConfig;
22
+ };
23
+ //#endregion
24
+ //#region src/modules/redirect-to-mobile/redirectToMobileManager.d.ts
25
+ type RedirectToMobileIdleState = {
26
+ status: 'idle';
27
+ };
28
+ type RedirectToMobileLoadingState = {
29
+ status: 'loading';
30
+ };
31
+ type RedirectToMobileRedirectingState = {
32
+ status: 'redirecting';
33
+ redirectUrl: string;
34
+ phonePrefix: string;
35
+ smsSent: boolean;
36
+ error: string | undefined;
37
+ };
38
+ type RedirectToMobileFinishedState = {
39
+ status: 'finished';
40
+ };
41
+ type RedirectToMobileClosedState = {
42
+ status: 'closed';
43
+ };
44
+ type RedirectToMobileErrorState = {
45
+ status: 'error';
46
+ error: string;
47
+ };
48
+ type RedirectToMobileState = RedirectToMobileIdleState | RedirectToMobileLoadingState | RedirectToMobileRedirectingState | RedirectToMobileFinishedState | RedirectToMobileClosedState | RedirectToMobileErrorState;
49
+ /**
50
+ * Creates a redirect-to-mobile manager for cross-device onboarding flows.
51
+ *
52
+ * On desktop, displays a QR code (and optional SMS input) so the user can
53
+ * continue on their mobile device. Polls the backend until the mobile
54
+ * session completes, then transitions to `finished`.
55
+ *
56
+ * @param options - Configuration for the redirect module
57
+ * @returns A manager instance with state subscription and API methods
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const manager = createRedirectToMobileManager({
62
+ * config: { disableSmsOption: false, addContinueToDesktop: true },
63
+ * });
64
+ *
65
+ * manager.subscribe((state) => {
66
+ * if (state.status === 'redirecting') {
67
+ * renderQrCode(state.redirectUrl);
68
+ * }
69
+ * if (state.status === 'finished') {
70
+ * console.log('Mobile onboarding complete');
71
+ * }
72
+ * });
73
+ *
74
+ * manager.load();
75
+ * ```
76
+ */
77
+ declare function createRedirectToMobileManager(options: CreateRedirectToMobileActorOptions): Manager<RedirectToMobileState> & {
78
+ /**
79
+ * Starts the redirect-to-mobile flow by fetching the redirect URL.
80
+ */
81
+ load(): void;
82
+ /**
83
+ * Sends an SMS with the redirect link to the given phone number.
84
+ * @param phone - Full phone number with country code
85
+ */
86
+ sendSms(phone: string): void;
87
+ /**
88
+ * Skips the redirect and allows the user to continue on desktop.
89
+ */
90
+ continueOnDesktop(): void;
91
+ /**
92
+ * Resets the SMS state so the user can re-enter their phone number.
93
+ */
94
+ resetSms(): void;
95
+ /**
96
+ * Closes/dismisses the redirect screen.
97
+ */
98
+ close(): void;
99
+ /**
100
+ * Retries generating the redirect URL after an error.
101
+ */
102
+ retry(): void;
103
+ };
104
+ type RedirectToMobileManager = ReturnType<typeof createRedirectToMobileManager>;
105
+ //#endregion
106
+ export { type RedirectToMobileConfig, type RedirectToMobileManager, type RedirectToMobileState, createRedirectToMobileManager, redirectToMobileMachine };