@incodetech/core 0.0.0-dev-20260515-80ea77b → 0.0.0-dev-20260515-5ea50d5

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 (33) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/consent.d.ts +1 -1
  3. package/dist/cpf-ocr.d.ts +17 -17
  4. package/dist/document-capture.d.ts +68 -68
  5. package/dist/document-upload.d.ts +40 -40
  6. package/dist/ekyb.esm.js +3 -3
  7. package/dist/{ekybStateMachine-DYxuz2QY.esm.js → ekybStateMachine-CQyZTMF0.esm.js} +1 -1
  8. package/dist/electronic-signature.d.ts +1 -1
  9. package/dist/extensibility.d.ts +1 -1
  10. package/dist/extensibility.esm.js +3 -3
  11. package/dist/flow.d.ts +2 -2
  12. package/dist/flow.esm.js +2 -2
  13. package/dist/{flowServices-Du8Q3bE4.esm.js → flowServices-jTW-yhzr.esm.js} +1 -1
  14. package/dist/home.d.ts +10 -10
  15. package/dist/id-ocr.d.ts +52 -52
  16. package/dist/id-verification.d.ts +25 -25
  17. package/dist/id.d.ts +1 -1
  18. package/dist/id.esm.js +3 -3
  19. package/dist/{idCaptureManager-Dzaillra.d.ts → idCaptureManager-B9TGA5dq.d.ts} +15 -0
  20. package/dist/{idCaptureManager-Csz8P9dH.esm.js → idCaptureManager-DFk3Tytl.esm.js} +1 -1
  21. package/dist/{idCaptureStateMachine-B-LCI5je.esm.js → idCaptureStateMachine-DAO1IbBO.esm.js} +49 -10
  22. package/dist/identity-reuse.d.ts +43 -43
  23. package/dist/{index-BJL5opOT.d.ts → index-CoVWTOZj.d.ts} +119 -119
  24. package/dist/index.esm.js +2 -2
  25. package/dist/mandatory-consent.d.ts +50 -50
  26. package/dist/qe-signature.d.ts +1 -1
  27. package/dist/{session-Np-FjqC8.esm.js → session-DwRz_09p.esm.js} +1 -1
  28. package/dist/session.esm.js +1 -1
  29. package/dist/{setup-vPCAg9e5.esm.js → setup-Ewnwm56p.esm.js} +1 -1
  30. package/dist/wasm.esm.js +2 -2
  31. package/dist/workflow.d.ts +87 -87
  32. package/dist/workflow.esm.js +4 -4
  33. package/package.json +1 -1
package/dist/id-ocr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C8PrhBOx.js";
2
2
  import "./Actor-CI32dTbG.js";
