@incodetech/core 0.0.0-dev-20260728-ee28c8bd → 0.0.0-dev-20260728-af4e1aee
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-DhKmbcZh.esm.js → authenticationManager-BDkpqQ-5.esm.js} +2 -2
- package/dist/{authenticationStateMachine-DrOepYhJ.esm.js → authenticationStateMachine-lTogTlQv.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-DLOyIZzt.d.ts} +1 -1
- package/dist/{deepsightLoader-ChJdVAcM.esm.js → deepsightLoader-DDu_KUyv.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-B-J1lXcH.d.ts} +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-x5RT5Hit.esm.js → ekybManager-BQQyRMqw.esm.js} +1 -1
- package/dist/{ekybStateMachine-D9KpHlgz.esm.js → ekybStateMachine-jsiqdGjv.esm.js} +1 -1
- package/dist/extensibility.d.ts +9 -8
- package/dist/extensibility.esm.js +8 -7
- package/dist/{faceCaptureManagerFactory-ysDDYfpc.esm.js → faceCaptureManagerFactory-DaYwl0Yq.esm.js} +1 -1
- package/dist/{faceCaptureSetup-BRMhr-XT.esm.js → faceCaptureSetup-DlmX-9nD.esm.js} +2 -2
- package/dist/flow.d.ts +3 -3
- package/dist/flow.esm.js +1 -1
- package/dist/{flowServices-DyZkh-5Q.esm.js → flowServices-T5JoA_1N.esm.js} +2 -2
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Dxv7cHUT.d.ts → idCaptureManager-D6fKtXhM.d.ts} +2 -2
- package/dist/{idCaptureManager-DrmMKLDi.esm.js → idCaptureManager-DaqabBBZ.esm.js} +4 -1
- package/dist/{idCaptureStateMachine-CtqVhBjq.esm.js → idCaptureStateMachine-CU1CsT7x.esm.js} +51 -9
- package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-dLuxey6y.d.ts} +2 -2
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-M6QI0nB0.d.ts → mandatoryConsentManager-IKpruo6V.d.ts} +1 -1
- package/dist/{onDeviceFaceResults-BbjULJyT.esm.js → onDeviceFaceResults-bUR2uNg0.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/{recordingService-CqKPwPvN.esm.js → recordingService-ChBo1rvx.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-5QzVKTV3.esm.js → selfieManager-9Eci1f5e.esm.js} +2 -2
- package/dist/{selfieStateMachine-6SSh-uFp.esm.js → selfieStateMachine-CKRTfYh8.esm.js} +2 -2
- package/dist/session-B3d0Xtee.esm.js +1 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-DuZWsy2u.esm.js → sessionInitializer-CgjN51b2.esm.js} +1 -1
- package/dist/{setup-ItZ5fsL_.esm.js → setup-BFGd-cxt.esm.js} +2 -2
- package/dist/{types-CfwPB1PL.d.ts → types-DznwkfTc.d.ts} +6 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist.d.ts +1 -50
- package/dist/watchlist.esm.js +1 -69
- package/dist/watchlistManager-DLXef90v.d.ts +68 -0
- package/dist/watchlistManager-FRMpgcWW.esm.js +83 -0
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +7 -7
- package/package.json +3 -3
- package/dist/session-BO17OfFa.esm.js +0 -1
- /package/dist/{types-BfgmV7s7.d.ts → types-BfgmV7s72.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-.d.ts → types-CJ7Yl9K-2.d.ts} +0 -0
|
@@ -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-lTogTlQv.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BDkpqQ-5.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-DhKmbcZh.esm.js → authenticationManager-BDkpqQ-5.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.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-DaYwl0Yq.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-lTogTlQv.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-CfRg7iAr.esm.js";
|
|
|
3
3
|
import { t as addDeviceStats } from "./stats-4DAk7TYl.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-DlmX-9nD.esm.js";
|
|
7
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-bUR2uNg0.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.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-DLOyIZzt.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -97,7 +97,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
97
97
|
}>, {
|
|
98
98
|
type: "canSubmit";
|
|
99
99
|
params: unknown;
|
|
100
|
-
}, never, "error" | "idle" | "finished" | "
|
|
100
|
+
}, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
101
101
|
readonly id: "consent";
|
|
102
102
|
readonly initial: "idle";
|
|
103
103
|
readonly context: ({ input }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
|
|
4
|
-
import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
4
|
+
import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CgjN51b2.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,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-B4BObr_7.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B-J1lXcH.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -98,10 +98,6 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
98
98
|
id: string | undefined;
|
|
99
99
|
};
|
|
100
100
|
}>, Values<{
|
|
101
|
-
decrementAttemptsRemaining: {
|
|
102
|
-
type: "decrementAttemptsRemaining";
|
|
103
|
-
params: NonReducibleUnknown;
|
|
104
|
-
};
|
|
105
101
|
setStream: {
|
|
106
102
|
type: "setStream";
|
|
107
103
|
params: NonReducibleUnknown;
|
|
@@ -118,6 +114,10 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
118
114
|
type: "stopStream";
|
|
119
115
|
params: NonReducibleUnknown;
|
|
120
116
|
};
|
|
117
|
+
decrementAttemptsRemaining: {
|
|
118
|
+
type: "decrementAttemptsRemaining";
|
|
119
|
+
params: NonReducibleUnknown;
|
|
120
|
+
};
|
|
121
121
|
setCapturedDocument: {
|
|
122
122
|
type: "setCapturedDocument";
|
|
123
123
|
params: NonReducibleUnknown;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { E as SUPPORTED_COUNTRIES, O as isSupportedCountry, S as DEV_ONLY_COUNTRIES, g as toEkybConfig, v as ALL_COUNTRIES } from "./flowServices-T5JoA_1N.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-jsiqdGjv.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-BQQyRMqw.esm.js";
|
|
4
4
|
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-jsiqdGjv.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
3
|
-
import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-
|
|
3
|
+
import { C as FIELD_NAME_MAPPING, D as UBO_FIELD_LABELS, O as isSupportedCountry, T as INVALID_CNPJ_PATTERNS, _ as ADDRESS_FIELDS, b as CNPJ_SECOND_DIGIT_FACTORS, f as hasAtLeastOneAddressField, g as toEkybConfig, h as sortModulesByOrder, m as requiresAddressValidation, p as isFieldOptional, t as getFlow, v as ALL_COUNTRIES, w as FIELD_ORDER, x as COUNTRIES_WITH_CNPJ_VALIDATION, y as CNPJ_FIRST_DIGIT_FACTORS } from "./flowServices-T5JoA_1N.esm.js";
|
|
4
4
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
6
|
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-DEYnZoez.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -9,21 +9,22 @@ import { t as IStorageCapability } from "./IStorageCapability-B8IGxCwe.js";
|
|
|
9
9
|
import { c as VirtualCameraCheckOutput, l as WasmUtilConfig, s as IWasmUtilCapability } from "./types-BK-v1UYb.js";
|
|
10
10
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BT7dmOHi.js";
|
|
11
11
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-B2KZQ9zw.js";
|
|
12
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
12
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
|
|
13
13
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dq8Z3SOg.js";
|
|
14
14
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-BEWD-Lvo.js";
|
|
15
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
15
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-B-J1lXcH.js";
|
|
16
16
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-BYac2uEY.js";
|
|
17
17
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-Dzswb_b8.js";
|
|
18
18
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-BFpHbBoT.js";
|
|
19
19
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CADXW_9X.js";
|
|
20
|
-
import { n as CaptureIdResponse } from "./types-
|
|
21
|
-
import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-
|
|
20
|
+
import { n as CaptureIdResponse } from "./types-DznwkfTc.js";
|
|
21
|
+
import { i as createIdCaptureManagerFromActor, k as IdCaptureActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-D6fKtXhM.js";
|
|
22
22
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BBU8Lq0O.js";
|
|
23
|
-
import { a as
|
|
23
|
+
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
24
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D6pD4hcZ.js";
|
|
24
25
|
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-
|
|
26
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
26
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-IKpruo6V.js";
|
|
27
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
|
|
27
28
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-BiVH2Ymm.js";
|
|
28
29
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Cz744E5S.js";
|
|
29
30
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BB4Pj_N6.js";
|
|
@@ -151,4 +152,4 @@ declare function getDeviceFingerprintInfo(): Promise<DeviceFingerprintInfo>;
|
|
|
151
152
|
//#region src/internal/fingerprint/fingerprintApi.d.ts
|
|
152
153
|
declare function getFingerprint(disableIpify?: boolean): Promise<FingerprintResult>;
|
|
153
154
|
//#endregion
|
|
154
|
-
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
155
|
+
export { type AntifraudActor, type AntifraudManager, type AntifraudState, type AuthenticationActor, type AuthenticationManager, type AuthenticationState, type AuthenticationUploadResponse, BrowserStorageProvider, type CaptureIdResponse, type ConsentActor, type ConsentManager, type ConsentState, type CrossDocumentDataMatchActor, type CrossDocumentDataMatchManager, type CrossDocumentDataMatchState, type CurpValidationActor, type CurpValidationManager, type CurpValidationState, type DeviceFingerprintInfo, type DocumentCaptureActor, type DocumentCaptureManager, type DocumentCaptureState, type DynamicFormsActor, type DynamicFormsManager, type DynamicFormsState, type EkybActor, type EkybManager, type EkybState, type EkycActor, type EkycManager, type EkycState, type EmailActor, type EmailManager, type EmailState, type FaceCaptureContext, type FaceCaptureEvent, type FaceCaptureInput, type FaceCaptureManager, type FaceCaptureManagerState, type FaceMatchActor, type FaceMatchManager, type FaceMatchState, type FieldComparisonActor, type FieldComparisonManager, type FieldComparisonState, type FingerprintResult, type GeolocationActor, type GeolocationManager, type GeolocationState, type IdCaptureActor, type IdCaptureManager, type IdCaptureState, type IdOcrActor, type IdOcrManager, type IdOcrState, type IdVerificationActor, type IdVerificationManager, type IdVerificationState, type IdentityReuseActor, type IdentityReuseManager, type IdentityReuseState, type MandatoryConsentActor, type MandatoryConsentManager, type MandatoryConsentState, type PhoneActor, type PhoneManager, type PhoneState, type ProcessFaceResponse, type RedirectToMobileActor, type RedirectToMobileManager, type RedirectToMobileState, type SelfieActor, type SelfieManager, type SelfieState, type SendFaceImageResponse, WasmUtilProvider, type WatchlistActor, type WatchlistManager, type WatchlistState, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
|
-
import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-
|
|
2
|
+
import { _ as getDeviceFingerprintInfo, h as FingerprintProvider, m as IpifyProvider, t as getDisableIpify } from "./sessionInitializer-CgjN51b2.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-CFsD4BgV.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DlmX-9nD.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-BDkpqQ-5.esm.js";
|
|
9
9
|
import { n as createConsentManagerFromActor } from "./consentManager-0EiBXYtL.esm.js";
|
|
10
10
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-Dw7euiiZ.esm.js";
|
|
11
11
|
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-BGj9U3E0.esm.js";
|
|
12
12
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-DBRQX16v.esm.js";
|
|
13
13
|
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-DI0sCyVB.esm.js";
|
|
14
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
14
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-BQQyRMqw.esm.js";
|
|
15
15
|
import { n as createEkycManagerFromActor } from "./ekycManager-Cl2e4Knv.esm.js";
|
|
16
16
|
import { n as createEmailManagerFromActor } from "./emailManager-Dmt1YrtS.esm.js";
|
|
17
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
18
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
17
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-9Eci1f5e.esm.js";
|
|
18
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DaqabBBZ.esm.js";
|
|
19
19
|
import { n as createPhoneManagerFromActor } from "./phoneManager-C3aqq6jS.esm.js";
|
|
20
|
+
import { n as createWatchlistManagerFromActor } from "./watchlistManager-FRMpgcWW.esm.js";
|
|
20
21
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BjMJHKLP.esm.js";
|
|
21
22
|
import { n as createFieldComparisonManagerFromActor } from "./fieldComparisonManager-USUE9qDr.esm.js";
|
|
22
23
|
import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentManager-BOOjm7SU.esm.js";
|
|
@@ -31,4 +32,4 @@ async function getFingerprint(disableIpify) {
|
|
|
31
32
|
return new FingerprintProvider(new IpifyProvider()).getFingerprint(shouldDisableIpify);
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
|
35
|
+
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAntifraudManagerFromActor, createAuthenticationManagerFromActor, createConsentManagerFromActor, createCrossDocumentDataMatchManagerFromActor, createCurpValidationManagerFromActor, createDocumentCaptureManagerFromActor, createDynamicFormsManagerFromActor, createEkybManagerFromActor, createEkycManagerFromActor, createEmailManagerFromActor, createFaceMatchManagerFromActor, createFieldComparisonManagerFromActor, createGeolocationManagerFromActor, createIdCaptureManagerFromActor, createIdOcrManagerFromActor, createIdVerificationManagerFromActor, createIdentityReuseManagerFromActor, createMandatoryConsentManagerFromActor, createPhoneManagerFromActor, createRedirectToMobileManagerFromActor, createSelfieManagerFromActor, createWatchlistManagerFromActor, faceCaptureMachine, fromCallback, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/{faceCaptureManagerFactory-ysDDYfpc.esm.js → faceCaptureManagerFactory-DaYwl0Yq.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-DlmX-9nD.esm.js";
|
|
5
5
|
import { n as setWasmDsFlagSync, t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-sJclps4C.esm.js";
|
|
6
6
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-CkHL1BjH.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-CkHL1BjH.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-bUR2uNg0.esm.js";
|
|
6
6
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
7
7
|
import { t as createFaceAvatar } from "./createFaceAvatar-x5aaJwVM.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-5Cu6a8iN.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-ChBo1rvx.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.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ import { t as AuthenticationConfig } from "./types-sK-eGomM.js";
|
|
|
9
9
|
import { r as DocumentCaptureConfig } from "./types-B4BObr_7.js";
|
|
10
10
|
import { t as DynamicFormsConfig } from "./types-xIEGXWk8.js";
|
|
11
11
|
import { t as EkybConfig } from "./types-BfHiko5D.js";
|
|
12
|
-
import { c as IdCaptureConfig } from "./types-
|
|
12
|
+
import { c as IdCaptureConfig } from "./types-DznwkfTc.js";
|
|
13
13
|
import { r as MandatoryConsentConfig } from "./types-DjHL5Wa9.js";
|
|
14
|
-
import { t as IdOcrConfig } from "./types-CJ7Yl9K
|
|
14
|
+
import { t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
|
|
15
15
|
import { t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
|
|
16
16
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
17
17
|
import { o as FlowEventSubscribable } from "./index-X9serOZT.js";
|
|
18
|
-
import { n as ModuleRegistry } from "./types-
|
|
18
|
+
import { n as ModuleRegistry } from "./types-BfgmV7s72.js";
|
|
19
19
|
//#region src/modules/flow/flowUtils.d.ts
|
|
20
20
|
type NormalizeFlowModulesOptions = {
|
|
21
21
|
isDesktop?: boolean;
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
-
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-T5JoA_1N.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor, 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 { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
4
|
-
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
4
|
+
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CgjN51b2.esm.js";
|
|
5
5
|
import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
6
|
-
import "./session-
|
|
6
|
+
import "./session-B3d0Xtee.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
1
|
+
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
package/dist/id.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
3
3
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
4
|
-
import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-
|
|
5
|
-
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-
|
|
4
|
+
import { A as ManualUploadSide, C as RecordingSession, D as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, E as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, M as DetectionOrientation, O as MANUAL_UPLOAD_MAX_RETRIES, P as IdCaptureSettings, S as IdFlowStep, _ as IdCaptureThresholds, a as DetectionArea, b as IdError, c as IdCaptureConfig, d as IdCaptureEvent, f as IdCaptureGeometry, g as IdCaptureOutput, h as IdCaptureOnlyConfig, i as CapturedImage, j as ManualUploadTab, k as ManualUploadContext, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, r as CaptureOnlyResponse, s as ID_ERROR_CODES, t as AddBarcodeV3Response, u as IdCaptureDependencies, v as IdCapturedImageData, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DznwkfTc.js";
|
|
5
|
+
import { A as createIdCaptureActor, C as CreateIdCaptureOnlyActorOptions, D as idCaptureOnlyMachine, E as IdCaptureOnlyMachine, M as idCaptureMachine, O as CreateIdCaptureActorOptions, S as validateUploadResponse, T as createIdCaptureOnlyActor, _ as startRecordingSession, a as AddBarcodeParams, b as uploadIdImage, c as StartRecordingParams, d as ValidationError, f as addBarcode, g as processId, h as preloadIdRecordingProvider, j as IdCaptureMachine, k as IdCaptureActor, l as UploadIdImageParams, m as initializeIdCapture, n as IdCaptureManager, o as IdCaptureInitResult, p as barcodeToBase64, r as IdCaptureState, s as InitializeIdCaptureParams, t as createIdCaptureManager, u as UploadManualIdFileParams, v as stopRecording, w as IdCaptureOnlyActor, x as uploadManualIdFile, y as stopStream } from "./idCaptureManager-D6fKtXhM.js";
|
|
6
6
|
//#region src/modules/id/idCaptureOnlyManager.d.ts
|
|
7
7
|
type IdCaptureOnlyManager = IdCaptureManager;
|
|
8
8
|
/**
|
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 { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
5
|
+
import { _ as MANUAL_UPLOAD_MAX_RETRIES, a as initializeIdCapture, c as startRecordingSession, d as uploadIdImage, f as uploadManualIdFile, g as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, h as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, i as barcodeToBase64, l as stopRecording, m as ID_ERROR_CODES, o as preloadIdRecordingProvider, p as validateUploadResponse, r as addBarcode, s as processId, t as idCaptureMachine, u as stopStream } from "./idCaptureStateMachine-CU1CsT7x.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-DaqabBBZ.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) {
|
|
@@ -8,7 +8,7 @@ import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
|
8
8
|
import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
|
|
9
9
|
import { a as RegulationTypes } from "./types-NSJbROLr.js";
|
|
10
10
|
import { n as PermissionStatus } from "./types-BT-aiBYV.js";
|
|
11
|
-
import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-
|
|
11
|
+
import { A as ManualUploadSide, C as RecordingSession, F as Pdf417DecodeResult, M as DetectionOrientation, N as IIdCaptureCapability, T as IAnalyticsCapability, a as DetectionArea, c as IdCaptureConfig, d as IdCaptureEvent, g as IdCaptureOutput, h as IdCaptureOnlyConfig, j as ManualUploadTab, l as IdCaptureContext, m as IdCaptureMode, n as CaptureIdResponse, o as DetectionStatus, p as IdCaptureInput, t as AddBarcodeV3Response, u as IdCaptureDependencies, w as UploadIdResponse, x as IdErrorCode, y as IdDocumentType } from "./types-DznwkfTc.js";
|
|
12
12
|
//#region src/modules/id/idCaptureStateMachine.d.ts
|
|
13
13
|
declare const idCaptureMachine: AnyStateMachine;
|
|
14
14
|
type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
|
|
@@ -168,7 +168,7 @@ declare function addBarcode(params: AddBarcodeParams): Promise<AddBarcodeV3Respo
|
|
|
168
168
|
type DigitalUploadFailReason = 'DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED' | 'ID_TYPE_UNACCEPTABLE' | 'FILE_CHANGED_ERROR' | 'INVALID_FILE_TYPE' | 'NETWORK_ERROR' | 'GENERIC';
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region src/internal/idCapture/idCaptureManagerFactory.d.ts
|
|
171
|
-
type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'uploading' | 'uploadError' | 'success';
|
|
171
|
+
type CaptureStatus = 'initializing' | 'detecting' | 'capturing' | 'holdOn' | 'uploading' | 'uploadError' | 'success';
|
|
172
172
|
type IdCaptureIdleState = {
|
|
173
173
|
status: 'idle';
|
|
174
174
|
};
|
|
@@ -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-CkHL1BjH.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-CU1CsT7x.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) {
|
|
@@ -117,6 +117,8 @@ function getCaptureStatus(snapshot) {
|
|
|
117
117
|
manualCaptureWaiting: snapshot.matches({ capture: "manualCaptureWaiting" }),
|
|
118
118
|
capturing: snapshot.matches({ capture: "capturing" }),
|
|
119
119
|
capturingManual: snapshot.matches({ capture: "capturingManual" }),
|
|
120
|
+
capturingBarcode: snapshot.matches({ capture: "capturingBarcode" }),
|
|
121
|
+
submittingBarcodePreCapture: snapshot.matches({ capture: "submittingBarcodePreCapture" }),
|
|
120
122
|
uploading: snapshot.matches({ capture: "uploading" }),
|
|
121
123
|
uploadCompleted: snapshot.matches({ capture: "uploadCompleted" }),
|
|
122
124
|
submittingBarcode: snapshot.matches({ capture: "submittingBarcode" }),
|
|
@@ -125,6 +127,7 @@ function getCaptureStatus(snapshot) {
|
|
|
125
127
|
};
|
|
126
128
|
if (matches.initializing) return "initializing";
|
|
127
129
|
if (matches.detecting || matches.manualCaptureWaiting) return "detecting";
|
|
130
|
+
if (matches.capturingBarcode || matches.submittingBarcodePreCapture) return "holdOn";
|
|
128
131
|
if (matches.capturing || matches.capturingManual) return "capturing";
|
|
129
132
|
if (matches.uploading || matches.uploadCompleted || matches.submittingBarcode) return "uploading";
|
|
130
133
|
if (matches.uploadError) return "uploadError";
|
package/dist/{idCaptureStateMachine-CtqVhBjq.esm.js → idCaptureStateMachine-CU1CsT7x.esm.js}
RENAMED
|
@@ -3,20 +3,21 @@ 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-CfRg7iAr.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
|
|
6
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
6
|
+
import { t as getDisableIpify } from "./sessionInitializer-CgjN51b2.esm.js";
|
|
7
7
|
import { n as isDesktop } from "./platform-Cd_yWGNG.esm.js";
|
|
8
|
-
import "./session-
|
|
8
|
+
import "./session-B3d0Xtee.esm.js";
|
|
9
9
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
11
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
|
|
12
|
-
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
12
|
+
import { _ as StreamCanvasProcessingSession, h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-bUR2uNg0.esm.js";
|
|
13
|
+
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
13
14
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
14
15
|
import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
|
|
15
16
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
16
17
|
import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
|
|
17
18
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
18
19
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-5Cu6a8iN.esm.js";
|
|
19
|
-
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-
|
|
20
|
+
import { i as flagIdManualReview, n as preloadOpenViduProvider } from "./recordingService-ChBo1rvx.esm.js";
|
|
20
21
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS$1, r as IdCaptureProvider } from "./idCaptureDefaults-DCrjeNl5.esm.js";
|
|
21
22
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
22
23
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1189,6 +1190,15 @@ const shouldSkipProcessIdGuard = ({ context }) => context.skipProcessId === true
|
|
|
1189
1190
|
*/
|
|
1190
1191
|
const shouldSubmitBarcodeGuard = ({ context }) => context.currentMode === "back" && context.config.usSmartCapture === true && !!context.decodedBarcode?.text;
|
|
1191
1192
|
/**
|
|
1193
|
+
* US Smart Capture pre-capture fast path: submit the decoded PDF417 barcode the
|
|
1194
|
+
* instant it is decoded, before the best-frame auto-capture completes. Reads the
|
|
1195
|
+
* barcode from the EVENT — the guard runs before the store action, so
|
|
1196
|
+
* `context.decodedBarcode` isn't populated yet. One-shot per attempt via
|
|
1197
|
+
* `barcodeFastPathAttempted` (a later best-frame decode falls through to the
|
|
1198
|
+
* regular `shouldSubmitBarcode` path).
|
|
1199
|
+
*/
|
|
1200
|
+
const canRunBarcodeFastPathGuard = ({ context, event }) => context.currentMode === "back" && context.config.usSmartCapture === true && !context.barcodeFastPathAttempted && !!event.decoded?.text;
|
|
1201
|
+
/**
|
|
1192
1202
|
* Bug 4 fix: when `expiredExhausted` is reached via the per-upload-expired
|
|
1193
1203
|
* exhaustion path with a back side captured (or the entire single-side back
|
|
1194
1204
|
* flow), we want `processId` to run once on Continue so the backend
|
|
@@ -1595,12 +1605,13 @@ const processIdActor = fromPromise(async ({ input, signal }) => {
|
|
|
1595
1605
|
return processId(input.isSecondId, "", signal);
|
|
1596
1606
|
});
|
|
1597
1607
|
const submitBarcodeActor = fromPromise(async ({ input, signal }) => {
|
|
1598
|
-
|
|
1608
|
+
const [response] = await Promise.all([addBarcode({
|
|
1599
1609
|
rawBarcode: input.rawBarcode,
|
|
1600
1610
|
metrics: input.metrics,
|
|
1601
1611
|
processId: input.processId,
|
|
1602
1612
|
signal
|
|
1603
|
-
});
|
|
1613
|
+
}), input.minDurationMs ? sleep(input.minDurationMs) : Promise.resolve()]);
|
|
1614
|
+
return response;
|
|
1604
1615
|
});
|
|
1605
1616
|
const startRecordingActor = fromPromise(async ({ input }) => {
|
|
1606
1617
|
if (!input.stream) return;
|
|
@@ -1614,7 +1625,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1614
1625
|
});
|
|
1615
1626
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1616
1627
|
if (!input.dependencies) return;
|
|
1617
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1628
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DDu_KUyv.esm.js");
|
|
1618
1629
|
return loadDeepsightSession({
|
|
1619
1630
|
ds: input.ds,
|
|
1620
1631
|
storage: input.dependencies.storage,
|
|
@@ -1688,6 +1699,7 @@ function getResetContextValues(context) {
|
|
|
1688
1699
|
captureOnlyImages: {},
|
|
1689
1700
|
uploadResponse: void 0,
|
|
1690
1701
|
decodedBarcode: null,
|
|
1702
|
+
barcodeFastPathAttempted: false,
|
|
1691
1703
|
recordingSession: void 0,
|
|
1692
1704
|
attemptsRemaining: context.config.captureAttempts,
|
|
1693
1705
|
expiredAttempts: 0,
|
|
@@ -2067,6 +2079,7 @@ const idCaptureMachine = setup({
|
|
|
2067
2079
|
storeCapturedImage: assign(({ context, event }) => getStoreCapturedImageValues(context, event)),
|
|
2068
2080
|
storeBarcodeResponse: assign(({ context, event }) => getBarcodeResponseValues(context, event)),
|
|
2069
2081
|
storeDecodedBarcode: assign({ decodedBarcode: ({ event }) => event.decoded }),
|
|
2082
|
+
setBarcodeFastPathAttempted: assign({ barcodeFastPathAttempted: true }),
|
|
2070
2083
|
setDetectionStatus: assign({ detectionStatus: ({ event, context }) => getDetectionStatusFromUpdate(context, event) }),
|
|
2071
2084
|
setCounterValue: assign({ counterValue: ({ event }) => {
|
|
2072
2085
|
if ("value" in event) return event.value;
|
|
@@ -2145,6 +2158,7 @@ const idCaptureMachine = setup({
|
|
|
2145
2158
|
wasExpiredFromUpload: wasExpiredFromUploadGuard,
|
|
2146
2159
|
shouldSkipProcessId: shouldSkipProcessIdGuard,
|
|
2147
2160
|
shouldSubmitBarcode: shouldSubmitBarcodeGuard,
|
|
2161
|
+
canRunBarcodeFastPath: canRunBarcodeFastPathGuard,
|
|
2148
2162
|
isProcessingExpiredExhausted: isProcessingExpiredExhaustedGuard,
|
|
2149
2163
|
shouldProcessAfterExhaustion: shouldProcessAfterExhaustionGuard,
|
|
2150
2164
|
forceFinishAfterProcessing: forceFinishAfterProcessingGuard,
|
|
@@ -2175,6 +2189,7 @@ const idCaptureMachine = setup({
|
|
|
2175
2189
|
captureOnlyImages: {},
|
|
2176
2190
|
uploadResponse: void 0,
|
|
2177
2191
|
decodedBarcode: null,
|
|
2192
|
+
barcodeFastPathAttempted: false,
|
|
2178
2193
|
recordingSession: void 0,
|
|
2179
2194
|
attemptsRemaining: input.config.captureAttempts,
|
|
2180
2195
|
expiredAttempts: 0,
|
|
@@ -2605,7 +2620,11 @@ const idCaptureMachine = setup({
|
|
|
2605
2620
|
target: "capturing",
|
|
2606
2621
|
actions: assign({ qualityElements: ({ event }) => event.qualityElements })
|
|
2607
2622
|
},
|
|
2608
|
-
BARCODE_DECODED: {
|
|
2623
|
+
BARCODE_DECODED: [{
|
|
2624
|
+
target: "capturingBarcode",
|
|
2625
|
+
guard: "canRunBarcodeFastPath",
|
|
2626
|
+
actions: ["storeDecodedBarcode", "setBarcodeFastPathAttempted"]
|
|
2627
|
+
}, { actions: "storeDecodedBarcode" }],
|
|
2609
2628
|
MANUAL_CAPTURE: { target: "capturingManual" },
|
|
2610
2629
|
SWITCH_TO_MANUAL_CAPTURE: {
|
|
2611
2630
|
target: "manualCaptureWaiting",
|
|
@@ -2651,7 +2670,7 @@ const idCaptureMachine = setup({
|
|
|
2651
2670
|
input: ({ context }) => ({
|
|
2652
2671
|
rawBarcode: context.decodedBarcode?.text ?? "",
|
|
2653
2672
|
metrics: context.decodedBarcode,
|
|
2654
|
-
processId: true
|
|
2673
|
+
processId: context.config.skipProcessId !== true
|
|
2655
2674
|
}),
|
|
2656
2675
|
onDone: {
|
|
2657
2676
|
target: "success",
|
|
@@ -2659,6 +2678,29 @@ const idCaptureMachine = setup({
|
|
|
2659
2678
|
},
|
|
2660
2679
|
onError: { target: "uploading" }
|
|
2661
2680
|
} },
|
|
2681
|
+
capturingBarcode: {
|
|
2682
|
+
entry: [
|
|
2683
|
+
"captureImage",
|
|
2684
|
+
"storeCapturedCanvasInProvider",
|
|
2685
|
+
"storeCapturedImage"
|
|
2686
|
+
],
|
|
2687
|
+
always: [{ target: "submittingBarcodePreCapture" }]
|
|
2688
|
+
},
|
|
2689
|
+
submittingBarcodePreCapture: { invoke: {
|
|
2690
|
+
id: "submitBarcode",
|
|
2691
|
+
src: "submitBarcode",
|
|
2692
|
+
input: ({ context }) => ({
|
|
2693
|
+
rawBarcode: context.decodedBarcode?.text ?? "",
|
|
2694
|
+
metrics: context.decodedBarcode,
|
|
2695
|
+
processId: context.config.skipProcessId !== true,
|
|
2696
|
+
minDurationMs: 1e3
|
|
2697
|
+
}),
|
|
2698
|
+
onDone: {
|
|
2699
|
+
target: "success",
|
|
2700
|
+
actions: "storeBarcodeResponse"
|
|
2701
|
+
},
|
|
2702
|
+
onError: { target: "detecting" }
|
|
2703
|
+
} },
|
|
2662
2704
|
capturingManual: {
|
|
2663
2705
|
entry: [
|
|
2664
2706
|
"captureLatestFrame",
|
|
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CJ7Yl9K
|
|
5
|
+
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
|
|
6
6
|
//#region src/modules/id-ocr/idOcrStateMachine.d.ts
|
|
7
7
|
type IdOcrOcrDocument = 'first' | 'second';
|
|
8
8
|
type IdOcrContext = {
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "submitting" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
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-D6pD4hcZ.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" | "
|
|
128
|
+
}>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", 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-BFGd-cxt.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-DjHL5Wa9.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-IKpruo6V.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-M6QI0nB0.d.ts → mandatoryConsentManager-IKpruo6V.d.ts}
RENAMED
|
@@ -72,7 +72,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
75
|
-
}, never, "error" | "idle" | "closed" | "finished" | "
|
|
75
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
76
76
|
readonly id: "mandatoryConsent";
|
|
77
77
|
readonly initial: "idle";
|
|
78
78
|
readonly context: ({ input }: {
|
|
@@ -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-DDu_KUyv.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-BX83zwtT.esm.js";
|
|
5
5
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
7
|
-
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-CgjN51b2.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-CkHL1BjH.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-bUR2uNg0.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
3
3
|
import { t as isAndroid } from "./platform-Cd_yWGNG.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-bUR2uNg0.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.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-BrWOTaVG.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-DlmX-9nD.esm.js";
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DaYwl0Yq.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-BAEYvNVr.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-CKRTfYh8.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-9Eci1f5e.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-BrWOTaVG.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-DaYwl0Yq.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-CKRTfYh8.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-DlmX-9nD.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-bUR2uNg0.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
|
|
7
7
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./sessionInitializer-CgjN51b2.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-CfRg7iAr.esm.js";
|
|
3
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession } from "./sessionInitializer-CgjN51b2.esm.js";
|
|
4
4
|
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-B3d0Xtee.esm.js";
|
|
6
6
|
import { n as getFinishStatus } from "./flowCompletionService-D5oIlcza.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
@@ -1614,7 +1614,7 @@ function isBrowserSimulation(browserEnv) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
//#endregion
|
|
1616
1616
|
//#region src/internal/version/sdkVersion.ts
|
|
1617
|
-
const SDK_VERSION = "0.0.0-dev-20260728-
|
|
1617
|
+
const SDK_VERSION = "0.0.0-dev-20260728-af4e1aee";
|
|
1618
1618
|
//#endregion
|
|
1619
1619
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
1620
1620
|
function formatOsVersion(os) {
|
|
@@ -7,9 +7,9 @@ import { i as upgradeToWasmHttpClient$1, n as installFreshHttpClient, r as reset
|
|
|
7
7
|
import { _ as setAnalyticsBatcher, g as resetAnalyticsBatcher, h as getAnalyticsBatcher } from "./events-Dy8PyVO5.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
9
9
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
|
|
10
|
-
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-
|
|
10
|
+
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy } from "./sessionInitializer-CgjN51b2.esm.js";
|
|
11
11
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
12
|
-
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-
|
|
12
|
+
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-T5JoA_1N.esm.js";
|
|
13
13
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
14
14
|
var BrowserPageLifecycleProvider = class {
|
|
15
15
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -514,6 +514,12 @@ type IdCaptureContext = {
|
|
|
514
514
|
* submit path; cleared on side flip / retry.
|
|
515
515
|
*/
|
|
516
516
|
decodedBarcode: Pdf417DecodeResult | null;
|
|
517
|
+
/**
|
|
518
|
+
* Whether the pre-capture barcode fast path has fired this attempt. One-shot:
|
|
519
|
+
* once attempted, a repeat decode falls through to the best-frame submit
|
|
520
|
+
* path. Reset on side flip / retry.
|
|
521
|
+
*/
|
|
522
|
+
barcodeFastPathAttempted: boolean;
|
|
517
523
|
recordingSession: RecordingSession | undefined;
|
|
518
524
|
attemptsRemaining: number;
|
|
519
525
|
/**
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-BFGd-cxt.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-CfRg7iAr.esm.js";
|
|
6
|
-
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-
|
|
6
|
+
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-T5JoA_1N.esm.js";
|
|
7
7
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
9
9
|
import { t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
|
|
10
10
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
11
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
11
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-bUR2uNg0.esm.js";
|
|
12
12
|
import { n as getBackCameraStream } from "./backCameraStream-6XQp9RxG.esm.js";
|
|
13
13
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
14
14
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as warmupWasm } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
2
|
import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-B4DUtYET.esm.js";
|
|
3
|
-
import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-
|
|
3
|
+
import { a as setWasmConfig, n as initializeWasmUtil, s as upgradeToWasmHttpClient, t as ensureWasmPipelines } from "./setup-BFGd-cxt.esm.js";
|
|
4
4
|
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, buildWasmConfigFromBasePath, ensureWasmPipelines, initializeWasmUtil, resolveWasmConfig, setWasmConfig, upgradeToWasmHttpClient, warmupWasm };
|
package/dist/watchlist.d.ts
CHANGED
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
3
|
-
type WatchlistResult = 'success' | 'skipped';
|
|
4
|
-
declare const watchlistMachine: any;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/modules/watchlist/watchlistManager.d.ts
|
|
7
|
-
type WatchlistIdleState = {
|
|
8
|
-
status: 'idle';
|
|
9
|
-
};
|
|
10
|
-
type WatchlistProcessingState = {
|
|
11
|
-
status: 'processing';
|
|
12
|
-
};
|
|
13
|
-
type WatchlistSuccessState = {
|
|
14
|
-
status: 'success';
|
|
15
|
-
};
|
|
16
|
-
type WatchlistFinishedState = {
|
|
17
|
-
status: 'finished';
|
|
18
|
-
result: WatchlistResult;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Union of all possible global watchlist manager states.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* const state = watchlistManager.getState();
|
|
26
|
-
* if (state.status === 'finished') {
|
|
27
|
-
* console.log('Global watchlist check complete');
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
|
|
32
|
-
/**
|
|
33
|
-
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
34
|
-
*
|
|
35
|
-
* @example Headless usage
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const manager = createWatchlistManager();
|
|
38
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
39
|
-
* manager.load();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare function createWatchlistManager(): Manager<WatchlistState> & {
|
|
43
|
-
/**
|
|
44
|
-
* Kicks off the global watchlist check.
|
|
45
|
-
* Transitions from 'idle' to 'processing'.
|
|
46
|
-
*/
|
|
47
|
-
load(): void;
|
|
48
|
-
};
|
|
49
|
-
type WatchlistManager = ReturnType<typeof createWatchlistManager>;
|
|
50
|
-
//#endregion
|
|
1
|
+
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
51
2
|
//#region src/modules/watchlist/types.d.ts
|
|
52
3
|
/**
|
|
53
4
|
* Configuration options for the global watchlist module.
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,71 +1,3 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
-
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
1
|
import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
|
|
5
|
-
|
|
6
|
-
function createWatchlistActor() {
|
|
7
|
-
return createActor(watchlistMachine).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/watchlist/watchlistManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
|
|
13
|
-
* Events" screen name. Source: Watchlist | Custom Watchlist Figma file
|
|
14
|
-
* (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
|
|
15
|
-
* Family is `watchlist.*` — shared across global watchlist, custom
|
|
16
|
-
* watchlist, and watchlist-for-business (distinct module tokens per
|
|
17
|
-
* AdSign/QSign precedent).
|
|
18
|
-
*
|
|
19
|
-
* `idle` and `finished` are intentionally unmapped — the Figma canvas does
|
|
20
|
-
* not define screens for the entry / terminal moments. `finished` collapses
|
|
21
|
-
* into `moduleClosed`.
|
|
22
|
-
*/
|
|
23
|
-
function getWatchlistScreenName(snapshot) {
|
|
24
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
25
|
-
if (stateName === void 0) return void 0;
|
|
26
|
-
switch (stateName) {
|
|
27
|
-
case "processing": return "watchlist.processing";
|
|
28
|
-
case "success": return "watchlist.success";
|
|
29
|
-
default: return;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function mapState(snapshot) {
|
|
33
|
-
const typedSnapshot = snapshot;
|
|
34
|
-
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
35
|
-
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
36
|
-
if (typedSnapshot.matches("finished")) return {
|
|
37
|
-
status: "finished",
|
|
38
|
-
result: typedSnapshot.context.result ?? "skipped"
|
|
39
|
-
};
|
|
40
|
-
return { status: "idle" };
|
|
41
|
-
}
|
|
42
|
-
function createApi({ actor }) {
|
|
43
|
-
return {
|
|
44
|
-
/**
|
|
45
|
-
* Kicks off the global watchlist check.
|
|
46
|
-
* Transitions from 'idle' to 'processing'.
|
|
47
|
-
*/
|
|
48
|
-
load() {
|
|
49
|
-
actor.send({ type: "LOAD" });
|
|
50
|
-
} };
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
54
|
-
*
|
|
55
|
-
* @example Headless usage
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const manager = createWatchlistManager();
|
|
58
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
59
|
-
* manager.load();
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
function createWatchlistManager() {
|
|
63
|
-
return createManager({
|
|
64
|
-
actor: createWatchlistActor(),
|
|
65
|
-
mapState,
|
|
66
|
-
createApi,
|
|
67
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-FRMpgcWW.esm.js";
|
|
71
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
5
|
+
type WatchlistResult = 'success' | 'skipped';
|
|
6
|
+
declare const watchlistMachine: any;
|
|
7
|
+
type WatchlistMachine = typeof watchlistMachine;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/modules/watchlist/watchlistActor.d.ts
|
|
10
|
+
type WatchlistActor = ActorRefFrom<WatchlistMachine>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/watchlist/watchlistManager.d.ts
|
|
13
|
+
type WatchlistIdleState = {
|
|
14
|
+
status: 'idle';
|
|
15
|
+
};
|
|
16
|
+
type WatchlistProcessingState = {
|
|
17
|
+
status: 'processing';
|
|
18
|
+
};
|
|
19
|
+
type WatchlistSuccessState = {
|
|
20
|
+
status: 'success';
|
|
21
|
+
};
|
|
22
|
+
type WatchlistFinishedState = {
|
|
23
|
+
status: 'finished';
|
|
24
|
+
result: WatchlistResult;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Union of all possible global watchlist manager states.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const state = watchlistManager.getState();
|
|
32
|
+
* if (state.status === 'finished') {
|
|
33
|
+
* console.log('Global watchlist check complete');
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
40
|
+
*
|
|
41
|
+
* @example Headless usage
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const manager = createWatchlistManager();
|
|
44
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
45
|
+
* manager.load();
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function createWatchlistManager(): Manager<WatchlistState> & {
|
|
49
|
+
/**
|
|
50
|
+
* Kicks off the global watchlist check.
|
|
51
|
+
* Transitions from 'idle' to 'processing'.
|
|
52
|
+
*/
|
|
53
|
+
load(): void;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Creates a watchlist manager from a pre-built actor.
|
|
57
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
58
|
+
*/
|
|
59
|
+
declare function createWatchlistManagerFromActor(actor: WatchlistActor): Manager<WatchlistState> & {
|
|
60
|
+
/**
|
|
61
|
+
* Kicks off the global watchlist check.
|
|
62
|
+
* Transitions from 'idle' to 'processing'.
|
|
63
|
+
*/
|
|
64
|
+
load(): void;
|
|
65
|
+
};
|
|
66
|
+
type WatchlistManager = ReturnType<typeof createWatchlistManager>;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { WatchlistActor as a, createWatchlistManagerFromActor as i, WatchlistState as n, watchlistMachine as o, createWatchlistManager as r, WatchlistManager as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
|
|
5
|
+
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
|
+
function createWatchlistActor() {
|
|
7
|
+
return createActor(watchlistMachine).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/watchlist/watchlistManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
|
|
13
|
+
* Events" screen name. Source: Watchlist | Custom Watchlist Figma file
|
|
14
|
+
* (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
|
|
15
|
+
* Family is `watchlist.*` — shared across global watchlist, custom
|
|
16
|
+
* watchlist, and watchlist-for-business (distinct module tokens per
|
|
17
|
+
* AdSign/QSign precedent).
|
|
18
|
+
*
|
|
19
|
+
* `idle` and `finished` are intentionally unmapped — the Figma canvas does
|
|
20
|
+
* not define screens for the entry / terminal moments. `finished` collapses
|
|
21
|
+
* into `moduleClosed`.
|
|
22
|
+
*/
|
|
23
|
+
function getWatchlistScreenName(snapshot) {
|
|
24
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
25
|
+
if (stateName === void 0) return void 0;
|
|
26
|
+
switch (stateName) {
|
|
27
|
+
case "processing": return "watchlist.processing";
|
|
28
|
+
case "success": return "watchlist.success";
|
|
29
|
+
default: return;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function mapState(snapshot) {
|
|
33
|
+
const typedSnapshot = snapshot;
|
|
34
|
+
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
35
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
36
|
+
if (typedSnapshot.matches("finished")) return {
|
|
37
|
+
status: "finished",
|
|
38
|
+
result: typedSnapshot.context.result ?? "skipped"
|
|
39
|
+
};
|
|
40
|
+
return { status: "idle" };
|
|
41
|
+
}
|
|
42
|
+
function createApi({ actor }) {
|
|
43
|
+
return {
|
|
44
|
+
/**
|
|
45
|
+
* Kicks off the global watchlist check.
|
|
46
|
+
* Transitions from 'idle' to 'processing'.
|
|
47
|
+
*/
|
|
48
|
+
load() {
|
|
49
|
+
actor.send({ type: "LOAD" });
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
54
|
+
*
|
|
55
|
+
* @example Headless usage
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const manager = createWatchlistManager();
|
|
58
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
59
|
+
* manager.load();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
function createWatchlistManager() {
|
|
63
|
+
return createManager({
|
|
64
|
+
actor: createWatchlistActor(),
|
|
65
|
+
mapState,
|
|
66
|
+
createApi,
|
|
67
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates a watchlist manager from a pre-built actor.
|
|
72
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
73
|
+
*/
|
|
74
|
+
function createWatchlistManagerFromActor(actor) {
|
|
75
|
+
return createManager({
|
|
76
|
+
actor,
|
|
77
|
+
mapState,
|
|
78
|
+
createApi,
|
|
79
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { createWatchlistManagerFromActor as n, createWatchlistManager as t };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./StateMachine-EDpYWy0i.js";
|
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
5
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
6
6
|
import { o as FlowEventSubscribable } from "./index-X9serOZT.js";
|
|
7
|
-
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-
|
|
7
|
+
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s72.js";
|
|
8
8
|
//#region src/modules/workflow/types.d.ts
|
|
9
9
|
/** Possible node types returned by the workflow server. */
|
|
10
10
|
type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
|
package/dist/workflow.esm.js
CHANGED
|
@@ -2,28 +2,29 @@ import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.
|
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CgjN51b2.esm.js";
|
|
6
6
|
import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
7
|
-
import { g as toEkybConfig } from "./flowServices-
|
|
7
|
+
import { g as toEkybConfig } from "./flowServices-T5JoA_1N.esm.js";
|
|
8
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
11
|
import { n as electronicSignatureMachine } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
|
|
12
12
|
import "./ae-signature.esm.js";
|
|
13
13
|
import { t as antifraudMachine } from "./antifraudStateMachine-VB-aXHct.esm.js";
|
|
14
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
14
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-lTogTlQv.esm.js";
|
|
15
15
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Di_bLlkP.esm.js";
|
|
16
16
|
import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
|
|
17
17
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
|
|
18
18
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BuQML-pk.esm.js";
|
|
19
19
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BXgH9gGq.esm.js";
|
|
20
20
|
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BQqAwNQ-.esm.js";
|
|
21
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
21
|
+
import { t as ekybMachine } from "./ekybStateMachine-jsiqdGjv.esm.js";
|
|
22
22
|
import { t as ekycMachine } from "./ekycStateMachine-9Mm7LBea.esm.js";
|
|
23
23
|
import { t as emailMachine } from "./emailStateMachine-DQS-QMgQ.esm.js";
|
|
24
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
25
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
24
|
+
import { t as selfieMachine } from "./selfieStateMachine-CKRTfYh8.esm.js";
|
|
25
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-CU1CsT7x.esm.js";
|
|
26
26
|
import { t as phoneMachine } from "./phoneStateMachine-CLGcLA8t.esm.js";
|
|
27
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
|
|
27
28
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-B0IFF3R7.esm.js";
|
|
28
29
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BP3npRnI.esm.js";
|
|
29
30
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-Cqi8173Y.esm.js";
|
|
@@ -36,7 +37,6 @@ import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModu
|
|
|
36
37
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-loZfWcU9.esm.js";
|
|
37
38
|
import "./qe-signature.esm.js";
|
|
38
39
|
import { t as signatureMachine } from "./signatureStateMachine-zRLvEGTw.esm.js";
|
|
39
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
|
|
40
40
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Rc6BAwlr.esm.js";
|
|
41
41
|
//#region src/internal/orchestration/defaultModules.ts
|
|
42
42
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260728-
|
|
3
|
+
"version": "0.0.0-dev-20260728-af4e1aee",
|
|
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-DuZWsy2u.esm.js";
|
|
File without changes
|
|
File without changes
|