@incodetech/core 0.0.0-dev-20260716-5050af5d → 0.0.0-dev-20260716-ab304429
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/authentication.esm.js +2 -2
- package/dist/{authenticationManager-hbFeWTah.esm.js → authenticationManager-C6A_gEhH.esm.js} +2 -2
- package/dist/{authenticationStateMachine-BvaI9u5k.esm.js → authenticationStateMachine-MnSqXh8s.esm.js} +2 -2
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DRye5wCj.d.ts → cpfOcrManager-CQkUAeWO.d.ts} +5 -5
- package/dist/{deepsightLoader-Cw7akhz-.esm.js → deepsightLoader-Dnd7Rajk.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-upload.d.ts +8 -8
- package/dist/{documentCaptureManager-zMtVz5_U.d.ts → documentCaptureManager-DBqK5ner.d.ts} +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-B-YDjrD3.esm.js → ekybManager-DbK688m-.esm.js} +1 -1
- package/dist/{ekybStateMachine-DgvXRzv4.esm.js → ekybStateMachine-BmvMrUpO.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +6 -6
- package/dist/{faceCaptureManagerFactory-Cq78g5Tm.esm.js → faceCaptureManagerFactory-BkuqYPE9.esm.js} +1 -1
- package/dist/{faceCaptureSetup-80H-Ypj3.esm.js → faceCaptureSetup-CJo_MFLc.esm.js} +2 -2
- package/dist/flow.esm.js +1 -1
- package/dist/{flowServices-B_vQAdNr.esm.js → flowServices-DtiBvqZ6.esm.js} +2 -2
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Bu2d3Faa.esm.js → idCaptureManager-BFMN4aac.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-B8SEdOB3.esm.js → idCaptureStateMachine-DSVttQgS.esm.js} +5 -5
- package/dist/{idOcrManager-Bi80MQR4.d.ts → idOcrManager-vXa7GdRh.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-aTyLyYrr.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{onDeviceFaceResults-DtFYhiCI.esm.js → onDeviceFaceResults-Dtx5mUa3.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/qe-signature.d.ts +2 -1
- package/dist/{recordingService-CRkr18oy.esm.js → recordingService-CCavy7bJ.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DW2UOX6K.esm.js → selfieManager-BZFO5-P9.esm.js} +2 -2
- package/dist/{selfieStateMachine-UkyBCYne.esm.js → selfieStateMachine-DjaHbMKZ.esm.js} +2 -2
- package/dist/session-BadmZmbK.esm.js +1 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-CSKqpdKw.esm.js → sessionInitializer-D3TaaDyZ.esm.js} +1 -1
- package/dist/{setup-DoygBzUq.esm.js → setup-Bdtm4xAl.esm.js} +1 -1
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +119 -57
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +5 -5
- package/package.json +3 -3
- package/dist/session-CrhnsgB6.esm.js +0 -1
- /package/dist/{index-CKbmDFNq.d.ts → electronicSignatureManager-CKbmDFNq.d.ts} +0 -0
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./
|
|
2
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
|
|
3
3
|
//#region src/modules/ae-signature/index.d.ts
|
|
4
4
|
type AeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
5
5
|
declare function createAeSignatureManager(options: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-C6A_gEhH.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-hbFeWTah.esm.js → authenticationManager-C6A_gEhH.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
|
3
3
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
4
4
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
9
9
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
10
10
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
package/dist/cpf-ocr.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-
|
|
1
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, o as cpfOcrMachine, r as createCpfOcrManager, t as CpfOcrManager } from "./cpfOcrManager-CQkUAeWO.js";
|
|
2
2
|
//#region src/modules/cpf-ocr/cpfOcrUtils.d.ts
|
|
3
3
|
declare function formatCPF(value: string): string;
|
|
4
4
|
declare function isValidCPF(value: string): boolean;
|
|
@@ -48,6 +48,10 @@ declare const cpfOcrMachine: StateMachine<CpfOcrContext, {
|
|
|
48
48
|
type: "setError";
|
|
49
49
|
params: NonReducibleUnknown;
|
|
50
50
|
};
|
|
51
|
+
clearError: {
|
|
52
|
+
type: "clearError";
|
|
53
|
+
params: NonReducibleUnknown;
|
|
54
|
+
};
|
|
51
55
|
setPrefill: {
|
|
52
56
|
type: "setPrefill";
|
|
53
57
|
params: NonReducibleUnknown;
|
|
@@ -56,14 +60,10 @@ declare const cpfOcrMachine: StateMachine<CpfOcrContext, {
|
|
|
56
60
|
type: "setCpf";
|
|
57
61
|
params: NonReducibleUnknown;
|
|
58
62
|
};
|
|
59
|
-
clearError: {
|
|
60
|
-
type: "clearError";
|
|
61
|
-
params: NonReducibleUnknown;
|
|
62
|
-
};
|
|
63
63
|
}>, {
|
|
64
64
|
type: "isValid";
|
|
65
65
|
params: unknown;
|
|
66
|
-
}, never, "error" | "idle" | "finished" | "loading" | "
|
|
66
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "inputting", string, CpfOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
67
67
|
readonly id: "cpfOcr";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
4
|
-
import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-
|
|
4
|
+
import { c as isBrowserSimulation, d as getThumbmarkId, l as IpifyProvider, n as getFingerprintEnabled, p as BrowserEnvironmentProvider, t as getDisableIpify } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
|
|
7
7
|
import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-
|
|
1
|
+
import { a as DocumentCaptureActor, c as DocumentCaptureConfig, d as DocumentType, i as createDocumentCaptureManagerFromActor, l as DocumentCaptureErrorCode, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, s as DOCUMENT_CAPTURE_ERROR_CODES, t as DocumentCaptureManager, u as DocumentCaptureNextPageType } from "./documentCaptureManager-DBqK5ner.js";
|
|
2
2
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -38,14 +38,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
|
|
|
38
38
|
id: string | undefined;
|
|
39
39
|
};
|
|
40
40
|
}>, Values<{
|
|
41
|
-
setError: {
|
|
42
|
-
type: "setError";
|
|
43
|
-
params: NonReducibleUnknown;
|
|
44
|
-
};
|
|
45
|
-
clearError: {
|
|
46
|
-
type: "clearError";
|
|
47
|
-
params: NonReducibleUnknown;
|
|
48
|
-
};
|
|
49
41
|
setStream: {
|
|
50
42
|
type: "setStream";
|
|
51
43
|
params: NonReducibleUnknown;
|
|
@@ -58,6 +50,14 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
|
|
|
58
50
|
type: "setProgress";
|
|
59
51
|
params: NonReducibleUnknown;
|
|
60
52
|
};
|
|
53
|
+
setError: {
|
|
54
|
+
type: "setError";
|
|
55
|
+
params: NonReducibleUnknown;
|
|
56
|
+
};
|
|
57
|
+
clearError: {
|
|
58
|
+
type: "clearError";
|
|
59
|
+
params: NonReducibleUnknown;
|
|
60
|
+
};
|
|
61
61
|
stopStream: {
|
|
62
62
|
type: "stopStream";
|
|
63
63
|
params: NonReducibleUnknown;
|
|
@@ -200,10 +200,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
200
200
|
id: string | undefined;
|
|
201
201
|
};
|
|
202
202
|
}>, Values<{
|
|
203
|
-
clearError: {
|
|
204
|
-
type: "clearError";
|
|
205
|
-
params: NonReducibleUnknown;
|
|
206
|
-
};
|
|
207
203
|
setStream: {
|
|
208
204
|
type: "setStream";
|
|
209
205
|
params: NonReducibleUnknown;
|
|
@@ -212,6 +208,10 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
212
208
|
type: "setProgress";
|
|
213
209
|
params: NonReducibleUnknown;
|
|
214
210
|
};
|
|
211
|
+
clearError: {
|
|
212
|
+
type: "clearError";
|
|
213
|
+
params: NonReducibleUnknown;
|
|
214
|
+
};
|
|
215
215
|
stopStream: {
|
|
216
216
|
type: "stopStream";
|
|
217
217
|
params: NonReducibleUnknown;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-
|
|
2
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
|
|
2
|
+
import { t as createEkybManager } from "./ekybManager-DbK688m-.esm.js";
|
|
3
3
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -3,7 +3,7 @@ import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
|
3
3
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-DH-IPF-w.esm.js";
|
|
6
|
-
import { t as getFlow } from "./flowServices-
|
|
6
|
+
import { t as getFlow } from "./flowServices-DtiBvqZ6.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
/**
|
|
9
9
|
* Countries available in all environments.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./
|
|
1
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, type AeConsentKey, type ConsentChecks, type ConsentKey, type ElectronicSignatureConfig, type ElectronicSignatureDocument, type ElectronicSignatureManager, type ElectronicSignatureState, type ElectronicSignatureVariant, QE_CONSENT_KEYS, type QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -10,20 +10,20 @@ import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapab
|
|
|
10
10
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-CN8wJ14s.js";
|
|
11
11
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-G-k-13Fe.js";
|
|
12
12
|
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
|
|
13
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
13
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-CQkUAeWO.js";
|
|
14
14
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
15
15
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager--HSBTwOy.js";
|
|
16
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
16
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DBqK5ner.js";
|
|
17
17
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-Dposae2l.js";
|
|
18
18
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-CBX0tM04.js";
|
|
19
19
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
20
20
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
21
21
|
import { d as IdCaptureActor, h as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CSGbGORT.js";
|
|
22
22
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
23
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
23
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-aTyLyYrr.js";
|
|
24
24
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
25
25
|
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BlB4bX6_.js";
|
|
26
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
26
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-vXa7GdRh.js";
|
|
27
27
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-NVQM3o5P.js";
|
|
28
28
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-BWhRzBjk.js";
|
|
29
29
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-
|
|
2
|
+
import { f as getDeviceFingerprintInfo, l as IpifyProvider, t as getDisableIpify, u as FingerprintProvider } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-CL2YhiVX.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-C6A_gEhH.esm.js";
|
|
9
9
|
import { n as createConsentManagerFromActor } from "./consentManager-D3GyyH5u.esm.js";
|
|
10
10
|
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-Cwm0MesJ.esm.js";
|
|
11
11
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-9rdIO8Qk.esm.js";
|
|
12
12
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-C2i9Lzx9.esm.js";
|
|
13
13
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DijbJFun.esm.js";
|
|
14
14
|
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-COik5bJ7.esm.js";
|
|
15
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
15
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-DbK688m-.esm.js";
|
|
16
16
|
import { n as createEkycManagerFromActor } from "./ekycManager-BSMlIpGA.esm.js";
|
|
17
17
|
import { n as createEmailManagerFromActor } from "./emailManager-c-mDLieD.esm.js";
|
|
18
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
19
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
18
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BZFO5-P9.esm.js";
|
|
19
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BFMN4aac.esm.js";
|
|
20
20
|
import { n as createPhoneManagerFromActor } from "./phoneManager-KbcmjEeH.esm.js";
|
|
21
21
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-DHfJZTVo.esm.js";
|
|
22
22
|
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-5LlxYad-.esm.js";
|
package/dist/{faceCaptureManagerFactory-Cq78g5Tm.esm.js → faceCaptureManagerFactory-BkuqYPE9.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { n as concealmentToAvatar } from "./faceCaptureSetup-
|
|
4
|
+
import { n as concealmentToAvatar } from "./faceCaptureSetup-CJo_MFLc.esm.js";
|
|
5
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
6
6
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
|
|
7
7
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
@@ -2,12 +2,12 @@ import { r as getToken } from "./api-BDTZNnca.esm.js";
|
|
|
2
2
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
5
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { t as createFaceAvatar } from "./createFaceAvatar-CwVapQiu.esm.js";
|
|
8
8
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
9
9
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
10
|
-
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-
|
|
10
|
+
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-CCavy7bJ.esm.js";
|
|
11
11
|
//#region src/internal/avatar/concealment.ts
|
|
12
12
|
/**
|
|
13
13
|
* Maps a backend concealment option to the internal avatar flags. `OPTION_NONE`
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
4
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-DtiBvqZ6.esm.js";
|
|
5
5
|
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
|
|
6
6
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
4
4
|
import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-BadmZmbK.esm.js";
|
|
6
6
|
import { r as videoSelfieWasmPipelines } from "./videoSelfieSteps-DHcibfYH.esm.js";
|
|
7
7
|
//#region src/modules/flow/flowUtils.ts
|
|
8
8
|
const WASM_MODULE_PIPELINES = {
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-
|
|
1
|
+
import { a as IdOcrActor, c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, i as createIdOcrManagerFromActor, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-vXa7GdRh.js";
|
|
2
2
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
3
3
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
4
4
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "flowId">) => OcrFieldConfig[];
|
package/dist/id.esm.js
CHANGED
|
@@ -2,8 +2,8 @@ import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
|
2
2
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
4
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
5
|
-
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-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
5
|
+
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-DSVttQgS.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BFMN4aac.esm.js";
|
|
7
7
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
8
8
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
9
9
|
function buildSubImage(canvas) {
|
|
@@ -4,7 +4,7 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
|
|
|
4
4
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
5
5
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DwNCUB2I.esm.js";
|
|
6
6
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
7
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
7
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-DSVttQgS.esm.js";
|
|
8
8
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
9
9
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
10
10
|
function isHoldingState(value) {
|
package/dist/{idCaptureStateMachine-B8SEdOB3.esm.js → idCaptureStateMachine-DSVttQgS.esm.js}
RENAMED
|
@@ -3,20 +3,20 @@ import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
|
|
|
3
3
|
import { x as revokeObjectURL } from "./events-Dy8PyVO5.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
6
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
6
|
+
import { t as getDisableIpify } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
7
7
|
import { n as isDesktop } from "./platform-wmV7oTAJ.esm.js";
|
|
8
8
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
11
|
-
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
11
|
+
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
12
12
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
13
13
|
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
14
14
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
15
15
|
import { t as getDeviceClass } from "./getDeviceClass-CkgnSJel.esm.js";
|
|
16
16
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
17
17
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-DguX5vFY.esm.js";
|
|
18
|
-
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-
|
|
19
|
-
import "./session-
|
|
18
|
+
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-CCavy7bJ.esm.js";
|
|
19
|
+
import "./session-BadmZmbK.esm.js";
|
|
20
20
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-Dzfws4i0.esm.js";
|
|
21
21
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
22
22
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1522,7 +1522,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1522
1522
|
});
|
|
1523
1523
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1524
1524
|
if (!input.dependencies) return;
|
|
1525
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1525
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Dnd7Rajk.esm.js");
|
|
1526
1526
|
return loadDeepsightSession({
|
|
1527
1527
|
ds: input.ds,
|
|
1528
1528
|
storage: input.dependencies.storage,
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: 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, NonReducibleUnknown, EventObject, MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({ input }: {
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-aTyLyYrr.js";
|
|
2
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -125,7 +125,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
125
125
|
type: "hasSelection";
|
|
126
126
|
params: unknown;
|
|
127
127
|
};
|
|
128
|
-
}>, never, "error" | "idle" | "finished" | "loading" | "
|
|
128
|
+
}>, never, "error" | "idle" | "finished" | "loading" | "documentsFound" | "submitting", string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
129
129
|
readonly id: "identityReuse";
|
|
130
130
|
readonly initial: "idle";
|
|
131
131
|
readonly context: ({ input }: {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-Bdtm4xAl.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -516,7 +516,7 @@ async function stopRecording(session) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
519
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Dnd7Rajk.esm.js");
|
|
520
520
|
return loadDeepsightSession({
|
|
521
521
|
ds: options.ds,
|
|
522
522
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
|
|
|
4
4
|
import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-DzT65Fvf.esm.js";
|
|
5
5
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
7
|
-
import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { c as isBrowserSimulation, d as getThumbmarkId, f as getDeviceFingerprintInfo, n as getFingerprintEnabled, p as BrowserEnvironmentProvider } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
8
8
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
10
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
12
12
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region ../infra/src/crypto/randomUUID.ts
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
|
-
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./
|
|
2
|
+
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./electronicSignatureManager-CKbmDFNq.js";
|
|
3
|
+
import "./electronic-signature.js";
|
|
3
4
|
//#region src/modules/qe-signature/index.d.ts
|
|
4
5
|
type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
5
6
|
declare function createQeSignatureManager(options: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
3
|
import { t as isAndroid } from "./platform-wmV7oTAJ.esm.js";
|
|
4
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
4
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-BhSZDDNb.esm.js";
|
|
6
6
|
//#region src/internal/manualReview/manualReviewService.ts
|
|
7
7
|
async function flagFaceManualReview() {
|
package/dist/selfie.esm.js
CHANGED
|
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
8
|
import { t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BZFO5-P9.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BkuqYPE9.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CJo_MFLc.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
|
|
7
7
|
Object.values(FACE_ERROR_CODES);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./sessionInitializer-D3TaaDyZ.esm.js";
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
3
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
4
4
|
import { n as toIncodeApiError, t as IncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-BadmZmbK.esm.js";
|
|
6
6
|
import { n as getFinishStatus } from "./flowCompletionService-DQSC7Kso.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
@@ -1608,7 +1608,7 @@ function isBrowserSimulation(browserEnv) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
//#endregion
|
|
1610
1610
|
//#region src/internal/version/sdkVersion.ts
|
|
1611
|
-
const SDK_VERSION = "0.0.0-dev-20260716-
|
|
1611
|
+
const SDK_VERSION = "0.0.0-dev-20260716-ab304429";
|
|
1612
1612
|
//#endregion
|
|
1613
1613
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
1614
1614
|
function formatOsVersion(os) {
|
|
@@ -5,7 +5,7 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
|
|
|
5
5
|
import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
7
7
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-Bu6bL_CX.esm.js";
|
|
8
|
-
import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-
|
|
8
|
+
import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
9
9
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-N-xlKhZK.esm.js";
|
|
10
10
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
11
11
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
package/dist/video-selfie.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ declare class MultipartRecordingService {
|
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/modules/video-selfie/videoSelfieStepDetector.d.ts
|
|
110
|
+
type VideoSelfieDetectionStatus = DetectionStatus | 'wrongSide';
|
|
110
111
|
/**
|
|
111
112
|
* Runs the WASM detection + backend validation for a single capture step over
|
|
112
113
|
* the given camera stream. Resolves once the step is captured AND validated by
|
|
@@ -118,7 +119,7 @@ type StepDetector = (params: {
|
|
|
118
119
|
step: VideoSelfieStep;
|
|
119
120
|
stream: MediaStream;
|
|
120
121
|
signal: AbortSignal;
|
|
121
|
-
onStatus?: (status:
|
|
122
|
+
onStatus?: (status: VideoSelfieDetectionStatus) => void;
|
|
122
123
|
}) => Promise<void>;
|
|
123
124
|
//#endregion
|
|
124
125
|
//#region src/modules/video-selfie/videoSelfieRecordingMachine.d.ts
|
|
@@ -140,7 +141,7 @@ type CreateVideoSelfieRecordingActorOptions = {
|
|
|
140
141
|
};
|
|
141
142
|
//#endregion
|
|
142
143
|
//#region src/modules/video-selfie/videoSelfieRecordingManager.d.ts
|
|
143
|
-
type VideoSelfieRecordingStatus = 'idle' | 'starting' | 'recording' | 'switchingCamera' | 'finalizing' | 'finished' | 'error' | 'aborted';
|
|
144
|
+
type VideoSelfieRecordingStatus = 'idle' | 'starting' | 'recording' | 'flippingId' | 'switchingCamera' | 'finalizing' | 'success' | 'finished' | 'error' | 'aborted';
|
|
144
145
|
type VideoSelfieRecordingState = {
|
|
145
146
|
/** Current lifecycle status. */
|
|
146
147
|
status: VideoSelfieRecordingStatus;
|
|
@@ -160,8 +161,8 @@ type VideoSelfieRecordingState = {
|
|
|
160
161
|
*/
|
|
161
162
|
composite: MediaStream | undefined;
|
|
162
163
|
/** Live per-step detection feedback (e.g. `tooFar`, `blur`, `detecting`). */
|
|
163
|
-
detectionStatus:
|
|
164
|
-
/** The completed upload id, available
|
|
164
|
+
detectionStatus: VideoSelfieDetectionStatus | undefined;
|
|
165
|
+
/** The completed upload id, available during `success` and `finished`. */
|
|
165
166
|
recordingId: string | null;
|
|
166
167
|
/** Failure detail, set when `status === 'error'`. */
|
|
167
168
|
error: string | undefined;
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-Bdtm4xAl.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
@@ -7,7 +7,7 @@ import { c as createManager, o as createActor, r as assign, t as setup } from ".
|
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
8
8
|
import { t as checkPermission } from "./permissionServices-DwNCUB2I.esm.js";
|
|
9
9
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
10
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
10
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-Dtx5mUa3.esm.js";
|
|
11
11
|
import { n as getBackCameraStream } from "./backCameraStream-Heg6vA1j.esm.js";
|
|
12
12
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
13
13
|
import { n as uploadSelfie, t as processFace } from "./selfieUploadService-B4LnSIf6.esm.js";
|
|
@@ -45,6 +45,7 @@ function isFaceRecognitionMatch(confidence) {
|
|
|
45
45
|
* after this many tries the step rejects. Mirrors V1's `numberOfTries`.
|
|
46
46
|
*/
|
|
47
47
|
const MAX_SELFIE_ATTEMPTS = 3;
|
|
48
|
+
const SELFIE_SUCCESS_DWELL_MS = 900;
|
|
48
49
|
/**
|
|
49
50
|
* How long the ID step holds on the "success" state (green check) after the
|
|
50
51
|
* backend validates a side, before advancing. Gives the user a beat to see the
|
|
@@ -52,15 +53,15 @@ const MAX_SELFIE_ATTEMPTS = 3;
|
|
|
52
53
|
* IdVideoSelfie success flash.
|
|
53
54
|
*/
|
|
54
55
|
const ID_SUCCESS_DWELL_MS = 900;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const ID_INSTRUCTION_DWELL_MS = 3e3;
|
|
56
|
+
function abortError() {
|
|
57
|
+
return /* @__PURE__ */ new Error("aborted");
|
|
58
|
+
}
|
|
59
|
+
function throwIfAborted(signal) {
|
|
60
|
+
if (signal.aborted) throw abortError();
|
|
61
|
+
}
|
|
62
62
|
/** Resolves after `ms`, or rejects early if `signal` aborts. */
|
|
63
63
|
function delay(ms, signal) {
|
|
64
|
+
if (signal.aborted) return Promise.reject(abortError());
|
|
64
65
|
const timerProvider = BrowserTimerProvider.getInstance();
|
|
65
66
|
return new Promise((resolve, reject) => {
|
|
66
67
|
const timer = timerProvider.setTimeout(() => {
|
|
@@ -69,11 +70,19 @@ function delay(ms, signal) {
|
|
|
69
70
|
}, ms);
|
|
70
71
|
const onAbort = () => {
|
|
71
72
|
timerProvider.clearTimeout(timer);
|
|
72
|
-
reject(
|
|
73
|
+
reject(abortError());
|
|
73
74
|
};
|
|
74
75
|
signal.addEventListener("abort", onAbort, { once: true });
|
|
76
|
+
if (signal.aborted) onAbort();
|
|
75
77
|
});
|
|
76
78
|
}
|
|
79
|
+
function isWrongVideoSelfieIdSide(step, reportedSide) {
|
|
80
|
+
const side = reportedSide.toLowerCase();
|
|
81
|
+
if (side === "wrong") return true;
|
|
82
|
+
const isFront = side.includes("front") && !side.includes("back");
|
|
83
|
+
const isBack = side.includes("back") && !side.includes("front");
|
|
84
|
+
return step === "frontId" ? isBack : isFront;
|
|
85
|
+
}
|
|
77
86
|
/**
|
|
78
87
|
* Builds the default per-step detector from the module config. Today it
|
|
79
88
|
* auto-captures the `selfie` step (face detection → `add/face` → `process/face`);
|
|
@@ -107,6 +116,10 @@ async function detectSelfie(params) {
|
|
|
107
116
|
useOnDeviceWorkflow: false,
|
|
108
117
|
videoSelfie: true
|
|
109
118
|
});
|
|
119
|
+
if (signal.aborted) {
|
|
120
|
+
provider.dispose();
|
|
121
|
+
throw abortError();
|
|
122
|
+
}
|
|
110
123
|
provider.setChecksEnabled({
|
|
111
124
|
lenses: config.validateLenses ?? false,
|
|
112
125
|
mask: config.validateFaceMask ?? false,
|
|
@@ -126,32 +139,41 @@ async function detectSelfie(params) {
|
|
|
126
139
|
autoCaptureTimeout: SELFIE_AUTOCAPTURE_MS / 1e3
|
|
127
140
|
};
|
|
128
141
|
const runAttempt = () => new Promise((resolve, reject) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
142
|
+
if (signal.aborted) {
|
|
143
|
+
reject(abortError());
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
let settled = false;
|
|
147
|
+
function settle(run) {
|
|
148
|
+
if (settled) return;
|
|
149
|
+
settled = true;
|
|
134
150
|
signal.removeEventListener("abort", onAbort);
|
|
135
151
|
run();
|
|
136
|
-
}
|
|
137
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
152
|
+
}
|
|
138
153
|
const detection = startDetection({
|
|
139
154
|
config: detectionConfig,
|
|
140
155
|
capturer,
|
|
141
156
|
provider,
|
|
142
157
|
onUpdate: (status) => onStatus?.(status),
|
|
143
158
|
onSuccess: (canvas, faceCoordinates) => {
|
|
159
|
+
onStatus?.("capturing");
|
|
144
160
|
(async () => {
|
|
145
161
|
try {
|
|
162
|
+
const encryptedBase64Image = await encryptSelfieImage({
|
|
163
|
+
canvas,
|
|
164
|
+
dependencies: { getWasmUtil: async () => deps.getWasmUtil() }
|
|
165
|
+
});
|
|
166
|
+
throwIfAborted(signal);
|
|
146
167
|
await uploadSelfie({
|
|
147
|
-
encryptedBase64Image
|
|
148
|
-
canvas,
|
|
149
|
-
dependencies: { getWasmUtil: async () => deps.getWasmUtil() }
|
|
150
|
-
}),
|
|
168
|
+
encryptedBase64Image,
|
|
151
169
|
faceCoordinates,
|
|
152
170
|
imageType
|
|
153
171
|
});
|
|
172
|
+
throwIfAborted(signal);
|
|
154
173
|
await processFace(imageType);
|
|
174
|
+
throwIfAborted(signal);
|
|
175
|
+
onStatus?.("success");
|
|
176
|
+
await delay(SELFIE_SUCCESS_DWELL_MS, signal);
|
|
155
177
|
settle(resolve);
|
|
156
178
|
} catch (error) {
|
|
157
179
|
settle(() => reject(error instanceof Error ? error : new Error(String(error))));
|
|
@@ -159,6 +181,12 @@ async function detectSelfie(params) {
|
|
|
159
181
|
})();
|
|
160
182
|
}
|
|
161
183
|
});
|
|
184
|
+
function onAbort() {
|
|
185
|
+
detection.cleanup();
|
|
186
|
+
settle(() => reject(abortError()));
|
|
187
|
+
}
|
|
188
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
189
|
+
if (signal.aborted) onAbort();
|
|
162
190
|
});
|
|
163
191
|
try {
|
|
164
192
|
for (let attempt = 1; attempt <= MAX_SELFIE_ATTEMPTS; attempt++) try {
|
|
@@ -179,6 +207,10 @@ async function detectId(params) {
|
|
|
179
207
|
const { step, config, stream, signal, onStatus } = params;
|
|
180
208
|
const provider = new IdCaptureProvider();
|
|
181
209
|
await provider.initialize({ videoSelfie: true });
|
|
210
|
+
if (signal.aborted) {
|
|
211
|
+
provider.dispose();
|
|
212
|
+
throw abortError();
|
|
213
|
+
}
|
|
182
214
|
const windowDimensions = getWindowDimensions();
|
|
183
215
|
provider.setGeometry({
|
|
184
216
|
...DEFAULT_ID_CAPTURE_GEOMETRY,
|
|
@@ -202,16 +234,43 @@ async function detectId(params) {
|
|
|
202
234
|
const capturer = new StreamCanvasCapture(stream);
|
|
203
235
|
return new Promise((resolve, reject) => {
|
|
204
236
|
let validating = false;
|
|
205
|
-
let
|
|
237
|
+
let wrongSide = false;
|
|
238
|
+
let settled = false;
|
|
239
|
+
let toreDown = false;
|
|
240
|
+
const session = new StreamCanvasProcessingSession({
|
|
241
|
+
capturer,
|
|
242
|
+
provider
|
|
243
|
+
});
|
|
244
|
+
function teardown() {
|
|
245
|
+
if (toreDown) return;
|
|
246
|
+
toreDown = true;
|
|
247
|
+
session.dispose();
|
|
248
|
+
capturer.dispose();
|
|
249
|
+
provider.dispose();
|
|
250
|
+
}
|
|
251
|
+
function settle(run) {
|
|
252
|
+
if (settled) return;
|
|
253
|
+
settled = true;
|
|
254
|
+
signal.removeEventListener("abort", onAbort);
|
|
255
|
+
teardown();
|
|
256
|
+
run();
|
|
257
|
+
}
|
|
258
|
+
function onAbort() {
|
|
259
|
+
settle(() => reject(abortError()));
|
|
260
|
+
}
|
|
206
261
|
provider.setCallbacks({
|
|
207
262
|
onFarAway: () => {
|
|
208
|
-
if (
|
|
263
|
+
if (!validating && !wrongSide) onStatus?.("tooFar");
|
|
209
264
|
},
|
|
210
265
|
onBlur: () => {
|
|
211
|
-
if (
|
|
266
|
+
if (!validating && !wrongSide) onStatus?.("blur");
|
|
267
|
+
},
|
|
268
|
+
onIdSideChange: (side) => {
|
|
269
|
+
wrongSide = isWrongVideoSelfieIdSide(step, side);
|
|
270
|
+
onStatus?.(wrongSide ? "wrongSide" : "detecting");
|
|
212
271
|
},
|
|
213
272
|
onCapturing: () => {
|
|
214
|
-
if (
|
|
273
|
+
if (validating || wrongSide) return;
|
|
215
274
|
const base64Image = capturer.getLatestCanvas()?.getBase64Image();
|
|
216
275
|
if (!base64Image) return;
|
|
217
276
|
validating = true;
|
|
@@ -219,41 +278,22 @@ async function detectId(params) {
|
|
|
219
278
|
(async () => {
|
|
220
279
|
try {
|
|
221
280
|
if (await validateIdFrame(step, config, base64Image)) {
|
|
281
|
+
throwIfAborted(signal);
|
|
222
282
|
onStatus?.("success");
|
|
223
283
|
await delay(ID_SUCCESS_DWELL_MS, signal);
|
|
224
|
-
|
|
225
|
-
resolve();
|
|
284
|
+
settle(resolve);
|
|
226
285
|
return;
|
|
227
286
|
}
|
|
228
287
|
validating = false;
|
|
229
288
|
} catch (error) {
|
|
230
|
-
|
|
231
|
-
reject(error instanceof Error ? error : new Error(String(error)));
|
|
289
|
+
settle(() => reject(error instanceof Error ? error : new Error(String(error))));
|
|
232
290
|
}
|
|
233
291
|
})();
|
|
234
292
|
}
|
|
235
293
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
});
|
|
240
|
-
let toreDown = false;
|
|
241
|
-
const teardown = () => {
|
|
242
|
-
if (toreDown) return;
|
|
243
|
-
toreDown = true;
|
|
244
|
-
session.dispose();
|
|
245
|
-
capturer.dispose();
|
|
246
|
-
provider.dispose();
|
|
247
|
-
};
|
|
248
|
-
signal.addEventListener("abort", () => {
|
|
249
|
-
teardown();
|
|
250
|
-
reject(/* @__PURE__ */ new Error("aborted"));
|
|
251
|
-
}, { once: true });
|
|
252
|
-
delay(ID_INSTRUCTION_DWELL_MS, signal).then(() => {
|
|
253
|
-
if (toreDown || signal.aborted) return;
|
|
254
|
-
armed = true;
|
|
255
|
-
onStatus?.("detecting");
|
|
256
|
-
}).catch(() => {});
|
|
294
|
+
onStatus?.("detecting");
|
|
295
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
296
|
+
if (signal.aborted) onAbort();
|
|
257
297
|
});
|
|
258
298
|
}
|
|
259
299
|
/** Runs the configured ID/OCR comparisons for a captured ID frame. */
|
|
@@ -700,6 +740,8 @@ function detectionErrorFromEvent(event) {
|
|
|
700
740
|
return event.error;
|
|
701
741
|
}
|
|
702
742
|
const SWITCHING_CAMERA_MIN_DWELL_MS = 3e3;
|
|
743
|
+
const ID_FLIP_DWELL_MS = 4e3;
|
|
744
|
+
const FINAL_SUCCESS_DWELL_MS = 3e3;
|
|
703
745
|
function waitForDwell(ms, signal) {
|
|
704
746
|
const timerProvider = BrowserTimerProvider.getInstance();
|
|
705
747
|
return new Promise((resolve) => {
|
|
@@ -728,9 +770,9 @@ function waitForDwell(ms, signal) {
|
|
|
728
770
|
* validation; success advances the step (switching the camera when the next
|
|
729
771
|
* step's facing differs), and the final step finalizes the multipart upload.
|
|
730
772
|
*
|
|
731
|
-
* Teardown: `ABORT` is accepted from ANY non-final state and every
|
|
732
|
-
*
|
|
733
|
-
*
|
|
773
|
+
* Teardown: `ABORT` is accepted from ANY non-final state and every settled
|
|
774
|
+
* path runs `cleanup`, so no path leaves camera or mic tracks running.
|
|
775
|
+
* XState v5 executes NO exit actions on an external
|
|
734
776
|
* `actor.stop()`, so the manager sends `ABORT` before stopping the actor —
|
|
735
777
|
* never stop this actor directly without aborting first.
|
|
736
778
|
*/
|
|
@@ -740,6 +782,10 @@ const videoSelfieRecordingSetup = setup({
|
|
|
740
782
|
events: {},
|
|
741
783
|
input: {}
|
|
742
784
|
},
|
|
785
|
+
delays: {
|
|
786
|
+
ID_FLIP_DWELL: ID_FLIP_DWELL_MS,
|
|
787
|
+
FINAL_SUCCESS_DWELL: FINAL_SUCCESS_DWELL_MS
|
|
788
|
+
},
|
|
743
789
|
actors: {
|
|
744
790
|
acquireCamera: fromPromise(async ({ input, signal }) => {
|
|
745
791
|
const stream = await input.acquire(input.facingMode, input.withAudio);
|
|
@@ -807,6 +853,7 @@ const videoSelfieRecordingSetup = setup({
|
|
|
807
853
|
},
|
|
808
854
|
guards: {
|
|
809
855
|
isLastStep: ({ context }) => context.stepIndex >= context.steps.length - 1,
|
|
856
|
+
nextStepFlipsId: ({ context }) => context.steps[context.stepIndex] === "frontId" && context.steps[context.stepIndex + 1] === "backId",
|
|
810
857
|
nextStepFlipsCamera: ({ context }) => facingModeForStep(context.steps[context.stepIndex]) !== facingModeForStep(context.steps[context.stepIndex + 1]),
|
|
811
858
|
uploadReturnedNoRecordingId: ({ event }) => recordingIdFromEvent(event) === null
|
|
812
859
|
}
|
|
@@ -816,6 +863,10 @@ const ADVANCE_TRANSITIONS = [
|
|
|
816
863
|
target: "finalizing",
|
|
817
864
|
guard: "isLastStep"
|
|
818
865
|
},
|
|
866
|
+
{
|
|
867
|
+
target: "flippingId",
|
|
868
|
+
guard: "nextStepFlipsId"
|
|
869
|
+
},
|
|
819
870
|
{
|
|
820
871
|
target: "switchingCamera",
|
|
821
872
|
guard: "nextStepFlipsCamera",
|
|
@@ -901,6 +952,16 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
901
952
|
}
|
|
902
953
|
}
|
|
903
954
|
},
|
|
955
|
+
flippingId: {
|
|
956
|
+
after: { ID_FLIP_DWELL: {
|
|
957
|
+
target: "recording",
|
|
958
|
+
actions: "advanceStep"
|
|
959
|
+
} },
|
|
960
|
+
on: { NEXT_STEP: {
|
|
961
|
+
target: "recording",
|
|
962
|
+
actions: "advanceStep"
|
|
963
|
+
} }
|
|
964
|
+
},
|
|
904
965
|
switchingCamera: { invoke: {
|
|
905
966
|
src: "switchCamera",
|
|
906
967
|
input: ({ context }) => ({
|
|
@@ -927,7 +988,7 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
927
988
|
guard: "uploadReturnedNoRecordingId",
|
|
928
989
|
actions: [assign({ recordingId: ({ event }) => recordingIdFromEvent(event) }), "setUploadFailedError"]
|
|
929
990
|
}, {
|
|
930
|
-
target: "
|
|
991
|
+
target: "success",
|
|
931
992
|
actions: assign({ recordingId: ({ event }) => recordingIdFromEvent(event) })
|
|
932
993
|
}],
|
|
933
994
|
onError: {
|
|
@@ -935,10 +996,11 @@ const videoSelfieRecordingMachine = videoSelfieRecordingSetup.createMachine({
|
|
|
935
996
|
actions: assign({ error: ({ event }) => errorFromEvent(event) })
|
|
936
997
|
}
|
|
937
998
|
} },
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
999
|
+
success: {
|
|
1000
|
+
entry: "cleanup",
|
|
1001
|
+
after: { FINAL_SUCCESS_DWELL: "finished" }
|
|
941
1002
|
},
|
|
1003
|
+
finished: { type: "final" },
|
|
942
1004
|
error: {
|
|
943
1005
|
type: "final",
|
|
944
1006
|
entry: "cleanup"
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as warmupWasm } from "./WasmUtilProvider-DAshwHhX.esm.js";
|
|
2
|
-
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-
|
|
2
|
+
import { a as setWasmConfig, c as DEFAULT_WASM_VERSION, d as resolveWasmConfig, l as buildDefaultWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines, u as buildWasmConfigFromBasePath } from "./setup-Bdtm4xAl.esm.js";
|
|
3
3
|
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -320,6 +320,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
320
320
|
id: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
}>, Values<{
|
|
323
|
+
setError: {
|
|
324
|
+
type: "setError";
|
|
325
|
+
params: NonReducibleUnknown;
|
|
326
|
+
};
|
|
323
327
|
setLoadingResult: {
|
|
324
328
|
type: "setLoadingResult";
|
|
325
329
|
params: NonReducibleUnknown;
|
|
@@ -348,10 +352,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
348
352
|
type: "setFinishStatusFailed";
|
|
349
353
|
params: NonReducibleUnknown;
|
|
350
354
|
};
|
|
351
|
-
setError: {
|
|
352
|
-
type: "setError";
|
|
353
|
-
params: NonReducibleUnknown;
|
|
354
|
-
};
|
|
355
355
|
setModuleError: {
|
|
356
356
|
type: "setModuleError";
|
|
357
357
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DLQ0g4-R.esm.js";
|
|
4
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
4
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-D3TaaDyZ.esm.js";
|
|
5
5
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
8
8
|
import { n as electronicSignatureMachine } from "./electronicSignatureManager-DSZu9OHT.esm.js";
|
|
9
9
|
import "./ae-signature.esm.js";
|
|
10
10
|
import { t as antifraudMachine } from "./antifraudStateMachine-Bf-IiCq7.esm.js";
|
|
11
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
11
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-MnSqXh8s.esm.js";
|
|
12
12
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Ce568YfR.esm.js";
|
|
13
13
|
import { t as consentMachine } from "./consentStateMachine-Pc3Ez3mV.esm.js";
|
|
14
14
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-7i3TD8J2.esm.js";
|
|
15
15
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-D23XTxl2.esm.js";
|
|
16
16
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-qgsrlcVh.esm.js";
|
|
17
17
|
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BV-Fn13x.esm.js";
|
|
18
|
-
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-
|
|
18
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-BmvMrUpO.esm.js";
|
|
19
19
|
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-a7oP-XWo.esm.js";
|
|
20
20
|
import { t as emailMachine } from "./emailStateMachine-ChNwY22u.esm.js";
|
|
21
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
22
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
21
|
+
import { t as selfieMachine } from "./selfieStateMachine-DjaHbMKZ.esm.js";
|
|
22
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-DSVttQgS.esm.js";
|
|
23
23
|
import { t as phoneMachine } from "./phoneStateMachine-wDQtaT38.esm.js";
|
|
24
24
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-CM45EBrb.esm.js";
|
|
25
25
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BN4Obfl7.esm.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260716-
|
|
3
|
+
"version": "0.0.0-dev-20260716-ab304429",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
"tsdown": "^0.22.8",
|
|
277
277
|
"typescript": "^5.9.3",
|
|
278
278
|
"vitest": "4.1.4",
|
|
279
|
-
"@incodetech/
|
|
280
|
-
"@incodetech/
|
|
279
|
+
"@incodetech/infra": "1.2.0",
|
|
280
|
+
"@incodetech/config": "1.0.2"
|
|
281
281
|
},
|
|
282
282
|
"scripts": {
|
|
283
283
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./sessionInitializer-CSKqpdKw.esm.js";
|
|
File without changes
|