@incodetech/core 0.0.0-dev-20260508-192a29f → 0.0.0-dev-20260508-9f627e9

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.
@@ -6,7 +6,7 @@ import "./types-BA181GDD.js";
6
6
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-C376JZwA.js";
7
7
  import { o as FlowEventSubscribable } from "./index-CmFkidgy.js";
8
8
  import { i as WorkflowModuleRegistry, n as RunChildModuleEvent, r as RunChildModuleInput } from "./types-WKAQ7Ai4.js";
9
- import * as xstate63 from "xstate";
9
+ import * as xstate738 from "xstate";
10
10
 
11
11
  //#region src/modules/workflow/types.d.ts
12
12
  /** Possible node types returned by the workflow server. */
@@ -50,6 +50,8 @@ type WorkflowConfig = {
50
50
  mergeSessionRecordings?: boolean;
51
51
  /** Whether age estimation is enabled (ID capture, Selfie) */
52
52
  ageAssurance?: boolean;
53
+ /** Skip the launch (home) screen and go straight to the first workflow node. */
54
+ disableLaunchScreen?: boolean;
53
55
  };
54
56
  /**
55
57
  * Consumer-provided callback for handling custom workflow modules.
@@ -70,11 +72,17 @@ type CustomModuleCallback = (data: {
70
72
  }) => void;
71
73
  //#endregion
72
74
  //#region src/modules/workflow/workflowManager.d.ts
75
+ type WorkflowHomeScreen = {
76
+ visible: boolean;
77
+ isContinueLoading: boolean;
78
+ };
73
79
  type WorkflowIdleState = {
74
80
  status: 'idle';
81
+ homeScreen: WorkflowHomeScreen;
75
82
  };
76
83
  type WorkflowLoadingState = {
77
84
  status: 'loading';
85
+ homeScreen: WorkflowHomeScreen;
78
86
  };
79
87
  type WorkflowReadyState = {
80
88
  status: 'ready';
@@ -82,6 +90,7 @@ type WorkflowReadyState = {
82
90
  currentNode: WorkflowNode;
83
91
  config: Record<string, unknown>;
84
92
  moduleState: unknown;
93
+ homeScreen: WorkflowHomeScreen;
85
94
  };
86
95
  type WorkflowFinishedState = {
87
96
  status: 'finished';
@@ -136,6 +145,13 @@ declare function createWorkflowManager(options?: CreateWorkflowManagerOptions):
136
145
  * Transitions the workflow to a terminal error state.
137
146
  */
138
147
  errorModule(error: string): void;
148
+ /**
149
+ * Advance from the launch (home) screen into the first workflow node.
150
+ * No-op when the workflow is not currently waiting on the home screen
151
+ * (e.g. when the backend set `disableLaunchScreen` or the first node is
152
+ * the injected `REDIRECT_TO_MOBILE`).
153
+ */
154
+ continueFromHome(): void;
139
155
  /** Get the current module's configuration, including the `ds` flag from the workflow config. */
140
156
  getModuleConfig<T$1 = Record<string, unknown>>(): T$1 | undefined;
141
157
  } & FlowEventSubscribable;
@@ -190,6 +206,7 @@ type WorkflowContext = {
190
206
  interviewId: string;
191
207
  isDesktop: boolean;
192
208
  isInjectedNode: boolean;
209
+ isHomeContinueLoading: boolean;
193
210
  getFinishStatus: GetFinishStatusFn;
194
211
  };
