@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.
- package/dist/authentication.d.ts +9 -9
- package/dist/authentication.esm.js +10 -10
- package/dist/{backCameraStream-DXS4n4yS.esm.js → backCameraStream-ZcgmV6ek.esm.js} +1 -1
- package/dist/curp-validation.d.ts +4 -4
- package/dist/curp-validation.esm.js +5 -5
- package/dist/{deepsightLoader-CCuD-pzB.esm.js → deepsightLoader-ChivsvQS.esm.js} +4 -4
- package/dist/{deepsightService-Dv1ILk27.d.ts → deepsightService-CYCDsan2.d.ts} +1 -1
- package/dist/{deepsightService-D2rnPj53.esm.js → deepsightService-DJ6yJFWI.esm.js} +3 -3
- package/dist/document-capture.d.ts +49 -49
- package/dist/document-capture.esm.js +6 -6
- package/dist/document-upload.d.ts +49 -49
- package/dist/document-upload.esm.js +5 -5
- package/dist/ekyb.d.ts +2 -2
- package/dist/ekyb.esm.js +6 -6
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +6 -6
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +5 -5
- package/dist/{endpoints-PMCuQkqs.esm.js → endpoints-5sPFFmaB.esm.js} +4 -1
- package/dist/{events-Bf73PAdv.esm.js → events-b4_xvENs.esm.js} +2 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +5 -5
- package/dist/{faceCaptureManagerFactory-FEuTMK4j.d.ts → faceCaptureManagerFactory-CMLiRjYr.d.ts} +5 -5
- package/dist/{faceCaptureSetup-pxm6Cjua.esm.js → faceCaptureSetup-2WooW-jJ.esm.js} +9 -9
- package/dist/flow.d.ts +14 -7
- package/dist/flow.esm.js +9 -5
- package/dist/{flowCompletionService-C2Cjw8WY.esm.js → flowCompletionService-DHXqHOAk.esm.js} +2 -2
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +5 -5
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +4 -4
- package/dist/{id-aQ6PcfVo.esm.js → id-DbIx2_iD.esm.js} +10 -10
- package/dist/id.d.ts +9 -9
- package/dist/id.esm.js +10 -10
- package/dist/{index-C_QjKcTy.d.ts → index-CSEcy73I.d.ts} +7 -7
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +10 -10
- package/dist/{lib-DVaeY7hq.esm.js → lib-V3Lo-Jit.esm.js} +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +5 -5
- package/dist/redirect-to-mobile.d.ts +106 -0
- package/dist/redirect-to-mobile.esm.js +338 -0
- package/dist/selfie.d.ts +9 -9
- package/dist/selfie.esm.js +10 -10
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +3 -3
- package/dist/{src-BJhTmsja.esm.js → src-DJirOlIN.esm.js} +2 -2
- package/dist/{stats-De--Z9N5.esm.js → stats-D76Thmqp.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{streamingEvents-t3E89TmG.esm.js → streamingEvents-CuDSXpr7.esm.js} +3 -3
- package/dist/{types-DrdrHHxZ.d.ts → types-Bn54lmeM.d.ts} +1 -1
- package/dist/{types-B_l5fu_D.d.ts → types-DnrAr9fb.d.ts} +1 -1
- package/package.json +7 -3
- /package/dist/{Actor-SKZvDOCc.d.ts → Actor-B6Lr-x6S.d.ts} +0 -0
- /package/dist/{Manager-CVog-etk.d.ts → Manager-CG5CQ1kY.d.ts} +0 -0
- /package/dist/{StateMachine-Coiuk0UD.d.ts → StateMachine-WHeQE3lC.d.ts} +0 -0
- /package/dist/{api-CdJjfxTX.esm.js → api-3fZO5bmj.esm.js} +0 -0
- /package/dist/{camera-HI2fNiV5.d.ts → camera-D7zu0Mls.d.ts} +0 -0
- /package/dist/{chunk-3Wl3T5mL.esm.js → chunk-B1Ox1Owh.esm.js} +0 -0
- /package/dist/{flowCompletionService-DtL1jOz4.d.ts → flowCompletionService-DeWKduBI.d.ts} +0 -0
- /package/dist/{types-dSdX5z-n.d.ts → types-B4KNFqC4.d.ts} +0 -0
- /package/dist/{types-WhAUdEJw.d.ts → types-BYYaKde4.d.ts} +0 -0
- /package/dist/{usStates-IoVg25OV.esm.js → usStates-D4SmlpeT.esm.js} +0 -0
- /package/dist/{warmup-CO10kO5G.d.ts → warmup-CAEKix9h.d.ts} +0 -0
- /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-
|
|
2
|
-
import { O as createManager } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
6
|
-
import { t as usStateOptions } from "./usStates-
|
|
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-
|
|
2
|
-
import { t as FieldDef } from "./types-
|
|
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-
|
|
2
|
-
import { O as createManager, m as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
6
|
-
import { t as usStateOptions } from "./usStates-
|
|
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
package/dist/email.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { O as createManager, m as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
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-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
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() {
|
package/dist/face-match.d.ts
CHANGED
package/dist/face-match.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { O as createManager } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
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
|
/**
|
package/dist/{faceCaptureManagerFactory-FEuTMK4j.d.ts → faceCaptureManagerFactory-CMLiRjYr.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as IRecordingCapability, n as PermissionStatus, r as IStorageCapability, s as MLProviderConfig } from "./types-
|
|
2
|
-
import { t as WasmPipeline } from "./warmup-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { t as Flow } from "./types-
|
|
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-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
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-
|
|
4
|
-
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
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-
|
|
6
|
-
import { r as getToken, t as api } from "./api-
|
|
7
|
-
import { t as endpoints } from "./endpoints-
|
|
8
|
-
import { t as addDeviceStats } from "./stats-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import { t as AnyStateMachine } from "./StateMachine-
|
|
5
|
-
import "./types-
|
|
6
|
-
import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-
|
|
7
|
-
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-
|
|
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-
|
|
2
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
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",
|
package/dist/{flowCompletionService-C2Cjw8WY.esm.js → flowCompletionService-DHXqHOAk.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
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) => {
|
package/dist/geolocation.d.ts
CHANGED
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames } from "./events-
|
|
2
|
-
import { F as isIOS, N as isAndroid, O as createManager, v as BrowserGeolocationProvider } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { O as createManager, m as BrowserTimerProvider } from "./src-
|
|
2
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
3
|
-
import { t as api } from "./api-
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
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-
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
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-
|
|
4
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
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-
|
|
6
|
-
import { n as isBrowserSimulation } from "./deepsightService-
|
|
7
|
-
import { n as getApi, r as getToken, t as api } from "./api-
|
|
8
|
-
import { t as endpoints } from "./endpoints-
|
|
9
|
-
import { t as addDeviceStats } from "./stats-
|
|
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-
|
|
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-
|
|
2
|
-
import "./deepsightService-
|
|
3
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
4
|
-
import "./Manager-
|
|
5
|
-
import { t as CameraStream } from "./camera-
|
|
6
|
-
import "./Actor-
|
|
7
|
-
import "./StateMachine-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./types-
|
|
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-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import "./api-
|
|
8
|
-
import "./endpoints-
|
|
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-
|
|
10
|
-
import "./stats-
|
|
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-
|
|
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-
|
|
3
|
-
import { t as Manager } from "./Manager-
|
|
4
|
-
import { t as CameraStream } from "./camera-
|
|
5
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
6
|
-
import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-
|
|
7
|
-
import { i as TutorialIdConfig, t as Flow } from "./types-
|
|
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-
|
|
2
|
-
import "./deepsightService-
|
|
3
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
4
|
-
import { n as warmupWasm, t as WasmPipeline } from "./warmup-
|
|
5
|
-
import "./Manager-
|
|
6
|
-
import { t as CameraStream } from "./camera-
|
|
7
|
-
import "./Actor-
|
|
8
|
-
import "./StateMachine-
|
|
9
|
-
import "./types-
|
|
10
|
-
import "./types-
|
|
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-
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import { I as isIPad, c as ScreenOrientationProvider, k as createApi_default, o as warmupWasm, r as WasmUtilProvider } from "./src-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import { c as createScreenOrientationObserver, l as getDeviceClass, o as checkPermission, s as requestPermission, u as getBrowser } from "./streamingEvents-
|
|
6
|
-
import "./deepsightService-
|
|
7
|
-
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-
|
|
8
|
-
import "./endpoints-
|
|
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-
|
|
10
|
-
import "./stats-
|
|
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-
|
|
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
package/dist/phone.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
2
|
-
import { O as createManager, m as BrowserTimerProvider } from "./src-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as api } from "./api-
|
|
5
|
-
import { t as endpoints } from "./endpoints-
|
|
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 };
|