@incodetech/core 0.0.0-dev-20260415-aae94ed → 0.0.0-dev-20260415-20a2fc4

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 (43) hide show
  1. package/dist/ae-signature.d.ts +2 -2
  2. package/dist/authentication.d.ts +4 -4
  3. package/dist/{authenticationManager-DKH7oRB1.d.ts → authenticationManager-DxWVcbnl.d.ts} +1 -1
  4. package/dist/consent.d.ts +48 -48
  5. package/dist/curp-validation.d.ts +2 -2
  6. package/dist/document-capture.d.ts +74 -74
  7. package/dist/document-upload.d.ts +44 -44
  8. package/dist/ekyb.d.ts +1 -1
  9. package/dist/ekyb.esm.js +2 -2
  10. package/dist/{ekybStateMachine-DwBRis0x.esm.js → ekybStateMachine-BfBs85Uj.esm.js} +1 -1
  11. package/dist/ekyc.d.ts +1 -1
  12. package/dist/electronic-signature.d.ts +2 -3
  13. package/dist/email.d.ts +2 -2
  14. package/dist/{emailManager-DocqJIVa.d.ts → emailManager-DXdv0T1X.d.ts} +1 -1
  15. package/dist/extensibility.d.ts +8 -8
  16. package/dist/{faceCaptureManagerFactory-CcdPZa7t.d.ts → faceCaptureManagerFactory-CV5lfQZg.d.ts} +2 -2
  17. package/dist/flow.d.ts +11 -4
  18. package/dist/flow.esm.js +1 -1
  19. package/dist/{flowServices-BHE6Lud4.esm.js → flowServices-BjihIhLr.esm.js} +32 -5
  20. package/dist/geolocation.d.ts +1 -1
  21. package/dist/government-validation.d.ts +1 -1
  22. package/dist/home.d.ts +11 -11
  23. package/dist/id.d.ts +3 -3
  24. package/dist/{idCaptureManager-Dk3_NAC1.d.ts → idCaptureManager-BF-9O4pN.d.ts} +2 -2
  25. package/dist/identity-reuse.d.ts +48 -48
  26. package/dist/{electronicSignatureManager-BxlFec2P.d.ts → index-B_3alJQs.d.ts} +119 -119
  27. package/dist/mandatory-consent.d.ts +52 -52
  28. package/dist/phone.d.ts +2 -2
  29. package/dist/{phoneManager-DnrUMrya.d.ts → phoneManager-CZkwAnZA.d.ts} +1 -1
  30. package/dist/qe-signature.d.ts +2 -3
  31. package/dist/redirect-to-mobile.d.ts +1 -1
  32. package/dist/selfie.d.ts +4 -4
  33. package/dist/{selfieManager-Cpawfivv.d.ts → selfieManager-J9vh9MZ6.d.ts} +1 -1
  34. package/dist/session.d.ts +1 -1
  35. package/dist/signature.d.ts +1 -1
  36. package/dist/{types-DyA9ksX2.d.ts → types-Bk2AoUFA.d.ts} +8 -0
  37. package/dist/workflow.d.ts +84 -84
  38. package/dist/workflow.esm.js +2 -2
  39. package/package.json +1 -1
  40. package/dist/index--tzjwTVz.d.ts +0 -1
  41. /package/dist/{Actor-Bvf4Wv1O.d.ts → Actor-Cqaw-2DF.d.ts} +0 -0
  42. /package/dist/{flowCompletionService-wLXTzf1m.d.ts → flowCompletionService-D1DGDmXn.d.ts} +0 -0
  43. /package/dist/{types-BPuvIFKx.d.ts → types-DH_kbvQH.d.ts} +0 -0
@@ -1,18 +1,18 @@
1
1
  import "./warmup-BoNCXpou.js";
2
2
  import "./Manager-C1r-74H0.js";
3
- import { n as createActor } from "./Actor-Bvf4Wv1O.js";
3
+ import { n as createActor } from "./Actor-Cqaw-2DF.js";
4
4
  import { r as fromPromise } from "./StateMachine-sxIjYRWS.js";
5
- import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CcdPZa7t.js";
5
+ import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CV5lfQZg.js";
6
6
  import "./camera-C1Lz6NFz.js";
7
7
  import "./types-DGwsRYfm.js";
