@incodetech/core 0.0.0-dev-20260701-b6fc71dc → 0.0.0-dev-20260702-cc2ced08

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/certificate-issuance.d.ts +28 -28
  3. package/dist/consent.d.ts +1 -1
  4. package/dist/{consentManager-DTzlkzyY.d.ts → consentManager-BvDJp7BI.d.ts} +47 -47
  5. package/dist/cpf-ocr.d.ts +1 -1
  6. package/dist/{cpfOcrManager-DvYfmJuu.d.ts → cpfOcrManager-CLrn17Kf.d.ts} +17 -17
  7. package/dist/document-capture.d.ts +224 -224
  8. package/dist/document-upload.d.ts +49 -49
  9. package/dist/ekyb.esm.js +3 -3
  10. package/dist/{ekybStateMachine-CTf3nb0j.esm.js → ekybStateMachine-BzMz39iQ.esm.js} +1 -1
  11. package/dist/electronic-signature.d.ts +1 -1
  12. package/dist/extensibility.d.ts +4 -4
  13. package/dist/extensibility.esm.js +3 -3
  14. package/dist/flow.d.ts +2 -2
  15. package/dist/flow.esm.js +2 -2
  16. package/dist/{flowServices-B0ai-ANo.esm.js → flowServices-DsAOXwDS.esm.js} +1 -1
  17. package/dist/home.d.ts +10 -10
  18. package/dist/id-ocr.d.ts +55 -55
  19. package/dist/id-verification.d.ts +25 -25
  20. package/dist/id.esm.js +3 -3
  21. package/dist/{idCaptureManager-FXTdeOsf.esm.js → idCaptureManager-TBCF4TGa.esm.js} +4 -3
  22. package/dist/{idCaptureStateMachine-BlLvve6M.esm.js → idCaptureStateMachine-K6LgInsG.esm.js} +31 -2
  23. package/dist/identity-reuse.d.ts +1 -1
  24. package/dist/{identityReuseManager-BOnaxwJI.d.ts → identityReuseManager-DHveeduR.d.ts} +34 -34
  25. package/dist/{index-E3D7OvnG.d.ts → index-BR5R9zI_.d.ts} +168 -168
  26. package/dist/index.esm.js +2 -2
  27. package/dist/mandatory-consent.d.ts +1 -1
  28. package/dist/{mandatoryConsentManager-CyoaXoEe.d.ts → mandatoryConsentManager-BMFzCwXR.d.ts} +50 -50
  29. package/dist/qe-signature.d.ts +1 -1
  30. package/dist/session.esm.js +1 -1
  31. package/dist/{sessionInitializer-Dfc__RkA.esm.js → sessionInitializer-C0YhqeiX.esm.js} +1 -1
  32. package/dist/{setup-f4ttZO62.esm.js → setup-3W6rhIxJ.esm.js} +1 -1
  33. package/dist/trust-graph.d.ts +2 -2
  34. package/dist/video-selfie.d.ts +2 -2
  35. package/dist/video-selfie.esm.js +2 -2
  36. package/dist/wasm.esm.js +2 -2
  37. package/dist/workflow.d.ts +156 -156
  38. package/dist/workflow.esm.js +4 -4
  39. package/package.json +1 -1
package/dist/id-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BUc6OqO5.js";
2
2
  import "./Actor-Du_LU0S4.js";