3
- import * as xstate263 from "xstate";
3
+ import * as xstate277 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: xstate263.StateMachine<IdOcrContext, {
180
+ declare const idOcrStateMachine: xstate277.StateMachine<IdOcrContext, {
181
181
  type: "LOAD";
182
182
  } | {
183
183
  type: "DATA_CHANGED";
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
191
191
  } | {
192
192
  type: "RETRY";
193
193
  }, {
194
- [x: string]: xstate263.ActorRefFromLogic<xstate263.PromiseActorLogic<OcrData, {
194
+ [x: string]: xstate277.ActorRefFromLogic<xstate277.PromiseActorLogic<OcrData, {
195
195
  isSecondId: boolean;
196
- }, xstate263.EventObject>> | xstate263.ActorRefFromLogic<xstate263.PromiseActorLogic<UpdateOcrResponse, {
196
+ }, xstate277.EventObject>> | xstate277.ActorRefFromLogic<xstate277.PromiseActorLogic<UpdateOcrResponse, {
197
197
  params: UpdateOcrDataParams;
198
198
  isSecondId: boolean;
199
- }, xstate263.EventObject>> | undefined;
200
- }, xstate263.Values<{
199
+ }, xstate277.EventObject>> | undefined;
200
+ }, xstate277.Values<{
201
201
  getOcrData: {
202
202
  src: "getOcrData";
203
- logic: xstate263.PromiseActorLogic<OcrData, {
203
+ logic: xstate277.PromiseActorLogic<OcrData, {
204
204
  isSecondId: boolean;
205
- }, xstate263.EventObject>;
205
+ }, xstate277.EventObject>;
206
206
  id: string | undefined;
207
207
  };
208
208
  updateOcrData: {
209
209
  src: "updateOcrData";
210
- logic: xstate263.PromiseActorLogic<UpdateOcrResponse, {
210
+ logic: xstate277.PromiseActorLogic<UpdateOcrResponse, {
211
211
  params: UpdateOcrDataParams;
212
212
  isSecondId: boolean;
213
- }, xstate263.EventObject>;
213
+ }, xstate277.EventObject>;
214
214
  id: string | undefined;
215
215
  };
216
- }>, xstate263.Values<{
216
+ }>, xstate277.Values<{
217
217
  setError: {
218
218
  type: "setError";
219
- params: xstate263.NonReducibleUnknown;
219
+ params: xstate277.NonReducibleUnknown;
220
220
  };
221
221
  setInitialData: {
222
222
  type: "setInitialData";
223
- params: xstate263.NonReducibleUnknown;
223
+ params: xstate277.NonReducibleUnknown;
224
224
  };
225
225
  updateField: {
226
226
  type: "updateField";
227
- params: xstate263.NonReducibleUnknown;
227
+ params: xstate277.NonReducibleUnknown;
228
228
  };
229
229
  clearFieldValidationError: {
230
230
  type: "clearFieldValidationError";
231
- params: xstate263.NonReducibleUnknown;
231
+ params: xstate277.NonReducibleUnknown;
232
232
  };
233
233
  setOcrValidationErrors: {
234
234
  type: "setOcrValidationErrors";
235
- params: xstate263.NonReducibleUnknown;
235
+ params: xstate277.NonReducibleUnknown;
236
236
  };
237
237
  validateFormField: {
238
238
  type: "validateFormField";
239
- params: xstate263.NonReducibleUnknown;
239
+ params: xstate277.NonReducibleUnknown;
240
240
  };
241
241
  beginSecondIdOcrPhase: {
242
242
  type: "beginSecondIdOcrPhase";
243
- params: xstate263.NonReducibleUnknown;
243
+ params: xstate277.NonReducibleUnknown;
244
244
  };
245
245
  resetForRetry: {
246
246
  type: "resetForRetry";
247
- params: xstate263.NonReducibleUnknown;
247
+ params: xstate277.NonReducibleUnknown;
248
248
  };
249
249
  computeValidationResult: {
250
250
  type: "computeValidationResult";
251
- params: xstate263.NonReducibleUnknown;
251
+ params: xstate277.NonReducibleUnknown;
252
252
  };
253
- }>, xstate263.Values<{
253
+ }>, xstate277.Values<{
254
254
  isOcrEditable: {
255
255
  type: "isOcrEditable";
256
256
  params: unknown;
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate263.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, xstate263.NonReducibleUnknown, xstate263.EventObject, xstate263.MetaObject, {
274
+ }>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate277.NonReducibleUnknown, xstate277.EventObject, xstate277.MetaObject, {
275
275
  readonly id: "idOcr";
276
276
  readonly initial: "idle";
277
277
  readonly context: ({
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
280
280
  spawn: {
281
281
  <TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
282
282
  src: "getOcrData";
283
- logic: xstate263.PromiseActorLogic<OcrData, {
283
+ logic: xstate277.PromiseActorLogic<OcrData, {
284
284
  isSecondId: boolean;
285
- }, xstate263.EventObject>;
285
+ }, xstate277.EventObject>;
286
286
  id: string | undefined;
287
287
  } extends infer T ? T extends {
288
288
  src: "getOcrData";
289
- logic: xstate263.PromiseActorLogic<OcrData, {
289
+ logic: xstate277.PromiseActorLogic<OcrData, {
290
290
  isSecondId: boolean;
291
- }, xstate263.EventObject>;
291
+ }, xstate277.EventObject>;
292
292
  id: string | undefined;
293
293
  } ? T extends {
294
294
  src: TSrc;
295
- } ? xstate263.ConditionalRequired<[options?: ({
295
+ } ? xstate277.ConditionalRequired<[options?: ({
296
296
  id?: T["id"] | undefined;
297
297
  systemId?: string;
298
- input?: xstate263.InputFrom<T["logic"]> | undefined;
298
+ input?: xstate277.InputFrom<T["logic"]> | undefined;
299
299
  syncSnapshot?: boolean;
300
- } & { [K in xstate263.RequiredActorOptions<T>]: unknown }) | undefined], xstate263.IsNotNever<xstate263.RequiredActorOptions<T>>> : never : never : never) | ({
300
+ } & { [K in xstate277.RequiredActorOptions<T>]: unknown }) | undefined], xstate277.IsNotNever<xstate277.RequiredActorOptions<T>>> : never : never : never) | ({
301
301
  src: "updateOcrData";
302
- logic: xstate263.PromiseActorLogic<UpdateOcrResponse, {
302
+ logic: xstate277.PromiseActorLogic<UpdateOcrResponse, {
303
303
  params: UpdateOcrDataParams;
304
304
  isSecondId: boolean;
305
- }, xstate263.EventObject>;
305
+ }, xstate277.EventObject>;
306
306
  id: string | undefined;
307
307
  } extends infer T_1 ? T_1 extends {
308
308
  src: "updateOcrData";
309
- logic: xstate263.PromiseActorLogic<UpdateOcrResponse, {
309
+ logic: xstate277.PromiseActorLogic<UpdateOcrResponse, {
310
310
  params: UpdateOcrDataParams;
311
311
  isSecondId: boolean;
312
- }, xstate263.EventObject>;
312
+ }, xstate277.EventObject>;
313
313
  id: string | undefined;
314
314
  } ? T_1 extends {
315
315
  src: TSrc;
316
- } ? xstate263.ConditionalRequired<[options?: ({
316
+ } ? xstate277.ConditionalRequired<[options?: ({
317
317
  id?: T_1["id"] | undefined;
318
318
  systemId?: string;
319
- input?: xstate263.InputFrom<T_1["logic"]> | undefined;
319
+ input?: xstate277.InputFrom<T_1["logic"]> | undefined;
320
320
  syncSnapshot?: boolean;
321
- } & { [K_1 in xstate263.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate263.IsNotNever<xstate263.RequiredActorOptions<T_1>>> : never : never : never)): xstate263.ActorRefFromLogic<xstate263.GetConcreteByKey<xstate263.Values<{
321
+ } & { [K_1 in xstate277.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate277.IsNotNever<xstate277.RequiredActorOptions<T_1>>> : never : never : never)): xstate277.ActorRefFromLogic<xstate277.GetConcreteByKey<xstate277.Values<{
322
322
  getOcrData: {
323
323
  src: "getOcrData";
324
- logic: xstate263.PromiseActorLogic<OcrData, {
324
+ logic: xstate277.PromiseActorLogic<OcrData, {
325
325
  isSecondId: boolean;
326
- }, xstate263.EventObject>;
326
+ }, xstate277.EventObject>;
327
327
  id: string | undefined;
328
328
  };
329
329
  updateOcrData: {
330
330
  src: "updateOcrData";
331
- logic: xstate263.PromiseActorLogic<UpdateOcrResponse, {
331
+ logic: xstate277.PromiseActorLogic<UpdateOcrResponse, {
332
332
  params: UpdateOcrDataParams;
333
333
  isSecondId: boolean;
334
- }, xstate263.EventObject>;
334
+ }, xstate277.EventObject>;
335
335
  id: string | undefined;
336
336
  };
337
337
  }>, "src", TSrc>["logic"]>;
338
- <TLogic extends xstate263.AnyActorLogic>(src: TLogic, ...[options]: xstate263.ConditionalRequired<[options?: ({
338
+ <TLogic extends xstate277.AnyActorLogic>(src: TLogic, ...[options]: xstate277.ConditionalRequired<[options?: ({
339
339
  id?: never;
340
340
  systemId?: string;
341
- input?: xstate263.InputFrom<TLogic> | undefined;
341
+ input?: xstate277.InputFrom<TLogic> | undefined;
342
342
  syncSnapshot?: boolean;
343
- } & { [K in xstate263.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate263.IsNotNever<xstate263.RequiredLogicInput<TLogic>>>): xstate263.ActorRefFromLogic<TLogic>;
343
+ } & { [K in xstate277.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate277.IsNotNever<xstate277.RequiredLogicInput<TLogic>>>): xstate277.ActorRefFromLogic<TLogic>;
344
344
  };
345
345
  input: IdOcrInput;
346
- self: xstate263.ActorRef<xstate263.MachineSnapshot<IdOcrContext, {
346
+ self: xstate277.ActorRef<xstate277.MachineSnapshot<IdOcrContext, {
347
347
  type: "LOAD";
348
348
  } | {
349
349
  type: "DATA_CHANGED";
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
356
356
  type: "CONTINUE";
357
357
  } | {
358
358
  type: "RETRY";
359
- }, Record<string, xstate263.AnyActorRef | undefined>, xstate263.StateValue, string, unknown, any, any>, {
359
+ }, Record<string, xstate277.AnyActorRef | undefined>, xstate277.StateValue, string, unknown, any, any>, {
360
360
  type: "LOAD";
361
361
  } | {
362
362
  type: "DATA_CHANGED";
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
369
369
  type: "CONTINUE";
370
370
  } | {
371
371
  type: "RETRY";
372
- }, xstate263.AnyEventObject>;
372
+ }, xstate277.AnyEventObject>;
373
373
  }) => {
374
374
  config: IdOcrConfig;
375
375
  formData: UpdateOcrDataParams;
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
405
405
  } | {
406
406
  type: "RETRY";
407
407
  };
408
- self: xstate263.ActorRef<xstate263.MachineSnapshot<IdOcrContext, {
408
+ self: xstate277.ActorRef<xstate277.MachineSnapshot<IdOcrContext, {
409
409
  type: "LOAD";
410
410
  } | {
411
411
  type: "DATA_CHANGED";
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
418
418
  type: "CONTINUE";
419
419
  } | {
420
420
  type: "RETRY";
421
- }, Record<string, xstate263.AnyActorRef>, xstate263.StateValue, string, unknown, any, any>, {
421
+ }, Record<string, xstate277.AnyActorRef>, xstate277.StateValue, string, unknown, any, any>, {
422
422
  type: "LOAD";
423
423
  } | {
424
424
  type: "DATA_CHANGED";
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
431
431
  type: "CONTINUE";
432
432
  } | {
433
433
  type: "RETRY";
434
- }, xstate263.AnyEventObject>;
434
+ }, xstate277.AnyEventObject>;
435
435
  }) => {
436
436
  isSecondId: boolean;
437
437
  };
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
510
510
  } | {
511
511
  type: "RETRY";
512
512
  };
513
- self: xstate263.ActorRef<xstate263.MachineSnapshot<IdOcrContext, {
513
+ self: xstate277.ActorRef<xstate277.MachineSnapshot<IdOcrContext, {
514
514
  type: "LOAD";
515
515
  } | {
516
516
  type: "DATA_CHANGED";
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
523
523
  type: "CONTINUE";
524
524
  } | {
525
525
  type: "RETRY";
526
- }, Record<string, xstate263.AnyActorRef>, xstate263.StateValue, string, unknown, any, any>, {
526
+ }, Record<string, xstate277.AnyActorRef>, xstate277.StateValue, string, unknown, any, any>, {
527
527
  type: "LOAD";
528
528
  } | {
529
529
  type: "DATA_CHANGED";
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate263.StateMachine<IdOcrContext, {
536
536
  type: "CONTINUE";
537
537
  } | {
538
538
  type: "RETRY";
539
- }, xstate263.AnyEventObject>;
539
+ }, xstate277.AnyEventObject>;
540
540
  }) => {
541
541
  params: UpdateOcrDataParams;
542
542
  isSecondId: boolean;
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C8PrhBOx.js";
2
2
  import "./Actor-CI32dTbG.js";
3
- import * as xstate224 from "xstate";
3
+ import * as xstate238 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: xstate224.StateMachine<IdVerificationContext, {
35
+ declare const idVerificationMachine: xstate238.StateMachine<IdVerificationContext, {
36
36
  type: "LOAD";
37
37
  } | {
38
38
  type: "CONTINUE";
39
39
  }, {
40
- [x: string]: xstate224.ActorRefFromLogic<xstate224.PromiseActorLogic<ProcessIdResponse, {
40
+ [x: string]: xstate238.ActorRefFromLogic<xstate238.PromiseActorLogic<ProcessIdResponse, {
41
41
  isSecondId: boolean;
42
42
  queueName: string;
43
- }, xstate224.EventObject>> | undefined;
43
+ }, xstate238.EventObject>> | undefined;
44
44
  }, {
45
45
  src: "processId";
46
- logic: xstate224.PromiseActorLogic<ProcessIdResponse, {
46
+ logic: xstate238.PromiseActorLogic<ProcessIdResponse, {
47
47
  isSecondId: boolean;
48
48
  queueName: string;
49
- }, xstate224.EventObject>;
49
+ }, xstate238.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, xstate224.NonReducibleUnknown, xstate224.EventObject, xstate224.MetaObject, {
54
+ }, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, xstate238.NonReducibleUnknown, xstate238.EventObject, xstate238.MetaObject, {
55
55
  readonly id: "idVerification";
56
56
  readonly initial: "idle";
57
57
  readonly context: ({
@@ -60,50 +60,50 @@ declare const idVerificationMachine: xstate224.StateMachine<IdVerificationContex
60
60
  spawn: {
61
61
  <TSrc extends "processId">(logic: TSrc, ...[options]: {
62
62
  src: "processId";
63
- logic: xstate224.PromiseActorLogic<ProcessIdResponse, {
63
+ logic: xstate238.PromiseActorLogic<ProcessIdResponse, {
64
64
  isSecondId: boolean;
65
65
  queueName: string;
66
- }, xstate224.EventObject>;
66
+ }, xstate238.EventObject>;
67
67
  id: string | undefined;
68
68
  } extends infer T ? T extends {
69
69
  src: "processId";
70
- logic: xstate224.PromiseActorLogic<ProcessIdResponse, {
70
+ logic: xstate238.PromiseActorLogic<ProcessIdResponse, {
71
71
  isSecondId: boolean;
72
72
  queueName: string;
73
- }, xstate224.EventObject>;
73
+ }, xstate238.EventObject>;
74
74
  id: string | undefined;
75
75
  } ? T extends {
76
76
  src: TSrc;
77
- } ? xstate224.ConditionalRequired<[options?: ({
77
+ } ? xstate238.ConditionalRequired<[options?: ({
78
78
  id?: T["id"] | undefined;
79
79
  systemId?: string;
80
- input?: xstate224.InputFrom<T["logic"]> | undefined;
80
+ input?: xstate238.InputFrom<T["logic"]> | undefined;
81
81
  syncSnapshot?: boolean;
82
- } & { [K in xstate224.RequiredActorOptions<T>]: unknown }) | undefined], xstate224.IsNotNever<xstate224.RequiredActorOptions<T>>> : never : never : never): xstate224.ActorRefFromLogic<xstate224.GetConcreteByKey<{
82
+ } & { [K in xstate238.RequiredActorOptions<T>]: unknown }) | undefined], xstate238.IsNotNever<xstate238.RequiredActorOptions<T>>> : never : never : never): xstate238.ActorRefFromLogic<xstate238.GetConcreteByKey<{
83
83
  src: "processId";
84
- logic: xstate224.PromiseActorLogic<ProcessIdResponse, {
84
+ logic: xstate238.PromiseActorLogic<ProcessIdResponse, {
85
85
  isSecondId: boolean;
86
86
  queueName: string;
87
- }, xstate224.EventObject>;
87
+ }, xstate238.EventObject>;
88
88
  id: string | undefined;
89
89
  }, "src", TSrc>["logic"]>;
90
- <TLogic extends xstate224.AnyActorLogic>(src: TLogic, ...[options]: xstate224.ConditionalRequired<[options?: ({
90
+ <TLogic extends xstate238.AnyActorLogic>(src: TLogic, ...[options]: xstate238.ConditionalRequired<[options?: ({
91
91
  id?: never;
92
92
  systemId?: string;
93
- input?: xstate224.InputFrom<TLogic> | undefined;
93
+ input?: xstate238.InputFrom<TLogic> | undefined;
94
94
  syncSnapshot?: boolean;
95
- } & { [K in xstate224.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate224.IsNotNever<xstate224.RequiredLogicInput<TLogic>>>): xstate224.ActorRefFromLogic<TLogic>;
95
+ } & { [K in xstate238.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate238.IsNotNever<xstate238.RequiredLogicInput<TLogic>>>): xstate238.ActorRefFromLogic<TLogic>;
96
96
  };
97
97
  input: IdVerificationInput;
98
- self: xstate224.ActorRef<xstate224.MachineSnapshot<IdVerificationContext, {
98
+ self: xstate238.ActorRef<xstate238.MachineSnapshot<IdVerificationContext, {
99
99
  type: "LOAD";
100
100
  } | {
101
101
  type: "CONTINUE";
102
- }, Record<string, xstate224.AnyActorRef | undefined>, xstate224.StateValue, string, unknown, any, any>, {
102
+ }, Record<string, xstate238.AnyActorRef | undefined>, xstate238.StateValue, string, unknown, any, any>, {
103
103
  type: "LOAD";
104
104
  } | {
105
105
  type: "CONTINUE";
106
- }, xstate224.AnyEventObject>;
106
+ }, xstate238.AnyEventObject>;
107
107
  }) => {
108
108
  config: IdVerificationConfig;
109
109
  isSecondId: boolean;
@@ -127,15 +127,15 @@ declare const idVerificationMachine: xstate224.StateMachine<IdVerificationContex
127
127
  } | {
128
128
  type: "CONTINUE";
129
129
  };
130
- self: xstate224.ActorRef<xstate224.MachineSnapshot<IdVerificationContext, {
130
+ self: xstate238.ActorRef<xstate238.MachineSnapshot<IdVerificationContext, {
131
131
  type: "LOAD";
132
132
  } | {
133
133
  type: "CONTINUE";
134
- }, Record<string, xstate224.AnyActorRef>, xstate224.StateValue, string, unknown, any, any>, {
134
+ }, Record<string, xstate238.AnyActorRef>, xstate238.StateValue, string, unknown, any, any>, {
135
135
  type: "LOAD";
136
136
  } | {
137
137
  type: "CONTINUE";
138
- }, xstate224.AnyEventObject>;
138
+ }, xstate238.AnyEventObject>;
139
139
  }) => {
140
140
  isSecondId: boolean;
141
141
  queueName: string;
package/dist/id.d.ts CHANGED
@@ -7,7 +7,7 @@ import "./types-CFV9G_7j.js";
7
7
  import "./types-BP1m8VRw.js";
8
8
  import "./deepsightService-CEVxzehb.js";
9
9
  import { n as PermissionStatus, t as PermissionResult } from "./types-CAD4va6a.js";
10
- import { $ as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, A as CaptureIdResponse, B as IdCaptureGeometry, C as IdCaptureOnlyMachine, D as createIdCaptureActor, E as IdCaptureActor, F as ID_ERROR_CODES, G as IdCapturedImageData, H as IdCaptureMode, I as IdCaptureConfig, J as IdErrorCode, K as IdDocumentType, L as IdCaptureContext, M as CapturedImage, N as DetectionArea, O as IdCaptureMachine, P as DetectionStatus, Q as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, R as IdCaptureDependencies, S as createIdCaptureOnlyActor, T as CreateIdCaptureActorOptions, U as IdCaptureOnlyConfig, V as IdCaptureInput, W as IdCaptureThresholds, X as RecordingSession, Y as IdFlowStep, Z as UploadIdResponse, _ as uploadIdImage, a as IdCaptureInitResult, at as IdCaptureSettings, b as CreateIdCaptureOnlyActorOptions, c as UploadIdImageParams, d as initializeIdCapture, et as MANUAL_UPLOAD_MAX_RETRIES, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, it as DetectionOrientation, j as CaptureOnlyResponse, k as idCaptureMachine, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureManager, nt as ManualUploadSide, o as InitializeIdCaptureParams, p as processId, q as IdError, r as IdCaptureState, rt as ManualUploadTab, s as StartRecordingParams, t as createIdCaptureManager, tt as ManualUploadContext, u as ValidationError, v as uploadManualIdFile, w as idCaptureOnlyMachine, x as IdCaptureOnlyActor, y as validateUploadResponse, z as IdCaptureEvent } from "./idCaptureManager-Dzaillra.js";
10
+ import { $ as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, A as CaptureIdResponse, B as IdCaptureGeometry, C as IdCaptureOnlyMachine, D as createIdCaptureActor, E as IdCaptureActor, F as ID_ERROR_CODES, G as IdCapturedImageData, H as IdCaptureMode, I as IdCaptureConfig, J as IdErrorCode, K as IdDocumentType, L as IdCaptureContext, M as CapturedImage, N as DetectionArea, O as IdCaptureMachine, P as DetectionStatus, Q as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, R as IdCaptureDependencies, S as createIdCaptureOnlyActor, T as CreateIdCaptureActorOptions, U as IdCaptureOnlyConfig, V as IdCaptureInput, W as IdCaptureThresholds, X as RecordingSession, Y as IdFlowStep, Z as UploadIdResponse, _ as uploadIdImage, a as IdCaptureInitResult, at as IdCaptureSettings, b as CreateIdCaptureOnlyActorOptions, c as UploadIdImageParams, d as initializeIdCapture, et as MANUAL_UPLOAD_MAX_RETRIES, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, it as DetectionOrientation, j as CaptureOnlyResponse, k as idCaptureMachine, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureManager, nt as ManualUploadSide, o as InitializeIdCaptureParams, p as processId, q as IdError, r as IdCaptureState, rt as ManualUploadTab, s as StartRecordingParams, t as createIdCaptureManager, tt as ManualUploadContext, u as ValidationError, v as uploadManualIdFile, w as idCaptureOnlyMachine, x as IdCaptureOnlyActor, y as validateUploadResponse, z as IdCaptureEvent } from "./idCaptureManager-B9TGA5dq.js";
11
11
 
12
12
  //#region src/modules/id/idCaptureOnlyManager.d.ts
13
13
  type IdCaptureOnlyManager = IdCaptureManager;
package/dist/id.esm.js CHANGED
@@ -3,7 +3,7 @@ import "./BrowserTimerProvider-DhNc_x02.esm.js";
3
3
  import "./api-CESGtpbH.esm.js";
4
4
  import { n as eventModuleNames } from "./events-D6-e4vok.esm.js";
5
5
  import "./endpoints-CnN3SyDa.esm.js";
6
- import "./session-Np-FjqC8.esm.js";
6
+ import "./session-DwRz_09p.esm.js";
7
7
  import "./IpifyProvider-D7jx52AL.esm.js";
8
8
  import "./browserSimulation-gxD8cSpM.esm.js";
9
9
  import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
@@ -19,8 +19,8 @@ import "./stats-CIfiPzb1.esm.js";
19
19
  import "./getDeviceClass-BSntT9_j.esm.js";
20
20
  import "./MotionSensorProvider-4v7xkqAp.esm.js";
21
21
  import "./permissionServices-D_i6nzEw.esm.js";
22
- 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-LCI5je.esm.js";
23
- import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-Csz8P9dH.esm.js";
22
+ 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-DAO1IbBO.esm.js";
23
+ import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DFk3Tytl.esm.js";
24
24
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-rc6kBHo5.esm.js";
25
25
 
26
26
  //#region src/modules/id/idCaptureOnlyStateMachine.ts
@@ -432,6 +432,21 @@ type IdCaptureContext = {
432
432
  * for the workflow orchestrator.
433
433
  */
434
434
  isDigitalUpload: boolean;
435
+ /**
436
+ * Set when `expiredExhausted` was reached via the per-upload (camera)
437
+ * exhaustion path. Used by `CONTINUE_EXHAUSTED` to decide whether to run
438
+ * `processId` once before finishing — required so the backend processes
439
+ * whatever sides were uploaded (e.g. valid front + expired back).
440
+ */
441
+ exhaustedFromUpload: boolean;
442
+ /**
443
+ * Tells the `processing` state to skip the per-upload-expired retry/exhaustion
444
+ * branches and go straight to `finished` after `processId.onDone`. Set
445
+ * when entering `processing` from the `expiredExhausted → Continue` path
446
+ * so we don't loop back to the Expired screen after we've already shown
447
+ * the terminal "No attempts remaining" view.
448
+ */
449
+ forceFinishAfterProcessing: boolean;
435
450
  uploadError: IdErrorCode | undefined;
436
451
  permissionResult: PermissionResult | 'refresh' | undefined;
437
452
  resetDetection: (() => void) | undefined;
@@ -1,7 +1,7 @@
1
1
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D6-e4vok.esm.js";
2
2
  import { c as createManager, s as createActor } from "./xstate.esm-B70JrNqo.esm.js";
3
3
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CuOW1Er2.esm.js";
4
- import { h as mapDigitalIdScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-B-LCI5je.esm.js";
4
+ import { h as mapDigitalIdScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-DAO1IbBO.esm.js";
5
5
 
6
6
  //#region src/internal/idCapture/idCaptureManagerFactory.ts
7
7
  function getPermissionStatus(snapshot) {
@@ -3,7 +3,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DhNc_x02.esm.j
3
3
  import { r as getToken, t as api } from "./api-CESGtpbH.esm.js";
4
4
  import { S as revokeObjectURL } from "./events-D6-e4vok.esm.js";
5
5
  import { t as endpoints } from "./endpoints-CnN3SyDa.esm.js";
6
- import { t as getDisableIpify } from "./session-Np-FjqC8.esm.js";
6
+ import { t as getDisableIpify } from "./session-DwRz_09p.esm.js";
7
7
  import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-B70JrNqo.esm.js";
8
8
  import { n as IncodeCanvas } from "./deepsightService-O74l4Y__.esm.js";
9
9
  import { _ as stopRecording$1, a as StreamCanvasCapture, g as startRecording, h as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as StreamCanvasProcessingSession } from "./recordingService-Ig2UgbLv.esm.js";
@@ -1552,6 +1552,8 @@ function getResetContextValues(context) {
1552
1552
  skipProcessId: false,
1553
1553
  expiredFromUpload: false,
1554
1554
  isDigitalUpload: false,
1555
+ exhaustedFromUpload: false,
1556
+ forceFinishAfterProcessing: false,
1555
1557
  uploadError: void 0,
1556
1558
  permissionResult: void 0,
1557
1559
  resetDetection: void 0,
@@ -1804,6 +1806,21 @@ const shouldForceBackOnExpiredGuard = ({ context }) => context.currentMode === "
1804
1806
  const wasExpiredFromUploadGuard = ({ context }) => context.expiredFromUpload === true;
1805
1807
  const shouldSkipProcessIdGuard = ({ context }) => context.skipProcessId === true;
1806
1808
  /**
1809
+ * Bug 4 fix: when `expiredExhausted` is reached via the per-upload-expired
1810
+ * exhaustion path with a back side captured (or the entire single-side back
1811
+ * flow), we want `processId` to run once on Continue so the backend
1812
+ * processes whatever sides were uploaded. Front-only exhaustion (no back to
1813
+ * process) and the force-back V1 path keep using `setSkipProcessId` instead.
1814
+ */
1815
+ const shouldProcessAfterExhaustionGuard = ({ context }) => context.exhaustedFromUpload === true && context.currentMode === "back";
1816
+ /**
1817
+ * `processing.onDone` reads this to short-circuit straight to `finished`
1818
+ * after the post-exhaustion `processId` call returns — without it, an
1819
+ * `isDocumentExpired:true` response would loop back to the Expired screen
1820
+ * we just terminated.
1821
+ */
1822
+ const forceFinishAfterProcessingGuard = ({ context }) => context.forceFinishAfterProcessing === true;
1823
+ /**
1807
1824
  * Cap on the end-of-flow expired path. All capture types (camera, digital,
1808
1825
  * manual) share `config.captureAttempts` for consistency — the user-visible
1809
1826
  * "X attempts remaining" counter is the same regardless of how the document
@@ -1875,6 +1892,8 @@ const _idCaptureMachine = setup({
1875
1892
  attemptsRemaining: context.config.captureAttempts,
1876
1893
  expiredAttempts: 0,
1877
1894
  expiredFromUpload: false,
1895
+ exhaustedFromUpload: false,
1896
+ forceFinishAfterProcessing: false,
1878
1897
  captureResolution: void 0,
1879
1898
  cameraFallbackLevel: void 0
1880
1899
  };
@@ -1898,6 +1917,8 @@ const _idCaptureMachine = setup({
1898
1917
  attemptsRemaining: context.config.captureAttempts,
1899
1918
  expiredAttempts: 0,
1900
1919
  expiredFromUpload: false,
1920
+ exhaustedFromUpload: false,
1921
+ forceFinishAfterProcessing: false,
1901
1922
  captureResolution: void 0,
1902
1923
  cameraFallbackLevel: void 0
1903
1924
  };
@@ -2006,6 +2027,8 @@ const _idCaptureMachine = setup({
2006
2027
  incrementProcessingExpiredAttempts: assign(({ context }) => ({ processingExpiredAttempts: context.processingExpiredAttempts + 1 })),
2007
2028
  setSkipProcessId: assign({ skipProcessId: () => true }),
2008
2029
  setExpiredFromUpload: assign({ expiredFromUpload: () => true }),
2030
+ setExhaustedFromUpload: assign({ exhaustedFromUpload: () => true }),
2031
+ setForceFinishAfterProcessing: assign({ forceFinishAfterProcessing: () => true }),
2009
2032
  clearExpiredFromUpload: assign({ expiredFromUpload: () => false })
2010
2033
  },
2011
2034
  guards: {
@@ -2036,6 +2059,8 @@ const _idCaptureMachine = setup({
2036
2059
  wasExpiredFromUpload: wasExpiredFromUploadGuard,
2037
2060
  shouldSkipProcessId: shouldSkipProcessIdGuard,
2038
2061
  isProcessingExpiredExhausted: isProcessingExpiredExhaustedGuard,
2062
+ shouldProcessAfterExhaustion: shouldProcessAfterExhaustionGuard,
2063
+ forceFinishAfterProcessing: forceFinishAfterProcessingGuard,
2039
2064
  isManualUploadExhausted: ({ event }) => event.output?.result === "exhausted",
2040
2065
  isDigitalUploadExhausted: ({ event }) => event.output?.result === "exhausted",
2041
2066
  isDigitalUploadClosed: ({ event }) => event.output?.result === "closed",
@@ -2067,6 +2092,8 @@ const _idCaptureMachine = setup({
2067
2092
  skipProcessId: input.config.skipProcessId === true,
2068
2093
  expiredFromUpload: false,
2069
2094
  isDigitalUpload: false,
2095
+ exhaustedFromUpload: false,
2096
+ forceFinishAfterProcessing: false,
2070
2097
  uploadError: void 0,
2071
2098
  permissionResult: void 0,
2072
2099
  resetDetection: void 0,
@@ -2580,7 +2607,7 @@ const _idCaptureMachine = setup({
2580
2607
  "isUploadExpired",
2581
2608
  "isExpiredAttemptsExhausted"
2582
2609
  ]),
2583
- actions: ["incrementExpiredAttempts"]
2610
+ actions: ["incrementExpiredAttempts", "setExhaustedFromUpload"]
2584
2611
  },
2585
2612
  {
2586
2613
  target: "#idCapture.expired",
@@ -2752,6 +2779,10 @@ const _idCaptureMachine = setup({
2752
2779
  src: "processId",
2753
2780
  input: ({ context }) => ({ isSecondId: context.config.isSecondId ?? false }),
2754
2781
  onDone: [
2782
+ {
2783
+ target: "finished",
2784
+ guard: "forceFinishAfterProcessing"
2785
+ },
2755
2786
  {
2756
2787
  target: "expiredExhausted",
2757
2788
  guard: and([({ event }) => event.output.isDocumentExpired, "isProcessingExpiredExhausted"]),
@@ -2797,14 +2828,22 @@ const _idCaptureMachine = setup({
2797
2828
  actions: "resetContext"
2798
2829
  }
2799
2830
  ] } },
2800
- expiredExhausted: { on: { CONTINUE_EXHAUSTED: [{
2801
- target: "#idCapture.frontFinished",
2802
- guard: "shouldForceBackOnExpired",
2803
- actions: ["setSkipProcessId"]
2804
- }, {
2805
- target: "#idCapture.finished",
2806
- actions: ["setSkipProcessId"]
2807
- }] } },
2831
+ expiredExhausted: { on: { CONTINUE_EXHAUSTED: [
2832
+ {
2833
+ target: "#idCapture.frontFinished",
2834
+ guard: "shouldForceBackOnExpired",
2835
+ actions: ["setSkipProcessId"]
2836
+ },
2837
+ {
2838
+ target: "#idCapture.processing",
2839
+ guard: "shouldProcessAfterExhaustion",
2840
+ actions: ["setForceFinishAfterProcessing"]
2841
+ },
2842
+ {
2843
+ target: "#idCapture.finished",
2844
+ actions: ["setSkipProcessId"]
2845
+ }
2846
+ ] } },
2808
2847
  finished: {
2809
2848
  entry: [
2810
2849
  "stopMediaRecording",