@incodetech/core 0.0.0-dev-20260508-a05aa65 → 0.0.0-dev-20260508-4bd5e49
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/{addressSearch-DGVL5bWp.esm.js → addressSearch-DayrVNF_.esm.js} +1 -1
- package/dist/{ae-signature-CW0Y3VGK.esm.js → ae-signature-DsoDilvy.esm.js} +1 -1
- package/dist/ae-signature.d.ts +1 -1
- package/dist/ae-signature.esm.js +3 -3
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudStateMachine-D4G28SI4.esm.js → antifraudStateMachine-Dcg1T07S.esm.js} +1 -1
- package/dist/authentication.esm.js +5 -5
- package/dist/{authenticationManager-CO8WhECt.esm.js → authenticationManager-CVoZsbJX.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BNH4XOow.esm.js → authenticationStateMachine-DyimpeBS.esm.js} +2 -2
- package/dist/consent.d.ts +47 -47
- package/dist/consent.esm.js +2 -2
- package/dist/{consentStateMachine-Bda2QqSh.esm.js → consentStateMachine-arnGM2iE.esm.js} +1 -1
- package/dist/cpf-ocr.d.ts +23 -23
- package/dist/cpf-ocr.esm.js +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationStateMachine-CYXt-Why.esm.js → curpValidationStateMachine-B0Yhzej1.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/document-capture.d.ts +68 -68
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +40 -40
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureStateMachine-SQ3AsME6.esm.js → documentCaptureStateMachine-fpqYHdZV.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +1 -1
- package/dist/ekyb.esm.js +5 -5
- package/dist/{ekybStateMachine-FXI54YYY.esm.js → ekybStateMachine-OJY8Sbql.esm.js} +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycStateMachine-B-R_nMk9.esm.js → ekycStateMachine-6OaK23Ab.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-W3dYg32m.esm.js → electronicSignatureManager-DYooXM8e.esm.js} +1 -1
- package/dist/email.esm.js +3 -3
- package/dist/{emailManager-Dcdv3r8N.esm.js → emailManager-CJAgi4be.esm.js} +2 -2
- package/dist/{emailStateMachine-CfL8um8y.esm.js → emailStateMachine-BW4tiYqt.esm.js} +1 -1
- package/dist/extensibility.d.ts +1 -1
- package/dist/extensibility.esm.js +14 -14
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-bM8uVQhs.esm.js → faceCaptureManagerFactory-ByAGjOLF.esm.js} +1 -1
- package/dist/{faceCaptureSetup-DPJ8f1ce.esm.js → faceCaptureSetup-D3dirkMC.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-o_4FAl-g.esm.js → faceMatchStateMachine-Fwkg2Q37.esm.js} +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +4 -4
- package/dist/{flowServices-B41pWry3.esm.js → flowServices-MYPXBfNj.esm.js} +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationStateMachine-Oj4giZl6.esm.js → geolocationStateMachine-15aagr2_.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationStateMachine-DwZUuGG9.esm.js → governmentValidationStateMachine-Bg4F9j-0.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id.d.ts +1 -1
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureManager-6AfsPFbT.esm.js → idCaptureManager-BFE_QfGu.esm.js} +24 -22
- package/dist/{idCaptureManager-xbLvlmaw.d.ts → idCaptureManager-C4xBRJNt.d.ts} +25 -27
- package/dist/{idCaptureStateMachine-CjhFzer8.esm.js → idCaptureStateMachine-Em0doWas.esm.js} +377 -360
- package/dist/{idOcrStateMachine-Bh_LFdKk.esm.js → idOcrStateMachine-Dw4i2Yyo.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +43 -43
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/{index-CorEGzgE.d.ts → index-NXSeOGaz.d.ts} +119 -119
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +47 -47
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentStateMachine-b5d37Xvb.esm.js → mandatoryConsentStateMachine-D0CiwKkK.esm.js} +1 -1
- package/dist/phone.esm.js +3 -3
- package/dist/{phoneManager-CBupL3Zp.esm.js → phoneManager-BgAfR0DQ.esm.js} +2 -2
- package/dist/{phoneStateMachine-B0KqPCut.esm.js → phoneStateMachine-dDqWuk_Q.esm.js} +1 -1
- package/dist/{qe-signature-CLobj5mQ.esm.js → qe-signature-CaxK1LMD.esm.js} +1 -1
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileStateMachine-Dvias_ax.esm.js → redirectToMobileStateMachine-7bW5wC2f.esm.js} +1 -1
- package/dist/{runChildModule-BpsyjQ6x.esm.js → runChildModule-B16ocpd4.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-CNus5KCH.esm.js → selfieManager-C55Fsp9Q.esm.js} +3 -3
- package/dist/{selfieStateMachine-DCwYz6V1.esm.js → selfieStateMachine-CLqNjiIq.esm.js} +2 -2
- package/dist/{session-f758tX1l.esm.js → session-CSrf0jcz.esm.js} +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{setup-BOSxfmSM.esm.js → setup-NRuFzREQ.esm.js} +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureStateMachine-PoXfqqBQ.esm.js → signatureStateMachine-CB7XiLfo.esm.js} +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +87 -87
- package/dist/workflow.esm.js +27 -27
- package/dist/{xstate.esm-C19_S3_9.esm.js → xstate.esm-7GmmAwg6.esm.js} +1 -1
- package/package.json +3 -3
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-D9pehGyp.js";
|
|
2
2
|
import "./Actor-YjWTo26u.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate890 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: xstate890.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate890.ActorRefFromLogic<xstate890.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate890.EventObject>> | xstate890.ActorRefFromLogic<xstate890.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate890.EventObject>> | undefined;
|
|
200
|
+
}, xstate890.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate890.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate890.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate890.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate890.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate890.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate890.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate890.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate890.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate890.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate890.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate890.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate890.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate890.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate890.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput,
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate890.NonReducibleUnknown, xstate890.EventObject, xstate890.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate890.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate890.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate890.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate890.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate890.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate890.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate890.RequiredActorOptions<T>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate890.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate890.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate890.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate890.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate890.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredActorOptions<T_1>>> : never : never : never)): xstate890.ActorRefFromLogic<xstate890.GetConcreteByKey<xstate890.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate890.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate890.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate890.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate890.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate890.AnyActorLogic>(src: TLogic, ...[options]: xstate890.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate890.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate890.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate890.IsNotNever<xstate890.RequiredLogicInput<TLogic>>>): xstate890.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate890.AnyActorRef | undefined>, xstate890.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate890.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate890.AnyActorRef>, xstate890.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate890.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate890.ActorRef<xstate890.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate890.AnyActorRef>, xstate890.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate376.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate890.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./api-eqRXuVG-.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
|
|
3
3
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
4
|
-
import {
|
|
4
|
+
import { o as createActor, s as createManager } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
5
5
|
import "./cpf-DTvbZfOI.esm.js";
|
|
6
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
6
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-Dw4i2Yyo.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
9
9
|
function createIdOcrActor(options) {
|
package/dist/id.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ import "./types-DJSt3Ovt.js";
|
|
|
7
7
|
import "./types-BA181GDD.js";
|
|
8
8
|
import "./deepsightService-CGSDjjBz.js";
|
|
9
9
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CarMMtoz.js";
|
|
10
|
-
import { A as IdCaptureConfig, B as IdErrorCode, C as IdCaptureMachine, D as DetectionArea, E as CapturedImage, F as IdCaptureInput, G as
|
|
10
|
+
import { A as IdCaptureConfig, B as IdErrorCode, C as IdCaptureMachine, D as DetectionArea, E as CapturedImage, F as IdCaptureInput, G as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, H as RecordingSession, I as IdCaptureMode, J as ManualUploadSide, K as MANUAL_UPLOAD_MAX_RETRIES, L as IdCaptureThresholds, M as IdCaptureDependencies, N as IdCaptureEvent, O as DetectionStatus, P as IdCaptureGeometry, R as IdDocumentType, S as createIdCaptureActor, T as CaptureIdResponse, U as UploadIdResponse, V as IdFlowStep, W as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, X as DetectionOrientation, Y as ManualUploadTab, Z as IdCaptureSettings, _ as uploadIdImage, a as IdCaptureInitResult, b as CreateIdCaptureActorOptions, c as UploadIdImageParams, d as initializeIdCapture, f as preloadIdRecordingProvider, g as stopStream, h as stopRecording, j as IdCaptureContext, k as ID_ERROR_CODES, l as UploadManualIdFileParams, m as startRecordingSession, n as IdCaptureState, o as InitializeIdCaptureParams, p as processId, q as ManualUploadContext, r as createIdCaptureManager, s as StartRecordingParams, t as IdCaptureManager, u as ValidationError, v as uploadManualIdFile, w as idCaptureMachine, x as IdCaptureActor, y as validateUploadResponse, z as IdError } from "./idCaptureManager-C4xBRJNt.js";
|
|
11
11
|
export { CameraStream, CaptureIdResponse, CapturedImage, type CreateIdCaptureActorOptions, DetectionArea, DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, type IdCaptureContext, IdCaptureDependencies, type IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, type IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, ManualUploadContext, ManualUploadSide, ManualUploadTab, PermissionResult, PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -3,10 +3,10 @@ import "./BrowserTimerProvider-BZGH3sYJ.esm.js";
|
|
|
3
3
|
import "./api-eqRXuVG-.esm.js";
|
|
4
4
|
import "./events-Bt1azl2B.esm.js";
|
|
5
5
|
import "./endpoints-B3V1U9Dg.esm.js";
|
|
6
|
-
import "./session-
|
|
6
|
+
import "./session-CSrf0jcz.esm.js";
|
|
7
7
|
import "./IpifyProvider-ByL6JYxg.esm.js";
|
|
8
8
|
import "./browserSimulation-CAH-V_iE.esm.js";
|
|
9
|
-
import "./xstate.esm-
|
|
9
|
+
import "./xstate.esm-7GmmAwg6.esm.js";
|
|
10
10
|
import "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
11
11
|
import "./recordingService-Dc8qrd2u.esm.js";
|
|
12
12
|
import "./deepsightService-gNTXZu7Y.esm.js";
|
|
@@ -19,7 +19,7 @@ import "./platform-Dpzd9p3X.esm.js";
|
|
|
19
19
|
import "./ITimerCapability-2pw-S97e.esm.js";
|
|
20
20
|
import "./backCameraStream-bztcEWzY.esm.js";
|
|
21
21
|
import "./getDeviceClass-BTVS59zg.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-
|
|
23
|
-
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
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-Em0doWas.esm.js";
|
|
23
|
+
import { r as createIdCaptureActor, t as createIdCaptureManager } from "./idCaptureManager-BFE_QfGu.esm.js";
|
|
24
24
|
|
|
25
25
|
export { ID_ERROR_CODES, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, createIdCaptureActor, createIdCaptureManager, idCaptureMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bt1azl2B.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as createActor, s as createManager } from "./xstate.esm-7GmmAwg6.esm.js";
|
|
3
3
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CoUfuy0u.esm.js";
|
|
4
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
4
|
+
import { m as MANUAL_UPLOAD_MAX_RETRIES, t as idCaptureMachine } from "./idCaptureStateMachine-Em0doWas.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/id/idCaptureActor.ts
|
|
7
7
|
function createIdCaptureActor(options) {
|
|
@@ -103,7 +103,7 @@ function getErrorSubtitleKey(errorCode, uploadResponse, currentMode) {
|
|
|
103
103
|
}
|
|
104
104
|
function shouldCaptureBack(context) {
|
|
105
105
|
if (!(context.currentMode === "front" || context.currentMode === "passport")) return false;
|
|
106
|
-
if (context.config.
|
|
106
|
+
if (context.config.onlyBack) return false;
|
|
107
107
|
if (context.config.usSmartCapture && context.currentMode === "front") return false;
|
|
108
108
|
const serverSkipped = context.uploadResponse?.skipBackIdCapture === true;
|
|
109
109
|
const forceBackForNonPassport = context.config.alwaysCaptureBackOfId === true && context.currentMode !== "passport";
|
|
@@ -141,37 +141,39 @@ function mapCaptureState(snapshot, context) {
|
|
|
141
141
|
function isLoadingPhase(snapshot) {
|
|
142
142
|
return snapshot.matches({ capture: "checkingStream" }) || snapshot.matches({ capture: "initializingDeepsight" }) || snapshot.matches({ capture: "initializing" }) || snapshot.matches({ permissions: "idle" });
|
|
143
143
|
}
|
|
144
|
-
function mapManualUploadState(snapshot
|
|
145
|
-
const {
|
|
146
|
-
const
|
|
147
|
-
const
|
|
144
|
+
function mapManualUploadState(snapshot) {
|
|
145
|
+
const { config } = snapshot.context;
|
|
146
|
+
const childSnapshot = snapshot.children["manualIdUpload"]?.getSnapshot();
|
|
147
|
+
const childCtx = childSnapshot?.context;
|
|
148
|
+
const childValue = childSnapshot?.value;
|
|
149
|
+
const phase = childValue === "retriesExhausted" ? "exhausted" : childValue === "uploadingFront" || childValue === "uploadingBack" || childValue === "uploadingPassport" ? "uploading" : "selecting";
|
|
150
|
+
const uploadingSide = childValue === "uploadingFront" ? "front" : childValue === "uploadingBack" ? "back" : childValue === "uploadingPassport" ? "passport" : void 0;
|
|
148
151
|
/**
|
|
149
152
|
* Server told us the document doesn't need a back side (e.g. passport-class
|
|
150
153
|
* docs, single-sided IDs). Treat the back slot as uploaded so the UI shows
|
|
151
154
|
* a green check rather than hiding the slot — matches v1's behavior and
|
|
152
155
|
* keeps both slots visible once the front has been processed.
|
|
153
156
|
*/
|
|
154
|
-
const backUploaded =
|
|
155
|
-
const idTabCanContinue =
|
|
156
|
-
const canContinue =
|
|
157
|
-
const showBackSlot = !config.onlyFront;
|
|
157
|
+
const backUploaded = (childCtx?.backUploaded ?? false) || (childCtx?.skipBackFromServer ?? false);
|
|
158
|
+
const idTabCanContinue = (childCtx?.frontUploaded ?? false) && backUploaded;
|
|
159
|
+
const canContinue = childCtx?.activeTab === "id" ? idTabCanContinue : childCtx?.passportUploaded ?? false;
|
|
158
160
|
return {
|
|
159
161
|
status: "manualUpload",
|
|
160
162
|
phase,
|
|
161
163
|
uploadingSide,
|
|
162
|
-
activeTab:
|
|
164
|
+
activeTab: childCtx?.activeTab ?? "id",
|
|
163
165
|
showIdTab: config.enableId ?? true,
|
|
164
166
|
showPassportTab: config.enablePassport ?? false,
|
|
165
|
-
showBackSlot,
|
|
166
|
-
frontFileName:
|
|
167
|
-
backFileName:
|
|
168
|
-
passportFileName:
|
|
169
|
-
frontUploaded:
|
|
167
|
+
showBackSlot: true,
|
|
168
|
+
frontFileName: childCtx?.frontFile?.name,
|
|
169
|
+
backFileName: childCtx?.backFile?.name,
|
|
170
|
+
passportFileName: childCtx?.passportFile?.name,
|
|
171
|
+
frontUploaded: childCtx?.frontUploaded ?? false,
|
|
170
172
|
backUploaded,
|
|
171
|
-
passportUploaded:
|
|
173
|
+
passportUploaded: childCtx?.passportUploaded ?? false,
|
|
172
174
|
canContinue,
|
|
173
|
-
retriesLeft:
|
|
174
|
-
errorKey:
|
|
175
|
+
retriesLeft: childCtx?.retriesLeft ?? MANUAL_UPLOAD_MAX_RETRIES,
|
|
176
|
+
errorKey: childCtx?.errorMessage ?? null
|
|
175
177
|
};
|
|
176
178
|
}
|
|
177
179
|
function mapState(snapshot) {
|
|
@@ -215,7 +217,7 @@ function mapState(snapshot) {
|
|
|
215
217
|
status: "error",
|
|
216
218
|
error: context.error ?? "Unknown error"
|
|
217
219
|
};
|
|
218
|
-
if (snapshot.matches("manualIdUpload")) return mapManualUploadState(snapshot
|
|
220
|
+
if (snapshot.matches("manualIdUpload")) return mapManualUploadState(snapshot);
|
|
219
221
|
return { status: "idle" };
|
|
220
222
|
}
|
|
221
223
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
@@ -384,7 +386,7 @@ function getCaptureErrorScreen(screens, errorCode) {
|
|
|
384
386
|
}
|
|
385
387
|
function getSuccessScreen(snapshot, screens) {
|
|
386
388
|
const { config } = snapshot.context;
|
|
387
|
-
if (config?.
|
|
389
|
+
if (config?.onlyBack === true || config?.showCaptureButtonInAuto === true) return `${screens.successPrefix}.captureonly`;
|
|
388
390
|
return `${screens.successPrefix}.default`;
|
|
389
391
|
}
|
|
390
392
|
function getCaptureSubstateScreen(snapshot, screens) {
|
|
@@ -154,6 +154,30 @@ interface IIdCaptureCapability extends IMLProviderCapability<IdCaptureConfig$1>
|
|
|
154
154
|
setCapturedCanvases(original: IncodeCanvas, transformed: IncodeCanvas): void;
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
|
+
//#region src/modules/id/manualUpload/types.d.ts
|
|
158
|
+
type ManualUploadTab = 'id' | 'passport';
|
|
159
|
+
type ManualUploadSide = 'front' | 'back' | 'passport';
|
|
160
|
+
type ManualUploadContext = {
|
|
161
|
+
/** Passed from parent machine input — used by guards and actor inputs. */
|
|
162
|
+
onlyFront: boolean;
|
|
163
|
+
isSecondId: boolean;
|
|
164
|
+
frontFile: File | null;
|
|
165
|
+
backFile: File | null;
|
|
166
|
+
passportFile: File | null;
|
|
167
|
+
activeTab: ManualUploadTab;
|
|
168
|
+
retriesLeft: number;
|
|
169
|
+
errorMessage: string | null;
|
|
170
|
+
/** Set from the front upload response; when true the back slot is auto-completed */
|
|
171
|
+
skipBackFromServer: boolean;
|
|
172
|
+
/** Whether each side has been successfully uploaded (for Continue gating) */
|
|
173
|
+
frontUploaded: boolean;
|
|
174
|
+
backUploaded: boolean;
|
|
175
|
+
passportUploaded: boolean;
|
|
176
|
+
};
|
|
177
|
+
declare const MANUAL_UPLOAD_MAX_RETRIES = 3;
|
|
178
|
+
declare const MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES: number;
|
|
179
|
+
declare const MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS = 5000;
|
|
180
|
+
//#endregion
|
|
157
181
|
//#region ../infra/src/capabilities/IAnalyticsCapability.d.ts
|
|
158
182
|
interface IAnalyticsCapability {
|
|
159
183
|
analyzeFrame(image: ImageData): Promise<void>;
|
|
@@ -342,33 +366,7 @@ type IdCaptureContext = {
|
|
|
342
366
|
captureResolution?: string;
|
|
343
367
|
/** Android camera access fallback level that succeeded */
|
|
344
368
|
cameraFallbackLevel?: number;
|
|
345
|
-
/**
|
|
346
|
-
* Manual file-upload flow state. Parallel to the live-camera capture flow;
|
|
347
|
-
* entered via the Chooser's Upload card or auto-routed when manual upload is
|
|
348
|
-
* the only enabled capture mode. Back slot is gated by `config.onlyFront` or
|
|
349
|
-
* by the server returning `skipBackIdCapture: true` on the front response.
|
|
350
|
-
*/
|
|
351
|
-
manualUpload: ManualUploadContext;
|
|
352
|
-
};
|
|
353
|
-
type ManualUploadTab = 'id' | 'passport';
|
|
354
|
-
type ManualUploadSide = 'front' | 'back' | 'passport';
|
|
355
|
-
type ManualUploadContext = {
|
|
356
|
-
frontFile: File | null;
|
|
357
|
-
backFile: File | null;
|
|
358
|
-
passportFile: File | null;
|
|
359
|
-
activeTab: ManualUploadTab;
|
|
360
|
-
retriesLeft: number;
|
|
361
|
-
errorMessage: string | null;
|
|
362
|
-
/** Set from the front upload response; when true the back slot is auto-completed */
|
|
363
|
-
skipBackFromServer: boolean;
|
|
364
|
-
/** Whether each side has been successfully uploaded (for Continue gating) */
|
|
365
|
-
frontUploaded: boolean;
|
|
366
|
-
backUploaded: boolean;
|
|
367
|
-
passportUploaded: boolean;
|
|
368
369
|
};
|
|
369
|
-
declare const MANUAL_UPLOAD_MAX_RETRIES = 3;
|
|
370
|
-
declare const MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES: number;
|
|
371
|
-
declare const MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS = 5000;
|
|
372
370
|
type IdCaptureEvent = {
|
|
373
371
|
type: 'LOAD';
|
|
374
372
|
} | {
|
|
@@ -754,4 +752,4 @@ declare function createIdCaptureManagerFromActor(actor: IdCaptureActor): Manager
|
|
|
754
752
|
};
|
|
755
753
|
type IdCaptureManager = ReturnType<typeof createIdCaptureManager>;
|
|
756
754
|
//#endregion
|
|
757
|
-
export { IdCaptureConfig as A, IdErrorCode as B, IdCaptureMachine as C, DetectionArea as D, CapturedImage as E, IdCaptureInput as F,
|
|
755
|
+
export { IdCaptureConfig as A, IdErrorCode as B, IdCaptureMachine as C, DetectionArea as D, CapturedImage as E, IdCaptureInput as F, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as G, RecordingSession as H, IdCaptureMode as I, ManualUploadSide as J, MANUAL_UPLOAD_MAX_RETRIES as K, IdCaptureThresholds as L, IdCaptureDependencies as M, IdCaptureEvent as N, DetectionStatus as O, IdCaptureGeometry as P, IdDocumentType as R, createIdCaptureActor as S, CaptureIdResponse as T, UploadIdResponse as U, IdFlowStep as V, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as W, DetectionOrientation as X, ManualUploadTab as Y, IdCaptureSettings as Z, uploadIdImage as _, IdCaptureInitResult as a, CreateIdCaptureActorOptions as b, UploadIdImageParams as c, initializeIdCapture as d, preloadIdRecordingProvider as f, stopStream as g, stopRecording as h, createIdCaptureManagerFromActor as i, IdCaptureContext as j, ID_ERROR_CODES as k, UploadManualIdFileParams as l, startRecordingSession as m, IdCaptureState as n, InitializeIdCaptureParams as o, processId as p, ManualUploadContext as q, createIdCaptureManager as r, StartRecordingParams as s, IdCaptureManager as t, ValidationError as u, uploadManualIdFile as v, idCaptureMachine as w, IdCaptureActor as x, validateUploadResponse as y, IdError as z };
|