8
- import "./types-DyA9ksX2.js";
8
+ import "./types-Bk2AoUFA.js";
9
9
  import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
10
10
  import "./types-B-JXmW0H.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Cpawfivv.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DKH7oRB1.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DocqJIVa.js";
14
- import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-Dk3_NAC1.js";
15
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-DnrUMrya.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-J9vh9MZ6.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-DxWVcbnl.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DXdv0T1X.js";
14
+ import { C as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-BF-9O4pN.js";
15
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-CZkwAnZA.js";
16
16
 
17
17
  //#region src/modules/authentication/authenticationUploadService.d.ts
18
18
  type AuthenticationUploadResponse = {
@@ -1,9 +1,9 @@
1
1
  import { n as WasmPipeline } from "./warmup-BoNCXpou.js";
2
2
  import { t as Manager } from "./Manager-C1r-74H0.js";
3
- import { t as ActorRefFrom } from "./Actor-Bvf4Wv1O.js";
3
+ import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
4
4
  import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
5
5
  import { t as CameraStream } from "./camera-C1Lz6NFz.js";
6
- import { i as FlowModuleConfig, n as Flow } from "./types-DyA9ksX2.js";
6
+ import { i as FlowModuleConfig, n as Flow } from "./types-Bk2AoUFA.js";
7
7
  import { a as IWasmUtilCapability, c as IMLProviderCapability, d as IRecordingCapability, i as IncodeCanvas, l as MLProviderConfig, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
8
8
  import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
9
9
 
package/dist/flow.d.ts CHANGED
@@ -3,14 +3,18 @@ import { t as Manager } from "./Manager-C1r-74H0.js";
3
3
  import { t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
4
4
  import "./camera-C1Lz6NFz.js";
5
5
  import "./types-DGwsRYfm.js";
6
- import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DyA9ksX2.js";
7
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-wLXTzf1m.js";
8
- import { t as ModuleRegistry } from "./types-BPuvIFKx.js";
6
+ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-Bk2AoUFA.js";
7
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-D1DGDmXn.js";
8
+ import { t as ModuleRegistry } from "./types-DH_kbvQH.js";
9
9
 
10
10
  //#region src/modules/flow/flowUtils.d.ts
11
11
  type NormalizeFlowModulesOptions = {
12
12
  enableHome?: boolean;
13
+ isDesktop?: boolean;
14
+ authHint?: string;
15
+ lang?: string;
13
16
  };
17
+ type FlowForNormalization = Pick<Flow, 'flowId' | 'flowModules' | 'redirectDesktopToMobile' | 'disableSmsOption' | 'addContinueToDesktop' | 'qrPhishingResistance'>;
14
18
  /**
15
19
  * Analyzes a flow configuration and returns the WASM pipelines needed.
16
20
  * Use this to conditionally warmup WASM only when required by the flow.
@@ -36,11 +40,14 @@ declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
36
40
  * - thirdId is deprecated and ignored; the flow continues to the next step
37
41
  * - Bare ID following TUTORIAL_ID is dropped (already merged)
38
42
  */
39
- declare function normalizeFlowModules(modules: FlowModule[], options?: NormalizeFlowModulesOptions): FlowModule[];
43
+ declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
40
44
  //#endregion
41
45
  //#region src/modules/flow/flowServices.d.ts
42
46
  type GetFlowOptions = {
43
47
  enableHome?: boolean;
48
+ isDesktop?: boolean;
49
+ authHint?: string;
50
+ lang?: string;
44
51
  };
45
52
  type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
46
53
  declare const getFlow: GetFlow;
package/dist/flow.esm.js CHANGED
@@ -4,7 +4,7 @@ import "./session-4kX3TYAC.esm.js";
4
4
  import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
5
5
  import "./browserSimulation-UTYyQOiB.esm.js";
6
6
  import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
7
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BHE6Lud4.esm.js";
7
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-BjihIhLr.esm.js";
8
8
  import { t as getFinishStatus } from "./flowCompletionService-BoRh9z5O.esm.js";
9
9
  import { t as runChildModule } from "./runChildModule-CPESMGyI.esm.js";
10
10
 
@@ -44,8 +44,14 @@ function getRequiredWasmPipelines(flow) {
44
44
  * - thirdId is deprecated and ignored; the flow continues to the next step
45
45
  * - Bare ID following TUTORIAL_ID is dropped (already merged)
46
46
  */
47
- function normalizeFlowModules(modules, options = {}) {
48
- const merged = modules.flatMap((module, idx, arr) => {
47
+ function normalizeFlowModules(flow, options = {}) {
48
+ let modules = normalizeIdModules(flow.flowModules);
49
+ if (options.enableHome === true && !hasModule(modules, "HOME")) modules = addHome(modules);
50
+ if (shouldInjectRedirect(flow, modules, options)) modules = addRedirect(flow, modules, options);
51
+ return modules;
52
+ }
53
+ function normalizeIdModules(modules) {
54
+ return modules.flatMap((module, idx, arr) => {
49
55
  if (module.key === "TUTORIAL_ID") {
50
56
  const idConfig = module.configuration;
51
57
  const result = [{
@@ -65,11 +71,32 @@ function normalizeFlowModules(modules, options = {}) {
65
71
  if (module.key === "ID" && prev?.key === "TUTORIAL_ID") return [];
66
72
  return [module];
67
73
  });
68
- if (options.enableHome !== true || merged.some((module) => module.key === "HOME")) return merged;
74
+ }
75
+ function addHome(modules) {
69
76
  return [{
70
77
  key: "HOME",
71
78
  configuration: {}
72
- }, ...merged];
79
+ }, ...modules];
80
+ }
81
+ function shouldInjectRedirect(flow, modules, options) {
82
+ return options.isDesktop === true && flow.redirectDesktopToMobile === true && !hasModule(modules, "REDIRECT_TO_MOBILE");
83
+ }
84
+ function addRedirect(flow, modules, options) {
85
+ const modulesWithoutHome = modules.filter((module) => module.key !== "HOME");
86
+ return [{
87
+ key: "REDIRECT_TO_MOBILE",
88
+ configuration: {
89
+ flowId: flow.flowId,
90
+ disableSmsOption: flow.disableSmsOption ?? false,
91
+ addContinueToDesktop: flow.addContinueToDesktop ?? false,
92
+ qrPhishingResistance: flow.qrPhishingResistance ?? false,
93
+ authHint: options.authHint,
94
+ lang: options.lang
95
+ }
96
+ }, ...modulesWithoutHome];
97
+ }
98
+ function hasModule(modules, key) {
99
+ return modules.some((module) => module.key === key);
73
100
  }
74
101
 
75
102
  //#endregion
@@ -122,7 +149,7 @@ const getFlow = async (signal, options = {}) => {
122
149
  if (!res.ok) throw new Error(`GET /flow failed: ${res.status} ${res.statusText}`);
123
150
  const data = res.data;
124
151
  const flow = prependMandatoryConsent(data);
125
- const normalizedModules = normalizeFlowModules(flow.flowModules ?? [], options);
152
+ const normalizedModules = normalizeFlowModules(flow, options);
126
153
  return {
127
154
  ...flow,
128
155
  flowModules: normalizedModules
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
- import "./Actor-Bvf4Wv1O.js";
2
+ import "./Actor-Cqaw-2DF.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
5
5
  type GeolocationCoords = {
@@ -1,5 +1,5 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
- import "./Actor-Bvf4Wv1O.js";
2
+ import "./Actor-Cqaw-2DF.js";
3
3
 
4
4
  //#region src/modules/government-validation/types.d.ts
5
5
  type GovernmentValidationConfig = {
package/dist/home.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
2
  import "./camera-C1Lz6NFz.js";
3
3
  import "./types-DGwsRYfm.js";
4
- import { t as EmptyConfig } from "./types-DyA9ksX2.js";
5
- import * as xstate627 from "xstate";
4
+ import { t as EmptyConfig } from "./types-Bk2AoUFA.js";
5
+ import * as xstate1134 from "xstate";
6
6
 
7
7
  //#region src/modules/home/types.d.ts
8
8
  type HomeConfig = EmptyConfig;
@@ -39,7 +39,7 @@ type HomeContext = {
39
39
  type HomeInput = {
40
40
  config: EmptyConfig;
41
41
  };
42
- declare const homeMachine: xstate627.StateMachine<HomeContext, {
42
+ declare const homeMachine: xstate1134.StateMachine<HomeContext, {
43
43
  type: "LOAD";
44
44
  } | {
45
45
  type: "COMPLETE";
@@ -49,23 +49,23 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
49
49
  type: "OPEN_SETTINGS";
50
50
  } | {
51
51
  type: "CLOSE_SETTINGS";
52
- }, {}, never, never, never, never, "idle" | "finished" | "main" | "settings", string, HomeInput, xstate627.NonReducibleUnknown, xstate627.EventObject, xstate627.MetaObject, {
52
+ }, {}, never, never, never, never, "idle" | "finished" | "main" | "settings", string, HomeInput, xstate1134.NonReducibleUnknown, xstate1134.EventObject, xstate1134.MetaObject, {
53
53
  readonly id: "home";
54
54
  readonly initial: "idle";
55
55
  readonly context: ({
56
56
  input
57
57
  }: {
58
58
  spawn: {
59
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate627.ActorRefFromLogic<never>;
60
- <TLogic extends xstate627.AnyActorLogic>(src: TLogic, ...[options]: xstate627.ConditionalRequired<[options?: ({
59
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate1134.ActorRefFromLogic<never>;
60
+ <TLogic extends xstate1134.AnyActorLogic>(src: TLogic, ...[options]: xstate1134.ConditionalRequired<[options?: ({
61
61
  id?: never;
62
62
  systemId?: string;
63
- input?: xstate627.InputFrom<TLogic> | undefined;
63
+ input?: xstate1134.InputFrom<TLogic> | undefined;
64
64
  syncSnapshot?: boolean;
65
- } & { [K in xstate627.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate627.IsNotNever<xstate627.RequiredLogicInput<TLogic>>>): xstate627.ActorRefFromLogic<TLogic>;
65
+ } & { [K in xstate1134.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1134.IsNotNever<xstate1134.RequiredLogicInput<TLogic>>>): xstate1134.ActorRefFromLogic<TLogic>;
66
66
  };
67
67
  input: HomeInput;
68
- self: xstate627.ActorRef<xstate627.MachineSnapshot<HomeContext, {
68
+ self: xstate1134.ActorRef<xstate1134.MachineSnapshot<HomeContext, {
69
69
  type: "LOAD";
70
70
  } | {
71
71
  type: "COMPLETE";
@@ -75,7 +75,7 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
75
75
  type: "OPEN_SETTINGS";
76
76
  } | {
77
77
  type: "CLOSE_SETTINGS";
78
- }, Record<string, xstate627.AnyActorRef | undefined>, xstate627.StateValue, string, unknown, any, any>, {
78
+ }, Record<string, xstate1134.AnyActorRef | undefined>, xstate1134.StateValue, string, unknown, any, any>, {
79
79
  type: "LOAD";
80
80
  } | {
81
81
  type: "COMPLETE";
@@ -85,7 +85,7 @@ declare const homeMachine: xstate627.StateMachine<HomeContext, {
85
85
  type: "OPEN_SETTINGS";
86
86
  } | {
87
87
  type: "CLOSE_SETTINGS";
88
- }, xstate627.AnyEventObject>;
88
+ }, xstate1134.AnyEventObject>;
89
89
  }) => {
90
90
  config: EmptyConfig;
91
91
  };
package/dist/id.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./warmup-BoNCXpou.js";
2
2
  import "./Manager-C1r-74H0.js";
3
- import "./Actor-Bvf4Wv1O.js";
3
+ import "./Actor-Cqaw-2DF.js";
4
4
  import "./StateMachine-sxIjYRWS.js";
5
5
  import { t as CameraStream } from "./camera-C1Lz6NFz.js";
6
6
  import "./types-DGwsRYfm.js";
7
- import "./types-DyA9ksX2.js";
7
+ import "./types-Bk2AoUFA.js";
8
8
  import "./deepsightService-D8Kbc-41.js";
9
9
  import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
10
- import { A as IdCaptureDependencies, B as RecordingSession, C as CaptureIdResponse, D as ID_ERROR_CODES, E as DetectionStatus, F as IdCaptureThresholds, H as DetectionOrientation, I as IdDocumentType, L as IdError, M as IdCaptureGeometry, N as IdCaptureInput, O as IdCaptureConfig, P as IdCaptureMode, R as IdErrorCode, S as idCaptureMachine, T as DetectionArea, U as IdCaptureSettings, V as UploadIdResponse, _ as validateUploadResponse, a as IdCaptureInitResult, b as createIdCaptureActor, c as UploadIdImageParams, d as preloadIdRecordingProvider, f as processId, g as uploadIdImage, h as stopStream, j as IdCaptureEvent, k as IdCaptureContext, l as ValidationError, m as stopRecording, n as IdCaptureState, o as InitializeIdCaptureParams, p as startRecordingSession, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as CreateIdCaptureActorOptions, w as CapturedImage, x as IdCaptureMachine, y as IdCaptureActor, z as IdFlowStep } from "./idCaptureManager-Dk3_NAC1.js";
10
+ import { A as IdCaptureDependencies, B as RecordingSession, C as CaptureIdResponse, D as ID_ERROR_CODES, E as DetectionStatus, F as IdCaptureThresholds, H as DetectionOrientation, I as IdDocumentType, L as IdError, M as IdCaptureGeometry, N as IdCaptureInput, O as IdCaptureConfig, P as IdCaptureMode, R as IdErrorCode, S as idCaptureMachine, T as DetectionArea, U as IdCaptureSettings, V as UploadIdResponse, _ as validateUploadResponse, a as IdCaptureInitResult, b as createIdCaptureActor, c as UploadIdImageParams, d as preloadIdRecordingProvider, f as processId, g as uploadIdImage, h as stopStream, j as IdCaptureEvent, k as IdCaptureContext, l as ValidationError, m as stopRecording, n as IdCaptureState, o as InitializeIdCaptureParams, p as startRecordingSession, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as initializeIdCapture, v as CreateIdCaptureActorOptions, w as CapturedImage, x as IdCaptureMachine, y as IdCaptureActor, z as IdFlowStep } from "./idCaptureManager-BF-9O4pN.js";
11
11
  export { CameraStream, CaptureIdResponse, CapturedImage, type CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, type IdCaptureContext, IdCaptureDependencies, type IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, type IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
@@ -1,8 +1,8 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
- import { t as ActorRefFrom } from "./Actor-Bvf4Wv1O.js";
2
+ import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
3
3
  import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-sxIjYRWS.js";
4
4
  import { t as CameraStream } from "./camera-C1Lz6NFz.js";
5
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-DyA9ksX2.js";
5
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-Bk2AoUFA.js";
6
6
  import { c as IMLProviderCapability, d as IRecordingCapability, f as RecordingConnection, i as IncodeCanvas, l as MLProviderConfig, n as IMotionSensorCapability, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-D8Kbc-41.js";
7
7
  import { n as PermissionStatus, t as PermissionResult } from "./types-B-JXmW0H.js";
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
- import { t as ActorRefFrom } from "./Actor-Bvf4Wv1O.js";
3
- import * as xstate393 from "xstate";
2
+ import { t as ActorRefFrom } from "./Actor-Cqaw-2DF.js";
3
+ import * as xstate0 from "xstate";
4
4
 
5
5
  //#region src/modules/identity-reuse/types.d.ts
6
6
 
@@ -32,7 +32,7 @@ type IdentityReuseContext = {
32
32
  type IdentityReuseInput = {
33
33
  config: IdentityReuseConfig;
34
34
  };
35
- declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext, {
35
+ declare const identityReuseMachine: xstate0.StateMachine<IdentityReuseContext, {
36
36
  type: "LOAD";
37
37
  } | {
38
38
  type: "START_SELECTION";
@@ -48,49 +48,49 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
48
48
  } | {
49
49
  type: "RETRY";
50
50
  }, {
51
- [x: string]: xstate393.ActorRefFromLogic<xstate393.PromiseActorLogic<FetchCandidatesResponse, void, xstate393.EventObject>> | xstate393.ActorRefFromLogic<xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>> | undefined;
52
- }, xstate393.Values<{
51
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCandidatesResponse, void, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>> | undefined;
52
+ }, xstate0.Values<{
53
53
  fetchCandidates: {
54
54
  src: "fetchCandidates";
55
- logic: xstate393.PromiseActorLogic<FetchCandidatesResponse, void, xstate393.EventObject>;
55
+ logic: xstate0.PromiseActorLogic<FetchCandidatesResponse, void, xstate0.EventObject>;
56
56
  id: string | undefined;
57
57
  };
58
58
  submitContinue: {
59
59
  src: "submitContinue";
60
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
60
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
61
61
  id: string | undefined;
62
62
  };
63
63
  submitSkip: {
64
64
  src: "submitSkip";
65
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
65
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate393.Values<{
69
- setError: {
70
- type: "setError";
71
- params: xstate393.NonReducibleUnknown;
72
- };
73
- clearError: {
74
- type: "clearError";
75
- params: xstate393.NonReducibleUnknown;
76
- };
68
+ }>, xstate0.Values<{
77
69
  setCandidates: {
78
70
  type: "setCandidates";
79
- params: xstate393.NonReducibleUnknown;
71
+ params: xstate0.NonReducibleUnknown;
80
72
  };
81
73
  setSelectedCandidate: {
82
74
  type: "setSelectedCandidate";
83
- params: xstate393.NonReducibleUnknown;
75
+ params: xstate0.NonReducibleUnknown;
84
76
  };
85
77
  autoSelectSingleCandidate: {
86
78
  type: "autoSelectSingleCandidate";
87
- params: xstate393.NonReducibleUnknown;
79
+ params: xstate0.NonReducibleUnknown;
88
80
  };
89
81
  clearSelection: {
90
82
  type: "clearSelection";
91
- params: xstate393.NonReducibleUnknown;
83
+ params: xstate0.NonReducibleUnknown;
84
+ };
85
+ setError: {
86
+ type: "setError";
87
+ params: xstate0.NonReducibleUnknown;
88
+ };
89
+ clearError: {
90
+ type: "clearError";
91
+ params: xstate0.NonReducibleUnknown;
92
92
  };
93
- }>, xstate393.Values<{
93
+ }>, xstate0.Values<{
94
94
  hasMultipleCandidates: {
95
95
  type: "hasMultipleCandidates";
96
96
  params: unknown;
@@ -103,9 +103,9 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
103
103
  type: "hasChosenCandidate";
104
104
  params: unknown;
105
105
  };
106
- }>, never, "error" | "idle" | "finished" | "loading" | "submitContinue" | "submitSkip" | "oneCandidateFound" | "noCandidatesFound" | {
106
+ }>, never, "error" | "idle" | "finished" | "submitContinue" | "submitSkip" | "loading" | "oneCandidateFound" | "noCandidatesFound" | {
107
107
  multiCandidatesFound: "noCandidateSelected" | "choosingCandidate" | "candidateSelected";
108
- }, string, IdentityReuseInput, xstate393.NonReducibleUnknown, xstate393.EventObject, xstate393.MetaObject, {
108
+ }, string, IdentityReuseInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
109
109
  readonly id: "identityReuse";
110
110
  readonly initial: "idle";
111
111
  readonly context: ({
@@ -114,75 +114,75 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
114
114
  spawn: {
115
115
  <TSrc extends "fetchCandidates" | "submitContinue" | "submitSkip">(logic: TSrc, ...[options]: ({
116
116
  src: "fetchCandidates";
117
- logic: xstate393.PromiseActorLogic<FetchCandidatesResponse, void, xstate393.EventObject>;
117
+ logic: xstate0.PromiseActorLogic<FetchCandidatesResponse, void, xstate0.EventObject>;
118
118
  id: string | undefined;
119
119
  } extends infer T ? T extends {
120
120
  src: "fetchCandidates";
121
- logic: xstate393.PromiseActorLogic<FetchCandidatesResponse, void, xstate393.EventObject>;
121
+ logic: xstate0.PromiseActorLogic<FetchCandidatesResponse, void, xstate0.EventObject>;
122
122
  id: string | undefined;
123
123
  } ? T extends {
124
124
  src: TSrc;
125
- } ? xstate393.ConditionalRequired<[options?: ({
125
+ } ? xstate0.ConditionalRequired<[options?: ({
126
126
  id?: T["id"] | undefined;
127
127
  systemId?: string;
128
- input?: xstate393.InputFrom<T["logic"]> | undefined;
128
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
129
129
  syncSnapshot?: boolean;
130
- } & { [K in xstate393.RequiredActorOptions<T>]: unknown }) | undefined], xstate393.IsNotNever<xstate393.RequiredActorOptions<T>>> : never : never : never) | ({
130
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
131
131
  src: "submitContinue";
132
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
132
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
133
133
  id: string | undefined;
134
134
  } extends infer T_1 ? T_1 extends {
135
135
  src: "submitContinue";
136
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
136
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
137
137
  id: string | undefined;
138
138
  } ? T_1 extends {
139
139
  src: TSrc;
140
- } ? xstate393.ConditionalRequired<[options?: ({
140
+ } ? xstate0.ConditionalRequired<[options?: ({
141
141
  id?: T_1["id"] | undefined;
142
142
  systemId?: string;
143
- input?: xstate393.InputFrom<T_1["logic"]> | undefined;
143
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
144
144
  syncSnapshot?: boolean;
145
- } & { [K_1 in xstate393.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate393.IsNotNever<xstate393.RequiredActorOptions<T_1>>> : never : never : never) | ({
145
+ } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never) | ({
146
146
  src: "submitSkip";
147
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
147
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
148
148
  id: string | undefined;
149
149
  } extends infer T_2 ? T_2 extends {
150
150
  src: "submitSkip";
151
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
151
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
152
152
  id: string | undefined;
153
153
  } ? T_2 extends {
154
154
  src: TSrc;
155
- } ? xstate393.ConditionalRequired<[options?: ({
155
+ } ? xstate0.ConditionalRequired<[options?: ({
156
156
  id?: T_2["id"] | undefined;
157
157
  systemId?: string;
158
- input?: xstate393.InputFrom<T_2["logic"]> | undefined;
158
+ input?: xstate0.InputFrom<T_2["logic"]> | undefined;
159
159
  syncSnapshot?: boolean;
160
- } & { [K_2 in xstate393.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate393.IsNotNever<xstate393.RequiredActorOptions<T_2>>> : never : never : never)): xstate393.ActorRefFromLogic<xstate393.GetConcreteByKey<xstate393.Values<{
160
+ } & { [K_2 in xstate0.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_2>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
161
161
  fetchCandidates: {
162
162
  src: "fetchCandidates";
163
- logic: xstate393.PromiseActorLogic<FetchCandidatesResponse, void, xstate393.EventObject>;
163
+ logic: xstate0.PromiseActorLogic<FetchCandidatesResponse, void, xstate0.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  submitContinue: {
167
167
  src: "submitContinue";
168
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
168
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
169
169
  id: string | undefined;
170
170
  };
171
171
  submitSkip: {
172
172
  src: "submitSkip";
173
- logic: xstate393.PromiseActorLogic<SubmitResponse, void, xstate393.EventObject>;
173
+ logic: xstate0.PromiseActorLogic<SubmitResponse, void, xstate0.EventObject>;
174
174
  id: string | undefined;
175
175
  };
176
176
  }>, "src", TSrc>["logic"]>;
177
- <TLogic extends xstate393.AnyActorLogic>(src: TLogic, ...[options]: xstate393.ConditionalRequired<[options?: ({
177
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
178
178
  id?: never;
179
179
  systemId?: string;
180
- input?: xstate393.InputFrom<TLogic> | undefined;
180
+ input?: xstate0.InputFrom<TLogic> | undefined;
181
181
  syncSnapshot?: boolean;
182
- } & { [K in xstate393.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate393.IsNotNever<xstate393.RequiredLogicInput<TLogic>>>): xstate393.ActorRefFromLogic<TLogic>;
182
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
183
183
  };
184
184
  input: IdentityReuseInput;
185
- self: xstate393.ActorRef<xstate393.MachineSnapshot<IdentityReuseContext, {
185
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<IdentityReuseContext, {
186
186
  type: "LOAD";
187
187
  } | {
188
188
  type: "START_SELECTION";
@@ -197,7 +197,7 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
197
197
  type: "SKIP";
198
198
  } | {
199
199
  type: "RETRY";
200
- }, Record<string, xstate393.AnyActorRef | undefined>, xstate393.StateValue, string, unknown, any, any>, {
200
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
201
201
  type: "LOAD";
202
202
  } | {
203
203
  type: "START_SELECTION";
@@ -212,7 +212,7 @@ declare const identityReuseMachine: xstate393.StateMachine<IdentityReuseContext,
212
212
  type: "SKIP";
213
213
  } | {
214
214
  type: "RETRY";
215
- }, xstate393.AnyEventObject>;
215
+ }, xstate0.AnyEventObject>;
216
216
  }) => {
217
217
  config: IdentityReuseConfig;
218
218
  currentOrganizationName: undefined;