195
212
  type WorkflowInput = {
@@ -201,7 +218,7 @@ type WorkflowInput = {
201
218
  /** Whether the device is a desktop. Determines desktop-to-mobile redirect injection. Defaults to true. */
202
219
  isDesktop?: boolean;
203
220
  };
204
- declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
221
+ declare const workflowMachine: xstate738.StateMachine<WorkflowContext, {
205
222
  type: "LOAD";
206
223
  } | {
207
224
  type: "MODULE_COMPLETE";
@@ -210,75 +227,85 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
210
227
  error: unknown;
211
228
  } | {
212
229
  type: "COMPLETE_FLOW";
230
+ } | {
231
+ type: "HOME_CONTINUE";
213
232
  }, {
214
- [x: string]: xstate63.ActorRefFromLogic<xstate63.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FinishStatus, {
233
+ [x: string]: xstate738.ActorRefFromLogic<xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>> | xstate738.ActorRefFromLogic<xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>> | xstate738.ActorRefFromLogic<xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>> | xstate738.ActorRefFromLogic<xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>> | xstate738.ActorRefFromLogic<xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>> | xstate738.ActorRefFromLogic<xstate738.PromiseActorLogic<FinishStatus, {
215
234
  getFinishStatus: GetFinishStatusFn;
216
235
  workflowId: string | undefined;
217
- }, xstate63.EventObject>> | undefined;
218
- }, xstate63.Values<{
236
+ }, xstate738.EventObject>> | undefined;
237
+ }, xstate738.Values<{
219
238
  runChildModule: {
220
239
  src: "runChildModule";
221
- logic: xstate63.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate63.EventObject>;
240
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
222
241
  id: string | undefined;
223
242
  };
224
243
  loadWorkflow: {
225
244
  src: "loadWorkflow";
226
- logic: xstate63.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate63.EventObject>;
245
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
227
246
  id: string | undefined;
228
247
  };
229
248
  processNextNode: {
230
249
  src: "processNextNode";
231
- logic: xstate63.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate63.EventObject>;
250
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
232
251
  id: string | undefined;
233
252
  };
234
253
  handleCustomModule: {
235
254
  src: "handleCustomModule";
236
- logic: xstate63.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate63.EventObject>;
255
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
237
256
  id: string | undefined;
238
257
  };
239
258
  resolveModule: {
240
259
  src: "resolveModule";
241
- logic: xstate63.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate63.EventObject>;
260
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
242
261
  id: string | undefined;
243
262
  };
244
263
  notifyBackend: {
245
264
  src: "notifyBackend";
246
- logic: xstate63.PromiseActorLogic<FinishStatus, {
265
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
247
266
  getFinishStatus: GetFinishStatusFn;
248
267
  workflowId: string | undefined;
249
- }, xstate63.EventObject>;
268
+ }, xstate738.EventObject>;
250
269
  id: string | undefined;
251
270
  };
252
- }>, xstate63.Values<{
271
+ }>, xstate738.Values<{
253
272
  setError: {
254
273
  type: "setError";
255
- params: xstate63.NonReducibleUnknown;
274
+ params: xstate738.NonReducibleUnknown;
256
275
  };
257
276
  setLoadingResult: {
258
277
  type: "setLoadingResult";
259
- params: xstate63.NonReducibleUnknown;
278
+ params: xstate738.NonReducibleUnknown;
260
279
  };
261
280
  setNextNode: {
262
281
  type: "setNextNode";
263
- params: xstate63.NonReducibleUnknown;
282
+ params: xstate738.NonReducibleUnknown;
264
283
  };
265
284
  setCustomModuleResult: {
266
285
  type: "setCustomModuleResult";
267
- params: xstate63.NonReducibleUnknown;
286
+ params: xstate738.NonReducibleUnknown;
268
287
  };
269
288
  setResolvedMachine: {
270
289
  type: "setResolvedMachine";
271
- params: xstate63.NonReducibleUnknown;
290
+ params: xstate738.NonReducibleUnknown;
272
291
  };
273
292
  setFinishStatus: {
274
293
  type: "setFinishStatus";
275
- params: xstate63.NonReducibleUnknown;
294
+ params: xstate738.NonReducibleUnknown;
276
295
  };
277
296
  setModuleError: {
278
297
  type: "setModuleError";
279
- params: xstate63.NonReducibleUnknown;
298
+ params: xstate738.NonReducibleUnknown;
280
299
  };
281
- }>, xstate63.Values<{
300
+ setHomeContinueLoading: {
301
+ type: "setHomeContinueLoading";
302
+ params: xstate738.NonReducibleUnknown;
303
+ };
304
+ clearHomeContinueLoading: {
305
+ type: "clearHomeContinueLoading";
306
+ params: xstate738.NonReducibleUnknown;
307
+ };
308
+ }>, xstate738.Values<{
282
309
  isModuleNode: {
283
310
  type: "isModuleNode";
284
311
  params: unknown;
@@ -295,7 +322,11 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
295
322
  type: "isCustomModule";
296
323
  params: unknown;
297
324
  };
298
- }>, never, "error" | "idle" | "closed" | "finished" | "loading" | "resolvingModule" | "completing" | "asyncResolution" | "handlingCustomModule" | "runningModule" | "processingNode", string, WorkflowInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
325
+ shouldEnterHome: {
326
+ type: "shouldEnterHome";
327
+ params: unknown;
328
+ };
329
+ }>, never, "error" | "idle" | "closed" | "finished" | "loading" | "home" | "resolvingModule" | "completing" | "asyncResolution" | "handlingCustomModule" | "runningModule" | "processingNode", string, WorkflowInput, xstate738.NonReducibleUnknown, xstate738.EventObject, xstate738.MetaObject, {
299
330
  readonly id: "workflow";
300
331
  readonly initial: "idle";
301
332
  readonly context: ({
@@ -304,144 +335,144 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
304
335
  spawn: {
305
336
  <TSrc extends "runChildModule" | "loadWorkflow" | "processNextNode" | "handleCustomModule" | "resolveModule" | "notifyBackend">(logic: TSrc, ...[options]: ({
306
337
  src: "runChildModule";
307
- logic: xstate63.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate63.EventObject>;
338
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
308
339
  id: string | undefined;
309
340
  } extends infer T ? T extends {
310
341
  src: "runChildModule";
311
- logic: xstate63.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate63.EventObject>;
342
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
312
343
  id: string | undefined;
313
344
  } ? T extends {
314
345
  src: TSrc;
315
- } ? xstate63.ConditionalRequired<[options?: ({
346
+ } ? xstate738.ConditionalRequired<[options?: ({
316
347
  id?: T["id"] | undefined;
317
348
  systemId?: string;
318
- input?: xstate63.InputFrom<T["logic"]> | undefined;
349
+ input?: xstate738.InputFrom<T["logic"]> | undefined;
319
350
  syncSnapshot?: boolean;
320
- } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
351
+ } & { [K in xstate738.RequiredActorOptions<T>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T>>> : never : never : never) | ({
321
352
  src: "loadWorkflow";
322
- logic: xstate63.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate63.EventObject>;
353
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
323
354
  id: string | undefined;
324
355
  } extends infer T_1 ? T_1 extends {
325
356
  src: "loadWorkflow";
326
- logic: xstate63.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate63.EventObject>;
357
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
327
358
  id: string | undefined;
328
359
  } ? T_1 extends {
329
360
  src: TSrc;
330
- } ? xstate63.ConditionalRequired<[options?: ({
361
+ } ? xstate738.ConditionalRequired<[options?: ({
331
362
  id?: T_1["id"] | undefined;
332
363
  systemId?: string;
333
- input?: xstate63.InputFrom<T_1["logic"]> | undefined;
364
+ input?: xstate738.InputFrom<T_1["logic"]> | undefined;
334
365
  syncSnapshot?: boolean;
335
- } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never) | ({
366
+ } & { [K_1 in xstate738.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_1>>> : never : never : never) | ({
336
367
  src: "processNextNode";
337
- logic: xstate63.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate63.EventObject>;
368
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
338
369
  id: string | undefined;
339
370
  } extends infer T_2 ? T_2 extends {
340
371
  src: "processNextNode";
341
- logic: xstate63.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate63.EventObject>;
372
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
342
373
  id: string | undefined;
343
374
  } ? T_2 extends {
344
375
  src: TSrc;
345
- } ? xstate63.ConditionalRequired<[options?: ({
376
+ } ? xstate738.ConditionalRequired<[options?: ({
346
377
  id?: T_2["id"] | undefined;
347
378
  systemId?: string;
348
- input?: xstate63.InputFrom<T_2["logic"]> | undefined;
379
+ input?: xstate738.InputFrom<T_2["logic"]> | undefined;
349
380
  syncSnapshot?: boolean;
350
- } & { [K_2 in xstate63.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_2>>> : never : never : never) | ({
381
+ } & { [K_2 in xstate738.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_2>>> : never : never : never) | ({
351
382
  src: "handleCustomModule";
352
- logic: xstate63.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate63.EventObject>;
383
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
353
384
  id: string | undefined;
354
385
  } extends infer T_3 ? T_3 extends {
355
386
  src: "handleCustomModule";
356
- logic: xstate63.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate63.EventObject>;
387
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
357
388
  id: string | undefined;
358
389
  } ? T_3 extends {
359
390
  src: TSrc;
360
- } ? xstate63.ConditionalRequired<[options?: ({
391
+ } ? xstate738.ConditionalRequired<[options?: ({
361
392
  id?: T_3["id"] | undefined;
362
393
  systemId?: string;
363
- input?: xstate63.InputFrom<T_3["logic"]> | undefined;
394
+ input?: xstate738.InputFrom<T_3["logic"]> | undefined;
364
395
  syncSnapshot?: boolean;
365
- } & { [K_3 in xstate63.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_3>>> : never : never : never) | ({
396
+ } & { [K_3 in xstate738.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_3>>> : never : never : never) | ({
366
397
  src: "resolveModule";
367
- logic: xstate63.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate63.EventObject>;
398
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
368
399
  id: string | undefined;
369
400
  } extends infer T_4 ? T_4 extends {
370
401
  src: "resolveModule";
371
- logic: xstate63.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate63.EventObject>;
402
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
372
403
  id: string | undefined;
373
404
  } ? T_4 extends {
374
405
  src: TSrc;
375
- } ? xstate63.ConditionalRequired<[options?: ({
406
+ } ? xstate738.ConditionalRequired<[options?: ({
376
407
  id?: T_4["id"] | undefined;
377
408
  systemId?: string;
378
- input?: xstate63.InputFrom<T_4["logic"]> | undefined;
409
+ input?: xstate738.InputFrom<T_4["logic"]> | undefined;
379
410
  syncSnapshot?: boolean;
380
- } & { [K_4 in xstate63.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_4>>> : never : never : never) | ({
411
+ } & { [K_4 in xstate738.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_4>>> : never : never : never) | ({
381
412
  src: "notifyBackend";
382
- logic: xstate63.PromiseActorLogic<FinishStatus, {
413
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
383
414
  getFinishStatus: GetFinishStatusFn;
384
415
  workflowId: string | undefined;
385
- }, xstate63.EventObject>;
416
+ }, xstate738.EventObject>;
386
417
  id: string | undefined;
387
418
  } extends infer T_5 ? T_5 extends {
388
419
  src: "notifyBackend";
389
- logic: xstate63.PromiseActorLogic<FinishStatus, {
420
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
390
421
  getFinishStatus: GetFinishStatusFn;
391
422
  workflowId: string | undefined;
392
- }, xstate63.EventObject>;
423
+ }, xstate738.EventObject>;
393
424
  id: string | undefined;
394
425
  } ? T_5 extends {
395
426
  src: TSrc;
396
- } ? xstate63.ConditionalRequired<[options?: ({
427
+ } ? xstate738.ConditionalRequired<[options?: ({
397
428
  id?: T_5["id"] | undefined;
398
429
  systemId?: string;
399
- input?: xstate63.InputFrom<T_5["logic"]> | undefined;
430
+ input?: xstate738.InputFrom<T_5["logic"]> | undefined;
400
431
  syncSnapshot?: boolean;
401
- } & { [K_5 in xstate63.RequiredActorOptions<T_5>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_5>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
432
+ } & { [K_5 in xstate738.RequiredActorOptions<T_5>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_5>>> : never : never : never)): xstate738.ActorRefFromLogic<xstate738.GetConcreteByKey<xstate738.Values<{
402
433
  runChildModule: {
403
434
  src: "runChildModule";
404
- logic: xstate63.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate63.EventObject>;
435
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
405
436
  id: string | undefined;
406
437
  };
407
438
  loadWorkflow: {
408
439
  src: "loadWorkflow";
409
- logic: xstate63.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate63.EventObject>;
440
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
410
441
  id: string | undefined;
411
442
  };
412
443
  processNextNode: {
413
444
  src: "processNextNode";
414
- logic: xstate63.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate63.EventObject>;
445
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
415
446
  id: string | undefined;
416
447
  };
417
448
  handleCustomModule: {
418
449
  src: "handleCustomModule";
419
- logic: xstate63.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate63.EventObject>;
450
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
420
451
  id: string | undefined;
421
452
  };
422
453
  resolveModule: {
423
454
  src: "resolveModule";
424
- logic: xstate63.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate63.EventObject>;
455
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
425
456
  id: string | undefined;
426
457
  };
427
458
  notifyBackend: {
428
459
  src: "notifyBackend";
429
- logic: xstate63.PromiseActorLogic<FinishStatus, {
460
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
430
461
  getFinishStatus: GetFinishStatusFn;
431
462
  workflowId: string | undefined;
432
- }, xstate63.EventObject>;
463
+ }, xstate738.EventObject>;
433
464
  id: string | undefined;
434
465
  };
435
466
  }>, "src", TSrc>["logic"]>;
436
- <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
467
+ <TLogic extends xstate738.AnyActorLogic>(src: TLogic, ...[options]: xstate738.ConditionalRequired<[options?: ({
437
468
  id?: never;
438
469
  systemId?: string;
439
- input?: xstate63.InputFrom<TLogic> | undefined;
470
+ input?: xstate738.InputFrom<TLogic> | undefined;
440
471
  syncSnapshot?: boolean;
441
- } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
472
+ } & { [K in xstate738.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredLogicInput<TLogic>>>): xstate738.ActorRefFromLogic<TLogic>;
442
473
  };
443
474
  input: WorkflowInput;
444
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
475
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
445
476
  type: "LOAD";
446
477
  } | {
447
478
  type: "MODULE_COMPLETE";
@@ -450,7 +481,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
450
481
  error: unknown;
451
482
  } | {
452
483
  type: "COMPLETE_FLOW";
453
- }, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
484
+ } | {
485
+ type: "HOME_CONTINUE";
486
+ }, Record<string, xstate738.AnyActorRef | undefined>, xstate738.StateValue, string, unknown, any, any>, {
454
487
  type: "LOAD";
455
488
  } | {
456
489
  type: "MODULE_COMPLETE";
@@ -459,7 +492,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
459
492
  error: unknown;
460
493
  } | {
461
494
  type: "COMPLETE_FLOW";
462
- }, xstate63.AnyEventObject>;
495
+ } | {
496
+ type: "HOME_CONTINUE";
497
+ }, xstate738.AnyEventObject>;
463
498
  }) => {
464
499
  workflowConfig: undefined;
465
500
  currentNode: undefined;
@@ -473,6 +508,7 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
473
508
  interviewId: string;
474
509
  isDesktop: boolean;
475
510
  isInjectedNode: false;
511
+ isHomeContinueLoading: false;
476
512
  getFinishStatus: GetFinishStatusFn;
477
513
  };
478
514
  readonly states: {
@@ -498,8 +534,10 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
498
534
  error: unknown;
499
535
  } | {
500
536
  type: "COMPLETE_FLOW";
537
+ } | {
538
+ type: "HOME_CONTINUE";
501
539
  };
502
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
540
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
503
541
  type: "LOAD";
504
542
  } | {
505
543
  type: "MODULE_COMPLETE";
@@ -508,7 +546,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
508
546
  error: unknown;
509
547
  } | {
510
548
  type: "COMPLETE_FLOW";
511
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
549
+ } | {
550
+ type: "HOME_CONTINUE";
551
+ }, Record<string, xstate738.AnyActorRef>, xstate738.StateValue, string, unknown, any, any>, {
512
552
  type: "LOAD";
513
553
  } | {
514
554
  type: "MODULE_COMPLETE";
@@ -517,11 +557,17 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
517
557
  error: unknown;
518
558
  } | {
519
559
  type: "COMPLETE_FLOW";
520
- }, xstate63.AnyEventObject>;
560
+ } | {
561
+ type: "HOME_CONTINUE";
562
+ }, xstate738.AnyEventObject>;
521
563
  }) => {
522
564
  isDesktop: boolean;
523
565
  };
524
566
  readonly onDone: readonly [{
567
+ readonly target: "home";
568
+ readonly guard: "shouldEnterHome";
569
+ readonly actions: "setLoadingResult";
570
+ }, {
525
571
  readonly target: "resolvingModule";
526
572
  readonly guard: "isModuleNode";
527
573
  readonly actions: "setLoadingResult";
@@ -540,6 +586,14 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
540
586
  };
541
587
  };
542
588
  };
589
+ readonly home: {
590
+ readonly on: {
591
+ readonly HOME_CONTINUE: {
592
+ readonly target: "resolvingModule";
593
+ readonly actions: "setHomeContinueLoading";
594
+ };
595
+ };
596
+ };
543
597
  readonly resolvingModule: {
544
598
  readonly always: readonly [{
545
599
  readonly target: "handlingCustomModule";
@@ -561,8 +615,10 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
561
615
  error: unknown;
562
616
  } | {
563
617
  type: "COMPLETE_FLOW";
618
+ } | {
619
+ type: "HOME_CONTINUE";
564
620
  };
565
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
621
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
566
622
  type: "LOAD";
567
623
  } | {
568
624
  type: "MODULE_COMPLETE";
@@ -571,7 +627,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
571
627
  error: unknown;
572
628
  } | {
573
629
  type: "COMPLETE_FLOW";
574
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
630
+ } | {
631
+ type: "HOME_CONTINUE";
632
+ }, Record<string, xstate738.AnyActorRef>, xstate738.StateValue, string, unknown, any, any>, {
575
633
  type: "LOAD";
576
634
  } | {
577
635
  type: "MODULE_COMPLETE";
@@ -580,7 +638,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
580
638
  error: unknown;
581
639
  } | {
582
640
  type: "COMPLETE_FLOW";
583
- }, xstate63.AnyEventObject>;
641
+ } | {
642
+ type: "HOME_CONTINUE";
643
+ }, xstate738.AnyEventObject>;
584
644
  }) => {
585
645
  moduleKey: string;
586
646
  registeredModules: WorkflowModuleRegistry;
@@ -596,6 +656,7 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
596
656
  };
597
657
  };
598
658
  readonly runningModule: {
659
+ readonly entry: "clearHomeContinueLoading";
599
660
  readonly invoke: {
600
661
  readonly id: "currentModule";
601
662
  readonly src: "runChildModule";
@@ -636,8 +697,10 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
636
697
  error: unknown;
637
698
  } | {
638
699
  type: "COMPLETE_FLOW";
700
+ } | {
701
+ type: "HOME_CONTINUE";
639
702
  };
640
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
703
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
641
704
  type: "LOAD";
642
705
  } | {
643
706
  type: "MODULE_COMPLETE";
@@ -646,7 +709,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
646
709
  error: unknown;
647
710
  } | {
648
711
  type: "COMPLETE_FLOW";
649
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
712
+ } | {
713
+ type: "HOME_CONTINUE";
714
+ }, Record<string, xstate738.AnyActorRef>, xstate738.StateValue, string, unknown, any, any>, {
650
715
  type: "LOAD";
651
716
  } | {
652
717
  type: "MODULE_COMPLETE";
@@ -655,7 +720,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
655
720
  error: unknown;
656
721
  } | {
657
722
  type: "COMPLETE_FLOW";
658
- }, xstate63.AnyEventObject>;
723
+ } | {
724
+ type: "HOME_CONTINUE";
725
+ }, xstate738.AnyEventObject>;
659
726
  }) => {
660
727
  currentNode: WorkflowNode;
661
728
  interviewId: string;
@@ -697,8 +764,10 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
697
764
  error: unknown;
698
765
  } | {
699
766
  type: "COMPLETE_FLOW";
767
+ } | {
768
+ type: "HOME_CONTINUE";
700
769
  };
701
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
770
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
702
771
  type: "LOAD";
703
772
  } | {
704
773
  type: "MODULE_COMPLETE";
@@ -707,7 +776,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
707
776
  error: unknown;
708
777
  } | {
709
778
  type: "COMPLETE_FLOW";
710
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
779
+ } | {
780
+ type: "HOME_CONTINUE";
781
+ }, Record<string, xstate738.AnyActorRef>, xstate738.StateValue, string, unknown, any, any>, {
711
782
  type: "LOAD";
712
783
  } | {
713
784
  type: "MODULE_COMPLETE";
@@ -716,7 +787,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
716
787
  error: unknown;
717
788
  } | {
718
789
  type: "COMPLETE_FLOW";
719
- }, xstate63.AnyEventObject>;
790
+ } | {
791
+ type: "HOME_CONTINUE";
792
+ }, xstate738.AnyEventObject>;
720
793
  }) => {
721
794
  isInjectedNode: boolean;
722
795
  firstNode: WorkflowNode | undefined;
@@ -765,8 +838,10 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
765
838
  error: unknown;
766
839
  } | {
767
840
  type: "COMPLETE_FLOW";
841
+ } | {
842
+ type: "HOME_CONTINUE";
768
843
  };
769
- self: xstate63.ActorRef<xstate63.MachineSnapshot<WorkflowContext, {
844
+ self: xstate738.ActorRef<xstate738.MachineSnapshot<WorkflowContext, {
770
845
  type: "LOAD";
771
846
  } | {
772
847
  type: "MODULE_COMPLETE";
@@ -775,7 +850,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
775
850
  error: unknown;
776
851
  } | {
777
852
  type: "COMPLETE_FLOW";
778
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
853
+ } | {
854
+ type: "HOME_CONTINUE";
855
+ }, Record<string, xstate738.AnyActorRef>, xstate738.StateValue, string, unknown, any, any>, {
779
856
  type: "LOAD";
780
857
  } | {
781
858
  type: "MODULE_COMPLETE";
@@ -784,7 +861,9 @@ declare const workflowMachine: xstate63.StateMachine<WorkflowContext, {
784
861
  error: unknown;
785
862
  } | {
786
863
  type: "COMPLETE_FLOW";
787
- }, xstate63.AnyEventObject>;
864
+ } | {
865
+ type: "HOME_CONTINUE";
866
+ }, xstate738.AnyEventObject>;
788
867
  }) => {
789
868
  getFinishStatus: GetFinishStatusFn;
790
869
  workflowId: string | undefined;