@incodetech/core 0.0.0-dev-20260617-fa604a34 → 0.0.0-dev-20260618-d9dafee1
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/{Manager-Dsj-sPxS.d.ts → Manager-B2OEDYqf.d.ts} +4 -1
- package/dist/{StreamCanvasCapture-CDN2Apbm.d.ts → StreamCanvasCapture-uQFmjDCE.d.ts} +1 -1
- package/dist/{addressSearch-Byq4gwCN.esm.js → addressSearch-BV0_T7NT.esm.js} +1 -1
- package/dist/{ae-signature-C8mNUYSC.esm.js → ae-signature-DtMxM9hp.esm.js} +1 -1
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +4 -4
- package/dist/antifraud.d.ts +2 -2
- package/dist/antifraud.esm.js +4 -4
- package/dist/{antifraudManager-DbrsuESv.d.ts → antifraudManager-B7WQTIdu.d.ts} +1 -1
- package/dist/{antifraudManager-By70WUpS.esm.js → antifraudManager-e8wx0Nao.esm.js} +3 -3
- package/dist/{antifraudStateMachine-DPs0Knyq.esm.js → antifraudStateMachine-TpOb33Fe.esm.js} +1 -1
- package/dist/authentication.d.ts +10 -11
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-DVgli_vD.esm.js → authenticationManager-BG6QpPct.esm.js} +4 -4
- package/dist/{authenticationManager-DnOZ0hIZ.d.ts → authenticationManager-DJzD_n6Z.d.ts} +2 -2
- package/dist/{authenticationStateMachine-PtGChFaq.esm.js → authenticationStateMachine-BESir35o.esm.js} +2 -2
- package/dist/camera.d.ts +1 -1
- package/dist/certificate-issuance.d.ts +29 -29
- package/dist/certificate-issuance.esm.js +3 -3
- package/dist/{certificateIssuanceStateMachine-bhWVYKYV.esm.js → certificateIssuanceStateMachine-DZng9Ecy.esm.js} +1 -1
- package/dist/consent.d.ts +2 -2
- package/dist/consent.esm.js +4 -4
- package/dist/{consentManager-ChvHt6T_.esm.js → consentManager-iFzpsbOt.esm.js} +3 -3
- package/dist/{consentManager-cE63xwe9.d.ts → consentManager-w-Pzea9a.d.ts} +51 -51
- package/dist/{consentStateMachine-CWypW8J8.esm.js → consentStateMachine-BzCJuC_B.esm.js} +1 -1
- package/dist/cpf-ocr.d.ts +2 -2
- package/dist/cpf-ocr.esm.js +3 -3
- package/dist/{cpfOcrManager-B52QLxQV.esm.js → cpfOcrManager-Dv38oWFh.esm.js} +2 -2
- package/dist/{cpfOcrManager-CSHxQ2mP.d.ts → cpfOcrManager-VlvIgvq3.d.ts} +18 -18
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +2 -2
- package/dist/curp-validation.d.ts +6 -6
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{curpValidationManager-De6xoNE4.esm.js → curpValidationManager-CuhOOoJt.esm.js} +3 -3
- package/dist/{curpValidationManager-Cmv2orSI.d.ts → curpValidationManager-DTyay4MR.d.ts} +2 -2
- package/dist/{curpValidationStateMachine-Cx2u6xYU.esm.js → curpValidationStateMachine-DDbow5vN.esm.js} +1 -1
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +2 -2
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +3 -3
- package/dist/{customWatchlistStateMachine-EkXjc819.esm.js → customWatchlistStateMachine-B9CiUBXQ.esm.js} +1 -1
- package/dist/document-capture.d.ts +173 -173
- package/dist/document-capture.esm.js +3 -3
- package/dist/document-upload.d.ts +43 -43
- package/dist/document-upload.esm.js +2 -2
- package/dist/{documentCaptureStateMachine-BBEoBbLb.esm.js → documentCaptureStateMachine-Q9bBy9DC.esm.js} +1 -1
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +3 -3
- package/dist/{dynamicFormsStateMachine-p7MuNqYk.esm.js → dynamicFormsStateMachine-CGYQ4AuA.esm.js} +1 -1
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +6 -6
- package/dist/{ekybStateMachine-DbF6m-o5.esm.js → ekybStateMachine-aIAMdazc.esm.js} +3 -3
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +4 -4
- package/dist/{ekycStateMachine-BqzVRrZz.esm.js → ekycStateMachine-k_LoP04D.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +2 -2
- package/dist/electronic-signature.esm.js +3 -3
- package/dist/{electronicSignatureManager-Db9SeoGj.esm.js → electronicSignatureManager-DxmlKk00.esm.js} +2 -2
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +4 -4
- package/dist/{emailManager-DbZkzbPP.d.ts → emailManager-C6D2u4mQ.d.ts} +2 -2
- package/dist/{emailManager-DfgCL3O0.esm.js → emailManager-kjLOoN7a.esm.js} +3 -3
- package/dist/{emailStateMachine-DWzBDO0i.esm.js → emailStateMachine-DfPAsxyZ.esm.js} +1 -1
- package/dist/{events-CmarQoum.esm.js → events-BduWcqZW.esm.js} +4 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +23 -24
- package/dist/extensibility.esm.js +29 -29
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-ByC4Qa8y.esm.js → faceCaptureManagerFactory-Deh9tYoN.esm.js} +77 -3
- package/dist/{faceCaptureManagerFactory-B2Vhybvk.d.ts → faceCaptureManagerFactory-Dk07aXxd.d.ts} +6 -7
- package/dist/{faceCaptureSetup-D3yv2HY3.esm.js → faceCaptureSetup-DOp6N3Ay.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-BzP_cdwX.esm.js → faceMatchStateMachine-BCD9yFJ0.esm.js} +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +3 -3
- package/dist/{fieldComparisonManager-m1j9K66T.esm.js → fieldComparisonManager-BIDAZhu2.esm.js} +2 -2
- package/dist/{fieldComparisonManager-6YiDreZW.d.ts → fieldComparisonManager-BXc6-DJv.d.ts} +1 -1
- package/dist/fiscal-qr.d.ts +3 -3
- package/dist/fiscal-qr.esm.js +2 -2
- package/dist/flow-events.d.ts +6 -6
- package/dist/flow.d.ts +10 -11
- package/dist/flow.esm.js +5 -5
- package/dist/{flowServices-C7HcBaa_.esm.js → flowServices-C9uTMUi8.esm.js} +1 -1
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +3 -3
- package/dist/{geolocationStateMachine-BRas1Frw.esm.js → geolocationStateMachine-DJ_yBwCh.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +3 -3
- package/dist/{governmentValidationStateMachine-CC_MEsWI.esm.js → governmentValidationStateMachine-lursh2_g.esm.js} +1 -1
- package/dist/home.d.ts +15 -15
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +53 -53
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-verification.d.ts +26 -26
- package/dist/id-verification.esm.js +3 -3
- package/dist/id.d.ts +9 -10
- package/dist/id.esm.js +6 -6
- package/dist/{idCaptureManager-CV3Tioi4.d.ts → idCaptureManager-B7x78-3Q.d.ts} +6 -7
- package/dist/{idCaptureManager-DC2MKXTp.esm.js → idCaptureManager-DuOiBzKA.esm.js} +74 -4
- package/dist/{idCaptureStateMachine-DCPJsUoA.esm.js → idCaptureStateMachine-D6nAb9_Q.esm.js} +3 -3
- package/dist/{idOcrStateMachine-DBR2PV3V.esm.js → idOcrStateMachine-B87ZFbXw.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-9pEdKmP9.esm.js → idVerificationStateMachine-Cy8Xvej2.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +4 -4
- package/dist/{identityReuseManager-CqBkUE4l.esm.js → identityReuseManager-D65fB0Iq.esm.js} +3 -3
- package/dist/{identityReuseManager--nye4ua6.d.ts → identityReuseManager-Dp3giL8s.d.ts} +32 -32
- package/dist/{identityReuseStateMachine-Mhf3pwuo.esm.js → identityReuseStateMachine-ChepCGW0.esm.js} +1 -1
- package/dist/{index-_hmx1U1v.d.ts → index-3aS-pBij.d.ts} +169 -169
- package/dist/{index-DCwyzc5q.d.ts → index-cIuvyWMa.d.ts} +2 -2
- package/dist/index.esm.js +3 -3
- package/dist/{invokeOnCaptureCallback-BlFdnfoh.esm.js → invokeOnCaptureCallback-B152xbgv.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +6 -6
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/{mandatoryConsentManager-Qub7zBH8.esm.js → mandatoryConsentManager-B60hUyNX.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-D-RFkbxT.d.ts → mandatoryConsentManager-DIE3Mi0A.d.ts} +52 -52
- package/dist/{mandatoryConsentStateMachine-OCd0A55c.esm.js → mandatoryConsentStateMachine-DFSHgVwh.esm.js} +1 -1
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +4 -4
- package/dist/{phoneManager-ApM3CWwR.esm.js → phoneManager-Bv6zNVMy.esm.js} +3 -3
- package/dist/{phoneManager-h6NgdQCA.d.ts → phoneManager-TSq1Ief6.d.ts} +2 -2
- package/dist/{phoneStateMachine-Nn0ifgsM.esm.js → phoneStateMachine-DA9XcHqe.esm.js} +1 -1
- package/dist/{qe-signature-D6-Qpyfo.esm.js → qe-signature-Cr3h13pK.esm.js} +1 -1
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +4 -4
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/{redirectToMobileManager-Bw0Dew2v.esm.js → redirectToMobileManager-1eG2CuwM.esm.js} +3 -3
- package/dist/{redirectToMobileManager-DYv4-nNn.d.ts → redirectToMobileManager-yOHAmwg-.d.ts} +1 -1
- package/dist/{redirectToMobileStateMachine-60oeuo-V.esm.js → redirectToMobileStateMachine-BjcIvJuk.esm.js} +1 -1
- package/dist/{runChildModule-BGecSlg0.esm.js → runChildModule-YdxACVvJ.esm.js} +2 -2
- package/dist/selfie.d.ts +10 -11
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieManager-DgUgks9i.esm.js → selfieManager-1C0NFNWn.esm.js} +4 -4
- package/dist/{selfieManager-BjwgTTSs.d.ts → selfieManager-DKRhOzTT.d.ts} +2 -2
- package/dist/{selfieStateMachine-YDCX3Ew4.esm.js → selfieStateMachine-BJkorR40.esm.js} +2 -2
- package/dist/session.d.ts +5 -5
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-BdIIOUQ4.esm.js → sessionInitializer-CIkApP22.esm.js} +2 -2
- package/dist/{setup-D8uQKgEi.esm.js → setup-zGuTg-AF.esm.js} +2 -2
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +3 -3
- package/dist/{signatureStateMachine-BTkVm04g.esm.js → signatureStateMachine-oNUxM1jx.esm.js} +1 -1
- package/dist/trust-graph.d.ts +1 -1
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-Dv-9WPJX.d.ts → types-D8y52YD5.d.ts} +2 -2
- package/dist/{types-Z9wv19v2.d.ts → types-DR2YKE_o.d.ts} +1 -1
- package/dist/{types-Cjx73NNd.d.ts → types-DpTWgfKY.d.ts} +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +3 -3
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +3 -3
- package/dist/{watchlistForBusinessStateMachine-fEpRdtnj.esm.js → watchlistForBusinessStateMachine-CKK3f8Ds.esm.js} +1 -1
- package/dist/{watchlistStateMachine-C92XRtlP.esm.js → watchlistStateMachine-DQuauaAh.esm.js} +1 -1
- package/dist/workflow.d.ts +148 -149
- package/dist/workflow.esm.js +35 -35
- package/dist/{xstate.esm-CbU9dpcC.esm.js → xstate.esm-BwZUki12.esm.js} +4 -4
- package/package.json +1 -1
- package/dist/StateMachine-BIfEYukU.d.ts +0 -2
- /package/dist/{camera-biGPWlmx.d.ts → camera-D0c7ez3w.d.ts} +0 -0
- /package/dist/{deepsightService-DpHuyW3G.d.ts → deepsightService-C7MMvEiJ.d.ts} +0 -0
- /package/dist/{flowCompletionService-BAFssHBk.d.ts → flowCompletionService-DSPt5J5M.d.ts} +0 -0
- /package/dist/{otp-BwLdGT6f.d.ts → otp-BHJnjEEc.d.ts} +0 -0
- /package/dist/{types-DYZja-k9.d.ts → types-C1ixFPzO.d.ts} +0 -0
- /package/dist/{types-D3dxOdyZ.d.ts → types-F0IXbaCB.d.ts} +0 -0
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate408 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: xstate408.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate408.ActorRefFromLogic<xstate408.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate408.EventObject>> | xstate408.ActorRefFromLogic<xstate408.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate408.EventObject>> | undefined;
|
|
200
|
+
}, xstate408.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate408.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate408.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate408.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate408.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate408.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate408.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate408.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate408.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate408.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate408.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate408.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate408.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate408.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate408.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate408.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput,
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate408.NonReducibleUnknown, xstate408.EventObject, xstate408.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate408.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate408.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate408.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate408.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate408.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate408.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate408.RequiredActorOptions<T>]: unknown }) | undefined], xstate408.IsNotNever<xstate408.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate408.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate408.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate408.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate408.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate408.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate408.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate408.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate408.IsNotNever<xstate408.RequiredActorOptions<T_1>>> : never : never : never)): xstate408.ActorRefFromLogic<xstate408.GetConcreteByKey<xstate408.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate408.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate408.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate408.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate408.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate408.AnyActorLogic>(src: TLogic, ...[options]: xstate408.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate408.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate408.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate408.IsNotNever<xstate408.RequiredLogicInput<TLogic>>>): xstate408.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate408.ActorRef<xstate408.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate408.AnyActorRef | undefined>, xstate408.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate408.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate408.ActorRef<xstate408.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate408.AnyActorRef>, xstate408.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate408.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate408.ActorRef<xstate408.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate408.AnyActorRef>, xstate408.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate1041.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate408.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-DUZwyz0o.esm.js";
|
|
2
|
-
import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-BduWcqZW.esm.js";
|
|
3
3
|
import "./endpoints-B2t80MAM.esm.js";
|
|
4
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
4
|
+
import { c as createManager, s as createActor } from "./xstate.esm-BwZUki12.esm.js";
|
|
5
5
|
import "./cpf-xBg-DFNn.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-B87ZFbXw.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
9
9
|
function createIdOcrActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { t as Manager } from "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate369 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: xstate369.StateMachine<IdVerificationContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "CONTINUE";
|
|
39
39
|
}, {
|
|
40
|
-
[x: string]:
|
|
40
|
+
[x: string]: xstate369.ActorRefFromLogic<xstate369.PromiseActorLogic<ProcessIdResponse, {
|
|
41
41
|
isSecondId: boolean;
|
|
42
42
|
queueName: string;
|
|
43
|
-
},
|
|
43
|
+
}, xstate369.EventObject>> | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
src: "processId";
|
|
46
|
-
logic:
|
|
46
|
+
logic: xstate369.PromiseActorLogic<ProcessIdResponse, {
|
|
47
47
|
isSecondId: boolean;
|
|
48
48
|
queueName: string;
|
|
49
|
-
},
|
|
49
|
+
}, xstate369.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, xstate369.NonReducibleUnknown, xstate369.EventObject, xstate369.MetaObject, {
|
|
55
55
|
readonly id: "idVerification";
|
|
56
56
|
readonly initial: "idle";
|
|
57
57
|
readonly context: ({
|
|
@@ -60,50 +60,50 @@ declare const idVerificationMachine: xstate1002.StateMachine<IdVerificationConte
|
|
|
60
60
|
spawn: {
|
|
61
61
|
<TSrc extends "processId">(logic: TSrc, ...[options]: {
|
|
62
62
|
src: "processId";
|
|
63
|
-
logic:
|
|
63
|
+
logic: xstate369.PromiseActorLogic<ProcessIdResponse, {
|
|
64
64
|
isSecondId: boolean;
|
|
65
65
|
queueName: string;
|
|
66
|
-
},
|
|
66
|
+
}, xstate369.EventObject>;
|
|
67
67
|
id: string | undefined;
|
|
68
68
|
} extends infer T ? T extends {
|
|
69
69
|
src: "processId";
|
|
70
|
-
logic:
|
|
70
|
+
logic: xstate369.PromiseActorLogic<ProcessIdResponse, {
|
|
71
71
|
isSecondId: boolean;
|
|
72
72
|
queueName: string;
|
|
73
|
-
},
|
|
73
|
+
}, xstate369.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} ? T extends {
|
|
76
76
|
src: TSrc;
|
|
77
|
-
} ?
|
|
77
|
+
} ? xstate369.ConditionalRequired<[options?: ({
|
|
78
78
|
id?: T["id"] | undefined;
|
|
79
79
|
systemId?: string;
|
|
80
|
-
input?:
|
|
80
|
+
input?: xstate369.InputFrom<T["logic"]> | undefined;
|
|
81
81
|
syncSnapshot?: boolean;
|
|
82
|
-
} & { [K in
|
|
82
|
+
} & { [K in xstate369.RequiredActorOptions<T>]: unknown }) | undefined], xstate369.IsNotNever<xstate369.RequiredActorOptions<T>>> : never : never : never): xstate369.ActorRefFromLogic<xstate369.GetConcreteByKey<{
|
|
83
83
|
src: "processId";
|
|
84
|
-
logic:
|
|
84
|
+
logic: xstate369.PromiseActorLogic<ProcessIdResponse, {
|
|
85
85
|
isSecondId: boolean;
|
|
86
86
|
queueName: string;
|
|
87
|
-
},
|
|
87
|
+
}, xstate369.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
}, "src", TSrc>["logic"]>;
|
|
90
|
-
<TLogic extends
|
|
90
|
+
<TLogic extends xstate369.AnyActorLogic>(src: TLogic, ...[options]: xstate369.ConditionalRequired<[options?: ({
|
|
91
91
|
id?: never;
|
|
92
92
|
systemId?: string;
|
|
93
|
-
input?:
|
|
93
|
+
input?: xstate369.InputFrom<TLogic> | undefined;
|
|
94
94
|
syncSnapshot?: boolean;
|
|
95
|
-
} & { [K in
|
|
95
|
+
} & { [K in xstate369.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate369.IsNotNever<xstate369.RequiredLogicInput<TLogic>>>): xstate369.ActorRefFromLogic<TLogic>;
|
|
96
96
|
};
|
|
97
97
|
input: IdVerificationInput;
|
|
98
|
-
self:
|
|
98
|
+
self: xstate369.ActorRef<xstate369.MachineSnapshot<IdVerificationContext, {
|
|
99
99
|
type: "LOAD";
|
|
100
100
|
} | {
|
|
101
101
|
type: "CONTINUE";
|
|
102
|
-
}, Record<string,
|
|
102
|
+
}, Record<string, xstate369.AnyActorRef | undefined>, xstate369.StateValue, string, unknown, any, any>, {
|
|
103
103
|
type: "LOAD";
|
|
104
104
|
} | {
|
|
105
105
|
type: "CONTINUE";
|
|
106
|
-
},
|
|
106
|
+
}, xstate369.AnyEventObject>;
|
|
107
107
|
}) => {
|
|
108
108
|
config: IdVerificationConfig;
|
|
109
109
|
isSecondId: boolean;
|
|
@@ -127,15 +127,15 @@ declare const idVerificationMachine: xstate1002.StateMachine<IdVerificationConte
|
|
|
127
127
|
} | {
|
|
128
128
|
type: "CONTINUE";
|
|
129
129
|
};
|
|
130
|
-
self:
|
|
130
|
+
self: xstate369.ActorRef<xstate369.MachineSnapshot<IdVerificationContext, {
|
|
131
131
|
type: "LOAD";
|
|
132
132
|
} | {
|
|
133
133
|
type: "CONTINUE";
|
|
134
|
-
}, Record<string,
|
|
134
|
+
}, Record<string, xstate369.AnyActorRef>, xstate369.StateValue, string, unknown, any, any>, {
|
|
135
135
|
type: "LOAD";
|
|
136
136
|
} | {
|
|
137
137
|
type: "CONTINUE";
|
|
138
|
-
},
|
|
138
|
+
}, xstate369.AnyEventObject>;
|
|
139
139
|
}) => {
|
|
140
140
|
isSecondId: boolean;
|
|
141
141
|
queueName: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./api-DUZwyz0o.esm.js";
|
|
2
|
-
import { s as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { s as createManagerInstrumentation } from "./events-BduWcqZW.esm.js";
|
|
3
3
|
import "./endpoints-B2t80MAM.esm.js";
|
|
4
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
5
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
4
|
+
import { c as createManager, s as createActor } from "./xstate.esm-BwZUki12.esm.js";
|
|
5
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-Cy8Xvej2.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
8
8
|
function createIdVerificationActor(options) {
|
package/dist/id.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "./warmup--6HA3yUR.js";
|
|
2
|
-
import "./Manager-
|
|
2
|
+
import "./Manager-B2OEDYqf.js";
|
|
3
3
|
import "./Actor-fIPLXfoi.js";
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
11
|
-
import "./
|
|
12
|
-
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-CV3Tioi4.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-D0c7ez3w.js";
|
|
5
|
+
import "./types-DR2YKE_o.js";
|
|
6
|
+
import "./types-C1ixFPzO.js";
|
|
7
|
+
import "./types-D8y52YD5.js";
|
|
8
|
+
import "./deepsightService-C7MMvEiJ.js";
|
|
9
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-F0IXbaCB.js";
|
|
10
|
+
import "./StreamCanvasCapture-uQFmjDCE.js";
|
|
11
|
+
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-B7x78-3Q.js";
|
|
13
12
|
|
|
14
13
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
15
14
|
type IdCaptureOnlyManager = IdCaptureManager;
|
package/dist/id.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./WasmUtilProvider-CAZ4AD98.esm.js";
|
|
2
2
|
import "./BrowserTimerProvider-BVgutW_b.esm.js";
|
|
3
3
|
import "./api-DUZwyz0o.esm.js";
|
|
4
|
-
import { n as eventModuleNames } from "./events-
|
|
4
|
+
import { n as eventModuleNames } from "./events-BduWcqZW.esm.js";
|
|
5
5
|
import "./endpoints-B2t80MAM.esm.js";
|
|
6
6
|
import "./stats-32mOt6D8.esm.js";
|
|
7
7
|
import "./IpifyProvider-oZf7Ke1O.esm.js";
|
|
8
8
|
import "./browserSimulation-CGjpdNA1.esm.js";
|
|
9
|
-
import "./sessionInitializer-
|
|
9
|
+
import "./sessionInitializer-CIkApP22.esm.js";
|
|
10
10
|
import "./platform-BfoqeM61.esm.js";
|
|
11
11
|
import "./getBrowser-Dv8LZyHE.esm.js";
|
|
12
|
-
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-
|
|
12
|
+
import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-BwZUki12.esm.js";
|
|
13
13
|
import "./apiError-D-GTvFrH.esm.js";
|
|
14
14
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-CGCKial0.esm.js";
|
|
15
15
|
import "./MotionSensorProvider-C9fPAJdS.esm.js";
|
|
@@ -26,9 +26,9 @@ import "./types-BdVOWGGW.esm.js";
|
|
|
26
26
|
import "./StreamCanvasCapture-Dr5n_iK1.esm.js";
|
|
27
27
|
import "./permissionGuards-MDEdZAXO.esm.js";
|
|
28
28
|
import "./session-Da435G0o.esm.js";
|
|
29
|
-
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-
|
|
30
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
31
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
29
|
+
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-D6nAb9_Q.esm.js";
|
|
30
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DuOiBzKA.esm.js";
|
|
31
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B152xbgv.esm.js";
|
|
32
32
|
|
|
33
33
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
34
34
|
function buildSubImage(canvas) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
1
|
+
import { n as AnyStateMachine, r as StateMachine, t as Manager } from "./Manager-B2OEDYqf.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-fIPLXfoi.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-CDN2Apbm.js";
|
|
3
|
+
import { t as CameraStream } from "./camera-D0c7ez3w.js";
|
|
4
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-D8y52YD5.js";
|
|
5
|
+
import { a as IMLProviderCapability, c as IRecordingCapability, l as RecordingConnection, o as MLProviderConfig, s as IStorageCapability, t as DeepsightService } from "./deepsightService-C7MMvEiJ.js";
|
|
6
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-F0IXbaCB.js";
|
|
7
|
+
import { n as IncodeCanvas, t as StreamCanvasCapture } from "./StreamCanvasCapture-uQFmjDCE.js";
|
|
9
8
|
|
|
10
9
|
//#region ../infra/src/capabilities/IIdCaptureCapability.d.ts
|
|
11
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { c as createManager, s as createActor } from "./xstate.esm-
|
|
1
|
+
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-BduWcqZW.esm.js";
|
|
2
|
+
import { c as createManager, s as createActor } from "./xstate.esm-BwZUki12.esm.js";
|
|
3
3
|
import { n as setWasmDsFlagSync, t as BrowserStorageProvider } from "./BrowserStorageProvider-CGCKial0.esm.js";
|
|
4
4
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BApXq7a0.esm.js";
|
|
5
|
-
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
5
|
+
import { g as mapDigitalIdScreenName, n as mapIdManualUploadScreenName, t as idCaptureMachine } from "./idCaptureStateMachine-D6nAb9_Q.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/idCapture/idCaptureManagerFactory.ts
|
|
8
8
|
function getPermissionStatus(snapshot) {
|
|
@@ -546,10 +546,79 @@ function getIdCaptureScreenName(snapshot) {
|
|
|
546
546
|
function mapIdCaptureScreenName(snapshot) {
|
|
547
547
|
return getIdCaptureScreenName(snapshot);
|
|
548
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
* Figma-aligned, machine-stable reason token per upload error code. Mirrors the
|
|
551
|
+
* leaf used by `getCaptureErrorScreen` (e.g. `GLARE_DETECTED` → `glare`) so the
|
|
552
|
+
* `errorTriggered` payload, the error name and the screen name stay in sync
|
|
553
|
+
* with the ID Capture Figma "Capture front/back errors" frames.
|
|
554
|
+
*/
|
|
555
|
+
const ID_UPLOAD_ERROR_REASON = {
|
|
556
|
+
WRONG_DOCUMENT_SIDE: "wrongSide",
|
|
557
|
+
GLARE_DETECTED: "glare",
|
|
558
|
+
LOW_SHARPNESS: "blur",
|
|
559
|
+
READABILITY_ISSUE: "notReadable",
|
|
560
|
+
ID_TYPE_UNACCEPTABLE: "notAccepted",
|
|
561
|
+
CLASSIFICATION_FAILED: "notAccepted",
|
|
562
|
+
RETRY_EXHAUSTED_CONTINUE_TO_BACK: "failedExhausted",
|
|
563
|
+
RETRY_EXHAUSTED_SKIP_BACK: "failedExhausted",
|
|
564
|
+
NO_MORE_TRIES: "failedExhausted",
|
|
565
|
+
NO_TOKEN: "noConnection",
|
|
566
|
+
SERVER_ERROR: "noConnection",
|
|
567
|
+
UPLOAD_ERROR: "failed",
|
|
568
|
+
UNEXPECTED_ERROR: "failed",
|
|
569
|
+
PERMISSION_DENIED: "failed",
|
|
570
|
+
USER_CANCELLED: "failed"
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Reports whether the given `capture` substate is active in a raw XState value
|
|
574
|
+
* without needing a live snapshot (so it works on the plain objects used in
|
|
575
|
+
* tests). Robust to parallel states (checks membership rather than the first
|
|
576
|
+
* key).
|
|
577
|
+
*/
|
|
578
|
+
function isIdCaptureSubstateActive(value, name) {
|
|
579
|
+
if (typeof value !== "object" || value === null) return false;
|
|
580
|
+
const capture = value.capture;
|
|
581
|
+
if (typeof capture === "string") return capture === name;
|
|
582
|
+
if (typeof capture === "object" && capture !== null) return name in capture;
|
|
583
|
+
return false;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Figma-aligned error name for every ID Capture error state. Returned without
|
|
587
|
+
* the module prefix — the instrumentation adapter prepends `idCapture.` to
|
|
588
|
+
* produce e.g. `idCapture.error.glare`. Returning `undefined` means "not an
|
|
589
|
+
* error state", which suppresses `errorTriggered`.
|
|
590
|
+
*
|
|
591
|
+
* Covers: recoverable capture/upload errors (`capture.uploadError`, including
|
|
592
|
+
* the `noConnection` network path via `SERVER_ERROR`/`NO_TOKEN`), the
|
|
593
|
+
* document-expired flows (`expired`/`expiredExhausted`), and the fatal
|
|
594
|
+
* top-level `error` state.
|
|
595
|
+
*/
|
|
596
|
+
function getIdCaptureErrorName(snapshot) {
|
|
597
|
+
const topLevel = topLevelStateName(snapshot.value);
|
|
598
|
+
if (topLevel === void 0) return void 0;
|
|
599
|
+
switch (topLevel) {
|
|
600
|
+
case "error": return "error.unknown";
|
|
601
|
+
case "expired": return "error.expired";
|
|
602
|
+
case "expiredExhausted": return "error.expiredExhausted";
|
|
603
|
+
case "capture": {
|
|
604
|
+
if (!isIdCaptureSubstateActive(snapshot.value, "uploadError")) return;
|
|
605
|
+
const code = snapshot.context.uploadError;
|
|
606
|
+
return `error.${code ? ID_UPLOAD_ERROR_REASON[code] : "failed"}`;
|
|
607
|
+
}
|
|
608
|
+
default: return;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
549
611
|
function getIdCaptureErrorPayload(snapshot) {
|
|
612
|
+
const topLevel = topLevelStateName(snapshot.value);
|
|
613
|
+
if (topLevel === "expired") return { reason: "documentExpired" };
|
|
614
|
+
if (topLevel === "expiredExhausted") return { reason: "documentExpiredExhausted" };
|
|
615
|
+
if (topLevel === "error") return { reason: "fatal" };
|
|
550
616
|
const errorCode = snapshot.context.uploadError;
|
|
551
617
|
if (errorCode === void 0) return;
|
|
552
|
-
return {
|
|
618
|
+
return {
|
|
619
|
+
errorCode,
|
|
620
|
+
reason: ID_UPLOAD_ERROR_REASON[errorCode] ?? "failed"
|
|
621
|
+
};
|
|
553
622
|
}
|
|
554
623
|
/**
|
|
555
624
|
* Builds the public ID capture manager from an already-created actor.
|
|
@@ -567,6 +636,7 @@ function createIdCaptureManagerFromActor(actor) {
|
|
|
567
636
|
createApi,
|
|
568
637
|
instrumentation: createManagerInstrumentation(eventModuleNames.idCapture, {
|
|
569
638
|
getEventScreenName: mapIdCaptureScreenName,
|
|
639
|
+
getErrorName: getIdCaptureErrorName,
|
|
570
640
|
getErrorPayload: getIdCaptureErrorPayload
|
|
571
641
|
})
|
|
572
642
|
});
|
package/dist/{idCaptureStateMachine-DCPJsUoA.esm.js → idCaptureStateMachine-D6nAb9_Q.esm.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { d as IdCaptureModelType, i as mlWasmJSApi_default, n as BaseWasmProvider, u as WasmPipelineType } from "./WasmUtilProvider-CAZ4AD98.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BVgutW_b.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-DUZwyz0o.esm.js";
|
|
4
|
-
import { C as revokeObjectURL } from "./events-
|
|
4
|
+
import { C as revokeObjectURL } from "./events-BduWcqZW.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-32mOt6D8.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-CIkApP22.esm.js";
|
|
8
8
|
import { n as isDesktop } from "./platform-BfoqeM61.esm.js";
|
|
9
|
-
import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-
|
|
9
|
+
import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-BwZUki12.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BApXq7a0.esm.js";
|
|
11
11
|
import { _ as startRecording, g as createRecordingSession, i as flagIdManualReview, n as preloadOpenViduProvider, v as stopRecording$1, y as StreamCanvasProcessingSession } from "./recordingService-D6wX1gjP.esm.js";
|
|
12
12
|
import { t as IncodeCanvas } from "./canvas-7uX2izHb.esm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-DUZwyz0o.esm.js";
|
|
2
|
-
import { S as getTimestamp } from "./events-
|
|
2
|
+
import { S as getTimestamp } from "./events-BduWcqZW.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-B2t80MAM.esm.js";
|
|
4
|
-
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-
|
|
4
|
+
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-BwZUki12.esm.js";
|
|
5
5
|
import { t as validateCPF } from "./cpf-xBg-DFNn.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region ../infra/src/providers/browser/DateFormattingProvider.ts
|