@incodetech/core 0.0.0-dev-20260625-a43ee3be → 0.0.0-dev-20260626-da30041d
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/ae-signature.d.ts +1 -1
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-vvPkWTMc.d.ts → consentManager-Dz74QfSE.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-B-VkoepP.d.ts → cpfOcrManager-BJJ4o4wp.d.ts} +17 -17
- package/dist/document-capture.d.ts +224 -224
- package/dist/document-upload.d.ts +49 -49
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-9OxB2ALm.esm.js → ekybStateMachine-CsU375dq.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-CG1KLhsN.esm.js → flowServices-CnCb9gO8.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-BWHXDmsp.esm.js → idCaptureManager-DdSsNbwB.esm.js} +3 -2
- package/dist/{idCaptureManager-BxmYAiCr.d.ts → idCaptureManager-I_5Paom9.d.ts} +11 -0
- package/dist/{idCaptureStateMachine-DgwiwGTp.esm.js → idCaptureStateMachine-Doq13FjU.esm.js} +25 -4
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DJUD1zYW.d.ts → identityReuseManager-CM0sRPZA.d.ts} +34 -34
- package/dist/{index-Btsz0iWy.d.ts → index-LQ3BMTr9.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BeWWbVnU.d.ts → mandatoryConsentManager-D_L4VJn5.d.ts} +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-CY3gDJ_h.esm.js → sessionInitializer-CsldyTwr.esm.js} +1 -1
- package/dist/{setup-CMXo0607.esm.js → setup-DZCvAOgs.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +159 -159
- package/dist/workflow.esm.js +4 -4
- package/package.json +3 -3
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BV5ZkaGs.js";
|
|
2
2
|
import "./Actor-D0X2YV92.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate718 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:
|
|
180
|
+
declare const idOcrStateMachine: xstate718.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate718.ActorRefFromLogic<xstate718.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate718.EventObject>> | xstate718.ActorRefFromLogic<xstate718.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate718.EventObject>> | undefined;
|
|
200
|
+
}, xstate718.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate718.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate718.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate718.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate718.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate718.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate718.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate718.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate718.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate718.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate718.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate718.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate718.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate718.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate718.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate718.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate718.NonReducibleUnknown, xstate718.EventObject, xstate718.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate718.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate718.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate718.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate718.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate718.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate718.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate718.RequiredActorOptions<T>]: unknown }) | undefined], xstate718.IsNotNever<xstate718.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate718.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate718.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate718.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate718.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate718.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate718.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate718.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate718.IsNotNever<xstate718.RequiredActorOptions<T_1>>> : never : never : never)): xstate718.ActorRefFromLogic<xstate718.GetConcreteByKey<xstate718.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate718.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate718.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate718.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate718.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate718.AnyActorLogic>(src: TLogic, ...[options]: xstate718.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate718.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate718.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate718.IsNotNever<xstate718.RequiredLogicInput<TLogic>>>): xstate718.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate718.ActorRef<xstate718.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate718.AnyActorRef | undefined>, xstate718.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate718.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate718.ActorRef<xstate718.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate718.AnyActorRef>, xstate718.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate718.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate718.ActorRef<xstate718.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate718.AnyActorRef>, xstate718.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate1064.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate718.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BV5ZkaGs.js";
|
|
2
2
|
import "./Actor-D0X2YV92.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate679 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:
|
|
35
|
+
declare const idVerificationMachine: xstate679.StateMachine<IdVerificationContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "CONTINUE";
|
|
39
39
|
}, {
|
|
40
|
-
[x: string]:
|
|
40
|
+
[x: string]: xstate679.ActorRefFromLogic<xstate679.PromiseActorLogic<ProcessIdResponse, {
|
|
41
41
|
isSecondId: boolean;
|
|
42
42
|
queueName: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate679.EventObject>> | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
src: "processId";
|
|
46
|
-
logic:
|
|
46
|
+
logic: xstate679.PromiseActorLogic<ProcessIdResponse, {
|
|
47
47
|
isSecondId: boolean;
|
|
48
48
|
queueName: string;
|
|
49
|
-
},
|
|
49
|
+
}, xstate679.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,
|
|
54
|
+
}, never, "idle" | "processing" | "finished" | "expired", string, IdVerificationInput, xstate679.NonReducibleUnknown, xstate679.EventObject, xstate679.MetaObject, {
|
|
55
55
|
readonly id: "idVerification";
|
|
56
56
|
readonly initial: "idle";
|
|
57
57
|
readonly context: ({
|
|
@@ -60,50 +60,50 @@ declare const idVerificationMachine: xstate1025.StateMachine<IdVerificationConte
|
|
|
60
60
|
spawn: {
|
|
61
61
|
<TSrc extends "processId">(logic: TSrc, ...[options]: {
|
|
62
62
|
src: "processId";
|
|
63
|
-
logic:
|
|
63
|
+
logic: xstate679.PromiseActorLogic<ProcessIdResponse, {
|
|
64
64
|
isSecondId: boolean;
|
|
65
65
|
queueName: string;
|
|
66
|
-
},
|
|
66
|
+
}, xstate679.EventObject>;
|
|
67
67
|
id: string | undefined;
|
|
68
68
|
} extends infer T ? T extends {
|
|
69
69
|
src: "processId";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate679.PromiseActorLogic<ProcessIdResponse, {
|
|
71
71
|
isSecondId: boolean;
|
|
72
72
|
queueName: string;
|
|
73
|
-
},
|
|
73
|
+
}, xstate679.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} ? T extends {
|
|
76
76
|
src: TSrc;
|
|
77
|
-
} ?
|
|
77
|
+
} ? xstate679.ConditionalRequired<[options?: ({
|
|
78
78
|
id?: T["id"] | undefined;
|
|
79
79
|
systemId?: string;
|
|
80
|
-
input?:
|
|
80
|
+
input?: xstate679.InputFrom<T["logic"]> | undefined;
|
|
81
81
|
syncSnapshot?: boolean;
|
|
82
|
-
} & { [K in
|
|
82
|
+
} & { [K in xstate679.RequiredActorOptions<T>]: unknown }) | undefined], xstate679.IsNotNever<xstate679.RequiredActorOptions<T>>> : never : never : never): xstate679.ActorRefFromLogic<xstate679.GetConcreteByKey<{
|
|
83
83
|
src: "processId";
|
|
84
|
-
logic:
|
|
84
|
+
logic: xstate679.PromiseActorLogic<ProcessIdResponse, {
|
|
85
85
|
isSecondId: boolean;
|
|
86
86
|
queueName: string;
|
|
87
|
-
},
|
|
87
|
+
}, xstate679.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
}, "src", TSrc>["logic"]>;
|
|
90
|
-
<TLogic extends
|
|
90
|
+
<TLogic extends xstate679.AnyActorLogic>(src: TLogic, ...[options]: xstate679.ConditionalRequired<[options?: ({
|
|
91
91
|
id?: never;
|
|
92
92
|
systemId?: string;
|
|
93
|
-
input?:
|
|
93
|
+
input?: xstate679.InputFrom<TLogic> | undefined;
|
|
94
94
|
syncSnapshot?: boolean;
|
|
95
|
-
} & { [K in
|
|
95
|
+
} & { [K in xstate679.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate679.IsNotNever<xstate679.RequiredLogicInput<TLogic>>>): xstate679.ActorRefFromLogic<TLogic>;
|
|
96
96
|
};
|
|
97
97
|
input: IdVerificationInput;
|
|
98
|
-
self:
|
|
98
|
+
self: xstate679.ActorRef<xstate679.MachineSnapshot<IdVerificationContext, {
|
|
99
99
|
type: "LOAD";
|
|
100
100
|
} | {
|
|
101
101
|
type: "CONTINUE";
|
|
102
|
-
}, Record<string,
|
|
102
|
+
}, Record<string, xstate679.AnyActorRef | undefined>, xstate679.StateValue, string, unknown, any, any>, {
|
|
103
103
|
type: "LOAD";
|
|
104
104
|
} | {
|
|
105
105
|
type: "CONTINUE";
|
|
106
|
-
},
|
|
106
|
+
}, xstate679.AnyEventObject>;
|
|
107
107
|
}) => {
|
|
108
108
|
config: IdVerificationConfig;
|
|
109
109
|
isSecondId: boolean;
|
|
@@ -127,15 +127,15 @@ declare const idVerificationMachine: xstate1025.StateMachine<IdVerificationConte
|
|
|
127
127
|
} | {
|
|
128
128
|
type: "CONTINUE";
|
|
129
129
|
};
|
|
130
|
-
self:
|
|
130
|
+
self: xstate679.ActorRef<xstate679.MachineSnapshot<IdVerificationContext, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "CONTINUE";
|
|
134
|
-
}, Record<string,
|
|
134
|
+
}, Record<string, xstate679.AnyActorRef>, xstate679.StateValue, string, unknown, any, any>, {
|
|
135
135
|
type: "LOAD";
|
|
136
136
|
} | {
|
|
137
137
|
type: "CONTINUE";
|
|
138
|
-
},
|
|
138
|
+
}, xstate679.AnyEventObject>;
|
|
139
139
|
}) => {
|
|
140
140
|
isSecondId: boolean;
|
|
141
141
|
queueName: string;
|
package/dist/id.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import "./types-B5wtXkOy.js";
|
|
|
11
11
|
import "./deepsightService-ek58P8wR.js";
|
|
12
12
|
import { n as PermissionStatus, t as PermissionResult } from "./types-Dzi_YW-0.js";
|
|
13
13
|
import "./StreamCanvasCapture-opC6JnBb.js";
|
|
14
|
-
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-
|
|
14
|
+
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-I_5Paom9.js";
|
|
15
15
|
|
|
16
16
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
17
17
|
type IdCaptureOnlyManager = IdCaptureManager;
|
package/dist/id.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ import "./endpoints-CJH8R79Q.esm.js";
|
|
|
7
7
|
import "./stats-s3hq1r1j.esm.js";
|
|
8
8
|
import "./BrowserEnvironmentProvider--Rda18RB.esm.js";
|
|
9
9
|
import "./browserSimulation-BaRUkqo0.esm.js";
|
|
10
|
-
import "./sessionInitializer-
|
|
10
|
+
import "./sessionInitializer-CsldyTwr.esm.js";
|
|
11
11
|
import "./getDeviceData-CxHuJqz9.esm.js";
|
|
12
12
|
import "./IpifyProvider-CN96dlWf.esm.js";
|
|
13
13
|
import "./platform-CwFB3DeY.esm.js";
|
|
@@ -33,8 +33,8 @@ import "./StreamCanvasCapture-Koi0Xc6f.esm.js";
|
|
|
33
33
|
import "./permissionGuards-BV5m2Z86.esm.js";
|
|
34
34
|
import "./recordingService-IPWMXEFL.esm.js";
|
|
35
35
|
import "./session-CSjmHjvS.esm.js";
|
|
36
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-
|
|
37
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
36
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, h as MANUAL_UPLOAD_MAX_RETRIES, i as preloadIdRecordingProvider, l as uploadIdImage, m as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, o as startRecordingSession, p as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, r as initializeIdCapture, s as stopRecording, t as idCaptureMachine, u as uploadManualIdFile } from "./idCaptureStateMachine-Doq13FjU.esm.js";
|
|
37
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DdSsNbwB.esm.js";
|
|
38
38
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BuIOnlDE.esm.js";
|
|
39
39
|
|
|
40
40
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
@@ -4,7 +4,7 @@ import { c as createManager, s as createActor } from "./xstate.esm-MXSDq4yW.esm.
|
|
|
4
4
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-EZ_rxOqV.esm.js";
|
|
5
5
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Cc8lx66Z.esm.js";
|
|
6
6
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-BsoYOG0O.esm.js";
|
|
7
|
-
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
7
|
+
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-Doq13FjU.esm.js";
|
|
8
8
|
|
|
9
9
|
//#region src/internal/idCapture/idCaptureManagerFactory.ts
|
|
10
10
|
function getPermissionStatus(snapshot) {
|
|
@@ -238,7 +238,8 @@ function mapState(snapshot) {
|
|
|
238
238
|
const counter = context.expiredFromUpload ? context.expiredAttempts : context.processingExpiredAttempts;
|
|
239
239
|
return {
|
|
240
240
|
status: "expired",
|
|
241
|
-
attemptsRemaining: Math.max(0, context.config.captureAttempts - counter)
|
|
241
|
+
attemptsRemaining: Math.max(0, context.config.captureAttempts - counter),
|
|
242
|
+
currentMode: context.currentMode
|
|
242
243
|
};
|
|
243
244
|
}
|
|
244
245
|
if (snapshot.matches("finished")) return { status: "finished" };
|
|
@@ -461,6 +461,15 @@ type IdCaptureContext = {
|
|
|
461
461
|
* the terminal "No attempts remaining" view.
|
|
462
462
|
*/
|
|
463
463
|
forceFinishAfterProcessing: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Set by the Story #2.1 expired-back redirect transition so that
|
|
466
|
+
* `resetForFrontCapture` (backFinished entry) and `resetForBackCapture`
|
|
467
|
+
* (frontFinished entry) skip zeroing `expiredAttempts`. Without this, the
|
|
468
|
+
* per-side counter resets every cycle and `expiredExhausted` is never
|
|
469
|
+
* reached. Consumed (cleared) by `resetForBackCapture` once back capture
|
|
470
|
+
* resumes with the preserved count.
|
|
471
|
+
*/
|
|
472
|
+
skipExpiredAttemptsReset: boolean;
|
|
464
473
|
uploadError: IdErrorCode | undefined;
|
|
465
474
|
permissionResult: PermissionResult | 'refresh' | undefined;
|
|
466
475
|
resetDetection: (() => void) | undefined;
|
|
@@ -827,6 +836,8 @@ type IdCaptureExpiredState = {
|
|
|
827
836
|
* "X attempts remaining" line on `1-9-11-id-documenterror`.
|
|
828
837
|
*/
|
|
829
838
|
attemptsRemaining: number;
|
|
839
|
+
/** Which side just expired — drives the back-specific subtitle in the UI. */
|
|
840
|
+
currentMode: IdCaptureMode;
|
|
830
841
|
};
|
|
831
842
|
type IdCaptureExpiredExhaustedState = {
|
|
832
843
|
status: 'expiredExhausted';
|
package/dist/{idCaptureStateMachine-DgwiwGTp.esm.js → idCaptureStateMachine-Doq13FjU.esm.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { r as getToken, t as api } from "./api-KOw05L_i.esm.js";
|
|
|
4
4
|
import { v as revokeObjectURL } from "./events-C5GpmPbS.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CJH8R79Q.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-s3hq1r1j.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-CsldyTwr.esm.js";
|
|
8
8
|
import { n as isDesktop } from "./platform-CwFB3DeY.esm.js";
|
|
9
9
|
import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-MXSDq4yW.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-Cc8lx66Z.esm.js";
|
|
@@ -1930,7 +1930,7 @@ const shouldSkipProcessIdGuard = ({ context }) => context.skipProcessId === true
|
|
|
1930
1930
|
* processes whatever sides were uploaded. Front-only exhaustion (no back to
|
|
1931
1931
|
* process) and the force-back V1 path keep using `setSkipProcessId` instead.
|
|
1932
1932
|
*/
|
|
1933
|
-
const shouldProcessAfterExhaustionGuard = ({ context }) => context.exhaustedFromUpload === true && context.currentMode === "back";
|
|
1933
|
+
const shouldProcessAfterExhaustionGuard = ({ context }) => context.exhaustedFromUpload === true && context.currentMode === "back" && (context.config.onlyBack === true || context.config.usSmartCapture === true);
|
|
1934
1934
|
/**
|
|
1935
1935
|
* `processing.onDone` reads this to short-circuit straight to `finished`
|
|
1936
1936
|
* after the post-exhaustion `processId` call returns — without it, an
|
|
@@ -1945,6 +1945,14 @@ const forceFinishAfterProcessingGuard = ({ context }) => context.forceFinishAfte
|
|
|
1945
1945
|
* was submitted.
|
|
1946
1946
|
*/
|
|
1947
1947
|
const isProcessingExpiredExhaustedGuard = ({ context }) => context.processingExpiredAttempts + 1 >= context.config.captureAttempts;
|
|
1948
|
+
/**
|
|
1949
|
+
* True when capturing the back side of a two-sided (front+back) ID flow.
|
|
1950
|
+
* Used to redirect an expired-back capture to front rather than retrying
|
|
1951
|
+
* the same back side (Figma Story #2.1).
|
|
1952
|
+
* Excludes onlyBack and usSmartCapture — those are single-side back flows
|
|
1953
|
+
* with no front to redirect to.
|
|
1954
|
+
*/
|
|
1955
|
+
const isBackModeInMultiSideFlowGuard = ({ context }) => context.currentMode === "back" && !context.config.onlyBack && !context.config.usSmartCapture;
|
|
1948
1956
|
|
|
1949
1957
|
//#endregion
|
|
1950
1958
|
//#region src/modules/id/idCaptureStateMachine.ts
|
|
@@ -2007,7 +2015,8 @@ const _idCaptureMachine = setup({
|
|
|
2007
2015
|
uploadProgress: void 0,
|
|
2008
2016
|
manualCaptureTriggered: false,
|
|
2009
2017
|
attemptsRemaining: context.config.captureAttempts,
|
|
2010
|
-
expiredAttempts: 0,
|
|
2018
|
+
expiredAttempts: context.skipExpiredAttemptsReset ? context.expiredAttempts : 0,
|
|
2019
|
+
skipExpiredAttemptsReset: false,
|
|
2011
2020
|
expiredFromUpload: false,
|
|
2012
2021
|
exhaustedFromUpload: false,
|
|
2013
2022
|
forceFinishAfterProcessing: false,
|
|
@@ -2032,7 +2041,6 @@ const _idCaptureMachine = setup({
|
|
|
2032
2041
|
uploadProgress: void 0,
|
|
2033
2042
|
manualCaptureTriggered: false,
|
|
2034
2043
|
attemptsRemaining: context.config.captureAttempts,
|
|
2035
|
-
expiredAttempts: 0,
|
|
2036
2044
|
expiredFromUpload: false,
|
|
2037
2045
|
exhaustedFromUpload: false,
|
|
2038
2046
|
forceFinishAfterProcessing: false,
|
|
@@ -2143,6 +2151,7 @@ const _idCaptureMachine = setup({
|
|
|
2143
2151
|
setSkipProcessId: assign({ skipProcessId: () => true }),
|
|
2144
2152
|
setExpiredFromUpload: assign({ expiredFromUpload: () => true }),
|
|
2145
2153
|
setExhaustedFromUpload: assign({ exhaustedFromUpload: () => true }),
|
|
2154
|
+
setSkipExpiredAttemptsReset: assign({ skipExpiredAttemptsReset: () => true }),
|
|
2146
2155
|
setForceFinishAfterProcessing: assign({ forceFinishAfterProcessing: () => true }),
|
|
2147
2156
|
clearExpiredFromUpload: assign({ expiredFromUpload: () => false })
|
|
2148
2157
|
},
|
|
@@ -2178,6 +2187,7 @@ const _idCaptureMachine = setup({
|
|
|
2178
2187
|
isProcessingExpiredExhausted: isProcessingExpiredExhaustedGuard,
|
|
2179
2188
|
shouldProcessAfterExhaustion: shouldProcessAfterExhaustionGuard,
|
|
2180
2189
|
forceFinishAfterProcessing: forceFinishAfterProcessingGuard,
|
|
2190
|
+
isBackModeInMultiSideFlow: isBackModeInMultiSideFlowGuard,
|
|
2181
2191
|
isManualUploadExhausted: ({ event }) => event.output?.result === "exhausted",
|
|
2182
2192
|
isDigitalUploadExhausted: ({ event }) => event.output?.result === "exhausted",
|
|
2183
2193
|
isDigitalUploadSuccessful: ({ event }) => event.output?.result === "success"
|
|
@@ -2204,6 +2214,7 @@ const _idCaptureMachine = setup({
|
|
|
2204
2214
|
recordingSession: void 0,
|
|
2205
2215
|
attemptsRemaining: input.config.captureAttempts,
|
|
2206
2216
|
expiredAttempts: 0,
|
|
2217
|
+
skipExpiredAttemptsReset: false,
|
|
2207
2218
|
processingExpiredAttempts: 0,
|
|
2208
2219
|
skipProcessId: input.config.skipProcessId === true,
|
|
2209
2220
|
expiredFromUpload: false,
|
|
@@ -2932,6 +2943,16 @@ const _idCaptureMachine = setup({
|
|
|
2932
2943
|
}
|
|
2933
2944
|
},
|
|
2934
2945
|
expired: { on: { RETRY_CAPTURE: [
|
|
2946
|
+
{
|
|
2947
|
+
target: "#idCapture.backFinished",
|
|
2948
|
+
guard: and(["wasExpiredFromUpload", "isBackModeInMultiSideFlow"]),
|
|
2949
|
+
actions: [
|
|
2950
|
+
"resetDetection",
|
|
2951
|
+
"clearExpiredFromUpload",
|
|
2952
|
+
"clearUploadFailure",
|
|
2953
|
+
"setSkipExpiredAttemptsReset"
|
|
2954
|
+
]
|
|
2955
|
+
},
|
|
2935
2956
|
{
|
|
2936
2957
|
target: "#idCapture.capture",
|
|
2937
2958
|
guard: "wasExpiredFromUpload",
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-BV5ZkaGs.js";
|
|
2
2
|
import "./Actor-D0X2YV92.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-
|
|
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-CM0sRPZA.js";
|
|
4
4
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|