3
- import * as xstate0 from "xstate";
3
+ import * as xstate1443 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: xstate1443.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]: xstate1443.ActorRefFromLogic<xstate1443.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate1443.EventObject>> | xstate1443.ActorRefFromLogic<xstate1443.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate0.EventObject>> | undefined;
200
- }, xstate0.Values<{
199
+ }, xstate1443.EventObject>> | undefined;
200
+ }, xstate1443.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate0.PromiseActorLogic<OcrData, {
203
+ logic: xstate1443.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate0.EventObject>;
205
+ }, xstate1443.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate1443.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate0.EventObject>;
213
+ }, xstate1443.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate0.Values<{
216
+ }>, xstate1443.Values<{
217
+ setError: {
218
+ type: "setError";
219
+ params: xstate1443.NonReducibleUnknown;
220
+ };
217
221
  setInitialData: {
218
222
  type: "setInitialData";
219
- params: xstate0.NonReducibleUnknown;
223
+ params: xstate1443.NonReducibleUnknown;
220
224
  };
221
225
  updateField: {
222
226
  type: "updateField";
223
- params: xstate0.NonReducibleUnknown;
227
+ params: xstate1443.NonReducibleUnknown;
224
228
  };
225
229
  clearFieldValidationError: {
226
230
  type: "clearFieldValidationError";
227
- params: xstate0.NonReducibleUnknown;
231
+ params: xstate1443.NonReducibleUnknown;
228
232
  };
229
233
  setOcrValidationErrors: {
230
234
  type: "setOcrValidationErrors";
231
- params: xstate0.NonReducibleUnknown;
235
+ params: xstate1443.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: xstate1443.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate0.NonReducibleUnknown;
243
+ params: xstate1443.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate0.NonReducibleUnknown;
247
+ params: xstate1443.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate0.NonReducibleUnknown;
251
+ params: xstate1443.NonReducibleUnknown;
252
252
  };
253
- }>, xstate0.Values<{
253
+ }>, xstate1443.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" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate1443.NonReducibleUnknown, xstate1443.EventObject, xstate1443.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: xstate1443.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate0.EventObject>;
285
+ }, xstate1443.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate0.PromiseActorLogic<OcrData, {
289
+ logic: xstate1443.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate0.EventObject>;
291
+ }, xstate1443.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate0.ConditionalRequired<[options?: ({
295
+ } ? xstate1443.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate0.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate1443.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 xstate1443.RequiredActorOptions<T>]: unknown }) | undefined], xstate1443.IsNotNever<xstate1443.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate1443.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate0.EventObject>;
305
+ }, xstate1443.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: xstate1443.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate0.EventObject>;
312
+ }, xstate1443.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate0.ConditionalRequired<[options?: ({
316
+ } ? xstate1443.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate1443.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 xstate1443.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1443.IsNotNever<xstate1443.RequiredActorOptions<T_1>>> : never : never : never)): xstate1443.ActorRefFromLogic<xstate1443.GetConcreteByKey<xstate1443.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate0.PromiseActorLogic<OcrData, {
324
+ logic: xstate1443.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate0.EventObject>;
326
+ }, xstate1443.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate0.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate1443.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate0.EventObject>;
334
+ }, xstate1443.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 xstate1443.AnyActorLogic>(src: TLogic, ...[options]: xstate1443.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate0.InputFrom<TLogic> | undefined;
341
+ input?: xstate1443.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 xstate1443.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1443.IsNotNever<xstate1443.RequiredLogicInput<TLogic>>>): xstate1443.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate0.ActorRef<xstate0.MachineSnapshot<IdOcrContext, {
346
+ self: xstate1443.ActorRef<xstate1443.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, xstate1443.AnyActorRef | undefined>, xstate1443.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
+ }, xstate1443.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: xstate1443.ActorRef<xstate1443.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, xstate1443.AnyActorRef>, xstate1443.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
+ }, xstate1443.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: xstate1443.ActorRef<xstate1443.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, xstate1443.AnyActorRef>, xstate1443.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
+ }, xstate1443.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-BUc6OqO5.js";
2
2
  import "./Actor-Du_LU0S4.js";
3
- import * as xstate697 from "xstate";
3
+ import * as xstate1404 from "xstate";
4
4
 
5
5
  //#region src/modules/id-verification/types.d.ts
