@incodetech/core 0.0.0-dev-20260918-5cab0f73 → 0.0.0-dev-20260921-b7e58eb5
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/{BrowserDiagnosticsCryptoProvider-YzSTx645.esm.js → BrowserDiagnosticsCryptoProvider-Bh5BLVQ8.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-BGdxN0Zs.esm.js → FaceDetectionProvider-JgulaYPT.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-D7MNCAJk.esm.js → apiError-BI_DIL8-.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BzD0aGAV.d.ts → authenticationManager-BK2M68y1.d.ts} +1 -7
- package/dist/{authenticationManager-5H2-DxBi.esm.js → authenticationManager-CuUtDrlp.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BGEwZIOs.esm.js → authenticationStateMachine-5jWG5IWN.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-UAS1fFZF.esm.js → createCameraCycleOwnership-BjoMVvya.esm.js} +1 -55
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-BJZ96KwC.d.ts → curpValidationManager-Ca_hyfn8.d.ts} +1 -1
- package/dist/{deepsightLoader-ClS4buil.esm.js → deepsightLoader-_UsfC4N5.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-CbAGkHWh.d.ts → documentCaptureManager-C8eO0hbv.d.ts} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CJXEcdgp.esm.js → dynamicFormsManager-DnLPFgpo.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BCIETgMA.esm.js → dynamicFormsStateMachine-DZMvXU5C.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BXBQElBA.esm.js → ekybManager-wxfTuhMw.esm.js} +1 -1
- package/dist/{ekybStateMachine-G_Nc0Ivr.esm.js → ekybStateMachine-CJekohHm.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BfRaSEfH.esm.js → electronicSignatureManager-B2s_UpGX.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-OT8cpWWg.esm.js → faceCaptureManagerFactory-B3i_gukQ.esm.js} +3 -48
- package/dist/{faceCaptureManagerFactory-Cd48RMoz.d.ts → faceCaptureManagerFactory-BbD7mKqo.d.ts} +4 -43
- package/dist/{faceCaptureSetup-BYnRHKy-.esm.js → faceCaptureSetup-nNxycISh.esm.js} +5 -271
- package/dist/{feature-management-fKRm2ALz.esm.js → feature-management-79K7xbqh.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +5 -5
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DyteW8N2.esm.js → flowCompletionService-rS_YFQ6t.esm.js} +1 -1
- package/dist/{flowServices-JxDEQEvw.esm.js → flowServices-U9b0ahPM.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CQfmoTDc.esm.js → geolocationManager-B9IuSkTU.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CfZw2p6n.esm.js → geolocationStateMachine-TAJQ1khU.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -5
- package/dist/{idCaptureDefaults-CCDNrEyH.esm.js → idCaptureDefaults-mlWsFVol.esm.js} +1 -1
- package/dist/{idCaptureManager-D1eI8wto.esm.js → idCaptureManager--1kTG7zh.esm.js} +3 -149
- package/dist/{idCaptureManager-BwgZAxRm.d.ts → idCaptureManager-x8HYtbU_.d.ts} +4 -77
- package/dist/{idCaptureServices-ugA6g9lm.esm.js → idCaptureServices-C-kakh6D.esm.js} +4 -31
- package/dist/{idCaptureStateMachine-BzSjOmhQ.esm.js → idCaptureStateMachine-B12AOO3l.esm.js} +317 -788
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-x2QG6QAm.d.ts → identityReuseManager-D30b2UEC.d.ts} +4 -4
- package/dist/{index-1E8g-2g7.d.ts → index-CB9o8nNO.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-BF3b2SF-.d.ts → mandatoryConsentManager-BEg7LM9Y.d.ts} +5 -5
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-ClkAUc6x.esm.js → runChildModule-Cik6cSGU.esm.js} +1 -1
- package/dist/{sdkVersion-BCY7wMPM.esm.js → sdkVersion-BaqyXxtV.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-UiQ46EBa.esm.js → selfieErrorUtils-yjRptLFi.esm.js} +1 -27
- package/dist/{selfieManager-2XhaWSPN.esm.js → selfieManager-B-joeD7D.esm.js} +3 -3
- package/dist/{selfieManager-CDEI-0sG.d.ts → selfieManager-BYY1eWDa.d.ts} +1 -7
- package/dist/selfieStateMachine-BtJHDS_g.esm.js +40 -0
- package/dist/{session-CTNuAH2T.esm.js → session-IbTLb79e.esm.js} +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CsXOAxxm.esm.js → sessionInitializer-Bw1QJcYn.esm.js} +3 -3
- package/dist/{setup-BUHgnW1t.esm.js → setup--3OJBjl-.esm.js} +4 -4
- package/dist/{trueSightService-C4pbgK2N.esm.js → trueSightService-WChjnB6y.esm.js} +2 -2
- package/dist/{types-ExpE7pl7.d.ts → types-BtX86Xl6.d.ts} +1 -1
- package/dist/{types-B-yKe-iB.d.ts → types-C--rKe_Y.d.ts} +1 -1
- package/dist/{types-BJ5OoZiu2.d.ts → types-DBu4S_vo2.d.ts} +8 -50
- package/dist/{types-COFO2tJb.d.ts → types-DvZVYbHR.d.ts} +2 -4
- package/dist/{types-BlTGii11.d.ts → types-Ijf6vvwm.d.ts} +1 -2
- package/dist/types-ixFGXL3F.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-DYhJLlU-.esm.js → videoSelfieCameraWarmer-Cksm9p7e.esm.js} +4 -4
- package/dist/{videoSelfieStepDetector-D9BB7QLa.d.ts → videoSelfieStepDetector-Apm7Puet.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
- package/dist/selfieStateMachine-C5_lbUwS.esm.js +0 -69
- package/dist/types-DzX4bQBH.d.ts +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-
|
|
4
|
-
import "./sessionInitializer-
|
|
3
|
+
import { l as trueSightLog, m as isTrueSightTesting } from "./trueSightService-WChjnB6y.esm.js";
|
|
4
|
+
import "./sessionInitializer-Bw1QJcYn.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-CZcy2J53.esm.js";
|
|
7
7
|
import { t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-C8DqhjX7.esm.js";
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider } from "./FaceDetectionProvider-JgulaYPT.esm.js";
|
|
12
12
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
13
|
-
import {
|
|
13
|
+
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-BjoMVvya.esm.js";
|
|
14
14
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
15
15
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
16
16
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-3_AT5BY5.esm.js";
|
|
@@ -46,234 +46,6 @@ function concealmentToAvatar(option) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region src/internal/faceCapture/manualUpload/errors.ts
|
|
50
|
-
/**
|
|
51
|
-
* Reuses the `notifications.*` copy that `errorModal.tsx` shows for the same
|
|
52
|
-
* codes on the camera path, plus the ID manual-upload keys. Only the `title`
|
|
53
|
-
* half of each notification pair is used — the inline error is one line.
|
|
54
|
-
*/
|
|
55
|
-
const MANUAL_FACE_UPLOAD_ERROR_KEYS = {
|
|
56
|
-
/** The one new string; ID accepts any image type so there was none to reuse. */
|
|
57
|
-
typeError: "selfiev2.manualUpload.typeError",
|
|
58
|
-
fileTooBig: "manualIdUpload.fileTooBig",
|
|
59
|
-
generic: "manualIdUpload.generic",
|
|
60
|
-
faceNotFound: "notifications.faceNotFound",
|
|
61
|
-
multipleFaces: "notifications.multiple",
|
|
62
|
-
lowQualityImage: "notifications.lowQualityImage",
|
|
63
|
-
brightness: "notifications.brightness",
|
|
64
|
-
lenses: "notifications.lenses",
|
|
65
|
-
mask: "notifications.mask",
|
|
66
|
-
removeHeadwear: "notifications.removeHeadwear",
|
|
67
|
-
closedEyes: "notifications.closedEyes",
|
|
68
|
-
spoof: "notifications.spoof",
|
|
69
|
-
accessDenied: "notifications.accessDenied",
|
|
70
|
-
nonexistentCustomer: "notifications.nonexistentCustomer",
|
|
71
|
-
hintNotProvided: "notifications.hintNotProvided",
|
|
72
|
-
selfieImageLowQuality: "notifications.selfieImageLowQuality"
|
|
73
|
-
};
|
|
74
|
-
/** Mirrors `errorContent` in `errorModal.tsx`; omissions resolve to `generic`. */
|
|
75
|
-
const ERROR_KEY_BY_FACE_ERROR_CODE = {
|
|
76
|
-
[FACE_ERROR_CODES.FACE_NOT_FOUND]: MANUAL_FACE_UPLOAD_ERROR_KEYS.faceNotFound,
|
|
77
|
-
[FACE_ERROR_CODES.MULTIPLE_FACES]: MANUAL_FACE_UPLOAD_ERROR_KEYS.multipleFaces,
|
|
78
|
-
[FACE_ERROR_CODES.BAD_PHOTO_QUALITY]: MANUAL_FACE_UPLOAD_ERROR_KEYS.lowQualityImage,
|
|
79
|
-
[FACE_ERROR_CODES.SELFIE_IMAGE_LOW_QUALITY]: MANUAL_FACE_UPLOAD_ERROR_KEYS.selfieImageLowQuality,
|
|
80
|
-
[FACE_ERROR_CODES.BRIGHTNESS]: MANUAL_FACE_UPLOAD_ERROR_KEYS.brightness,
|
|
81
|
-
[FACE_ERROR_CODES.FACE_TOO_DARK]: MANUAL_FACE_UPLOAD_ERROR_KEYS.brightness,
|
|
82
|
-
[FACE_ERROR_CODES.LENSES]: MANUAL_FACE_UPLOAD_ERROR_KEYS.lenses,
|
|
83
|
-
[FACE_ERROR_CODES.LENSES_DETECTED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.lenses,
|
|
84
|
-
[FACE_ERROR_CODES.MASK]: MANUAL_FACE_UPLOAD_ERROR_KEYS.mask,
|
|
85
|
-
[FACE_ERROR_CODES.FACE_MASK_DETECTED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.mask,
|
|
86
|
-
[FACE_ERROR_CODES.HEAD_COVER]: MANUAL_FACE_UPLOAD_ERROR_KEYS.removeHeadwear,
|
|
87
|
-
[FACE_ERROR_CODES.HEAD_COVER_DETECTED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.removeHeadwear,
|
|
88
|
-
[FACE_ERROR_CODES.CLOSED_EYES]: MANUAL_FACE_UPLOAD_ERROR_KEYS.closedEyes,
|
|
89
|
-
[FACE_ERROR_CODES.CLOSED_EYES_DETECTED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.closedEyes,
|
|
90
|
-
[FACE_ERROR_CODES.LIVENESS]: MANUAL_FACE_UPLOAD_ERROR_KEYS.spoof,
|
|
91
|
-
[FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.spoof,
|
|
92
|
-
[FACE_ERROR_CODES.FACE_TOO_BLURRY]: MANUAL_FACE_UPLOAD_ERROR_KEYS.spoof,
|
|
93
|
-
[FACE_ERROR_CODES.USER_IS_NOT_RECOGNIZED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.accessDenied,
|
|
94
|
-
[FACE_ERROR_CODES.NONEXISTENT_CUSTOMER]: MANUAL_FACE_UPLOAD_ERROR_KEYS.nonexistentCustomer,
|
|
95
|
-
[FACE_ERROR_CODES.HINT_NOT_PROVIDED]: MANUAL_FACE_UPLOAD_ERROR_KEYS.hintNotProvided
|
|
96
|
-
};
|
|
97
|
-
function mapFaceErrorCodeToErrorKey(code) {
|
|
98
|
-
if (!code) return MANUAL_FACE_UPLOAD_ERROR_KEYS.generic;
|
|
99
|
-
return ERROR_KEY_BY_FACE_ERROR_CODE[code] ?? MANUAL_FACE_UPLOAD_ERROR_KEYS.generic;
|
|
100
|
-
}
|
|
101
|
-
/** Enforced in core because the picker's `accept` filter is bypassable. */
|
|
102
|
-
const MANUAL_FACE_UPLOAD_ACCEPTED_MIME_TYPES = ["image/png", "image/jpeg"];
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/internal/faceCapture/manualUpload/prepareFile.ts
|
|
105
|
-
const isAcceptedMimeType = (type) => MANUAL_FACE_UPLOAD_ACCEPTED_MIME_TYPES.includes(type);
|
|
106
|
-
const stripDataUrlPrefix = (dataUrl) => {
|
|
107
|
-
const commaIndex = dataUrl.indexOf(",");
|
|
108
|
-
return commaIndex === -1 ? dataUrl : dataUrl.slice(commaIndex + 1);
|
|
109
|
-
};
|
|
110
|
-
/** Duplicated from the ID manual upload; consolidate if a third caller appears. */
|
|
111
|
-
const getBase64PayloadByteLength = (payload) => {
|
|
112
|
-
const normalized = payload.replace(/\s/g, "");
|
|
113
|
-
let padding = 0;
|
|
114
|
-
if (normalized.endsWith("==")) padding = 2;
|
|
115
|
-
else if (normalized.endsWith("=")) padding = 1;
|
|
116
|
-
return Math.max(0, Math.floor(normalized.length * 3 / 4) - padding);
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Every client-side check, run before any network call so a rejection here
|
|
120
|
-
* never costs the user a retry.
|
|
121
|
-
*/
|
|
122
|
-
async function prepareManualFaceUpload(file) {
|
|
123
|
-
if (!isAcceptedMimeType(file.type)) return {
|
|
124
|
-
ok: false,
|
|
125
|
-
errorKey: MANUAL_FACE_UPLOAD_ERROR_KEYS.typeError
|
|
126
|
-
};
|
|
127
|
-
if (file.size > 5242880) return {
|
|
128
|
-
ok: false,
|
|
129
|
-
errorKey: MANUAL_FACE_UPLOAD_ERROR_KEYS.fileTooBig
|
|
130
|
-
};
|
|
131
|
-
const base64Image = stripDataUrlPrefix(await imageFileToDataUrl(file));
|
|
132
|
-
if (getBase64PayloadByteLength(base64Image) > 5242880) return {
|
|
133
|
-
ok: false,
|
|
134
|
-
errorKey: MANUAL_FACE_UPLOAD_ERROR_KEYS.fileTooBig
|
|
135
|
-
};
|
|
136
|
-
return {
|
|
137
|
-
ok: true,
|
|
138
|
-
base64Image
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/internal/faceCapture/manualUpload/manualFaceUploadStateMachine.ts
|
|
143
|
-
const prepareFileActor = fromPromise(async ({ input }) => prepareManualFaceUpload(input.file));
|
|
144
|
-
const getPreparedFromEvent = (event) => "output" in event ? event.output : void 0;
|
|
145
|
-
const getErrorMessageFromEvent = (event) => {
|
|
146
|
-
const { error } = event;
|
|
147
|
-
if (error instanceof Error) return error.message;
|
|
148
|
-
return typeof error === "string" ? error : "";
|
|
149
|
-
};
|
|
150
|
-
const manualFaceUploadMachine = setup({
|
|
151
|
-
types: {
|
|
152
|
-
context: {},
|
|
153
|
-
events: {},
|
|
154
|
-
input: {},
|
|
155
|
-
output: {}
|
|
156
|
-
},
|
|
157
|
-
actors: {
|
|
158
|
-
prepareFile: prepareFileActor,
|
|
159
|
-
uploadFile: fromPromise(async () => {
|
|
160
|
-
throw new Error("uploadFile must be provided by variant");
|
|
161
|
-
})
|
|
162
|
-
},
|
|
163
|
-
actions: {
|
|
164
|
-
storeSelectedFile: assign(({ event }) => {
|
|
165
|
-
if (event.type !== "MANUAL_UPLOAD_FILE_SELECTED") return {};
|
|
166
|
-
return {
|
|
167
|
-
file: event.file,
|
|
168
|
-
errorKey: null,
|
|
169
|
-
uploaded: false
|
|
170
|
-
};
|
|
171
|
-
}),
|
|
172
|
-
storePreparedImage: assign(({ event }) => {
|
|
173
|
-
const prepared = getPreparedFromEvent(event);
|
|
174
|
-
return prepared?.ok ? { base64Image: prepared.base64Image } : {};
|
|
175
|
-
}),
|
|
176
|
-
setErrorFromPrepare: assign(({ event }) => {
|
|
177
|
-
const prepared = getPreparedFromEvent(event);
|
|
178
|
-
return { errorKey: prepared && !prepared.ok ? prepared.errorKey : MANUAL_FACE_UPLOAD_ERROR_KEYS.generic };
|
|
179
|
-
}),
|
|
180
|
-
setGenericError: assign(() => ({ errorKey: MANUAL_FACE_UPLOAD_ERROR_KEYS.generic })),
|
|
181
|
-
setErrorFromUploadFailure: assign(({ event }) => ({ errorKey: mapFaceErrorCodeToErrorKey(getErrorMessageFromEvent(event)) })),
|
|
182
|
-
markUploaded: assign(() => ({
|
|
183
|
-
uploaded: true,
|
|
184
|
-
errorKey: null
|
|
185
|
-
})),
|
|
186
|
-
decrementRetries: assign(({ context }) => ({ retriesLeft: Math.max(0, context.retriesLeft - 1) })),
|
|
187
|
-
reset: assign(({ context }) => ({
|
|
188
|
-
file: null,
|
|
189
|
-
base64Image: null,
|
|
190
|
-
uploaded: false,
|
|
191
|
-
errorKey: null,
|
|
192
|
-
retriesLeft: context.captureAttempts
|
|
193
|
-
})),
|
|
194
|
-
markSucceeded: assign(() => ({ outcome: "success" })),
|
|
195
|
-
markExhausted: assign(() => ({ outcome: "exhausted" }))
|
|
196
|
-
},
|
|
197
|
-
guards: {
|
|
198
|
-
isPrepareRejected: ({ event }) => getPreparedFromEvent(event)?.ok === false,
|
|
199
|
-
retriesExhausted: ({ context }) => context.retriesLeft <= 0,
|
|
200
|
-
canContinue: ({ context }) => context.uploaded
|
|
201
|
-
}
|
|
202
|
-
}).createMachine({
|
|
203
|
-
id: "manualFaceUpload",
|
|
204
|
-
initial: "selecting",
|
|
205
|
-
context: ({ input }) => ({
|
|
206
|
-
config: input.config,
|
|
207
|
-
dependencies: input.dependencies,
|
|
208
|
-
captureAttempts: input.captureAttempts,
|
|
209
|
-
retriesLeft: input.captureAttempts,
|
|
210
|
-
file: null,
|
|
211
|
-
base64Image: null,
|
|
212
|
-
uploaded: false,
|
|
213
|
-
errorKey: null,
|
|
214
|
-
outcome: null
|
|
215
|
-
}),
|
|
216
|
-
output: ({ context }) => ({ result: context.outcome === "success" ? "success" : "exhausted" }),
|
|
217
|
-
on: { MANUAL_UPLOAD_RESET: {
|
|
218
|
-
target: ".selecting",
|
|
219
|
-
actions: ["reset"]
|
|
220
|
-
} },
|
|
221
|
-
states: {
|
|
222
|
-
selecting: { on: {
|
|
223
|
-
MANUAL_UPLOAD_FILE_SELECTED: {
|
|
224
|
-
target: "preparing",
|
|
225
|
-
actions: ["storeSelectedFile"]
|
|
226
|
-
},
|
|
227
|
-
MANUAL_UPLOAD_CONTINUE: {
|
|
228
|
-
guard: "canContinue",
|
|
229
|
-
target: "finished",
|
|
230
|
-
actions: ["markSucceeded"]
|
|
231
|
-
}
|
|
232
|
-
} },
|
|
233
|
-
preparing: { invoke: {
|
|
234
|
-
id: "prepareFile",
|
|
235
|
-
src: "prepareFile",
|
|
236
|
-
input: ({ context }) => ({ file: context.file }),
|
|
237
|
-
onDone: [{
|
|
238
|
-
guard: "isPrepareRejected",
|
|
239
|
-
target: "selecting",
|
|
240
|
-
actions: ["setErrorFromPrepare"]
|
|
241
|
-
}, {
|
|
242
|
-
target: "uploading",
|
|
243
|
-
actions: ["storePreparedImage"]
|
|
244
|
-
}],
|
|
245
|
-
onError: {
|
|
246
|
-
target: "selecting",
|
|
247
|
-
actions: ["setGenericError"]
|
|
248
|
-
}
|
|
249
|
-
} },
|
|
250
|
-
uploading: { invoke: {
|
|
251
|
-
id: "uploadFile",
|
|
252
|
-
src: "uploadFile",
|
|
253
|
-
input: ({ context }) => ({
|
|
254
|
-
base64Image: context.base64Image,
|
|
255
|
-
config: context.config,
|
|
256
|
-
dependencies: context.dependencies
|
|
257
|
-
}),
|
|
258
|
-
onDone: {
|
|
259
|
-
target: "selecting",
|
|
260
|
-
actions: ["markUploaded"]
|
|
261
|
-
},
|
|
262
|
-
onError: {
|
|
263
|
-
target: "checkRetries",
|
|
264
|
-
actions: ["decrementRetries", "setErrorFromUploadFailure"]
|
|
265
|
-
}
|
|
266
|
-
} },
|
|
267
|
-
checkRetries: { always: [{
|
|
268
|
-
guard: "retriesExhausted",
|
|
269
|
-
target: "exhausted",
|
|
270
|
-
actions: ["markExhausted"]
|
|
271
|
-
}, { target: "selecting" }] },
|
|
272
|
-
exhausted: { type: "final" },
|
|
273
|
-
finished: { type: "final" }
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
//#endregion
|
|
277
49
|
//#region ../infra/src/providers/wasm/createProtectedFaceCaptureCapabilities.ts
|
|
278
50
|
/**
|
|
279
51
|
* Infrastructure composition boundary for one protected still-face attempt.
|
|
@@ -1344,7 +1116,6 @@ const faceCaptureMachine = setup({
|
|
|
1344
1116
|
handle?.stop();
|
|
1345
1117
|
};
|
|
1346
1118
|
}),
|
|
1347
|
-
manualUploadMachine: manualFaceUploadMachine,
|
|
1348
1119
|
prepareFaceUpload: fromPromise(async () => {
|
|
1349
1120
|
throw new Error("prepareFaceUpload must be provided by variant");
|
|
1350
1121
|
}),
|
|
@@ -1471,7 +1242,6 @@ const faceCaptureMachine = setup({
|
|
|
1471
1242
|
releaseFaceAvatarWarmup();
|
|
1472
1243
|
},
|
|
1473
1244
|
noOp: () => void 0,
|
|
1474
|
-
forwardToManualUpload: sendTo("manualUpload", ({ event }) => event),
|
|
1475
1245
|
sendProtectedPreAcquire: enqueueActions(({ enqueue, self }) => {
|
|
1476
1246
|
if (!isProtectedFaceControllerRunning(self)) return;
|
|
1477
1247
|
enqueue.sendTo("protectedFaceController", { type: "PRE_ACQUIRE" });
|
|
@@ -1525,8 +1295,6 @@ const faceCaptureMachine = setup({
|
|
|
1525
1295
|
guards: {
|
|
1526
1296
|
hasShowTutorial: ({ context }) => context.config.showTutorial,
|
|
1527
1297
|
hasAgeAssurance: ({ context }) => context.config.ageAssurance === true,
|
|
1528
|
-
hasManualUploadEnabled: () => false,
|
|
1529
|
-
isManualUploadExhausted: ({ event }) => event.output?.result === "exhausted",
|
|
1530
1298
|
isPermissionGranted: ({ event }) => {
|
|
1531
1299
|
if ("output" in event) return event.output === "granted";
|
|
1532
1300
|
return false;
|
|
@@ -1623,10 +1391,6 @@ const faceCaptureMachine = setup({
|
|
|
1623
1391
|
tutorial: {
|
|
1624
1392
|
initial: "checkingPermission",
|
|
1625
1393
|
entry: ["trackTutorial", "warmAvatarProvider"],
|
|
1626
|
-
on: { GO_TO_MANUAL_UPLOAD: {
|
|
1627
|
-
guard: "hasManualUploadEnabled",
|
|
1628
|
-
target: "#faceCapture.manualUpload"
|
|
1629
|
-
} },
|
|
1630
1394
|
states: {
|
|
1631
1395
|
checkingPermission: { invoke: {
|
|
1632
1396
|
id: "checkPermissionTutorial",
|
|
@@ -1985,36 +1749,6 @@ const faceCaptureMachine = setup({
|
|
|
1985
1749
|
}
|
|
1986
1750
|
}
|
|
1987
1751
|
},
|
|
1988
|
-
manualUpload: {
|
|
1989
|
-
entry: [
|
|
1990
|
-
"releaseProtectedAttempt",
|
|
1991
|
-
"stopMediaStream",
|
|
1992
|
-
"releaseAvatarWarmup"
|
|
1993
|
-
],
|
|
1994
|
-
invoke: {
|
|
1995
|
-
id: "manualUpload",
|
|
1996
|
-
src: "manualUploadMachine",
|
|
1997
|
-
input: ({ context }) => ({
|
|
1998
|
-
config: context.config,
|
|
1999
|
-
dependencies: context.dependencies,
|
|
2000
|
-
captureAttempts: getAttemptsFromConfig(context.config)
|
|
2001
|
-
}),
|
|
2002
|
-
onSnapshot: { actions: "noOp" },
|
|
2003
|
-
onDone: [{
|
|
2004
|
-
guard: "isManualUploadExhausted",
|
|
2005
|
-
target: "terminalProcessing"
|
|
2006
|
-
}, { target: "processing" }],
|
|
2007
|
-
onError: {
|
|
2008
|
-
target: "error",
|
|
2009
|
-
actions: "setErrorFromEvent"
|
|
2010
|
-
}
|
|
2011
|
-
},
|
|
2012
|
-
on: {
|
|
2013
|
-
MANUAL_UPLOAD_FILE_SELECTED: { actions: "forwardToManualUpload" },
|
|
2014
|
-
MANUAL_UPLOAD_CONTINUE: { actions: "forwardToManualUpload" },
|
|
2015
|
-
MANUAL_UPLOAD_RESET: { actions: "forwardToManualUpload" }
|
|
2016
|
-
}
|
|
2017
|
-
},
|
|
2018
1752
|
processing: { invoke: {
|
|
2019
1753
|
id: "processFace",
|
|
2020
1754
|
src: "processFace",
|
|
@@ -2064,4 +1798,4 @@ const faceCaptureMachine = setup({
|
|
|
2064
1798
|
}
|
|
2065
1799
|
});
|
|
2066
1800
|
//#endregion
|
|
2067
|
-
export {
|
|
1801
|
+
export { createDefaultProtectedFaceControllerActor as n, concealmentToAvatar as r, faceCaptureMachine as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-FDOR9p9I.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-BaqyXxtV.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-79K7xbqh.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/flow-events.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-
|
|
1
|
+
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-CB9o8nNO.js";
|
|
2
2
|
export type { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
package/dist/flow.d.ts
CHANGED
|
@@ -3,17 +3,17 @@ import { A as StateMachine, _ as MachineContext, c as AnyEventObject, l as AnySt
|
|
|
3
3
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
4
4
|
import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
5
5
|
import { t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
6
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
7
|
-
import { t as AuthenticationConfig } from "./types-
|
|
6
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DvZVYbHR.js";
|
|
7
|
+
import { t as AuthenticationConfig } from "./types-ixFGXL3F.js";
|
|
8
8
|
import { r as DocumentCaptureConfig } from "./types-BjSly8cp.js";
|
|
9
9
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
10
10
|
import { t as EkybConfig } from "./types-BfHiko5D.js";
|
|
11
|
-
import { u as IdCaptureConfig } from "./types-
|
|
12
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
11
|
+
import { u as IdCaptureConfig } from "./types-DBu4S_vo2.js";
|
|
12
|
+
import { r as MandatoryConsentConfig } from "./types-C--rKe_Y.js";
|
|
13
13
|
import { t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
14
14
|
import { t as RedirectToMobileConfig } from "./types-DPIDuhut.js";
|
|
15
15
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
16
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
16
|
+
import { o as FlowEventSubscribable } from "./index-CB9o8nNO.js";
|
|
17
17
|
import { n as ModuleRegistry } from "./types-BQA7lRDV.js";
|
|
18
18
|
//#region src/modules/flow/orchestratedFlowStateMachine.d.ts
|
|
19
19
|
type GetFlowFn = (signal: AbortSignal) => Promise<Flow>;
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-ijlbX_Wx.esm.js";
|
|
2
|
-
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-
|
|
2
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-U9b0ahPM.esm.js";
|
|
3
3
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-rS_YFQ6t.esm.js";
|
|
6
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Cik6cSGU.esm.js";
|
|
7
7
|
import { n as isAdvanceableError } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
8
8
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
9
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
package/dist/{flowCompletionService-DyteW8N2.esm.js → flowCompletionService-rS_YFQ6t.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-BI_DIL8-.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as getWasmStatus } from "./warmup-REsua-sF.esm.js";
|
|
2
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
2
|
+
import { E as updateFeatureManagementUser } from "./feature-management-79K7xbqh.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-
|
|
4
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-Bw1QJcYn.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-BI_DIL8-.esm.js";
|
|
7
|
+
import "./session-IbTLb79e.esm.js";
|
|
8
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
9
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
10
10
|
function isPlainObject(value) {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-B9IuSkTU.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-TAJQ1khU.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-TAJQ1khU.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-CfZw2p6n.esm.js → geolocationStateMachine-TAJQ1khU.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-BI_DIL8-.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
package/dist/home.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, a as ActorRefFromLogic, c as AnyEventObject, g as IsNotNever, h as InputFrom, k as MachineSnapshot, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
-
import { t as EmptyConfig } from "./types-
|
|
3
|
+
import { t as EmptyConfig } from "./types-DvZVYbHR.js";
|
|
4
4
|
//#region src/modules/home/types.d.ts
|
|
5
5
|
type HomeConfig = EmptyConfig;
|
|
6
6
|
//#endregion
|
package/dist/id-selfie-flow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
|
|
|
4
4
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
6
6
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
7
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-Apm7Puet.js";
|
|
8
8
|
//#region src/modules/id-selfie-flow/types.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The capture steps an ID + Selfie flow session can run, in flow order. A
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup--3OJBjl-.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-U9b0ahPM.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
7
|
-
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
7
|
+
import { n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-JgulaYPT.esm.js";
|
|
8
8
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
|
-
import {
|
|
11
|
-
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
12
|
-
import {
|
|
10
|
+
import { i as uploadSelfie, r as processFace } from "./selfieErrorUtils-yjRptLFi.esm.js";
|
|
11
|
+
import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-mlWsFVol.esm.js";
|
|
12
|
+
import { h as ID_ERROR_CODES, l as processId, m as validateUploadResponse, p as uploadIdImage } from "./idCaptureServices-C-kakh6D.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
14
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
15
|
-
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
14
|
+
import { n as getFinishStatus } from "./flowCompletionService-rS_YFQ6t.esm.js";
|
|
15
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-Cksm9p7e.esm.js";
|
|
16
16
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
17
17
|
/** Default autocapture window for the selfie step. */
|
|
18
18
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapabil
|
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import { A as
|
|
5
|
+
import { A as DeviceWalletDecryptResponse, B as ResolvedDigitalIdRoute, C as IdDocumentType, D as UploadIdResponse, E as IdFlowStep, F as DIGITAL_ID_DOCUMENT_TYPES, G as RedirectReturnParams, H as resolveDigitalIdImplementation, I as DIGITAL_ID_REGISTRY, L as DigitalIdDocumentType, M as DeviceWalletOutput, N as DeviceWalletPlatform, P as DeviceWalletProvider, R as DigitalIdFunnelEntry, S as IdCapturedImageData, T as IdErrorCode, U as DigitalIdProviderId, V as isRedirectFlowType, _ as IdCaptureInput, a as CaptureOnlyResponse, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureGeometry, h as IdCaptureEvent, i as CaptureIdResponse, j as DeviceWalletFailReason, k as DeviceWalletDecision, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, w as IdError, x as IdCaptureThresholds, y as IdCaptureOnlyConfig, z as DigitalIdPlatformSupport } from "./types-DBu4S_vo2.js";
|
|
6
|
+
import { A as processId, C as barcodeToBase64, D as initializeIdCapture, E as getRealQualityValue, F as validateUploadResponse, M as stopRecording, N as stopStream, O as pauseRecordingForAttempt, P as uploadIdImage, S as addBarcode, T as finalizeRecordingSession, _ as IdCaptureInitResult, a as CreateIdCaptureOnlyActorOptions, b as UploadIdImageParams, c as IdCaptureOnlyMachine, d as IdCaptureActor, f as createIdCaptureActor, g as FinalizedIdRecording, h as AddBarcodeParams, j as startRecordingSession, k as prepareRecordingForCameraRetry, l as idCaptureOnlyMachine, m as idCaptureMachine, n as IdCaptureManager, o as IdCaptureOnlyActor, p as IdCaptureMachine, r as IdCaptureState, s as createIdCaptureOnlyActor, t as createIdCaptureManager, u as CreateIdCaptureActorOptions, v as InitializeIdCaptureParams, w as disposeRecordingSession, x as ValidationError, y as StartRecordingParams } from "./idCaptureManager-x8HYtbU_.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -47,4 +47,4 @@ declare function createIdCaptureOnlyManagerFromActor(actor: IdCaptureOnlyActor,
|
|
|
47
47
|
*/
|
|
48
48
|
declare function createIdCaptureOnlyManager(options: CreateIdCaptureOnlyActorOptions): IdCaptureOnlyManager;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, 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,
|
|
50
|
+
export { AcceptedDocument, AcceptedDocumentType, AddBarcodeParams, AddBarcodeV3Response, type CameraStream, CaptureIdResponse, CaptureOnlyResponse, CapturedImage, type CreateIdCaptureActorOptions, type CreateIdCaptureOnlyActorOptions, DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, DetectionArea, type DetectionOrientation, DetectionStatus, type DeviceWalletDecision, type DeviceWalletDecryptResponse, type DeviceWalletFailReason, type DeviceWalletOutput, type DeviceWalletPlatform, type DeviceWalletProvider, type DigitalIdDocumentType, type DigitalIdFunnelEntry, type DigitalIdPlatformSupport, type DigitalIdProviderId, FinalizedIdRecording, ID_ERROR_CODES, type IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureDigitalIdFlowType, IdCaptureDigitalIdMethod, 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, type PermissionResult, type PermissionStatus, type RedirectReturnParams, type ResolvedDigitalIdRoute, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { i as assign, s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager
|
|
6
|
-
import { a as getRealQualityValue, c as prepareRecordingForCameraRetry, d as stopRecording, f as stopStream,
|
|
4
|
+
import { a as isRedirectFlowType, c as createIdCaptureOnlyDeliveryActor, d as resolveWalletPlatform, i as DIGITAL_ID_REGISTRY, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, s as attachIdProtectedCaptureController, t as idCaptureMachine } from "./idCaptureStateMachine-B12AOO3l.esm.js";
|
|
5
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager--1kTG7zh.esm.js";
|
|
6
|
+
import { _ as resolveIdCaptureThresholds, a as getRealQualityValue, c as prepareRecordingForCameraRetry, d as stopRecording, f as stopStream, h as ID_ERROR_CODES, i as finalizeRecordingSession, l as processId, m as validateUploadResponse, n as barcodeToBase64, o as initializeIdCapture, p as uploadIdImage, r as disposeRecordingSession, s as pauseRecordingForAttempt, t as addBarcode, u as startRecordingSession } from "./idCaptureServices-C-kakh6D.esm.js";
|
|
7
7
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
8
8
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
9
9
|
/**
|
|
@@ -141,7 +141,6 @@ const DEFAULT_ID_CAPTURE_ONLY_CONFIG = {
|
|
|
141
141
|
thirdId: false,
|
|
142
142
|
autoCaptureTimeout: 5,
|
|
143
143
|
deviceIdleTimeout: 10,
|
|
144
|
-
manualUploadIdCapture: false,
|
|
145
144
|
digitalIdsUpload: false,
|
|
146
145
|
showDocumentChooserScreen: false,
|
|
147
146
|
enableIdRecording: false,
|
|
@@ -213,4 +212,4 @@ function createIdCaptureOnlyManager(options) {
|
|
|
213
212
|
return createIdCaptureOnlyManagerFromActor(createIdCaptureOnlyActor(options), options.config);
|
|
214
213
|
}
|
|
215
214
|
//#endregion
|
|
216
|
-
export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES,
|
|
215
|
+
export { DEVICE_WALLET_ERROR_KEYS, DIGITAL_ID_DOCUMENT_TYPES, DIGITAL_ID_REGISTRY, ID_ERROR_CODES, addBarcode, barcodeToBase64, createIdCaptureActor, createIdCaptureManager, createIdCaptureOnlyActor, createIdCaptureOnlyManager, createIdCaptureOnlyManagerFromActor, disposeRecordingSession, finalizeRecordingSession, getRealQualityValue, idCaptureMachine, idCaptureOnlyMachine, initializeIdCapture, isRedirectFlowType, pauseRecordingForAttempt, prepareRecordingForCameraRetry, processId, resolveDigitalIdImplementation, resolveWalletPlatform, startRecordingSession, stopRecording, stopStream, uploadIdImage, validateUploadResponse };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-DPPQlS-U.esm.js";
|
|
2
|
-
import { p as getBarcodeEnhanceModelUrl } from "./setup
|
|
2
|
+
import { p as getBarcodeEnhanceModelUrl } from "./setup--3OJBjl-.esm.js";
|
|
3
3
|
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-REsua-sF.esm.js";
|
|
4
4
|
import { i as BaseWasmProvider } from "./safeStorage-C511Hltw.esm.js";
|
|
5
5
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|