@incodetech/core 0.0.0-dev-20260508-3255029 → 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 xstate878 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: xstate878.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: xstate878.StateMachine<WorkflowContext, {
210
227
  error: unknown;
211
228
  } | {
212
229
  type: "COMPLETE_FLOW";
230
+ } | {
231
+ type: "HOME_CONTINUE";
213
232
  }, {
214
- [x: string]: xstate878.ActorRefFromLogic<xstate878.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.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
- }, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate878.EventObject>> | xstate878.ActorRefFromLogic<xstate878.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate878.EventObject>> | undefined;
218
- }, xstate878.Values<{
236
+ }, xstate738.EventObject>> | undefined;
237
+ }, xstate738.Values<{
219
238
  runChildModule: {
220
239
  src: "runChildModule";
221
- logic: xstate878.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate878.EventObject>;
222
- id: string | undefined;
223
- };
224
- notifyBackend: {
225
- src: "notifyBackend";
226
- logic: xstate878.PromiseActorLogic<FinishStatus, {
227
- getFinishStatus: GetFinishStatusFn;
228
- workflowId: string | undefined;
229
- }, xstate878.EventObject>;
240
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
230
241
  id: string | undefined;
231
242
  };
232
243
  loadWorkflow: {
233
244
  src: "loadWorkflow";
234
- logic: xstate878.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate878.EventObject>;
245
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
235
246
  id: string | undefined;
236
247
  };
237
248
  processNextNode: {
238
249
  src: "processNextNode";
239
- logic: xstate878.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate878.EventObject>;
250
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
240
251
  id: string | undefined;
241
252
  };
242
253
  handleCustomModule: {
243
254
  src: "handleCustomModule";
244
- logic: xstate878.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate878.EventObject>;
255
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
245
256
  id: string | undefined;
246
257
  };
247
258
  resolveModule: {
248
259
  src: "resolveModule";
249
- logic: xstate878.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate878.EventObject>;
260
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
250
261
  id: string | undefined;
251
262
  };
252
- }>, xstate878.Values<{
263
+ notifyBackend: {
264
+ src: "notifyBackend";
265
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
266
+ getFinishStatus: GetFinishStatusFn;
267
+ workflowId: string | undefined;
268
+ }, xstate738.EventObject>;
269
+ id: string | undefined;
270
+ };
271
+ }>, xstate738.Values<{
253
272
  setError: {
254
273
  type: "setError";
255
- params: xstate878.NonReducibleUnknown;
256
- };
257
- setFinishStatus: {
258
- type: "setFinishStatus";
259
- params: xstate878.NonReducibleUnknown;
274
+ params: xstate738.NonReducibleUnknown;
260
275
  };
261
276
  setLoadingResult: {
262
277
  type: "setLoadingResult";
263
- params: xstate878.NonReducibleUnknown;
278
+ params: xstate738.NonReducibleUnknown;
264
279
  };
265
280
  setNextNode: {
266
281
  type: "setNextNode";
267
- params: xstate878.NonReducibleUnknown;
282
+ params: xstate738.NonReducibleUnknown;
268
283
  };
269
284
  setCustomModuleResult: {
270
285
  type: "setCustomModuleResult";
271
- params: xstate878.NonReducibleUnknown;
286
+ params: xstate738.NonReducibleUnknown;
272
287
  };
273
288
  setResolvedMachine: {
274
289
  type: "setResolvedMachine";
275
- params: xstate878.NonReducibleUnknown;
290
+ params: xstate738.NonReducibleUnknown;
291
+ };
292
+ setFinishStatus: {
293
+ type: "setFinishStatus";
294
+ params: xstate738.NonReducibleUnknown;
276
295
  };
277
296
  setModuleError: {
278
297
  type: "setModuleError";
279
- params: xstate878.NonReducibleUnknown;
298
+ params: xstate738.NonReducibleUnknown;
299
+ };
300
+ setHomeContinueLoading: {
301
+ type: "setHomeContinueLoading";
302
+ params: xstate738.NonReducibleUnknown;
280
303
  };
281
- }>, xstate878.Values<{
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,153 +322,157 @@ declare const workflowMachine: xstate878.StateMachine<WorkflowContext, {
295
322
  type: "isCustomModule";
296
323
  params: unknown;
297
324
  };
298
- }>, never, "error" | "idle" | "closed" | "finished" | "loading" | "resolvingModule" | "runningModule" | "completing" | "asyncResolution" | "handlingCustomModule" | "processingNode", string, WorkflowInput, xstate878.NonReducibleUnknown, xstate878.EventObject, xstate878.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: ({
302
333
  input
303
334
  }: {
304
335
  spawn: {
305
- <TSrc extends "runChildModule" | "notifyBackend" | "loadWorkflow" | "processNextNode" | "handleCustomModule" | "resolveModule">(logic: TSrc, ...[options]: ({
336
+ <TSrc extends "runChildModule" | "loadWorkflow" | "processNextNode" | "handleCustomModule" | "resolveModule" | "notifyBackend">(logic: TSrc, ...[options]: ({
306
337
  src: "runChildModule";
307
- logic: xstate878.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate878.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: xstate878.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate878.EventObject>;
342
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
312
343
  id: string | undefined;
313
344
  } ? T extends {
314
345
  src: TSrc;
315
- } ? xstate878.ConditionalRequired<[options?: ({
346
+ } ? xstate738.ConditionalRequired<[options?: ({
316
347
  id?: T["id"] | undefined;
317
348
  systemId?: string;
318
- input?: xstate878.InputFrom<T["logic"]> | undefined;
349
+ input?: xstate738.InputFrom<T["logic"]> | undefined;
319
350
  syncSnapshot?: boolean;
320
- } & { [K in xstate878.RequiredActorOptions<T>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T>>> : never : never : never) | ({
321
- src: "notifyBackend";
322
- logic: xstate878.PromiseActorLogic<FinishStatus, {
323
- getFinishStatus: GetFinishStatusFn;
324
- workflowId: string | undefined;
325
- }, xstate878.EventObject>;
351
+ } & { [K in xstate738.RequiredActorOptions<T>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T>>> : never : never : never) | ({
352
+ src: "loadWorkflow";
353
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
326
354
  id: string | undefined;
327
355
  } extends infer T_1 ? T_1 extends {
328
- src: "notifyBackend";
329
- logic: xstate878.PromiseActorLogic<FinishStatus, {
330
- getFinishStatus: GetFinishStatusFn;
331
- workflowId: string | undefined;
332
- }, xstate878.EventObject>;
356
+ src: "loadWorkflow";
357
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
333
358
  id: string | undefined;
334
359
  } ? T_1 extends {
335
360
  src: TSrc;
336
- } ? xstate878.ConditionalRequired<[options?: ({
361
+ } ? xstate738.ConditionalRequired<[options?: ({
337
362
  id?: T_1["id"] | undefined;
338
363
  systemId?: string;
339
- input?: xstate878.InputFrom<T_1["logic"]> | undefined;
364
+ input?: xstate738.InputFrom<T_1["logic"]> | undefined;
340
365
  syncSnapshot?: boolean;
341
- } & { [K_1 in xstate878.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_1>>> : never : never : never) | ({
342
- src: "loadWorkflow";
343
- logic: xstate878.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate878.EventObject>;
366
+ } & { [K_1 in xstate738.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_1>>> : never : never : never) | ({
367
+ src: "processNextNode";
368
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
344
369
  id: string | undefined;
345
370
  } extends infer T_2 ? T_2 extends {
346
- src: "loadWorkflow";
347
- logic: xstate878.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate878.EventObject>;
371
+ src: "processNextNode";
372
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
348
373
  id: string | undefined;
349
374
  } ? T_2 extends {
350
375
  src: TSrc;
351
- } ? xstate878.ConditionalRequired<[options?: ({
376
+ } ? xstate738.ConditionalRequired<[options?: ({
352
377
  id?: T_2["id"] | undefined;
353
378
  systemId?: string;
354
- input?: xstate878.InputFrom<T_2["logic"]> | undefined;
379
+ input?: xstate738.InputFrom<T_2["logic"]> | undefined;
355
380
  syncSnapshot?: boolean;
356
- } & { [K_2 in xstate878.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_2>>> : never : never : never) | ({
357
- src: "processNextNode";
358
- logic: xstate878.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate878.EventObject>;
381
+ } & { [K_2 in xstate738.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_2>>> : never : never : never) | ({
382
+ src: "handleCustomModule";
383
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
359
384
  id: string | undefined;
360
385
  } extends infer T_3 ? T_3 extends {
361
- src: "processNextNode";
362
- logic: xstate878.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate878.EventObject>;
386
+ src: "handleCustomModule";
387
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
363
388
  id: string | undefined;
364
389
  } ? T_3 extends {
365
390
  src: TSrc;
366
- } ? xstate878.ConditionalRequired<[options?: ({
391
+ } ? xstate738.ConditionalRequired<[options?: ({
367
392
  id?: T_3["id"] | undefined;
368
393
  systemId?: string;
369
- input?: xstate878.InputFrom<T_3["logic"]> | undefined;
394
+ input?: xstate738.InputFrom<T_3["logic"]> | undefined;
370
395
  syncSnapshot?: boolean;
371
- } & { [K_3 in xstate878.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_3>>> : never : never : never) | ({
372
- src: "handleCustomModule";
373
- logic: xstate878.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate878.EventObject>;
396
+ } & { [K_3 in xstate738.RequiredActorOptions<T_3>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_3>>> : never : never : never) | ({
397
+ src: "resolveModule";
398
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
374
399
  id: string | undefined;
375
400
  } extends infer T_4 ? T_4 extends {
376
- src: "handleCustomModule";
377
- logic: xstate878.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate878.EventObject>;
401
+ src: "resolveModule";
402
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
378
403
  id: string | undefined;
379
404
  } ? T_4 extends {
380
405
  src: TSrc;
381
- } ? xstate878.ConditionalRequired<[options?: ({
406
+ } ? xstate738.ConditionalRequired<[options?: ({
382
407
  id?: T_4["id"] | undefined;
383
408
  systemId?: string;
384
- input?: xstate878.InputFrom<T_4["logic"]> | undefined;
409
+ input?: xstate738.InputFrom<T_4["logic"]> | undefined;
385
410
  syncSnapshot?: boolean;
386
- } & { [K_4 in xstate878.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_4>>> : never : never : never) | ({
387
- src: "resolveModule";
388
- logic: xstate878.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate878.EventObject>;
411
+ } & { [K_4 in xstate738.RequiredActorOptions<T_4>]: unknown }) | undefined], xstate738.IsNotNever<xstate738.RequiredActorOptions<T_4>>> : never : never : never) | ({
412
+ src: "notifyBackend";
413
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
414
+ getFinishStatus: GetFinishStatusFn;
415
+ workflowId: string | undefined;
416
+ }, xstate738.EventObject>;
389
417
  id: string | undefined;
390
418
  } extends infer T_5 ? T_5 extends {
391
- src: "resolveModule";
392
- logic: xstate878.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate878.EventObject>;
419
+ src: "notifyBackend";
420
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
421
+ getFinishStatus: GetFinishStatusFn;
422
+ workflowId: string | undefined;
423
+ }, xstate738.EventObject>;
393
424
  id: string | undefined;
394
425
  } ? T_5 extends {
395
426
  src: TSrc;
396
- } ? xstate878.ConditionalRequired<[options?: ({
427
+ } ? xstate738.ConditionalRequired<[options?: ({
397
428
  id?: T_5["id"] | undefined;
398
429
  systemId?: string;
399
- input?: xstate878.InputFrom<T_5["logic"]> | undefined;
430
+ input?: xstate738.InputFrom<T_5["logic"]> | undefined;
400
431
  syncSnapshot?: boolean;
401
- } & { [K_5 in xstate878.RequiredActorOptions<T_5>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredActorOptions<T_5>>> : never : never : never)): xstate878.ActorRefFromLogic<xstate878.GetConcreteByKey<xstate878.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: xstate878.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate878.EventObject>;
405
- id: string | undefined;
406
- };
407
- notifyBackend: {
408
- src: "notifyBackend";
409
- logic: xstate878.PromiseActorLogic<FinishStatus, {
410
- getFinishStatus: GetFinishStatusFn;
411
- workflowId: string | undefined;
412
- }, xstate878.EventObject>;
435
+ logic: xstate738.CallbackActorLogic<RunChildModuleEvent, RunChildModuleInput, xstate738.EventObject>;
413
436
  id: string | undefined;
414
437
  };
415
438
  loadWorkflow: {
416
439
  src: "loadWorkflow";
417
- logic: xstate878.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate878.EventObject>;
440
+ logic: xstate738.PromiseActorLogic<LoadingResult, LoadWorkflowInput, xstate738.EventObject>;
418
441
  id: string | undefined;
419
442
  };
420
443
  processNextNode: {
421
444
  src: "processNextNode";
422
- logic: xstate878.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate878.EventObject>;
445
+ logic: xstate738.PromiseActorLogic<ProcessingResult, ProcessNextNodeInput, xstate738.EventObject>;
423
446
  id: string | undefined;
424
447
  };
425
448
  handleCustomModule: {
426
449
  src: "handleCustomModule";
427
- logic: xstate878.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate878.EventObject>;
450
+ logic: xstate738.PromiseActorLogic<WorkflowNode, HandleCustomModuleInput, xstate738.EventObject>;
428
451
  id: string | undefined;
429
452
  };
430
453
  resolveModule: {
431
454
  src: "resolveModule";
432
- logic: xstate878.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate878.EventObject>;
455
+ logic: xstate738.PromiseActorLogic<AnyStateMachine, ResolveModuleInput, xstate738.EventObject>;
456
+ id: string | undefined;
457
+ };
458
+ notifyBackend: {
459
+ src: "notifyBackend";
460
+ logic: xstate738.PromiseActorLogic<FinishStatus, {
461
+ getFinishStatus: GetFinishStatusFn;
462
+ workflowId: string | undefined;
463
+ }, xstate738.EventObject>;
433
464
  id: string | undefined;
434
465
  };
435
466
  }>, "src", TSrc>["logic"]>;
436
- <TLogic extends xstate878.AnyActorLogic>(src: TLogic, ...[options]: xstate878.ConditionalRequired<[options?: ({
467
+ <TLogic extends xstate738.AnyActorLogic>(src: TLogic, ...[options]: xstate738.ConditionalRequired<[options?: ({
437
468
  id?: never;
438
469
  systemId?: string;
439
- input?: xstate878.InputFrom<TLogic> | undefined;
470
+ input?: xstate738.InputFrom<TLogic> | undefined;
440
471
  syncSnapshot?: boolean;
441
- } & { [K in xstate878.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate878.IsNotNever<xstate878.RequiredLogicInput<TLogic>>>): xstate878.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: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
450
481
  error: unknown;
451
482
  } | {
452
483
  type: "COMPLETE_FLOW";
453
- }, Record<string, xstate878.AnyActorRef | undefined>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
459
492
  error: unknown;
460
493
  } | {
461
494
  type: "COMPLETE_FLOW";
462
- }, xstate878.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: xstate878.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: xstate878.StateMachine<WorkflowContext, {
498
534
  error: unknown;
499
535
  } | {
500
536
  type: "COMPLETE_FLOW";
537
+ } | {
538
+ type: "HOME_CONTINUE";
501
539
  };
502
- self: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
508
546
  error: unknown;
509
547
  } | {
510
548
  type: "COMPLETE_FLOW";
511
- }, Record<string, xstate878.AnyActorRef>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
517
557
  error: unknown;
518
558
  } | {
519
559
  type: "COMPLETE_FLOW";
520
- }, xstate878.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: xstate878.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: xstate878.StateMachine<WorkflowContext, {
561
615
  error: unknown;
562
616
  } | {
563
617
  type: "COMPLETE_FLOW";
618
+ } | {
619
+ type: "HOME_CONTINUE";
564
620
  };
565
- self: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
571
627
  error: unknown;
572
628
  } | {
573
629
  type: "COMPLETE_FLOW";
574
- }, Record<string, xstate878.AnyActorRef>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
580
638
  error: unknown;
581
639
  } | {
582
640
  type: "COMPLETE_FLOW";
583
- }, xstate878.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: xstate878.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: xstate878.StateMachine<WorkflowContext, {
636
697
  error: unknown;
637
698
  } | {
638
699
  type: "COMPLETE_FLOW";
700
+ } | {
701
+ type: "HOME_CONTINUE";
639
702
  };
640
- self: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
646
709
  error: unknown;
647
710
  } | {
648
711
  type: "COMPLETE_FLOW";
649
- }, Record<string, xstate878.AnyActorRef>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
655
720
  error: unknown;
656
721
  } | {
657
722
  type: "COMPLETE_FLOW";
658
- }, xstate878.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: xstate878.StateMachine<WorkflowContext, {
697
764
  error: unknown;
698
765
  } | {
699
766
  type: "COMPLETE_FLOW";
767
+ } | {
768
+ type: "HOME_CONTINUE";
700
769
  };
701
- self: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
707
776
  error: unknown;
708
777
  } | {
709
778
  type: "COMPLETE_FLOW";
710
- }, Record<string, xstate878.AnyActorRef>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
716
787
  error: unknown;
717
788
  } | {
718
789
  type: "COMPLETE_FLOW";
719
- }, xstate878.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: xstate878.StateMachine<WorkflowContext, {
765
838
  error: unknown;
766
839
  } | {
767
840
  type: "COMPLETE_FLOW";
841
+ } | {
842
+ type: "HOME_CONTINUE";
768
843
  };
769
- self: xstate878.ActorRef<xstate878.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: xstate878.StateMachine<WorkflowContext, {
775
850
  error: unknown;
776
851
  } | {
777
852
  type: "COMPLETE_FLOW";
778
- }, Record<string, xstate878.AnyActorRef>, xstate878.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: xstate878.StateMachine<WorkflowContext, {
784
861
  error: unknown;
785
862
  } | {
786
863
  type: "COMPLETE_FLOW";
787
- }, xstate878.AnyEventObject>;
864
+ } | {
865
+ type: "HOME_CONTINUE";
866
+ }, xstate738.AnyEventObject>;
788
867
  }) => {
789
868
  getFinishStatus: GetFinishStatusFn;
790
869
  workflowId: string | undefined;