@incodetech/core 0.0.0-dev-20260914-8aef7789 → 0.0.0-dev-20260914-ebfc99a7
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-BoYzmYY5.esm.js → BrowserDiagnosticsCryptoProvider-uam5jVpc.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-0bWjPgW5.esm.js → FaceDetectionProvider-B2fAbO2-.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CixFeCyt.esm.js → apiError-dMNmcdTq.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CN26fkJa.esm.js → authenticationManager-D1VH0qBq.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CUXpIxAD.esm.js → authenticationStateMachine-BisSUea5.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-BhYFeKiG.d.ts → consentManager-uhDPdU6i.d.ts} +8 -8
- package/dist/{deepsightLoader-Dhz9T_KJ.esm.js → deepsightLoader-mtiw6oVx.esm.js} +8 -13
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CNBrBOR3.esm.js → dynamicFormsManager-BgOnCisv.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Bo2qrjHB.esm.js → dynamicFormsStateMachine-CvpdpU_m.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-D8DdfRAD.esm.js → ekybManager-PuA1DXCw.esm.js} +1 -1
- package/dist/{ekybStateMachine-oPCbEFob.esm.js → ekybStateMachine-C4cAB4DE.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DkKQ07vx.esm.js → electronicSignatureManager-BRJNLrUV.esm.js} +1 -1
- package/dist/extensibility.d.ts +2 -2
- package/dist/extensibility.esm.js +10 -10
- package/dist/{faceCaptureManagerFactory-D_EjQnnE.esm.js → faceCaptureManagerFactory-CmALSto9.esm.js} +1 -1
- package/dist/{faceCaptureSetup-WeO8-TfR.esm.js → faceCaptureSetup-BDgILzIB.esm.js} +3 -3
- package/dist/{feature-management-BEqf3Sr3.esm.js → feature-management-HxOVB0zA.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DELbVeL5.esm.js → flowCompletionService-B90FsIvP.esm.js} +1 -1
- package/dist/{flowServices-Brr2fh_c.esm.js → flowServices-BHbkPMUr.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CtVZDjng.esm.js → geolocationManager-DFCAlgey.esm.js} +1 -1
- package/dist/{geolocationStateMachine-tjsYcMhr.esm.js → geolocationStateMachine-DkKXUeAc.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-C66YvkgN.esm.js → idCaptureDefaults-BwHGyv9V.esm.js} +1 -1
- package/dist/{idCaptureManager-zjul9YdZ.esm.js → idCaptureManager-MSc5ZIeq.esm.js} +3 -3
- package/dist/{idCaptureServices-UXYCBZPK.esm.js → idCaptureServices-DqwZvVCO.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-D3pqfK2Z.esm.js → idCaptureStateMachine-JE8limLp.esm.js} +138 -33
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CZwhsUlO.d.ts → mandatoryConsentManager-8esu6ZIP.d.ts} +4 -4
- package/dist/personhood.esm.js +4 -4
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-BDlvNMrA.esm.js → runChildModule-BmeelPDs.esm.js} +1 -1
- package/dist/{sdkVersion-CS_0s_Lc.esm.js → sdkVersion-B-3S7N6Z.esm.js} +1 -1
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-BouB9yUQ.esm.js → selfieManager-Dv2w6BYF.esm.js} +3 -3
- package/dist/{selfieStateMachine-TGfI9hNp.esm.js → selfieStateMachine-kcJa_4We.esm.js} +2 -2
- package/dist/{session-m9j27bHm.esm.js → session-L-fDJmvT.esm.js} +3 -3
- package/dist/session.d.ts +4 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CUpgbHzs.esm.js → sessionInitializer-DmOfm4im.esm.js} +16 -5
- package/dist/{setup-CfNAVG-d.esm.js → setup-DrJjG62h.esm.js} +7 -8
- package/dist/{setup-CEX95gJ1.d.ts → setup-riMNzcSh.d.ts} +20 -1
- package/dist/{trueSightService-TqmmYye3.esm.js → trueSightService-C1Y4c-FL.esm.js} +2 -2
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-C-cESczy.esm.js → videoSelfieCameraWarmer-5fwyJA0e.esm.js} +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +14 -14
- package/package.json +1 -1
package/dist/{idCaptureStateMachine-D3pqfK2Z.esm.js → idCaptureStateMachine-JE8limLp.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-1O9k0ulP.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
4
|
+
import { s as exposeExperimentOnce } from "./feature-management-HxOVB0zA.esm.js";
|
|
5
5
|
import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
6
6
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
7
|
-
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
7
|
+
import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
8
8
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-DmOfm4im.esm.js";
|
|
10
10
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
11
11
|
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
12
12
|
import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
|
|
13
|
-
import "./session-
|
|
13
|
+
import "./session-L-fDJmvT.esm.js";
|
|
14
14
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
15
15
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
16
16
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
@@ -24,8 +24,8 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
|
24
24
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
25
25
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
26
26
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-WOloJ-do.esm.js";
|
|
27
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
28
|
-
import { S as getIdCameraStream, _ as ID_ERROR_CODES, a as getRealQualityValue, b as CAPTURE_OPTIMIZING, d as startRecordingSession, f as stopRecording, g as validateUploadResponse, h as uploadManualIdFile, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as uploadIdImage, o as initializeIdCapture, p as stopStream, r as disposeRecordingSession, t as addBarcode, u as processId, x as OPTIMIZING_WATCHDOG_MARGIN_MS, y as resolveIdCaptureThresholds } from "./idCaptureServices-
|
|
27
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BwHGyv9V.esm.js";
|
|
28
|
+
import { S as getIdCameraStream, _ as ID_ERROR_CODES, a as getRealQualityValue, b as CAPTURE_OPTIMIZING, d as startRecordingSession, f as stopRecording, g as validateUploadResponse, h as uploadManualIdFile, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as uploadIdImage, o as initializeIdCapture, p as stopStream, r as disposeRecordingSession, t as addBarcode, u as processId, x as OPTIMIZING_WATCHDOG_MARGIN_MS, y as resolveIdCaptureThresholds } from "./idCaptureServices-DqwZvVCO.esm.js";
|
|
29
29
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
30
30
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
31
31
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -1781,7 +1781,7 @@ fromPromise(async ({ input }) => {
|
|
|
1781
1781
|
});
|
|
1782
1782
|
fromPromise(async ({ input }) => {
|
|
1783
1783
|
if (!input.dependencies) return;
|
|
1784
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1784
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-mtiw6oVx.esm.js");
|
|
1785
1785
|
return loadDeepsightSession({
|
|
1786
1786
|
ds: input.ds,
|
|
1787
1787
|
storage: input.dependencies.storage,
|
|
@@ -2224,7 +2224,7 @@ function cleanup(service) {
|
|
|
2224
2224
|
service.cleanup();
|
|
2225
2225
|
} catch {}
|
|
2226
2226
|
}
|
|
2227
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2227
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-mtiw6oVx.esm.js")).loadDeepsightSession(input)) {
|
|
2228
2228
|
let disposed = false;
|
|
2229
2229
|
let preparation;
|
|
2230
2230
|
let service;
|
|
@@ -3124,6 +3124,75 @@ function getProtectedIdUploadRequest(context, sessionToken = getToken()) {
|
|
|
3124
3124
|
} : { target };
|
|
3125
3125
|
}
|
|
3126
3126
|
//#endregion
|
|
3127
|
+
//#region src/modules/digital-id-redirect/pollCadence.ts
|
|
3128
|
+
/**
|
|
3129
|
+
* Cadence used when the response carries no usable `Retry-After` — a
|
|
3130
|
+
* non-terminal `CREATED` (the backend only sets the header on `IN_PROGRESS`),
|
|
3131
|
+
* a transient poll failure, or a header the browser cannot read because the
|
|
3132
|
+
* cross-origin response does not expose it.
|
|
3133
|
+
*/
|
|
3134
|
+
const DEFAULT_POLL_INTERVAL_MS = 1500;
|
|
3135
|
+
/** The slower cadence the contract asks for past `POLL_BACKOFF_AFTER_MS`. */
|
|
3136
|
+
const BACKOFF_POLL_INTERVAL_MS = 5e3;
|
|
3137
|
+
/**
|
|
3138
|
+
* Sanity bound on a server-sent `Retry-After`, mirroring the same cap in
|
|
3139
|
+
* `videoSelfieChunkUploader` — the only other place the SDK honours the header.
|
|
3140
|
+
*/
|
|
3141
|
+
const RETRY_AFTER_CAP_MS = 3e4;
|
|
3142
|
+
/**
|
|
3143
|
+
* Client-side ceiling on a single polling run. Deliberately far beyond both the
|
|
3144
|
+
* back-off point and any realistic bank round-trip: reaching it means something
|
|
3145
|
+
* is wrong on our side, not that the user's verification expired, so the
|
|
3146
|
+
* machine routes it to the recoverable `error` state and NOT to a
|
|
3147
|
+
* `SESSION_EXPIRED` failure. The verification itself may still complete and
|
|
3148
|
+
* land through the backend callback.
|
|
3149
|
+
*/
|
|
3150
|
+
const MAX_POLL_DURATION_MS = 10 * 6e4;
|
|
3151
|
+
const TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
3152
|
+
"COMPLETED",
|
|
3153
|
+
"FAILED",
|
|
3154
|
+
"EXPIRED",
|
|
3155
|
+
"CANCELLED"
|
|
3156
|
+
]);
|
|
3157
|
+
/** A terminal status is what stops the poll loop — never an attempt counter. */
|
|
3158
|
+
function isTerminal(status) {
|
|
3159
|
+
return TERMINAL_STATUSES.has(status);
|
|
3160
|
+
}
|
|
3161
|
+
/**
|
|
3162
|
+
* Reads `Retry-After` (seconds) off a status response. Returns `null` when the
|
|
3163
|
+
* header is absent, unreadable, or not a usable positive number of seconds —
|
|
3164
|
+
* callers fall back to `DEFAULT_POLL_INTERVAL_MS`.
|
|
3165
|
+
*
|
|
3166
|
+
* Only the delta-seconds form is honoured (what the backend sends); the RFC
|
|
3167
|
+
* 9110 HTTP-date form falls back rather than being mis-parsed as `NaN`. A
|
|
3168
|
+
* literal `0` also falls back — polling as fast as the network allows is never
|
|
3169
|
+
* what the contract means.
|
|
3170
|
+
*
|
|
3171
|
+
* NOTE (cross-origin): `Retry-After` is not a CORS-safelisted response header.
|
|
3172
|
+
* A browser only surfaces it when the response also carries
|
|
3173
|
+
* `Access-Control-Expose-Headers: Retry-After`. Absence therefore degrades to
|
|
3174
|
+
* the fallback cadence instead of breaking the loop.
|
|
3175
|
+
*/
|
|
3176
|
+
function parseRetryAfterMs(headers) {
|
|
3177
|
+
const raw = headers?.["retry-after"];
|
|
3178
|
+
if (raw === void 0) return null;
|
|
3179
|
+
const seconds = Number(raw);
|
|
3180
|
+
if (!Number.isFinite(seconds) || seconds <= 0) return null;
|
|
3181
|
+
return Math.min(seconds * 1e3, RETRY_AFTER_CAP_MS);
|
|
3182
|
+
}
|
|
3183
|
+
/**
|
|
3184
|
+
* The delay before the next poll.
|
|
3185
|
+
*
|
|
3186
|
+
* `retryAfterMs` is the server's ask (or `null` when it did not ask); once
|
|
3187
|
+
* `elapsedMs` passes `POLL_BACKOFF_AFTER_MS` the documented 5 s back-off
|
|
3188
|
+
* applies as a floor — the server's value is still honoured when it is the
|
|
3189
|
+
* slower of the two, so a backend that asks for more than 5 s always wins.
|
|
3190
|
+
*/
|
|
3191
|
+
function nextPollDelayMs(retryAfterMs, elapsedMs) {
|
|
3192
|
+
const base = retryAfterMs ?? 1500;
|
|
3193
|
+
return elapsedMs >= 3e4 ? Math.max(base, BACKOFF_POLL_INTERVAL_MS) : base;
|
|
3194
|
+
}
|
|
3195
|
+
//#endregion
|
|
3127
3196
|
//#region src/modules/digital-id-redirect/digitalIdRedirectServices.ts
|
|
3128
3197
|
function withQuery(path, params) {
|
|
3129
3198
|
if (!params) return path;
|
|
@@ -3193,12 +3262,22 @@ async function submitWalletResponse(verificationId, params, signal) {
|
|
|
3193
3262
|
if (!res.ok) throw new Error(`POST ${url} failed: ${res.status} ${res.statusText}`);
|
|
3194
3263
|
return res.data;
|
|
3195
3264
|
}
|
|
3196
|
-
/**
|
|
3265
|
+
/**
|
|
3266
|
+
* Poll fallback — used when the user does not return or results are delayed.
|
|
3267
|
+
*
|
|
3268
|
+
* Returns the cadence alongside the verification: the backend sets
|
|
3269
|
+
* `Retry-After` while the status is `IN_PROGRESS` and the caller is expected to
|
|
3270
|
+
* pace itself by it (see `pollCadence`). Dropping the header here is what made
|
|
3271
|
+
* the SDK poll on a fixed interval and give up early.
|
|
3272
|
+
*/
|
|
3197
3273
|
async function getVerificationStatus(verificationId, signal) {
|
|
3198
3274
|
const url = `${endpoints.digitalIdVerifications}/${verificationId}/status`;
|
|
3199
3275
|
const res = await api.get(url, { signal });
|
|
3200
3276
|
if (!res.ok) throw new Error(`GET ${url} failed: ${res.status} ${res.statusText}`);
|
|
3201
|
-
return
|
|
3277
|
+
return {
|
|
3278
|
+
verification: res.data,
|
|
3279
|
+
retryAfterMs: parseRetryAfterMs(res.headers)
|
|
3280
|
+
};
|
|
3202
3281
|
}
|
|
3203
3282
|
/**
|
|
3204
3283
|
* Refresh an expiring `launchUrl` (maps to `flowData.expiresAt`). Do NOT create
|
|
@@ -3244,17 +3323,13 @@ async function clearPendingRedirect(storage) {
|
|
|
3244
3323
|
}
|
|
3245
3324
|
//#endregion
|
|
3246
3325
|
//#region src/modules/digital-id-redirect/digitalIdRedirectStateMachine.ts
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
]);
|
|
3255
|
-
function isTerminal(status) {
|
|
3256
|
-
return TERMINAL_STATUSES.has(status);
|
|
3257
|
-
}
|
|
3326
|
+
/**
|
|
3327
|
+
* Diagnostic message when the client-side polling ceiling is hit. Routed to the
|
|
3328
|
+
* recoverable `error` state — NOT to a `SESSION_EXPIRED` failure. A client that
|
|
3329
|
+
* stopped polling is not an expired session, and the difference decides whether
|
|
3330
|
+
* the user is told to start over (which would bill a second provider session).
|
|
3331
|
+
*/
|
|
3332
|
+
const POLL_CEILING_ERROR = "Digital ID status polling exceeded the client ceiling; the verification may still complete via the backend callback.";
|
|
3258
3333
|
const digitalIdRedirectMachine = setup({
|
|
3259
3334
|
types: {
|
|
3260
3335
|
context: {},
|
|
@@ -3267,20 +3342,50 @@ const digitalIdRedirectMachine = setup({
|
|
|
3267
3342
|
createVerification: fromPromise(async ({ input, signal }) => createVerification(input, signal)),
|
|
3268
3343
|
submitWalletResponse: fromPromise(async ({ input, signal }) => submitWalletResponse(input.verificationId, input.params, signal)),
|
|
3269
3344
|
refreshVerification: fromPromise(async ({ input, signal }) => refreshVerification(input.verificationId, signal)),
|
|
3345
|
+
/**
|
|
3346
|
+
* Poll fallback: emits POLL_RESULT once the status turns terminal.
|
|
3347
|
+
*
|
|
3348
|
+
* Self-rescheduling `setTimeout` rather than a fixed `setInterval`, because
|
|
3349
|
+
* the cadence is the backend's to set — each response's `Retry-After` picks
|
|
3350
|
+
* the next delay (see `pollCadence`). Two things fall out of that shape:
|
|
3351
|
+
* the loop never overlaps requests the way an interval with an async
|
|
3352
|
+
* callback does, and it stops on a terminal status instead of running until
|
|
3353
|
+
* an attempt budget expires.
|
|
3354
|
+
*/
|
|
3270
3355
|
pollStatus: fromCallback(({ sendBack, input }) => {
|
|
3271
3356
|
const timer = BrowserTimerProvider.getInstance();
|
|
3272
|
-
const
|
|
3357
|
+
const startedAt = getTimestamp();
|
|
3358
|
+
let handle;
|
|
3359
|
+
let stopped = false;
|
|
3360
|
+
function schedule(delayMs) {
|
|
3361
|
+
if (stopped) return;
|
|
3362
|
+
handle = timer.setTimeout(() => void tick(), delayMs);
|
|
3363
|
+
}
|
|
3364
|
+
async function tick() {
|
|
3365
|
+
let retryAfterMs = null;
|
|
3273
3366
|
try {
|
|
3274
|
-
const
|
|
3275
|
-
if (
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3367
|
+
const poll = await getVerificationStatus(input.verificationId);
|
|
3368
|
+
if (stopped) return;
|
|
3369
|
+
if (isTerminal(poll.verification.status)) {
|
|
3370
|
+
stopped = true;
|
|
3371
|
+
sendBack({
|
|
3372
|
+
type: "POLL_RESULT",
|
|
3373
|
+
verification: poll.verification
|
|
3374
|
+
});
|
|
3375
|
+
return;
|
|
3376
|
+
}
|
|
3377
|
+
retryAfterMs = poll.retryAfterMs;
|
|
3279
3378
|
} catch (error) {
|
|
3379
|
+
if (stopped) return;
|
|
3280
3380
|
console.warn("[DigitalIdRedirect] status poll failed:", error);
|
|
3281
3381
|
}
|
|
3282
|
-
|
|
3283
|
-
|
|
3382
|
+
schedule(nextPollDelayMs(retryAfterMs, getTimestamp() - startedAt));
|
|
3383
|
+
}
|
|
3384
|
+
schedule(DEFAULT_POLL_INTERVAL_MS);
|
|
3385
|
+
return () => {
|
|
3386
|
+
stopped = true;
|
|
3387
|
+
if (handle !== void 0) timer.clearTimeout(handle);
|
|
3388
|
+
};
|
|
3284
3389
|
}),
|
|
3285
3390
|
persistPending: fromPromise(async ({ input }) => {
|
|
3286
3391
|
await persistPendingRedirect(input.storage, {
|
|
@@ -3472,9 +3577,9 @@ const digitalIdRedirectMachine = setup({
|
|
|
3472
3577
|
target: "failed",
|
|
3473
3578
|
actions: "setVerificationFromEvent"
|
|
3474
3579
|
}] },
|
|
3475
|
-
after: { [
|
|
3476
|
-
target: "
|
|
3477
|
-
actions: assign({
|
|
3580
|
+
after: { [MAX_POLL_DURATION_MS]: {
|
|
3581
|
+
target: "error",
|
|
3582
|
+
actions: assign({ error: () => POLL_CEILING_ERROR })
|
|
3478
3583
|
} }
|
|
3479
3584
|
},
|
|
3480
3585
|
succeeded: { on: { CONTINUE: { target: "finished" } } },
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, l as setup, o as reset, t as SetupOptions } from "./setup-riMNzcSh.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-BzuUebkB.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-8esu6ZIP.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-CZwhsUlO.d.ts → mandatoryConsentManager-8esu6ZIP.d.ts}
RENAMED
|
@@ -57,6 +57,10 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
57
57
|
type: "setError";
|
|
58
58
|
params: NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
|
+
toggleSigned: {
|
|
61
|
+
type: "toggleSigned";
|
|
62
|
+
params: NonReducibleUnknown;
|
|
63
|
+
};
|
|
60
64
|
clearError: {
|
|
61
65
|
type: "clearError";
|
|
62
66
|
params: NonReducibleUnknown;
|
|
@@ -65,10 +69,6 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
65
69
|
type: "resetContext";
|
|
66
70
|
params: NonReducibleUnknown;
|
|
67
71
|
};
|
|
68
|
-
toggleSigned: {
|
|
69
|
-
type: "toggleSigned";
|
|
70
|
-
params: NonReducibleUnknown;
|
|
71
|
-
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
package/dist/personhood.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-1O9k0ulP.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-
|
|
5
|
+
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, v as getThumbmarkId, y as getDeviceFingerprintInfo } from "./sessionInitializer-DmOfm4im.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
9
9
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
11
11
|
import { i as requestCameraAccess, o as stopCameraStream } from "./camera-sIa9ceW2.esm.js";
|
|
12
12
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-7lzEiOsO.esm.js";
|
|
13
|
-
import { i as initializeDeepsightSession, l as stopStream, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
13
|
+
import { i as initializeDeepsightSession, l as stopStream, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-B2fAbO2-.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BRJNLrUV.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-1O9k0ulP.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BDgILzIB.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CmALSto9.esm.js";
|
|
8
8
|
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DQ5-F2oW.esm.js";
|
|
9
9
|
import { r as processFace } from "./selfieErrorUtils-C77GXJH6.esm.js";
|
|
10
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
11
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
10
|
+
import { t as selfieMachine } from "./selfieStateMachine-kcJa_4We.esm.js";
|
|
11
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-Dv2w6BYF.esm.js";
|
|
12
12
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BjzPjJ_p.esm.js";
|
|
13
13
|
/**
|
|
14
14
|
* Selfie state machine variant for the captureOnly flow. Shares the full base
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-1O9k0ulP.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CmALSto9.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-kcJa_4We.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 { i as assign } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { u as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, r as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-BDgILzIB.esm.js";
|
|
4
|
+
import { u as isOnDeviceMode } from "./FaceDetectionProvider-B2fAbO2-.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { s as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DQ5-F2oW.esm.js";
|
|
7
7
|
import { i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-C77GXJH6.esm.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { g as noteSessionCreated, l as trueSightLog } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
3
|
+
import "./sessionInitializer-DmOfm4im.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError } from "./apiError-dMNmcdTq.esm.js";
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
/**
|
|
8
8
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -206,7 +206,10 @@ type SessionInitOptions = {
|
|
|
206
206
|
* token. Application code should always pass `token` explicitly.
|
|
207
207
|
*/
|
|
208
208
|
token?: string;
|
|
209
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Custom hosting app name for fingerprint. Defaults to the value given to
|
|
211
|
+
* `setup({ hostingApp })`, so internal activations inherit the host identity.
|
|
212
|
+
*/
|
|
210
213
|
hostingApp?: string;
|
|
211
214
|
/** Abort signal for cancellation */
|
|
212
215
|
signal?: AbortSignal;
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled } from "./sessionInitializer-DmOfm4im.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-dMNmcdTq.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-L-fDJmvT.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-B90FsIvP.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid, whenSessionFingerprintSettled };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-HxOVB0zA.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-
|
|
3
|
+
import { d as fetchFeatureConfig, f as isFeatureEnabled, h as noteEnvironment, l as trueSightLog, p as resetFeatureConfigCache, s as startTrueSightCollection, v as noteTokenActivated } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-B-3S7N6Z.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-DkK-f8JT.esm.js";
|
|
8
8
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
@@ -1733,9 +1733,20 @@ let cachedFeatures = null;
|
|
|
1733
1733
|
let cachedDisableIpify = false;
|
|
1734
1734
|
let clientIpLookupEnabled = true;
|
|
1735
1735
|
let clientFingerprintEnabled = true;
|
|
1736
|
+
let clientHostingApp;
|
|
1736
1737
|
function setClientIpLookupEnabled(enabled) {
|
|
1737
1738
|
clientIpLookupEnabled = enabled;
|
|
1738
1739
|
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Host identifier from `setup({ hostingApp })`, used as the default for every
|
|
1742
|
+
* activation. Without it the option only reached the fingerprint when the host
|
|
1743
|
+
* also passed `token` to `setup()` — activations triggered later from inside
|
|
1744
|
+
* `<incode-flow>` / `<incode-workflow>` / standalone modules carry a token but
|
|
1745
|
+
* no host identity, so those sessions fell back to the `'Web SDK'` default.
|
|
1746
|
+
*/
|
|
1747
|
+
function setClientHostingApp(hostingApp) {
|
|
1748
|
+
clientHostingApp = hostingApp;
|
|
1749
|
+
}
|
|
1739
1750
|
function setClientFingerprintEnabled(enabled) {
|
|
1740
1751
|
clientFingerprintEnabled = enabled;
|
|
1741
1752
|
}
|
|
@@ -1806,7 +1817,7 @@ function whenSessionFingerprintSettled() {
|
|
|
1806
1817
|
* ```
|
|
1807
1818
|
*/
|
|
1808
1819
|
async function initializeSession(options = {}) {
|
|
1809
|
-
const { token, hostingApp, signal, preloadFlow, awaitFingerprint = true } = options;
|
|
1820
|
+
const { token, hostingApp = clientHostingApp, signal, preloadFlow, awaitFingerprint = true } = options;
|
|
1810
1821
|
let triLinkPromise = Promise.resolve();
|
|
1811
1822
|
if (token !== void 0 && token !== getToken()) {
|
|
1812
1823
|
setToken(token);
|
|
@@ -1971,4 +1982,4 @@ function resetSessionInit() {
|
|
|
1971
1982
|
resetDeviceStatsQueue();
|
|
1972
1983
|
}
|
|
1973
1984
|
//#endregion
|
|
1974
|
-
export {
|
|
1985
|
+
export { IpifyProvider as _, resetSessionInit as a, BrowserEnvironmentProvider as b, setClientIpLookupEnabled as c, registerFlowPreloader as d, resetStandaloneFlowPolicy as f, getFingerprint as g, isBrowserSimulation as h, initializeSession as i, whenSessionFingerprintSettled as l, setStandaloneFlowPolicy as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, resolveStandaloneFlowPolicy as p, getSessionFingerprintResult as r, setClientHostingApp as s, getDisableIpify as t, getStandaloneFlowPolicy as u, getThumbmarkId as v, getDeviceFingerprintInfo as y };
|
|
@@ -2,16 +2,16 @@ import { f as deriveSiblingJsPath, p as WASM_MODEL_FILES, v as buildModelVariant
|
|
|
2
2
|
import { i as setWasmOnDeviceMode, o as warmupWasm } from "./warmup-CUUnwYxe.esm.js";
|
|
3
3
|
import { r as WasmUtilProvider, t as resolveLocalStorage } from "./safeStorage-1O9k0ulP.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
5
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-HxOVB0zA.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-
|
|
8
|
+
import { C as upgradeToWasmHttpClient$1, S as resetHttpClientState, _ as noteTestingSignals, b as getStoredHttpConfig, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as installFreshHttpClient } from "./trueSightService-C1Y4c-FL.esm.js";
|
|
9
9
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-ijlbX_Wx.esm.js";
|
|
10
|
-
import { a as resetSessionInit,
|
|
10
|
+
import { a as resetSessionInit, b as BrowserEnvironmentProvider, c as setClientIpLookupEnabled, d as registerFlowPreloader, f as resetStandaloneFlowPolicy, i as initializeSession, m as setStandaloneFlowPolicy, o as setClientFingerprintEnabled, p as resolveStandaloneFlowPolicy, s as setClientHostingApp } from "./sessionInitializer-DmOfm4im.esm.js";
|
|
11
11
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
12
12
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
13
13
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
14
|
-
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-
|
|
14
|
+
import { i as resetDashboardFlowCache, r as preloadDashboardFlow } from "./flowServices-BHbkPMUr.esm.js";
|
|
15
15
|
//#region ../infra/src/wasm/wasmDefaults.ts
|
|
16
16
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
17
17
|
/** The WASM version bundled and tested with this SDK release. */
|
|
@@ -674,6 +674,7 @@ async function setup(options) {
|
|
|
674
674
|
setStandaloneFlowPolicy(standaloneFlowPolicy);
|
|
675
675
|
registerFlowPreloader(preloadDashboardFlow);
|
|
676
676
|
if (options.ipLookup !== void 0) setClientIpLookupEnabled(options.ipLookup);
|
|
677
|
+
if (options.hostingApp !== void 0) setClientHostingApp(options.hostingApp);
|
|
677
678
|
if (options.fingerprint !== void 0) {
|
|
678
679
|
setClientFingerprintEnabled(options.fingerprint);
|
|
679
680
|
setWasmOnDeviceMode(options.fingerprint === false);
|
|
@@ -716,10 +717,7 @@ async function setup(options) {
|
|
|
716
717
|
throw error;
|
|
717
718
|
}
|
|
718
719
|
if (options.token && isApiConfigured()) {
|
|
719
|
-
const sessionOptions = {
|
|
720
|
-
token: options.token,
|
|
721
|
-
hostingApp: options.hostingApp
|
|
722
|
-
};
|
|
720
|
+
const sessionOptions = { token: options.token };
|
|
723
721
|
if (shouldPreloadFlow) sessionOptions.preloadFlow = true;
|
|
724
722
|
const sessionPromise = initializeSession(sessionOptions);
|
|
725
723
|
if (shouldPreloadFlow) await sessionPromise;
|
|
@@ -859,6 +857,7 @@ function reset() {
|
|
|
859
857
|
resetStandaloneFlowPolicy();
|
|
860
858
|
setClientIpLookupEnabled(true);
|
|
861
859
|
setClientFingerprintEnabled(true);
|
|
860
|
+
setClientHostingApp(void 0);
|
|
862
861
|
setWasmOnDeviceMode(false);
|
|
863
862
|
resetAnalyticsBatcher();
|
|
864
863
|
resetExperimentAssignments();
|
|
@@ -150,7 +150,26 @@ type SetupOptions = {
|
|
|
150
150
|
* `setup()` call.
|
|
151
151
|
*/
|
|
152
152
|
encryption?: boolean | EncryptionOptions;
|
|
153
|
-
/**
|
|
153
|
+
/**
|
|
154
|
+
* Identifies the hosting application in the device-fingerprint record.
|
|
155
|
+
* Defaults to `'Web SDK'`. The payload has no separate field for the host's
|
|
156
|
+
* own version, so put your build in this string if you need to report it.
|
|
157
|
+
*
|
|
158
|
+
* Intended for Incode-owned host applications, and deliberately left out of
|
|
159
|
+
* the published integration docs: the field is what separates our own apps
|
|
160
|
+
* from third-party embeds in that record, so integrators should leave it
|
|
161
|
+
* unset and let it default.
|
|
162
|
+
*
|
|
163
|
+
* Registered client-side rather than consumed once: it becomes the default
|
|
164
|
+
* `hostingApp` for every later activation, including the internal
|
|
165
|
+
* `initializeSession` calls made by `<incode-flow>`, `<incode-workflow>` and
|
|
166
|
+
* standalone modules — those carry a token but no host identity, so without
|
|
167
|
+
* this they would report the default. An explicit
|
|
168
|
+
* `initializeSession({ hostingApp })` still wins.
|
|
169
|
+
*
|
|
170
|
+
* Sticky across `setup()` calls: a follow-up call that omits it keeps the
|
|
171
|
+
* value registered by an earlier one. `reset()` clears it.
|
|
172
|
+
*/
|
|
154
173
|
hostingApp?: string;
|
|
155
174
|
/**
|
|
156
175
|
* Disables the third-party public-IP lookup (`api.ipify.org`) used to
|
|
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWa
|
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-B-3S7N6Z.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
|
@@ -1320,7 +1320,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1320
|
* the service's prewarm).
|
|
1321
1321
|
*/
|
|
1322
1322
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1323
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-uam5jVpc.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1324
|
return cryptoProviderPromise;
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-DrJjG62h.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-1O9k0ulP.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
6
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-
|
|
6
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-BHbkPMUr.esm.js";
|
|
7
7
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
9
9
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
10
10
|
import { t as MultipartRecordingService } from "./multipartRecordingService-B3C_zlev.esm.js";
|
|
11
|
-
import { i as CameraCompositor } from "./idCaptureDefaults-
|
|
11
|
+
import { i as CameraCompositor } from "./idCaptureDefaults-BwHGyv9V.esm.js";
|
|
12
12
|
import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-CpF2cBy6.esm.js";
|
|
13
|
-
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-5fwyJA0e.esm.js";
|
|
14
14
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BUe2uACW.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieWasm.ts
|
|
16
16
|
function warmupVideoSelfieWasm(config, steps = resolveVideoSelfieSteps(config)) {
|
package/dist/{videoSelfieCameraWarmer-C-cESczy.esm.js → videoSelfieCameraWarmer-5fwyJA0e.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
4
|
-
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-BHbkPMUr.esm.js";
|
|
5
5
|
import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-7lzEiOsO.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-B2fAbO2-.esm.js";
|
|
8
8
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
9
9
|
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
10
10
|
import { n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
|
|
11
11
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
12
12
|
import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-C77GXJH6.esm.js";
|
|
13
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
13
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BwHGyv9V.esm.js";
|
|
14
14
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
15
15
|
//#region src/modules/video-selfie/videoSelfieCompareService.ts
|
|
16
16
|
async function postVideoSelfieCompare(endpoint, base64Image) {
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-Cis2p6O0.js";
|
|
2
|
-
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-
|
|
2
|
+
import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-riMNzcSh.js";
|
|
3
3
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
4
4
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5
5
|
declare const DEFAULT_WASM_VERSION = "v2.14.49-post1";
|