@incodetech/core 0.0.0-dev-20260716-5050af5d → 0.0.0-dev-20260716-bd78addb
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/authentication.esm.js +2 -2
- package/dist/{authenticationManager-hbFeWTah.esm.js → authenticationManager-CIaoJXwH.esm.js} +2 -2
- package/dist/{authenticationStateMachine-BvaI9u5k.esm.js → authenticationStateMachine-CJfWsO79.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-2h_w6wFc.d.ts} +4 -4
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DRye5wCj.d.ts → cpfOcrManager-CmPyqpAK.d.ts} +4 -4
- package/dist/{deepsightLoader-Cw7akhz-.esm.js → deepsightLoader-CO6FgzSm.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-B3pVjBve.esm.js} +1 -1
- package/dist/{ekybStateMachine-DgvXRzv4.esm.js → ekybStateMachine-CLf8elav.esm.js} +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +7 -7
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-Cq78g5Tm.esm.js → faceCaptureManagerFactory--1VcHUzl.esm.js} +1 -1
- package/dist/{faceCaptureSetup-80H-Ypj3.esm.js → faceCaptureSetup-BeNVVdRP.esm.js} +2 -2
- package/dist/{faceMatchManager-B7jlv77Q.esm.js → faceMatchManager-9rtJXjS-.esm.js} +1 -1
- package/dist/{faceMatchManager-CJQG1W1u.d.ts → faceMatchManager-BnvrZM2F.d.ts} +10 -0
- package/dist/{faceMatchStateMachine-DD7FxtUj.esm.js → faceMatchStateMachine-BfzusGo1.esm.js} +8 -1
- package/dist/flow.d.ts +2 -1
- package/dist/flow.esm.js +20 -6
- package/dist/{flowServices-B_vQAdNr.esm.js → flowServices-zxA2NPMQ.esm.js} +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Bu2d3Faa.esm.js → idCaptureManager-BhzliFq5.esm.js} +5 -2
- package/dist/{idCaptureManager-CSGbGORT.d.ts → idCaptureManager-Cmcwu1iM.d.ts} +31 -1
- package/dist/{idCaptureStateMachine-B8SEdOB3.esm.js → idCaptureStateMachine-CrQ8hp5D.esm.js} +34 -6
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BlB4bX6_.d.ts → mandatoryConsentManager-B2gRcE_x.d.ts} +4 -4
- package/dist/{onDeviceFaceResults-DtFYhiCI.esm.js → onDeviceFaceResults-CJZ9-0gT.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/{recordingService-CRkr18oy.esm.js → recordingService-R1TlO0fT.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DW2UOX6K.esm.js → selfieManager-sVQTErpj.esm.js} +2 -2
- package/dist/{selfieStateMachine-UkyBCYne.esm.js → selfieStateMachine-BsNEWEbc.esm.js} +2 -2
- package/dist/session-DoM7iyf7.esm.js +1 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-CSKqpdKw.esm.js → sessionInitializer-BZVkwhRG.esm.js} +1 -1
- package/dist/{setup-DoygBzUq.esm.js → setup-Dg12--fg.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 +6 -6
- package/package.json +1 -1
- package/dist/session-CrhnsgB6.esm.js +0 -1
|
@@ -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-CJfWsO79.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CIaoJXwH.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-hbFeWTah.esm.js → authenticationManager-CIaoJXwH.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--1VcHUzl.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-CJfWsO79.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-BeNVVdRP.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CJZ9-0gT.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/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-2h_w6wFc.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -82,10 +82,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
82
82
|
type: "clearError";
|
|
83
83
|
params: NonReducibleUnknown;
|
|
84
84
|
};
|
|
85
|
-
resetContext: {
|
|
86
|
-
type: "resetContext";
|
|
87
|
-
params: NonReducibleUnknown;
|
|
88
|
-
};
|
|
89
85
|
setConsentData: {
|
|
90
86
|
type: "setConsentData";
|
|
91
87
|
params: NonReducibleUnknown;
|
|
@@ -94,6 +90,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
94
90
|
type: "toggleCheckbox";
|
|
95
91
|
params: NonReducibleUnknown;
|
|
96
92
|
};
|
|
93
|
+
resetContext: {
|
|
94
|
+
type: "resetContext";
|
|
95
|
+
params: NonReducibleUnknown;
|
|
96
|
+
};
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
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-CmPyqpAK.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,10 +60,6 @@ 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;
|
|
@@ -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-BZVkwhRG.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-CLf8elav.esm.js";
|
|
2
|
+
import { t as createEkybManager } from "./ekybManager-B3pVjBve.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-CLf8elav.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-zxA2NPMQ.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
/**
|
|
9
9
|
* Countries available in all environments.
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -9,25 +9,25 @@ import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
|
|
|
9
9
|
import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-ctqh-iS4.js";
|
|
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
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
13
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
12
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-2h_w6wFc.js";
|
|
13
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-CmPyqpAK.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
|
-
import { d as IdCaptureActor, h as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-
|
|
21
|
+
import { d as IdCaptureActor, h as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-Cmcwu1iM.js";
|
|
22
22
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
23
23
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
|
|
24
24
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CBvEGxFx.js";
|
|
25
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
25
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B2gRcE_x.js";
|
|
26
26
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-Bi80MQR4.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";
|
|
30
|
-
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-
|
|
30
|
+
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
31
31
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
32
32
|
type AuthenticationUploadResponse = {
|
|
33
33
|
overallStatus: 'PASS' | 'FAIL';
|
|
@@ -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-BZVkwhRG.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-BeNVVdRP.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-CIaoJXwH.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-B3pVjBve.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-sVQTErpj.esm.js";
|
|
19
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BhzliFq5.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";
|
|
@@ -25,7 +25,7 @@ import { n as createIdOcrManagerFromActor } from "./idOcrManager-niAg-BE0.esm.js
|
|
|
25
25
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-EGXGKftv.esm.js";
|
|
26
26
|
import { n as createGeolocationManagerFromActor } from "./geolocationManager-D58ehBHU.esm.js";
|
|
27
27
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CujJqsiX.esm.js";
|
|
28
|
-
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-
|
|
28
|
+
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-9rtJXjS-.esm.js";
|
|
29
29
|
//#region src/internal/fingerprint/fingerprintApi.ts
|
|
30
30
|
async function getFingerprint(disableIpify) {
|
|
31
31
|
const shouldDisableIpify = disableIpify ?? getDisableIpify();
|
package/dist/face-match.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FaceMatchActor, c as FaceMatchResult, i as createFaceMatchManagerFromActor, l as FaceMatchVariant, n as FaceMatchState, o as FaceMatchConfig, r as createFaceMatchManager, s as FaceMatchImages, t as FaceMatchManager } from "./faceMatchManager-
|
|
1
|
+
import { a as FaceMatchActor, c as FaceMatchResult, i as createFaceMatchManagerFromActor, l as FaceMatchVariant, n as FaceMatchState, o as FaceMatchConfig, r as createFaceMatchManager, s as FaceMatchImages, t as FaceMatchManager } from "./faceMatchManager-BnvrZM2F.js";
|
|
2
2
|
//#region src/modules/face-match/faceMatchStateMachine.d.ts
|
|
3
3
|
declare const faceMatchMachine: any;
|
|
4
4
|
//#endregion
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
2
|
-
import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-
|
|
1
|
+
import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-BfzusGo1.esm.js";
|
|
2
|
+
import { n as createFaceMatchManagerFromActor, t as createFaceMatchManager } from "./faceMatchManager-9rtJXjS-.esm.js";
|
|
3
3
|
export { ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, createFaceMatchManagerFromActor, faceMatchMachine, isFaceExtractionSkippedError };
|
package/dist/{faceCaptureManagerFactory-Cq78g5Tm.esm.js → faceCaptureManagerFactory--1VcHUzl.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-BeNVVdRP.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-CJZ9-0gT.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-R1TlO0fT.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`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
3
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-BfzusGo1.esm.js";
|
|
4
4
|
//#region src/modules/face-match/faceMatchActor.ts
|
|
5
5
|
function createFaceMatchActor(options) {
|
|
6
6
|
return createActor(faceMatchMachine, { input: { config: options.config } }).start();
|
|
@@ -39,6 +39,16 @@ type FaceMatchConfig = {
|
|
|
39
39
|
* @default false
|
|
40
40
|
*/
|
|
41
41
|
disableFaceMatchAnimation?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When true, the module completes immediately on mount WITHOUT fetching data
|
|
44
|
+
* or rendering any match UI. Set by the Flow orchestrator under US Smart
|
|
45
|
+
* Capture when the ID was captured without a front image ("no front, no
|
|
46
|
+
* match") — there is no ID face to compare against. Distinct from (and
|
|
47
|
+
* complementary to) the reactive backend-4084 skip: this avoids mounting the
|
|
48
|
+
* module and the failing fetch entirely.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
skipFaceMatch?: boolean;
|
|
42
52
|
};
|
|
43
53
|
/**
|
|
44
54
|
* Cropped face images fetched from the backend.
|
package/dist/{faceMatchStateMachine-DD7FxtUj.esm.js → faceMatchStateMachine-BfzusGo1.esm.js}
RENAMED
|
@@ -134,6 +134,7 @@ const faceMatchMachine = setup({
|
|
|
134
134
|
},
|
|
135
135
|
guards: {
|
|
136
136
|
isAnimationDisabled: ({ context }) => context.config.disableFaceMatchAnimation === true,
|
|
137
|
+
isFaceMatchSkipped: ({ context }) => context.config.skipFaceMatch === true,
|
|
137
138
|
isFaceExtractionSkipped: ({ event }) => isFaceExtractionSkippedError(event.error)
|
|
138
139
|
}
|
|
139
140
|
}).createMachine({
|
|
@@ -146,7 +147,13 @@ const faceMatchMachine = setup({
|
|
|
146
147
|
error: void 0
|
|
147
148
|
}),
|
|
148
149
|
states: {
|
|
149
|
-
idle: {
|
|
150
|
+
idle: {
|
|
151
|
+
always: [{
|
|
152
|
+
target: "finished",
|
|
153
|
+
guard: "isFaceMatchSkipped"
|
|
154
|
+
}],
|
|
155
|
+
on: { LOAD: { target: "loading" } }
|
|
156
|
+
},
|
|
150
157
|
loading: { invoke: {
|
|
151
158
|
id: "fetchData",
|
|
152
159
|
src: "fetchData",
|
package/dist/flow.d.ts
CHANGED
|
@@ -224,6 +224,7 @@ type OrchestratedFlowEvent = {
|
|
|
224
224
|
type: 'RESET';
|
|
225
225
|
} | {
|
|
226
226
|
type: 'MODULE_COMPLETE';
|
|
227
|
+
output?: unknown;
|
|
227
228
|
} | {
|
|
228
229
|
type: 'COMPLETE_FLOW';
|
|
229
230
|
} | {
|
|
@@ -328,7 +329,7 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
328
329
|
* />
|
|
329
330
|
* ```
|
|
330
331
|
*/
|
|
331
|
-
completeModule(): void;
|
|
332
|
+
completeModule(output?: unknown): void;
|
|
332
333
|
/**
|
|
333
334
|
* Skip all remaining modules and complete the flow now, notifying the
|
|
334
335
|
* backend (getFinishStatus) on the way to the completion step.
|
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-zxA2NPMQ.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
|
|
@@ -355,7 +355,8 @@ function createBaseContext(context, isHomeContinueLoading) {
|
|
|
355
355
|
getFinishStatus: context.getFinishStatus,
|
|
356
356
|
enableHome: context.enableHome,
|
|
357
357
|
finishStatus: void 0,
|
|
358
|
-
isHomeContinueLoading
|
|
358
|
+
isHomeContinueLoading,
|
|
359
|
+
skipFaceMatch: false
|
|
359
360
|
};
|
|
360
361
|
}
|
|
361
362
|
function createInitialContext(input) {
|
|
@@ -440,7 +441,11 @@ const orchestratedFlowMachine = setup({
|
|
|
440
441
|
incrementStep: assign(({ context }) => {
|
|
441
442
|
const nextIndex = context.currentStepIndex + 1;
|
|
442
443
|
const module = context.flow?.flowModules?.[nextIndex];
|
|
443
|
-
const
|
|
444
|
+
const baseConfig = getModuleConfig(module, context.flow);
|
|
445
|
+
const config = module?.key === "FACE_MATCH" && context.skipFaceMatch === true ? {
|
|
446
|
+
...baseConfig,
|
|
447
|
+
skipFaceMatch: true
|
|
448
|
+
} : baseConfig;
|
|
444
449
|
return {
|
|
445
450
|
currentStepIndex: nextIndex,
|
|
446
451
|
currentStep: module?.key,
|
|
@@ -448,6 +453,12 @@ const orchestratedFlowMachine = setup({
|
|
|
448
453
|
currentModuleMachine: void 0
|
|
449
454
|
};
|
|
450
455
|
}),
|
|
456
|
+
persistSkipFaceMatch: assign(({ context, event }) => {
|
|
457
|
+
const isPrimaryIdStep = context.currentStep === "ID" || context.currentStep === "TUTORIAL_ID";
|
|
458
|
+
const out = event.output;
|
|
459
|
+
if (!isPrimaryIdStep) return {};
|
|
460
|
+
return { skipFaceMatch: out?.skipFaceMatch ?? context.skipFaceMatch };
|
|
461
|
+
}),
|
|
451
462
|
setCurrentModuleMachine: assign(({ event }) => ({ currentModuleMachine: event.output })),
|
|
452
463
|
prefetchNextModule: ({ context }) => {
|
|
453
464
|
prefetchNextLazyModule(context);
|
|
@@ -609,7 +620,7 @@ const orchestratedFlowMachine = setup({
|
|
|
609
620
|
},
|
|
610
621
|
{
|
|
611
622
|
target: "resolvingModule",
|
|
612
|
-
actions: "incrementStep"
|
|
623
|
+
actions: ["persistSkipFaceMatch", "incrementStep"]
|
|
613
624
|
}
|
|
614
625
|
],
|
|
615
626
|
MODULE_ERROR: [
|
|
@@ -845,9 +856,12 @@ function createOrchestratedFlowApi({ actor, getSnapshot, trackElementClicked },
|
|
|
845
856
|
* />
|
|
846
857
|
* ```
|
|
847
858
|
*/
|
|
848
|
-
completeModule() {
|
|
859
|
+
completeModule(output) {
|
|
849
860
|
trackElementClicked?.("completeModule");
|
|
850
|
-
actor.send({
|
|
861
|
+
actor.send({
|
|
862
|
+
type: "MODULE_COMPLETE",
|
|
863
|
+
output
|
|
864
|
+
});
|
|
851
865
|
},
|
|
852
866
|
/**
|
|
853
867
|
* Skip all remaining modules and complete the flow now, notifying the
|
|
@@ -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-BZVkwhRG.esm.js";
|
|
4
4
|
import { n as toIncodeApiError } from "./apiError-COvIGYWe.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-DoM7iyf7.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.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
2
2
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
3
|
import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
|
|
4
4
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as IdCaptureThresholds, B as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, C as IdCaptureDependencies, D as IdCaptureMode, E as IdCaptureInput, F as IdFlowStep, G as DetectionOrientation, H as ManualUploadContext, I as RecordingSession, K as IIdCaptureCapability, L as UploadIdResponse, M as IdDocumentType, N as IdError, O as IdCaptureOnlyConfig, P as IdErrorCode, R as IAnalyticsCapability, S as IdCaptureContext, T as IdCaptureGeometry, U as ManualUploadSide, V as MANUAL_UPLOAD_MAX_RETRIES, W as ManualUploadTab, _ as CapturedImage, a as CreateIdCaptureOnlyActorOptions, b as ID_ERROR_CODES, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as CaptureOnlyResponse, h as CaptureIdResponse, j as IdCapturedImageData, k as IdCaptureOutput, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, q as IdCaptureSettings, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as DetectionArea, w as IdCaptureEvent, x as IdCaptureConfig, y as DetectionStatus, z as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS } from "./idCaptureManager-Cmcwu1iM.js";
|
|
6
6
|
//#region src/modules/id/idCaptureServices.d.ts
|
|
7
7
|
type IdCaptureInitResult = {
|
|
8
8
|
stream: CameraStream;
|
|
@@ -121,4 +121,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
121
121
|
*/
|
|
122
122
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
123
123
|
//#endregion
|
|
124
|
-
export { type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DetectionArea, type DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
|
124
|
+
export { type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DetectionArea, type DetectionOrientation, DetectionStatus, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, type IdCaptureMachine, type IdCaptureManager, IdCaptureMode, type IdCaptureOnlyActor, IdCaptureOnlyConfig, type IdCaptureOnlyMachine, type IdCaptureOnlyManager, IdCaptureOutput, type IdCaptureSettings, type IdCaptureState, IdCaptureThresholds, IdCapturedImageData, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, MANUAL_UPLOAD_MAX_RETRIES, type ManualUploadContext, type ManualUploadSide, type ManualUploadTab, type PermissionResult, type PermissionStatus, RecordingSession, StartRecordingParams, UploadIdImageParams, UploadIdResponse, UploadManualIdFileParams, ValidationError, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, preloadIdRecordingProvider, processId, startRecordingSession, stopRecording, stopStream, uploadIdImage, uploadManualIdFile, validateUploadResponse };
|
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-CrQ8hp5D.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BhzliFq5.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-CrQ8hp5D.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) {
|
|
@@ -336,7 +336,10 @@ function mapState(snapshot) {
|
|
|
336
336
|
currentMode: context.currentMode
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
if (snapshot.matches("finished")) return {
|
|
339
|
+
if (snapshot.matches("finished")) return {
|
|
340
|
+
status: "finished",
|
|
341
|
+
output: snapshot.output
|
|
342
|
+
};
|
|
340
343
|
if (snapshot.matches("error")) return {
|
|
341
344
|
status: "error",
|
|
342
345
|
error: context.error ?? "Unknown error"
|
|
@@ -644,6 +644,29 @@ type IdCaptureInput = {
|
|
|
644
644
|
analyticsProvider?: IAnalyticsCapability;
|
|
645
645
|
dependencies?: IdCaptureDependencies;
|
|
646
646
|
};
|
|
647
|
+
/**
|
|
648
|
+
* Terminal output of `idCaptureMachine`, read by the Flow orchestrator (via
|
|
649
|
+
* `runChildModule`'s `MODULE_COMPLETE`) to decide downstream module skipping.
|
|
650
|
+
*
|
|
651
|
+
* Declared at the machine ROOT (not on a final state) so it actually populates
|
|
652
|
+
* the actor output in this XState version. It is therefore emitted on EVERY
|
|
653
|
+
* top-level final state (`finished` AND `closed`); `computeIdCaptureOutput`
|
|
654
|
+
* gates the skip on a captured back + no front, so cancel / no-capture paths
|
|
655
|
+
* yield `skipFaceMatch: false`. The `| undefined` branch is a defensive type
|
|
656
|
+
* allowance and is not produced at runtime.
|
|
657
|
+
*/
|
|
658
|
+
type IdCaptureOutput = {
|
|
659
|
+
/** A front-of-ID image was captured this session (an ID face exists). */
|
|
660
|
+
frontIdCaptured: boolean;
|
|
661
|
+
/**
|
|
662
|
+
* Under US Smart Capture, `true` when the ID completed WITHOUT a front
|
|
663
|
+
* image ("no front, no match"): the downstream Face Match step has no ID
|
|
664
|
+
* face to compare the selfie against and should be skipped. Always
|
|
665
|
+
* `false` outside `usSmartCapture` (standard front+back always captures a
|
|
666
|
+
* front). The selfie/face capture itself is unaffected.
|
|
667
|
+
*/
|
|
668
|
+
skipFaceMatch: boolean;
|
|
669
|
+
} | undefined;
|
|
647
670
|
//#endregion
|
|
648
671
|
//#region src/modules/id/idCaptureStateMachine.d.ts
|
|
649
672
|
declare const idCaptureMachine: AnyStateMachine;
|
|
@@ -759,6 +782,13 @@ type IdCaptureExpiredExhaustedState = {
|
|
|
759
782
|
};
|
|
760
783
|
type IdCaptureFinishedState = {
|
|
761
784
|
status: 'finished';
|
|
785
|
+
/**
|
|
786
|
+
* Terminal output of the ID machine — the downstream module-skip signal
|
|
787
|
+
* (e.g. `skipFaceMatch` for the US Smart Capture "no front, no match" path).
|
|
788
|
+
* UI-driven modules don't auto-propagate machine output to the orchestrator,
|
|
789
|
+
* so the UI forwards this to `flowManager.completeModule(output)` on finish.
|
|
790
|
+
*/
|
|
791
|
+
output?: IdCaptureOutput;
|
|
762
792
|
};
|
|
763
793
|
type IdCaptureClosedState = {
|
|
764
794
|
status: 'closed';
|
|
@@ -909,4 +939,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
|
|
|
909
939
|
digitalUploadChooseAnother(): void;
|
|
910
940
|
};
|
|
911
941
|
//#endregion
|
|
912
|
-
export {
|
|
942
|
+
export { IdCaptureThresholds as A, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES as B, IdCaptureDependencies as C, IdCaptureMode as D, IdCaptureInput as E, IdFlowStep as F, DetectionOrientation as G, ManualUploadContext as H, RecordingSession as I, IIdCaptureCapability as K, UploadIdResponse as L, IdDocumentType as M, IdError as N, IdCaptureOnlyConfig as O, IdErrorCode as P, IAnalyticsCapability as R, IdCaptureContext as S, IdCaptureGeometry as T, ManualUploadSide as U, MANUAL_UPLOAD_MAX_RETRIES as V, ManualUploadTab as W, CapturedImage as _, CreateIdCaptureOnlyActorOptions as a, ID_ERROR_CODES as b, IdCaptureOnlyMachine as c, IdCaptureActor as d, createIdCaptureActor as f, CaptureOnlyResponse as g, CaptureIdResponse as h, createIdCaptureManagerFromActor as i, IdCapturedImageData as j, IdCaptureOutput as k, idCaptureOnlyMachine as l, idCaptureMachine as m, IdCaptureManager as n, IdCaptureOnlyActor as o, IdCaptureMachine as p, IdCaptureSettings as q, IdCaptureState as r, createIdCaptureOnlyActor as s, createIdCaptureManager as t, CreateIdCaptureActorOptions as u, DetectionArea as v, IdCaptureEvent as w, IdCaptureConfig as x, DetectionStatus as y, MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS as z };
|