@incodetech/core 0.0.0-dev-20260505-4b09daf → 0.0.0-dev-20260505-e06a25f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/flow.d.ts CHANGED
@@ -7,7 +7,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DFwAu
7
7
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-U6Ov6LFb.js";
8
8
  import { o as FlowEventSubscribable } from "./index-BIhqszMN.js";
9
9
  import { t as ModuleRegistry } from "./types-DxQ9z4r7.js";
10
- import * as xstate961 from "xstate";
10
+ import * as xstate487 from "xstate";
11
11
 
12
12
  //#region src/modules/flow/flowUtils.d.ts
13
13
  type NormalizeFlowModulesOptions = {
@@ -55,7 +55,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
55
55
  declare const getFlow: GetFlow;
56
56
  //#endregion
57
57
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
58
- declare const noOpFlowModuleMachine: xstate961.StateMachine<xstate961.MachineContext, xstate961.AnyEventObject, {}, never, never, never, never, "finished", string, xstate961.NonReducibleUnknown, xstate961.NonReducibleUnknown, xstate961.EventObject, xstate961.MetaObject, {
58
+ declare const noOpFlowModuleMachine: xstate487.StateMachine<xstate487.MachineContext, xstate487.AnyEventObject, {}, never, never, never, never, "finished", string, xstate487.NonReducibleUnknown, xstate487.NonReducibleUnknown, xstate487.EventObject, xstate487.MetaObject, {
59
59
  readonly id: "noOpFlowModule";
60
60
  readonly initial: "finished";
61
61
  readonly states: {
package/dist/flow.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import "./api-3IquGyW5.esm.js";
2
2
  import { o as createManagerInstrumentation } from "./events-237AXtL7.esm.js";
3
- import "./session-DEzJ3qMM.esm.js";
3
+ import "./session-DcLfiFln.esm.js";
4
4
  import "./IpifyProvider-CVIOst3c.esm.js";
5
5
  import "./browserSimulation-DMJIC-23.esm.js";
6
6
  import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-CSiDcEjt.esm.js";
7
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-DNEvPB4G.esm.js";
7
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Bh4UKZez.esm.js";
8
8
  import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-BiTJSa1K.esm.js";
9
9
  import { t as getFinishStatus } from "./flowCompletionService-DKHUsKiX.esm.js";
10
10
 
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-3IquGyW5.esm.js";
2
2
  import { v as endpoints } from "./events-237AXtL7.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./session-DEzJ3qMM.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-DcLfiFln.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
package/dist/home.d.ts CHANGED
@@ -2,7 +2,7 @@ import { t as Manager } from "./Manager-CcbnIt3T.js";
2
2
  import "./camera-CS1twtEg.js";
3
3
  import "./types-DdYIMV6w.js";
4
4
  import { t as EmptyConfig } from "./types-DFwAuzk2.js";
5
- import * as xstate213 from "xstate";
5
+ import * as xstate1246 from "xstate";
6
6
 
7
7
  //#region src/modules/home/types.d.ts
8
8
  type HomeConfig = EmptyConfig;
@@ -34,41 +34,41 @@ type HomeContext = {
34
34
  type HomeInput = {
35
35
  config: EmptyConfig;
36
36
  };
37
- declare const homeMachine: xstate213.StateMachine<HomeContext, {
37
+ declare const homeMachine: xstate1246.StateMachine<HomeContext, {
38
38
  type: "LOAD";
39
39
  } | {
40
40
  type: "COMPLETE";
41
41
  } | {
42
42
  type: "RESET";
43
- }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate213.NonReducibleUnknown, xstate213.EventObject, xstate213.MetaObject, {
43
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate1246.NonReducibleUnknown, xstate1246.EventObject, xstate1246.MetaObject, {
44
44
  readonly id: "home";
45
45
  readonly initial: "idle";
46
46
  readonly context: ({
47
47
  input
48
48
  }: {
49
49
  spawn: {
50
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate213.ActorRefFromLogic<never>;
51
- <TLogic extends xstate213.AnyActorLogic>(src: TLogic, ...[options]: xstate213.ConditionalRequired<[options?: ({
50
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate1246.ActorRefFromLogic<never>;
51
+ <TLogic extends xstate1246.AnyActorLogic>(src: TLogic, ...[options]: xstate1246.ConditionalRequired<[options?: ({
52
52
  id?: never;
53
53
  systemId?: string;
54
- input?: xstate213.InputFrom<TLogic> | undefined;
54
+ input?: xstate1246.InputFrom<TLogic> | undefined;
55
55
  syncSnapshot?: boolean;
56
- } & { [K in xstate213.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate213.IsNotNever<xstate213.RequiredLogicInput<TLogic>>>): xstate213.ActorRefFromLogic<TLogic>;
56
+ } & { [K in xstate1246.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1246.IsNotNever<xstate1246.RequiredLogicInput<TLogic>>>): xstate1246.ActorRefFromLogic<TLogic>;
57
57
  };
58
58
  input: HomeInput;
59
- self: xstate213.ActorRef<xstate213.MachineSnapshot<HomeContext, {
59
+ self: xstate1246.ActorRef<xstate1246.MachineSnapshot<HomeContext, {
60
60
  type: "LOAD";
61
61
  } | {
62
62
  type: "COMPLETE";
63
63
  } | {
64
64
  type: "RESET";
65
- }, Record<string, xstate213.AnyActorRef | undefined>, xstate213.StateValue, string, unknown, any, any>, {
65
+ }, Record<string, xstate1246.AnyActorRef | undefined>, xstate1246.StateValue, string, unknown, any, any>, {
66
66
  type: "LOAD";
67
67
  } | {
68
68
  type: "COMPLETE";
69
69
  } | {
70
70
  type: "RESET";
71
- }, xstate213.AnyEventObject>;
71
+ }, xstate1246.AnyEventObject>;
72
72
  }) => {
73
73
  config: EmptyConfig;
74
74
  };
package/dist/id-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CcbnIt3T.js";
2
2
  import "./Actor-CazhiaK7.js";
3
- import * as xstate0 from "xstate";
3
+ import * as xstate862 from "xstate";
4
4
 
5
5
  //#region src/modules/id-ocr/types.d.ts
6
6
  type IdOcrConfig = {
@@ -177,7 +177,7 @@ type IdOcrContext = {
177
177
  type IdOcrInput = {
178
178
  config: IdOcrConfig;
179
179
  };
180
- declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
180
+ declare const idOcrStateMachine: xstate862.StateMachine<IdOcrContext, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "DATA_CHANGED";
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
191
191
  } | {
192
192
  type: "RETRY";
193
193
  }, {
194
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<OcrData, {
194
+ [x: string]: xstate862.ActorRefFromLogic<xstate862.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate862.EventObject>> | xstate862.ActorRefFromLogic<xstate862.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate0.EventObject>> | undefined;
200
- }, xstate0.Values<{
199
+ }, xstate862.EventObject>> | undefined;
200
+ }, xstate862.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate0.PromiseActorLogic<OcrData, {
203
+ logic: xstate862.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate0.EventObject>;
205
+ }, xstate862.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate862.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate0.EventObject>;
213
+ }, xstate862.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate0.Values<{
216
+ }>, xstate862.Values<{
217
+ setError: {
218
+ type: "setError";
219
+ params: xstate862.NonReducibleUnknown;
220
+ };
217
221
  setInitialData: {
218
222
  type: "setInitialData";
219
- params: xstate0.NonReducibleUnknown;
223
+ params: xstate862.NonReducibleUnknown;
220
224
  };
221
225
  updateField: {
222
226
  type: "updateField";
223
- params: xstate0.NonReducibleUnknown;
227
+ params: xstate862.NonReducibleUnknown;
224
228
  };
225
229
  clearFieldValidationError: {
226
230
  type: "clearFieldValidationError";
227
- params: xstate0.NonReducibleUnknown;
231
+ params: xstate862.NonReducibleUnknown;
228
232
  };
229
233
  setOcrValidationErrors: {
230
234
  type: "setOcrValidationErrors";
231
- params: xstate0.NonReducibleUnknown;
235
+ params: xstate862.NonReducibleUnknown;
232
236
  };
233
237
  validateFormField: {
234
238
  type: "validateFormField";
235
- params: xstate0.NonReducibleUnknown;
236
- };
237
- setError: {
238
- type: "setError";
239
- params: xstate0.NonReducibleUnknown;
239
+ params: xstate862.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate0.NonReducibleUnknown;
243
+ params: xstate862.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate0.NonReducibleUnknown;
247
+ params: xstate862.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate0.NonReducibleUnknown;
251
+ params: xstate862.NonReducibleUnknown;
252
252
  };
253
- }>, xstate0.Values<{
253
+ }>, xstate862.Values<{
254
254
  isOcrEditable: {
255
255
  type: "isOcrEditable";
256
256
  params: unknown;
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
271
271
  type: "shouldProceedWithoutSubmitToSecondId";
272
272
  params: unknown;
273
273
  };
274
- }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "readonly" | "validatingContinue" | "submitting", string, IdOcrInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "readonly" | "validatingContinue" | "submitting", string, IdOcrInput, xstate862.NonReducibleUnknown, xstate862.EventObject, xstate862.MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
280
280
  spawn: {
281
281
  <TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
282
282
  src: "getOcrData";
283
- logic: xstate0.PromiseActorLogic<OcrData, {
283
+ logic: xstate862.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate0.EventObject>;
285
+ }, xstate862.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate0.PromiseActorLogic<OcrData, {
289
+ logic: xstate862.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate0.EventObject>;
291
+ }, xstate862.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate0.ConditionalRequired<[options?: ({
295
+ } ? xstate862.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate0.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate862.InputFrom<T["logic"]> | undefined;
299
299
  syncSnapshot?: boolean;
300
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
300
+ } & { [K in xstate862.RequiredActorOptions<T>]: unknown }) | undefined], xstate862.IsNotNever<xstate862.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate862.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate0.EventObject>;
305
+ }, xstate862.EventObject>;
306
306
  id: string | undefined;
307
307
  } extends infer T_1 ? T_1 extends {
308
308
  src: "updateOcrData";
309
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
309
+ logic: xstate862.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate0.EventObject>;
312
+ }, xstate862.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate0.ConditionalRequired<[options?: ({
316
+ } ? xstate862.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate862.InputFrom<T_1["logic"]> | undefined;
320
320
  syncSnapshot?: boolean;
321
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
321
+ } & { [K_1 in xstate862.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate862.IsNotNever<xstate862.RequiredActorOptions<T_1>>> : never : never : never)): xstate862.ActorRefFromLogic<xstate862.GetConcreteByKey<xstate862.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate0.PromiseActorLogic<OcrData, {
324
+ logic: xstate862.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate0.EventObject>;
326
+ }, xstate862.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate862.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate0.EventObject>;
334
+ }, xstate862.EventObject>;
335
335
  id: string | undefined;
336
336
  };
337
337
  }>, "src", TSrc>["logic"]>;
338
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
338
+ <TLogic extends xstate862.AnyActorLogic>(src: TLogic, ...[options]: xstate862.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate0.InputFrom<TLogic> | undefined;
341
+ input?: xstate862.InputFrom<TLogic> | undefined;
342
342
  syncSnapshot?: boolean;
343
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
343
+ } & { [K in xstate862.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate862.IsNotNever<xstate862.RequiredLogicInput<TLogic>>>): xstate862.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
346
+ self: xstate862.ActorRef<xstate862.MachineSnapshot<IdOcrContext, {
347
347
  type: "LOAD";
348
348
  } | {
349
349
  type: "DATA_CHANGED";
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
356
356
  type: "CONTINUE";
357
357
  } | {
358
358
  type: "RETRY";
359
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
359
+ }, Record<string, xstate862.AnyActorRef | undefined>, xstate862.StateValue, string, unknown, any, any>, {
360
360
  type: "LOAD";
361
361
  } | {
362
362
  type: "DATA_CHANGED";
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
369
369
  type: "CONTINUE";
370
370
  } | {
371
371
  type: "RETRY";
372
- }, xstate0.AnyEventObject>;
372
+ }, xstate862.AnyEventObject>;
373
373
  }) => {
374
374
  config: IdOcrConfig;
375
375
  formData: UpdateOcrDataParams;
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
405
405
  } | {
406
406
  type: "RETRY";
407
407
  };
408
- self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
408
+ self: xstate862.ActorRef<xstate862.MachineSnapshot<IdOcrContext, {
409
409
  type: "LOAD";
410
410
  } | {
411
411
  type: "DATA_CHANGED";
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
418
418
  type: "CONTINUE";
419
419
  } | {
420
420
  type: "RETRY";
421
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
421
+ }, Record<string, xstate862.AnyActorRef>, xstate862.StateValue, string, unknown, any, any>, {
422
422
  type: "LOAD";
423
423
  } | {
424
424
  type: "DATA_CHANGED";
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
431
431
  type: "CONTINUE";
432
432
  } | {
433
433
  type: "RETRY";
434
- }, xstate0.AnyEventObject>;
434
+ }, xstate862.AnyEventObject>;
435
435
  }) => {
436
436
  isSecondId: boolean;
437
437
  };
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
510
510
  } | {
511
511
  type: "RETRY";
512
512
  };
513
- self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
513
+ self: xstate862.ActorRef<xstate862.MachineSnapshot<IdOcrContext, {
514
514
  type: "LOAD";
515
515
  } | {
516
516
  type: "DATA_CHANGED";
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
523
523
  type: "CONTINUE";
524
524
  } | {
525
525
  type: "RETRY";
526
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
526
+ }, Record<string, xstate862.AnyActorRef>, xstate862.StateValue, string, unknown, any, any>, {
527
527
  type: "LOAD";
528
528
  } | {
529
529
  type: "DATA_CHANGED";
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate0.StateMachine<IdOcrContext, {
536
536
  type: "CONTINUE";
537
537
  } | {
538
538
  type: "RETRY";
539
- }, xstate0.AnyEventObject>;
539
+ }, xstate862.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
package/dist/id.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./BaseWasmProvider-BTKqWpeB.esm.js";
2
2
  import "./api-3IquGyW5.esm.js";
3
3
  import "./events-237AXtL7.esm.js";
4
- import "./session-DEzJ3qMM.esm.js";
4
+ import "./session-DcLfiFln.esm.js";
5
5
  import "./IpifyProvider-CVIOst3c.esm.js";
6
6
  import "./browserSimulation-DMJIC-23.esm.js";
7
7
  import "./xstate.esm-CSiDcEjt.esm.js";
@@ -18,7 +18,7 @@ import "./ITimerCapability-r7XXQS6a.esm.js";
18
18
  import "./backCameraStream-BIzYKDy2.esm.js";
19
19
  import "./getDeviceClass-AjL3Pr7R.esm.js";
20
20
  import "./BrowserTimerProvider-Bc6BRm6-.esm.js";
21
- import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-__Cc1trJ.esm.js";
22
- import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-Df8xxjBX.esm.js";
21
+ import { a as startRecordingSession, c as uploadIdImage, d as ID_ERROR_CODES, f as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as processId, l as uploadManualIdFile, m as MANUAL_UPLOAD_MAX_RETRIES, n as initializeIdCapture, o as stopRecording, p as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as preloadIdRecordingProvider, s as stopStream, t as idCaptureMachine, u as validateUploadResponse } from "./idCaptureStateMachine-B-KOFEK9.esm.js";
22
+ import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-D8nzFJJv.esm.js";
23
23
 
24
24
  export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-237AXtL7.esm.js";
2
2
  import { a as createActor, o as createManager } from "./xstate.esm-CSiDcEjt.esm.js";
3
3
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DeByegPK.esm.js";
4
- import { t as idCaptureMachine } from "./idCaptureStateMachine-__Cc1trJ.esm.js";
4
+ import { t as idCaptureMachine } from "./idCaptureStateMachine-B-KOFEK9.esm.js";
5
5
 
6
6
  //#region src/modules/id/idCaptureActor.ts
7
7
  function createIdCaptureActor(options) {
@@ -1,7 +1,7 @@
1
1
  import { a as IdCaptureModelType, i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-BTKqWpeB.esm.js";
2
2
  import { r as getToken, t as api } from "./api-3IquGyW5.esm.js";
3
3
  import { b as revokeObjectURL, v as endpoints } from "./events-237AXtL7.esm.js";
4
- import { t as getDisableIpify } from "./session-DEzJ3qMM.esm.js";
4
+ import { t as getDisableIpify } from "./session-DcLfiFln.esm.js";
5
5
  import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-CSiDcEjt.esm.js";
6
6
  import { _ as StreamCanvasCapture, d as createRecordingSession, f as startRecording, g as flagIdManualReview, m as StreamCanvasProcessingSession, n as preloadOpenViduProvider, p as stopRecording$1 } from "./recordingService-Cen0Qmop.esm.js";
7
7
  import { n as IncodeCanvas } from "./deepsightService-CU4xtxzz.esm.js";
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CcbnIt3T.js";
2
2
  import { t as ActorRefFrom } from "./Actor-CazhiaK7.js";
3
- import * as xstate72 from "xstate";
3
+ import * as xstate789 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: xstate72.StateMachine<IdentityReuseContext, {
35
+ declare const identityReuseMachine: xstate789.StateMachine<IdentityReuseContext, {
36
36
  type: "LOAD";
37
37
  } | {
38
38
  type: "START_SELECTION";
@@ -48,49 +48,49 @@ declare const identityReuseMachine: xstate72.StateMachine<IdentityReuseContext,
48
48
  } | {
49
49
  type: "RETRY";
50
50
  }, {
51
- [x: string]: xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<FetchCandidatesResponse, void, xstate72.EventObject>> | xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>> | undefined;
52
- }, xstate72.Values<{
51
+ [x: string]: xstate789.ActorRefFromLogic<xstate789.PromiseActorLogic<FetchCandidatesResponse, void, xstate789.EventObject>> | xstate789.ActorRefFromLogic<xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>> | undefined;
52
+ }, xstate789.Values<{
53
53
  fetchCandidates: {
54
54
  src: "fetchCandidates";
55
- logic: xstate72.PromiseActorLogic<FetchCandidatesResponse, void, xstate72.EventObject>;
55
+ logic: xstate789.PromiseActorLogic<FetchCandidatesResponse, void, xstate789.EventObject>;
56
56
  id: string | undefined;
57
57
  };
58
58
  submitContinue: {
59
59
  src: "submitContinue";
60
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
60
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
61
61
  id: string | undefined;
62
62
  };
63
63
  submitSkip: {
64
64
  src: "submitSkip";
65
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
65
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate72.Values<{
68
+ }>, xstate789.Values<{
69
69
  setError: {
70
70
  type: "setError";
71
- params: xstate72.NonReducibleUnknown;
71
+ params: xstate789.NonReducibleUnknown;
72
+ };
73
+ clearError: {
74
+ type: "clearError";
75
+ params: xstate789.NonReducibleUnknown;
72
76
  };
73
77
  setCandidates: {
74
78
  type: "setCandidates";
75
- params: xstate72.NonReducibleUnknown;
79
+ params: xstate789.NonReducibleUnknown;
76
80
  };
77
81
  setSelectedCandidate: {
78
82
  type: "setSelectedCandidate";
79
- params: xstate72.NonReducibleUnknown;
83
+ params: xstate789.NonReducibleUnknown;
80
84
  };
81
85
  autoSelectSingleCandidate: {
82
86
  type: "autoSelectSingleCandidate";
83
- params: xstate72.NonReducibleUnknown;
87
+ params: xstate789.NonReducibleUnknown;
84
88
  };
85
89
  clearSelection: {
86
90
  type: "clearSelection";
87
- params: xstate72.NonReducibleUnknown;
88
- };
89
- clearError: {
90
- type: "clearError";
91
- params: xstate72.NonReducibleUnknown;
91
+ params: xstate789.NonReducibleUnknown;
92
92
  };
93
- }>, xstate72.Values<{
93
+ }>, xstate789.Values<{
94
94
  hasMultipleCandidates: {
95
95
  type: "hasMultipleCandidates";
96
96
  params: unknown;
@@ -105,7 +105,7 @@ declare const identityReuseMachine: xstate72.StateMachine<IdentityReuseContext,
105
105
  };
106
106
  }>, never, "error" | "idle" | "finished" | "loading" | "submitContinue" | "submitSkip" | "oneCandidateFound" | "noCandidatesFound" | {
107
107
  multiCandidatesFound: "noCandidateSelected" | "choosingCandidate" | "candidateSelected";
108
- }, string, IdentityReuseInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
108
+ }, string, IdentityReuseInput, xstate789.NonReducibleUnknown, xstate789.EventObject, xstate789.MetaObject, {
109
109
  readonly id: "identityReuse";
110
110
  readonly initial: "idle";
111
111
  readonly context: ({
@@ -114,75 +114,75 @@ declare const identityReuseMachine: xstate72.StateMachine<IdentityReuseContext,
114
114
  spawn: {
115
115
  <TSrc extends "fetchCandidates" | "submitContinue" | "submitSkip">(logic: TSrc, ...[options]: ({
116
116
  src: "fetchCandidates";
117
- logic: xstate72.PromiseActorLogic<FetchCandidatesResponse, void, xstate72.EventObject>;
117
+ logic: xstate789.PromiseActorLogic<FetchCandidatesResponse, void, xstate789.EventObject>;
118
118
  id: string | undefined;
119
119
  } extends infer T ? T extends {
120
120
  src: "fetchCandidates";
121
- logic: xstate72.PromiseActorLogic<FetchCandidatesResponse, void, xstate72.EventObject>;
121
+ logic: xstate789.PromiseActorLogic<FetchCandidatesResponse, void, xstate789.EventObject>;
122
122
  id: string | undefined;
123
123
  } ? T extends {
124
124
  src: TSrc;
125
- } ? xstate72.ConditionalRequired<[options?: ({
125
+ } ? xstate789.ConditionalRequired<[options?: ({
126
126
  id?: T["id"] | undefined;
127
127
  systemId?: string;
128
- input?: xstate72.InputFrom<T["logic"]> | undefined;
128
+ input?: xstate789.InputFrom<T["logic"]> | undefined;
129
129
  syncSnapshot?: boolean;
130
- } & { [K in xstate72.RequiredActorOptions<T>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T>>> : never : never : never) | ({
130
+ } & { [K in xstate789.RequiredActorOptions<T>]: unknown }) | undefined], xstate789.IsNotNever<xstate789.RequiredActorOptions<T>>> : never : never : never) | ({
131
131
  src: "submitContinue";
132
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
132
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
133
133
  id: string | undefined;
134
134
  } extends infer T_1 ? T_1 extends {
135
135
  src: "submitContinue";
136
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
136
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
137
137
  id: string | undefined;
138
138
  } ? T_1 extends {
139
139
  src: TSrc;
140
- } ? xstate72.ConditionalRequired<[options?: ({
140
+ } ? xstate789.ConditionalRequired<[options?: ({
141
141
  id?: T_1["id"] | undefined;
142
142
  systemId?: string;
143
- input?: xstate72.InputFrom<T_1["logic"]> | undefined;
143
+ input?: xstate789.InputFrom<T_1["logic"]> | undefined;
144
144
  syncSnapshot?: boolean;
145
- } & { [K_1 in xstate72.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_1>>> : never : never : never) | ({
145
+ } & { [K_1 in xstate789.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate789.IsNotNever<xstate789.RequiredActorOptions<T_1>>> : never : never : never) | ({
146
146
  src: "submitSkip";
147
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
147
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
148
148
  id: string | undefined;
149
149
  } extends infer T_2 ? T_2 extends {
150
150
  src: "submitSkip";
151
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
151
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
152
152
  id: string | undefined;
153
153
  } ? T_2 extends {
154
154
  src: TSrc;
155
- } ? xstate72.ConditionalRequired<[options?: ({
155
+ } ? xstate789.ConditionalRequired<[options?: ({
156
156
  id?: T_2["id"] | undefined;
157
157
  systemId?: string;
158
- input?: xstate72.InputFrom<T_2["logic"]> | undefined;
158
+ input?: xstate789.InputFrom<T_2["logic"]> | undefined;
159
159
  syncSnapshot?: boolean;
160
- } & { [K_2 in xstate72.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_2>>> : never : never : never)): xstate72.ActorRefFromLogic<xstate72.GetConcreteByKey<xstate72.Values<{
160
+ } & { [K_2 in xstate789.RequiredActorOptions<T_2>]: unknown }) | undefined], xstate789.IsNotNever<xstate789.RequiredActorOptions<T_2>>> : never : never : never)): xstate789.ActorRefFromLogic<xstate789.GetConcreteByKey<xstate789.Values<{
161
161
  fetchCandidates: {
162
162
  src: "fetchCandidates";
163
- logic: xstate72.PromiseActorLogic<FetchCandidatesResponse, void, xstate72.EventObject>;
163
+ logic: xstate789.PromiseActorLogic<FetchCandidatesResponse, void, xstate789.EventObject>;
164
164
  id: string | undefined;
165
165
  };
166
166
  submitContinue: {
167
167
  src: "submitContinue";
168
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
168
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
169
169
  id: string | undefined;
170
170
  };
171
171
  submitSkip: {
172
172
  src: "submitSkip";
173
- logic: xstate72.PromiseActorLogic<SubmitResponse, void, xstate72.EventObject>;
173
+ logic: xstate789.PromiseActorLogic<SubmitResponse, void, xstate789.EventObject>;
174
174
  id: string | undefined;
175
175
  };
176
176
  }>, "src", TSrc>["logic"]>;
177
- <TLogic extends xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
177
+ <TLogic extends xstate789.AnyActorLogic>(src: TLogic, ...[options]: xstate789.ConditionalRequired<[options?: ({
178
178
  id?: never;
179
179
  systemId?: string;
180
- input?: xstate72.InputFrom<TLogic> | undefined;
180
+ input?: xstate789.InputFrom<TLogic> | undefined;
181
181
  syncSnapshot?: boolean;
182
- } & { [K in xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
182
+ } & { [K in xstate789.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate789.IsNotNever<xstate789.RequiredLogicInput<TLogic>>>): xstate789.ActorRefFromLogic<TLogic>;
183
183
  };
184
184
  input: IdentityReuseInput;
185
- self: xstate72.ActorRef<xstate72.MachineSnapshot<IdentityReuseContext, {
185
+ self: xstate789.ActorRef<xstate789.MachineSnapshot<IdentityReuseContext, {
186
186
  type: "LOAD";
187
187
  } | {
188
188
  type: "START_SELECTION";
@@ -197,7 +197,7 @@ declare const identityReuseMachine: xstate72.StateMachine<IdentityReuseContext,
197
197
  type: "SKIP";
198
198
  } | {
199
199
  type: "RETRY";
200
- }, Record<string, xstate72.AnyActorRef | undefined>, xstate72.StateValue, string, unknown, any, any>, {
200
+ }, Record<string, xstate789.AnyActorRef | undefined>, xstate789.StateValue, string, unknown, any, any>, {
201
201
  type: "LOAD";
202
202
  } | {
203
203
  type: "START_SELECTION";
@@ -212,7 +212,7 @@ declare const identityReuseMachine: xstate72.StateMachine<IdentityReuseContext,
212
212
  type: "SKIP";
213
213
  } | {
214
214
  type: "RETRY";
215
- }, xstate72.AnyEventObject>;
215
+ }, xstate789.AnyEventObject>;
216
216
  }) => {
217
217
  config: IdentityReuseConfig;
218
218
  currentOrganizationName: undefined;