6
6
  type IdVerificationConfig = {
@@ -32,26 +32,26 @@ type IdVerificationContext = {
32
32
  type IdVerificationInput = {
33
33
  config: IdVerificationConfig;
34
34
  };
35
- declare const idVerificationMachine: xstate697.StateMachine<IdVerificationContext, {
35
+ declare const idVerificationMachine: xstate1404.StateMachine<IdVerificationContext, {
36
36
  type: "LOAD";
37
37
  } | {
38
38
  type: "CONTINUE";
39
39
  }, {
40
- [x: string]: xstate697.ActorRefFromLogic<xstate697.PromiseActorLogic<ProcessIdResponse, {
40
+ [x: string]: xstate1404.ActorRefFromLogic<xstate1404.PromiseActorLogic<ProcessIdResponse, {
41
41
  isSecondId: boolean;
42
42
  queueName: string;
43
- }, xstate697.EventObject>> | undefined;
43
+ }, xstate1404.EventObject>> | undefined;
44
44
  }, {
45
45
  src: "processId";
46
- logic: xstate697.PromiseActorLogic<ProcessIdResponse, {
46
+ logic: xstate1404.PromiseActorLogic<ProcessIdResponse, {
47
47
  isSecondId: boolean;
48
48
  queueName: string;
49
- }, xstate697.EventObject>;
49
+ }, xstate1404.EventObject>;
50
50
  id: string | undefined;
51
51
  }, never, {
52
52
  type: "isDocumentExpired";
53
53
  params: unknown;
54
- }, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, xstate697.NonReducibleUnknown, xstate697.EventObject, xstate697.MetaObject, {
54
+ }, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, xstate1404.NonReducibleUnknown, xstate1404.EventObject, xstate1404.MetaObject, {
55
55
  readonly id: "idVerification";
56
56
  readonly initial: "idle";
57
57
  readonly context: ({
@@ -60,50 +60,50 @@ declare const idVerificationMachine: xstate697.StateMachine<IdVerificationContex
60
60
  spawn: {
61
61
  <TSrc extends "processId">(logic: TSrc, ...[options]: {
62
62
  src: "processId";
63
- logic: xstate697.PromiseActorLogic<ProcessIdResponse, {
63
+ logic: xstate1404.PromiseActorLogic<ProcessIdResponse, {
64
64
  isSecondId: boolean;
65
65
  queueName: string;
66
- }, xstate697.EventObject>;
66
+ }, xstate1404.EventObject>;
67
67
  id: string | undefined;
68
68
  } extends infer T ? T extends {
69
69
  src: "processId";
70
- logic: xstate697.PromiseActorLogic<ProcessIdResponse, {
70
+ logic: xstate1404.PromiseActorLogic<ProcessIdResponse, {
71
71
  isSecondId: boolean;
72
72
  queueName: string;
73
- }, xstate697.EventObject>;
73
+ }, xstate1404.EventObject>;
74
74
  id: string | undefined;
75
75
  } ? T extends {
76
76
  src: TSrc;
77
- } ? xstate697.ConditionalRequired<[options?: ({
77
+ } ? xstate1404.ConditionalRequired<[options?: ({
78
78
  id?: T["id"] | undefined;
79
79
  systemId?: string;
80
- input?: xstate697.InputFrom<T["logic"]> | undefined;
80
+ input?: xstate1404.InputFrom<T["logic"]> | undefined;
81
81
  syncSnapshot?: boolean;
82
- } & { [K in xstate697.RequiredActorOptions<T>]: unknown }) | undefined], xstate697.IsNotNever<xstate697.RequiredActorOptions<T>>> : never : never : never): xstate697.ActorRefFromLogic<xstate697.GetConcreteByKey<{
82
+ } & { [K in xstate1404.RequiredActorOptions<T>]: unknown }) | undefined], xstate1404.IsNotNever<xstate1404.RequiredActorOptions<T>>> : never : never : never): xstate1404.ActorRefFromLogic<xstate1404.GetConcreteByKey<{
83
83
  src: "processId";
84
- logic: xstate697.PromiseActorLogic<ProcessIdResponse, {
84
+ logic: xstate1404.PromiseActorLogic<ProcessIdResponse, {
85
85
  isSecondId: boolean;
86
86
  queueName: string;
87
- }, xstate697.EventObject>;
87
+ }, xstate1404.EventObject>;
88
88
  id: string | undefined;
89
89
  }, "src", TSrc>["logic"]>;
90
- <TLogic extends xstate697.AnyActorLogic>(src: TLogic, ...[options]: xstate697.ConditionalRequired<[options?: ({
90
+ <TLogic extends xstate1404.AnyActorLogic>(src: TLogic, ...[options]: xstate1404.ConditionalRequired<[options?: ({
91
91
  id?: never;
92
92
  systemId?: string;
93
- input?: xstate697.InputFrom<TLogic> | undefined;
93
+ input?: xstate1404.InputFrom<TLogic> | undefined;
94
94
  syncSnapshot?: boolean;
95
- } & { [K in xstate697.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate697.IsNotNever<xstate697.RequiredLogicInput<TLogic>>>): xstate697.ActorRefFromLogic<TLogic>;
95
+ } & { [K in xstate1404.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1404.IsNotNever<xstate1404.RequiredLogicInput<TLogic>>>): xstate1404.ActorRefFromLogic<TLogic>;
96
96
  };
97
97
  input: IdVerificationInput;
98
- self: xstate697.ActorRef<xstate697.MachineSnapshot<IdVerificationContext, {
98
+ self: xstate1404.ActorRef<xstate1404.MachineSnapshot<IdVerificationContext, {
99
99
  type: "LOAD";
100
100
  } | {
101
101
  type: "CONTINUE";
102
- }, Record<string, xstate697.AnyActorRef | undefined>, xstate697.StateValue, string, unknown, any, any>, {
102
+ }, Record<string, xstate1404.AnyActorRef | undefined>, xstate1404.StateValue, string, unknown, any, any>, {
103
103
  type: "LOAD";
104
104
  } | {
105
105
  type: "CONTINUE";
106
- }, xstate697.AnyEventObject>;
106
+ }, xstate1404.AnyEventObject>;
107
107
  }) => {
108
108
  config: IdVerificationConfig;
109
109
  isSecondId: boolean;
@@ -127,15 +127,15 @@ declare const idVerificationMachine: xstate697.StateMachine<IdVerificationContex
127
127
  } | {
128
128
  type: "CONTINUE";
129
129
  };
130
- self: xstate697.ActorRef<xstate697.MachineSnapshot<IdVerificationContext, {
130
+ self: xstate1404.ActorRef<xstate1404.MachineSnapshot<IdVerificationContext, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "CONTINUE";
134
- }, Record<string, xstate697.AnyActorRef>, xstate697.StateValue, string, unknown, any, any>, {
134
+ }, Record<string, xstate1404.AnyActorRef>, xstate1404.StateValue, string, unknown, any, any>, {
135
135
  type: "LOAD";
136
136
  } | {
137
137
  type: "CONTINUE";
138
- }, xstate697.AnyEventObject>;
138
+ }, xstate1404.AnyEventObject>;
139
139
  }) => {
140
140
  isSecondId: boolean;
141
141
  queueName: string;
package/dist/id.esm.js CHANGED
@@ -6,7 +6,7 @@ import { n as eventModuleNames } from "./types-ElOJAGaM.esm.js";
6
6
  import "./endpoints-BzMJFAPV.esm.js";
7
7
  import "./stats-CYcScXcO.esm.js";
8
8
  import "./browserSimulation-TsSoavQv.esm.js";
9
- import "./sessionInitializer-Dfc__RkA.esm.js";
9
+ import "./sessionInitializer-C0YhqeiX.esm.js";
10
10
  import "./getDeviceData-TrKM8NPh.esm.js";
11
11
  import "./thumbmarkAdapter-fHBUDlAP.esm.js";
12
12
  import "./IpifyProvider-BRW14_uo.esm.js";
@@ -33,9 +33,9 @@ import "./permissionGuards-BR2oN573.esm.js";
33
33
  import "./recordingService-D8zRQbVb.esm.js";
34
34
  import "./mediaRecorderOptions-C3NAkVgK.esm.js";
35
35
  import "./session-D4m9r-7U.esm.js";
36
- import { a as preloadIdRecordingProvider, c as stopRecording, d as uploadManualIdFile, f as validateUploadResponse, g as MANUAL_UPLOAD_MAX_RETRIES, h as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, i as initializeIdCapture, l as stopStream, m as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, o as processId, p as ID_ERROR_CODES, s as startRecordingSession, t as idCaptureMachine, u as uploadIdImage } from "./idCaptureStateMachine-BlLvve6M.esm.js";
36
+ import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-K6LgInsG.esm.js";
37
37
  import "./idCaptureDefaults-GTCesE6K.esm.js";
38
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-FXTdeOsf.esm.js";
38
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-TBCF4TGa.esm.js";
39
39
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DrpXOwkG.esm.js";
40
40
 
41
41
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
@@ -4,7 +4,7 @@ import { l as createManager, s as createActor } from "./xstate.esm-Bomq1a0z.esm.
4
4
  import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-rim9Jrz-.esm.js";
5
5
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BJhGL13R.esm.js";
6
6
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CrrN540a.esm.js";
7
- import { _ as mapDigitalIdScreenName, n as MAX_EXPIRED_FIRST_SIDE_ATTEMPTS, r as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-BlLvve6M.esm.js";
7
+ import { i as mapIdManualUploadScreenName, n as getManualUploadTabs, r as MAX_EXPIRED_FIRST_SIDE_ATTEMPTS, t as idCaptureMachine, v as mapDigitalIdScreenName } from "./idCaptureStateMachine-K6LgInsG.esm.js";
8
8
 
9
9
  //#region src/internal/idCapture/idCaptureManagerFactory.ts
10
10
  function getPermissionStatus(snapshot) {
@@ -138,6 +138,7 @@ function isLoadingPhase(snapshot) {
138
138
  }
139
139
  function mapManualUploadState(snapshot) {
140
140
  const { config } = snapshot.context;
141
+ const { showIdTab, showPassportTab } = getManualUploadTabs(config);
141
142
  const childSnapshot = snapshot.children["manualIdUpload"]?.getSnapshot();
142
143
  const childCtx = childSnapshot?.context;
143
144
  const childValue = childSnapshot?.value;
@@ -157,8 +158,8 @@ function mapManualUploadState(snapshot) {
157
158
  phase,
158
159
  uploadingSide,
159
160
  activeTab: childCtx?.activeTab ?? "id",
160
- showIdTab: config.enableId ?? true,
161
- showPassportTab: config.enablePassport ?? false,
161
+ showIdTab,
162
+ showPassportTab,
162
163
  showBackSlot: true,
163
164
  frontFileName: childCtx?.frontFile?.name,
164
165
  backFileName: childCtx?.backFile?.name,
@@ -3,7 +3,7 @@ import { r as getToken, t as api } from "./api-DsbUi7TO.esm.js";
3
3
  import { v as revokeObjectURL } from "./events-CqGY1yMq.esm.js";
4
4
  import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
5
5
  import { t as addDeviceStats } from "./stats-CYcScXcO.esm.js";
6
- import { t as getDisableIpify } from "./sessionInitializer-Dfc__RkA.esm.js";
6
+ import { t as getDisableIpify } from "./sessionInitializer-C0YhqeiX.esm.js";
7
7
  import { n as isDesktop } from "./platform-uIVQUnJP.esm.js";
8
8
  import { a as fromPromise, c as not, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-Bomq1a0z.esm.js";
9
9
  import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BJhGL13R.esm.js";
@@ -1226,6 +1226,8 @@ const isDeepsightEnabledGuard = ({ context }) => context.dependencies !== void 0
1226
1226
  const isDeepsightReadyGuard = ({ context }) => context.deepsightService !== void 0;
1227
1227
  const needsDeepsightInitGuard = ({ context }) => context.dependencies !== void 0 && context.deepsightService === void 0 && !context.deepsightInitAttempted;
1228
1228
  const hasOnlyManualUploadAvailableGuard = ({ context }) => context.availableDocumentTypes.length === 1 && context.availableDocumentTypes[0] === "manualIdUpload";
1229
+ /** No capture option is enabled — the ID module is misconfigured. */
1230
+ const hasNoDocumentTypesAvailableGuard = ({ context }) => context.availableDocumentTypes.length === 0;
1229
1231
  const isManualIdUploadSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "manualIdUpload";
1230
1232
  const isDigitalIdUploadSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "digitalIdUpload";
1231
1233
  const isUploadExpiredGuard = ({ context }) => context.uploadResponse?.isDocumentExpired === true;
@@ -1341,6 +1343,22 @@ function getAvailableDocumentTypes(config) {
1341
1343
  for (const [configProperty, adjustedType] of DOCUMENT_TYPES_CONFIG_TO_ADJUSTED_MAP) if (config[configProperty]) adjustedDocumentTypes.push(adjustedType);
1342
1344
  return adjustedDocumentTypes;
1343
1345
  }
1346
+ /**
1347
+ * Which manual-upload tabs to show. Falls back to both tabs when neither
1348
+ * `enableId` nor `enablePassport` is set (no accepted documents).
1349
+ */
1350
+ function getManualUploadTabs(config) {
1351
+ const showIdTab = !!config.enableId;
1352
+ const showPassportTab = !!config.enablePassport;
1353
+ if (!showIdTab && !showPassportTab) return {
1354
+ showIdTab: true,
1355
+ showPassportTab: true
1356
+ };
1357
+ return {
1358
+ showIdTab,
1359
+ showPassportTab
1360
+ };
1361
+ }
1344
1362
 
1345
1363
  //#endregion
1346
1364
  //#region src/modules/id/idCaptureActors.ts
@@ -1903,6 +1921,11 @@ function getCurrentModeFromEvent(context, event) {
1903
1921
 
1904
1922
  //#endregion
1905
1923
  //#region src/modules/id/idCaptureStateMachine.ts
1924
+ /**
1925
+ * Shown/logged when an ID capture module has no accepted documents and no
1926
+ * other capture option enabled — there is nothing to capture (ENG-43983).
1927
+ */
1928
+ const ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR = "ID capture module has no accepted documents and no capture option enabled";
1906
1929
  function getIdErrorCodeFromUnknown(error) {
1907
1930
  if (error instanceof Error) {
1908
1931
  const message = error.message;
@@ -2123,6 +2146,7 @@ const _idCaptureMachine = setup({
2123
2146
  isDeepsightReady: isDeepsightReadyGuard,
2124
2147
  needsDeepsightInit: needsDeepsightInitGuard,
2125
2148
  hasOnlyManualUploadAvailable: hasOnlyManualUploadAvailableGuard,
2149
+ hasNoDocumentTypesAvailable: hasNoDocumentTypesAvailableGuard,
2126
2150
  isManualIdUploadSelected: isManualIdUploadSelectedGuard,
2127
2151
  isDigitalIdUploadSelected: isDigitalIdUploadSelectedGuard,
2128
2152
  isUploadExpired: isUploadExpiredGuard,
@@ -2196,6 +2220,11 @@ const _idCaptureMachine = setup({
2196
2220
  },
2197
2221
  states: {
2198
2222
  idle: { on: { LOAD: [
2223
+ {
2224
+ target: "error",
2225
+ guard: "hasNoDocumentTypesAvailable",
2226
+ actions: [() => console.error(ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR), assign({ error: () => ID_CAPTURE_NO_DOCUMENT_TYPES_ERROR })]
2227
+ },
2199
2228
  {
2200
2229
  target: "manualIdUpload",
2201
2230
  guard: "hasOnlyManualUploadAvailable"
@@ -3068,4 +3097,4 @@ const _idCaptureMachine = setup({
3068
3097
  const idCaptureMachine = _idCaptureMachine;
3069
3098
 
3070
3099
  //#endregion
3071
- export { mapDigitalIdScreenName as _, preloadIdRecordingProvider as a, stopRecording as c, uploadManualIdFile as d, validateUploadResponse as f, MANUAL_UPLOAD_MAX_RETRIES as g, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as h, initializeIdCapture as i, stopStream as l, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as m, MAX_EXPIRED_FIRST_SIDE_ATTEMPTS as n, processId as o, ID_ERROR_CODES as p, mapIdManualUploadScreenName as r, startRecordingSession as s, idCaptureMachine as t, uploadIdImage as u };
3100
+ export { MANUAL_UPLOAD_MAX_RETRIES as _, initializeIdCapture as a, startRecordingSession as c, uploadIdImage as d, uploadManualIdFile as f, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as g, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as h, mapIdManualUploadScreenName as i, stopRecording as l, ID_ERROR_CODES as m, getManualUploadTabs as n, preloadIdRecordingProvider as o, validateUploadResponse as p, MAX_EXPIRED_FIRST_SIDE_ATTEMPTS as r, processId as s, idCaptureMachine as t, stopStream as u, mapDigitalIdScreenName as v };
@@ -1,4 +1,4 @@
1
1
  import "./Manager-BUc6OqO5.js";
2
2
  import "./Actor-Du_LU0S4.js";
3
- import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BOnaxwJI.js";
3
+ import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-DHveeduR.js";
4
4
  export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };