@incodetech/core 2.2.0-rc.5 → 2.2.0-rc.6
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-DVsBW0AN.esm.js → BrowserDiagnosticsCryptoProvider-Ce3rctBe.esm.js} +1 -1
- package/dist/{IFeatureManagementCapability-DdEUp6tB.d.ts → IFeatureManagementCapability-De8wpbGh.d.ts} +2 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +1 -1
- package/dist/{antifraudManager-B8Plzf7a.esm.js → antifraudManager-BMZvuxv0.esm.js} +1 -1
- package/dist/{apiError-Dtho9qf_.esm.js → apiError-BSXFYi4z.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DXnLy-a7.esm.js → authenticationManager-DYqYkfs6.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CRJ6ilTX.esm.js → authenticationStateMachine-9tP0fEe0.esm.js} +2 -2
- package/dist/certificate-issuance.esm.js +1 -1
- package/dist/consent.esm.js +1 -1
- package/dist/{consentManager-BApTlfA0.esm.js → consentManager-DyBXdkFn.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-OmYvyung.esm.js → crossDocumentDataMatchManager-pNkutndd.esm.js} +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{curpValidationManager-UZxcrsrz.esm.js → curpValidationManager-DEesnLee.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/{deepsightLoader-zdZnx5Ny.esm.js → deepsightLoader-CraWVfCs.esm.js} +3 -3
- package/dist/document-capture.esm.js +1 -1
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-DszmcU-l.esm.js → documentCaptureManager-DwM7AmEJ.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DT3BoUBK.esm.js → dynamicFormsManager-CXkZG8c6.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-vrCtQ3gW.esm.js → dynamicFormsStateMachine-Cl3kW4E7.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DmIGaEK6.esm.js → ekybManager-BY8ijn3M.esm.js} +2 -2
- package/dist/{ekybStateMachine-32IR4TYs.esm.js → ekybStateMachine-Cyv8iPyH.esm.js} +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/{ekycManager-oTstTJuL.esm.js → ekycManager-CasdX1Ou.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BsDoCdF_.esm.js → electronicSignatureManager-CAHjq6JR.esm.js} +2 -2
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-tE-YvNtS.esm.js → emailManager-NLzaP12q.esm.js} +1 -1
- package/dist/{events-CxfNJVZW.esm.js → events-DYiyoSlx.esm.js} +5 -6
- package/dist/events.d.ts +11 -9
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.esm.js +26 -26
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-BHCXTj9J.esm.js → faceCaptureManagerFactory-BdAtEQUX.esm.js} +2 -2
- package/dist/{faceCaptureSetup-eqC24yO9.esm.js → faceCaptureSetup-BUNskJhm.esm.js} +2 -2
- package/dist/{faceMatchManager-BXp2WUT-.esm.js → faceMatchManager-DEVhhdf4.esm.js} +1 -1
- package/dist/{feature-management-DS_Nj5Gg.esm.js → feature-management-Bo_xbwQa.esm.js} +31 -40
- package/dist/feature-management.d.ts +41 -33
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DhnYdYZ2.esm.js → fieldComparisonManager-BRYsIi34.esm.js} +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-Bg3Wlac8.esm.js → flowCompletionService-J_2XiDZG.esm.js} +1 -1
- package/dist/{flowServices-D4A-aOqa.esm.js → flowServices-BydHVxc7.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CtE8v1SL.esm.js → geolocationManager-BF_JcCgS.esm.js} +2 -2
- package/dist/{geolocationStateMachine-BeWhwin9.esm.js → geolocationStateMachine-rYPrOUyM.esm.js} +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.esm.js +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-BGq73YE-.esm.js → idCaptureManager-C5zp-Xje.esm.js} +3 -3
- package/dist/{idCaptureServices-CqquDPJK.esm.js → idCaptureServices-28d5mDGM.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-C77vPrfK.esm.js → idCaptureStateMachine-3jTqEo76.esm.js} +10 -10
- package/dist/{idOcrManager-CvJZhmBR.esm.js → idOcrManager-D_2k-6Vv.esm.js} +1 -1
- package/dist/{idVerificationManager-CduNXhWd.esm.js → idVerificationManager-DdlrWSSB.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/{identityReuseManager-D5vXknnJ.esm.js → identityReuseManager-CzLZNgdh.esm.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-1m1VJ3Q4.esm.js → invokeOnCaptureCallback-GpvMuz9o.esm.js} +1 -1
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/{mandatoryConsentManager-BeELm1zS.esm.js → mandatoryConsentManager-CEIkNukS.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-W-0feT1M.esm.js → onDeviceFaceResults-CTinxa9H.esm.js} +3 -3
- package/dist/personhood.esm.js +4 -4
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-Cpiai2IM.esm.js → phoneManager-B_03mKyi.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-DGUDVjsC.esm.js → recordingService-DtWTn91V.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/{redirectToMobileManager-C0dfc7f6.esm.js → redirectToMobileManager-Bgo6eqri.esm.js} +1 -1
- package/dist/{runChildModule-C8zmFi0v.esm.js → runChildModule-Bl5F16W9.esm.js} +2 -2
- package/dist/sdkVersion-DEks9mOi.esm.js +4 -0
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-nF1U2HVv.esm.js → selfieManager-D1jZ1_6k.esm.js} +3 -3
- package/dist/{selfieStateMachine-WweUsh9j.esm.js → selfieStateMachine-CW_c5AnO.esm.js} +2 -2
- package/dist/{session-CSiLRkhY.esm.js → session-ChIfu6mP.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Cryl_eFw.esm.js → sessionInitializer-BFJAT3u0.esm.js} +5 -4
- package/dist/{setup-DywQeePQ.d.ts → setup-BgoWtvIS.d.ts} +13 -1
- package/dist/{setup-Pq3OUa24.esm.js → setup-CcxP8TVK.esm.js} +7 -6
- package/dist/signature.esm.js +1 -1
- package/dist/{signatureManager-DdPgcmou.esm.js → signatureManager-DoACIR02.esm.js} +1 -1
- package/dist/trueSight-CAaztf3O.esm.js +1 -0
- package/dist/{trueSightService-g7xYcH1C.esm.js → trueSightService-B49-Eq-5.esm.js} +4 -6
- package/dist/trust-graph.esm.js +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DvbVY391.esm.js → videoSelfieCameraWarmer-qld900rY.esm.js} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/{watchlistManager-CjSMmbyq.esm.js → watchlistManager-CPBZnFYj.esm.js} +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/trueSight-BG20aur1.esm.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { a as __toESM } from "./rolldown-runtime-FZ4Itg2g.esm.js";
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-DEks9mOi.esm.js";
|
|
2
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
4
|
let currentEnvironment;
|
|
4
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -103,7 +104,8 @@ var FeatureManagementProvider = class FeatureManagementProvider {
|
|
|
103
104
|
};
|
|
104
105
|
this._user = this._getAdjustedUser({
|
|
105
106
|
customIDs: config.customIDs,
|
|
106
|
-
custom: config.custom
|
|
107
|
+
custom: config.custom,
|
|
108
|
+
appVersion: config.appVersion
|
|
107
109
|
});
|
|
108
110
|
const client = new module.StatsigClient(CLIENT_SDK_KEY, this._user, {
|
|
109
111
|
environment: { tier: config.environment },
|
|
@@ -206,6 +208,7 @@ var FeatureManagementProvider = class FeatureManagementProvider {
|
|
|
206
208
|
_getAdjustedUser(user) {
|
|
207
209
|
const persistedUserCustomIDs = this._user.customIDs ?? {};
|
|
208
210
|
const persistedUserCustom = this._user.custom ?? {};
|
|
211
|
+
const appVersion = user.appVersion ?? this._user.appVersion;
|
|
209
212
|
return {
|
|
210
213
|
customIDs: {
|
|
211
214
|
...persistedUserCustomIDs,
|
|
@@ -215,6 +218,7 @@ var FeatureManagementProvider = class FeatureManagementProvider {
|
|
|
215
218
|
...persistedUserCustom,
|
|
216
219
|
...user.custom
|
|
217
220
|
},
|
|
221
|
+
...appVersion !== void 0 ? { appVersion } : {},
|
|
218
222
|
...this._getRedactedFields()
|
|
219
223
|
};
|
|
220
224
|
}
|
|
@@ -454,7 +458,11 @@ function getIsFeatureManagementLocked() {
|
|
|
454
458
|
function buildInitializeOptions(options) {
|
|
455
459
|
const initializeOptions = { environment: options.environment ?? "production" };
|
|
456
460
|
if (options.clientExperimentId) initializeOptions.customIDs = { client_experiment_id: options.clientExperimentId };
|
|
457
|
-
|
|
461
|
+
initializeOptions.custom = {
|
|
462
|
+
...options.custom,
|
|
463
|
+
sdkVersion: SDK_VERSION
|
|
464
|
+
};
|
|
465
|
+
if (options.appVersion) initializeOptions.appVersion = options.appVersion;
|
|
458
466
|
if (options.redactedUserInfo) initializeOptions.redactedUserInfo = options.redactedUserInfo;
|
|
459
467
|
initializeOptions.disableStableId = options.disableStableId ?? true;
|
|
460
468
|
initializeOptions.disablePersistence = options.disablePersistence ?? true;
|
|
@@ -467,18 +475,14 @@ const resolvedExperiments = /* @__PURE__ */ new Map();
|
|
|
467
475
|
const exposedExperiments = /* @__PURE__ */ new Set();
|
|
468
476
|
/**
|
|
469
477
|
* Non-null fallback compared by reference. A `null` code fallback disables
|
|
470
|
-
* Statsig validation
|
|
471
|
-
* `
|
|
478
|
+
* Statsig's type validation, so `undefined`/`null` can never be used here.
|
|
479
|
+
* The `__unavailable` marker exists purely for debuggability: a genuinely
|
|
480
|
+
* not-allocated console payload is an empty object `{}`, which is otherwise
|
|
481
|
+
* indistinguishable from this sentinel by inspection (both resolve to code
|
|
482
|
+
* defaults with no assignment — the reference check is what actually
|
|
483
|
+
* matters at runtime).
|
|
472
484
|
*/
|
|
473
|
-
const EXPERIMENT_UNAVAILABLE_SENTINEL = Object.freeze({
|
|
474
|
-
schema: "v1",
|
|
475
|
-
status: "not_allocated",
|
|
476
|
-
arm: "",
|
|
477
|
-
flagKey: "",
|
|
478
|
-
experimentId: "",
|
|
479
|
-
experimentName: "",
|
|
480
|
-
params: {}
|
|
481
|
-
});
|
|
485
|
+
const EXPERIMENT_UNAVAILABLE_SENTINEL = Object.freeze({ __unavailable: true });
|
|
482
486
|
function isRecord(value) {
|
|
483
487
|
return typeof value === "object" && value !== null;
|
|
484
488
|
}
|
|
@@ -488,43 +492,26 @@ function defaultsResult(spec) {
|
|
|
488
492
|
assignment: null
|
|
489
493
|
};
|
|
490
494
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
const arm = payload.arm;
|
|
496
|
-
if (typeof flagKey !== "string" || typeof experimentId !== "string" || typeof experimentName !== "string" || typeof arm !== "string" || !flagKey || !experimentId || !experimentName || !arm) return null;
|
|
497
|
-
return {
|
|
498
|
-
flagKey,
|
|
499
|
-
experimentId,
|
|
500
|
-
experimentName,
|
|
501
|
-
variant: arm
|
|
502
|
-
};
|
|
495
|
+
/** Non-empty record means reportable; nothing inside it is validated. */
|
|
496
|
+
function buildAssignment(analytics) {
|
|
497
|
+
if (!isRecord(analytics) || Object.keys(analytics).length === 0) return null;
|
|
498
|
+
return { ...analytics };
|
|
503
499
|
}
|
|
504
500
|
function evaluateExperimentPayload(spec, raw) {
|
|
505
501
|
if (raw === EXPERIMENT_UNAVAILABLE_SENTINEL) return defaultsResult(spec);
|
|
506
|
-
if (!isRecord(raw)
|
|
507
|
-
const
|
|
508
|
-
if (status !== "ongoing" && status !== "completed" && status !== "not_allocated") return defaultsResult(spec);
|
|
509
|
-
if (status === "not_allocated") return defaultsResult(spec);
|
|
510
|
-
const rawParams = isRecord(raw.params) ? raw.params : {};
|
|
511
|
-
const parsedParams = spec.parseParams(rawParams);
|
|
512
|
-
if (parsedParams === null) return defaultsResult(spec);
|
|
502
|
+
if (!isRecord(raw)) return defaultsResult(spec);
|
|
503
|
+
const parsedParams = spec.parseParams(raw);
|
|
513
504
|
const params = {
|
|
514
505
|
...spec.defaults,
|
|
515
506
|
...parsedParams
|
|
516
507
|
};
|
|
517
|
-
if (status === "completed") return {
|
|
518
|
-
params,
|
|
519
|
-
assignment: null
|
|
520
|
-
};
|
|
521
508
|
if (!getFeatureGate(EXPERIMENT_ASSIGNED_ANALYTICS_EVENT_GATE).enabled) return {
|
|
522
509
|
params,
|
|
523
510
|
assignment: null
|
|
524
511
|
};
|
|
525
512
|
return {
|
|
526
513
|
params,
|
|
527
|
-
assignment: buildAssignment(raw)
|
|
514
|
+
assignment: buildAssignment(raw.analytics)
|
|
528
515
|
};
|
|
529
516
|
}
|
|
530
517
|
/**
|
|
@@ -589,8 +576,9 @@ const enumParam = (defaultValue, allowed) => ({
|
|
|
589
576
|
/**
|
|
590
577
|
* Derives the `defaults` / `parseParams` half of an `ExperimentSpec` from a
|
|
591
578
|
* schema. An omitted param keeps its code default (control users still get
|
|
592
|
-
* shipped behavior); a present-but-invalid param
|
|
593
|
-
*
|
|
579
|
+
* shipped behavior); a present-but-invalid param is skipped (falls back to
|
|
580
|
+
* its own default) rather than rejecting the whole payload, so a corrupt
|
|
581
|
+
* console edit to one key never disables the rest of the treatment.
|
|
594
582
|
*/
|
|
595
583
|
function defineExperimentParams(schema) {
|
|
596
584
|
const keys = Object.keys(schema);
|
|
@@ -604,7 +592,10 @@ function defineExperimentParams(schema) {
|
|
|
604
592
|
for (const key of keys) {
|
|
605
593
|
if (!(key in raw) || raw[key] === void 0) continue;
|
|
606
594
|
const value = raw[key];
|
|
607
|
-
if (!schema[key].isValid(value))
|
|
595
|
+
if (!schema[key].isValid(value)) {
|
|
596
|
+
console.warn(`[experiments] Invalid value for param "${key}" — falling back to its default.`);
|
|
597
|
+
continue;
|
|
598
|
+
}
|
|
608
599
|
parsed[key] = value;
|
|
609
600
|
}
|
|
610
601
|
return parsed;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FeatureManagementParameterStore, c as FeatureManagementRedactedUserInfo, i as FeatureManagementLayer, l as FeatureManagementUserUpdate, n as FeatureManagementExperiment, o as FeatureManagementParameterStoreEvaluationOptions, r as FeatureManagementGate, s as FeatureManagementReadStatus, t as FeatureManagementEventMetadata } from "./IFeatureManagementCapability-
|
|
1
|
+
import { a as FeatureManagementParameterStore, c as FeatureManagementRedactedUserInfo, i as FeatureManagementLayer, l as FeatureManagementUserUpdate, n as FeatureManagementExperiment, o as FeatureManagementParameterStoreEvaluationOptions, r as FeatureManagementGate, s as FeatureManagementReadStatus, t as FeatureManagementEventMetadata } from "./IFeatureManagementCapability-De8wpbGh.js";
|
|
2
2
|
//#region src/integrations/feature-management/featureManagement.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Name of the shared Statsig parameter store fronting SDK-module
|
|
@@ -78,31 +78,34 @@ declare function logEvent(name: string, value?: string | number, options?: {
|
|
|
78
78
|
}): void;
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region src/integrations/feature-management/experiments.d.ts
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
81
|
+
/**
|
|
82
|
+
* Statsig object payload: declared params live at the root; `analytics` is
|
|
83
|
+
* an optional, code-unvalidated block spread verbatim into the
|
|
84
|
+
* `experimentsAssigned` event. Presence of a non-empty `analytics` record is
|
|
85
|
+
* the only reportability signal — there is no `schema`/`status`/`arm`
|
|
86
|
+
* discriminator.
|
|
87
|
+
*/
|
|
88
|
+
type ExperimentTransport = {
|
|
89
|
+
analytics?: Record<string, unknown>;
|
|
90
|
+
} & Record<string, unknown>;
|
|
91
91
|
type ExperimentSpec<P> = {
|
|
92
92
|
storeParam: string;
|
|
93
93
|
defaults: P;
|
|
94
|
-
parseParams(raw: Record<string, unknown>): Partial<P
|
|
95
|
-
};
|
|
96
|
-
type ExperimentAssignedPayload = {
|
|
97
|
-
flagKey: string;
|
|
98
|
-
experimentId: string;
|
|
99
|
-
experimentName: string;
|
|
100
|
-
variant: string;
|
|
101
|
-
conditions?: Record<string, boolean | number | string>;
|
|
94
|
+
parseParams(raw: Record<string, unknown>): Partial<P>;
|
|
102
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* Verbatim copy of the console-supplied `analytics` block. Only `flagKey`
|
|
98
|
+
* (used elsewhere for reporting identity) is conventionally present — no
|
|
99
|
+
* field here is required or validated by the SDK.
|
|
100
|
+
*/
|
|
101
|
+
type ExperimentAssignedPayload = Record<string, unknown>;
|
|
103
102
|
type ResolvedExperiment<P> = {
|
|
104
103
|
params: P;
|
|
105
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Null when not reportable: `analytics` absent/empty on the console
|
|
106
|
+
* payload, not allocated (`{}`), unavailable, or the
|
|
107
|
+
* `experiment_assigned_analytics_event` gate is off.
|
|
108
|
+
*/
|
|
106
109
|
assignment: ExperimentAssignedPayload | null;
|
|
107
110
|
};
|
|
108
111
|
type ResolveExperimentOptions = {
|
|
@@ -111,17 +114,15 @@ type ResolveExperimentOptions = {
|
|
|
111
114
|
};
|
|
112
115
|
/**
|
|
113
116
|
* Non-null fallback compared by reference. A `null` code fallback disables
|
|
114
|
-
* Statsig validation
|
|
115
|
-
* `
|
|
117
|
+
* Statsig's type validation, so `undefined`/`null` can never be used here.
|
|
118
|
+
* The `__unavailable` marker exists purely for debuggability: a genuinely
|
|
119
|
+
* not-allocated console payload is an empty object `{}`, which is otherwise
|
|
120
|
+
* indistinguishable from this sentinel by inspection (both resolve to code
|
|
121
|
+
* defaults with no assignment — the reference check is what actually
|
|
122
|
+
* matters at runtime).
|
|
116
123
|
*/
|
|
117
124
|
declare const EXPERIMENT_UNAVAILABLE_SENTINEL: Readonly<{
|
|
118
|
-
|
|
119
|
-
status: "not_allocated";
|
|
120
|
-
arm: "";
|
|
121
|
-
flagKey: "";
|
|
122
|
-
experimentId: "";
|
|
123
|
-
experimentName: "";
|
|
124
|
-
params: {};
|
|
125
|
+
__unavailable: true;
|
|
125
126
|
}>;
|
|
126
127
|
/**
|
|
127
128
|
* Resolves an object-shaped experiment param with exposure suppressed (phase 1).
|
|
@@ -149,7 +150,13 @@ type ExperimentParamDescriptor<T extends ExperimentParamValue> = {
|
|
|
149
150
|
default: T;
|
|
150
151
|
isValid: (value: unknown) => value is T;
|
|
151
152
|
};
|
|
152
|
-
type ExperimentParamsSchema = Record<string, ExperimentParamDescriptor<ExperimentParamValue
|
|
153
|
+
type ExperimentParamsSchema = Record<string, ExperimentParamDescriptor<ExperimentParamValue>> & {
|
|
154
|
+
/**
|
|
155
|
+
* Reserved at the payload root for the pass-through analytics block — a
|
|
156
|
+
* param schema can never declare a param named `analytics`.
|
|
157
|
+
*/
|
|
158
|
+
analytics?: never;
|
|
159
|
+
};
|
|
153
160
|
/** The params map a schema implies — the single source of truth for `P`. */
|
|
154
161
|
type InferExperimentParams<S extends ExperimentParamsSchema> = { [K in keyof S]: S[K] extends ExperimentParamDescriptor<infer T> ? T : never; };
|
|
155
162
|
type NumberParamBounds = {
|
|
@@ -165,9 +172,10 @@ declare const enumParam: <const T extends readonly string[]>(defaultValue: T[num
|
|
|
165
172
|
/**
|
|
166
173
|
* Derives the `defaults` / `parseParams` half of an `ExperimentSpec` from a
|
|
167
174
|
* schema. An omitted param keeps its code default (control users still get
|
|
168
|
-
* shipped behavior); a present-but-invalid param
|
|
169
|
-
*
|
|
175
|
+
* shipped behavior); a present-but-invalid param is skipped (falls back to
|
|
176
|
+
* its own default) rather than rejecting the whole payload, so a corrupt
|
|
177
|
+
* console edit to one key never disables the rest of the treatment.
|
|
170
178
|
*/
|
|
171
179
|
declare function defineExperimentParams<S extends ExperimentParamsSchema>(schema: S): Pick<ExperimentSpec<InferExperimentParams<S>>, 'defaults' | 'parseParams'>;
|
|
172
180
|
//#endregion
|
|
173
|
-
export { EXPERIMENT_UNAVAILABLE_SENTINEL, type ExperimentAssignedPayload, type ExperimentParamDescriptor, type ExperimentParamValue, type ExperimentParamsSchema, type ExperimentSpec, type
|
|
181
|
+
export { EXPERIMENT_UNAVAILABLE_SENTINEL, type ExperimentAssignedPayload, type ExperimentParamDescriptor, type ExperimentParamValue, type ExperimentParamsSchema, type ExperimentSpec, type ExperimentTransport, type FeatureManagementExperiment, type FeatureManagementGate, type FeatureManagementLayer, type FeatureManagementParameterStore, type FeatureManagementParameterStoreEvaluationOptions, type FeatureManagementReadStatus, type FeatureManagementRedactedUserInfo, type FeatureManagementUserUpdate, type InferExperimentParams, type NumberParamBounds, ONBOARDING_WEB_SDK_PARAMETER_STORE, type ResolveExperimentOptions, type ResolvedExperiment, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
|
@@ -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-Bo_xbwQa.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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-
|
|
1
|
+
import { n as createFieldComparisonManagerFromActor, r as fieldComparisonMachine, t as createFieldComparisonManager } from "./fieldComparisonManager-BRYsIi34.esm.js";
|
|
2
2
|
export { createFieldComparisonManager, createFieldComparisonManagerFromActor, fieldComparisonMachine };
|
package/dist/{fieldComparisonManager-DhnYdYZ2.esm.js → fieldComparisonManager-BRYsIi34.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/fiscal-qr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-
|
|
3
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
5
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as addEvent } from "./events-
|
|
2
|
-
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
1
|
+
import { v as addEvent } from "./events-DYiyoSlx.esm.js";
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-BydHVxc7.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-J_2XiDZG.esm.js";
|
|
6
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Bl5F16W9.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
8
8
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
9
9
|
id: "noOpFlowModule",
|
package/dist/{flowCompletionService-Bg3Wlac8.esm.js → flowCompletionService-J_2XiDZG.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-CCzL3XD_.esm.js";
|
|
3
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { r as toIncodeApiError } from "./apiError-BSXFYi4z.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,9 +1,9 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Bo_xbwQa.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
3
|
+
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BFJAT3u0.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-BSXFYi4z.esm.js";
|
|
6
|
+
import "./session-ChIfu6mP.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
package/dist/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-BF_JcCgS.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-rYPrOUyM.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-rYPrOUyM.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-BeWhwin9.esm.js → geolocationStateMachine-rYPrOUyM.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-CCzL3XD_.esm.js";
|
|
3
3
|
import { i as isIOS, t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-BSXFYi4z.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
package/dist/home.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
2
2
|
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-D_2k-6Vv.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CcxP8TVK.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-BydHVxc7.esm.js";
|
|
5
5
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-CTinxa9H.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
9
|
import { i as uploadSelfie, r as processFace } from "./selfieErrorUtils-C2PYBVsp.esm.js";
|
|
10
10
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
12
|
-
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-28d5mDGM.esm.js";
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-J_2XiDZG.esm.js";
|
|
14
|
+
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-qld900rY.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-DdlrWSSB.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
8
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
5
|
+
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-3jTqEo76.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-C5zp-Xje.esm.js";
|
|
7
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-28d5mDGM.esm.js";
|
|
8
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
|
|
9
9
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
10
10
|
function buildSubImage(canvas) {
|
|
11
11
|
if (!canvas) return void 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-UvUcOSRb.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-3jTqEo76.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-28d5mDGM.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Bo_xbwQa.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { r as isDesktop } from "./platform-BJrm5nzZ.esm.js";
|
|
5
|
-
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-CTinxa9H.esm.js";
|
|
6
6
|
import { n as getBackCameraStream } from "./backCameraStream-CUeYm5eu.esm.js";
|
|
7
7
|
import { t as getDeviceClass } from "./getDeviceClass-9y-kbVDw.esm.js";
|
|
8
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
8
|
+
import { n as preloadOpenViduProvider } from "./recordingService-DtWTn91V.esm.js";
|
|
9
9
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
10
10
|
//#region src/modules/id/idCameraStream.ts
|
|
11
11
|
async function getIdCameraStream(deviceId) {
|
|
@@ -14,14 +14,14 @@ async function getIdCameraStream(deviceId) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/modules/id/idCaptureExperiments.ts
|
|
16
16
|
/**
|
|
17
|
-
* IDC-05 — resolved by core because `
|
|
17
|
+
* IDC-05 — resolved by core because `framesAggregationIntervalMs` feeds
|
|
18
18
|
* `setThresholds` before detection can run.
|
|
19
19
|
*/
|
|
20
20
|
const CAPTURE_RESULT_PREVIEW = {
|
|
21
|
-
storeParam: "
|
|
21
|
+
storeParam: "idcExp05ShowResult",
|
|
22
22
|
...defineExperimentParams({
|
|
23
23
|
showCaptureResultPreview: booleanParam(false),
|
|
24
|
-
|
|
24
|
+
framesAggregationIntervalMs: numberParam(DEFAULT_ID_CAPTURE_THRESHOLDS.framesAggregationInterval)
|
|
25
25
|
})
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
@@ -31,7 +31,7 @@ function resolveCaptureResultPreviewTreatment(config) {
|
|
|
31
31
|
const { params } = resolveExperimentOnce(CAPTURE_RESULT_PREVIEW);
|
|
32
32
|
return {
|
|
33
33
|
mode: params.showCaptureResultPreview ? "result-preview" : "countdown",
|
|
34
|
-
framesAggregationInterval: params.
|
|
34
|
+
framesAggregationInterval: params.framesAggregationIntervalMs
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
/**
|
package/dist/{idCaptureStateMachine-C77vPrfK.esm.js → idCaptureStateMachine-3jTqEo76.esm.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
2
|
+
import { s as exposeExperimentOnce } from "./feature-management-Bo_xbwQa.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-B49-Eq-5.esm.js";
|
|
6
|
+
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-DYiyoSlx.esm.js";
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-BFJAT3u0.esm.js";
|
|
8
|
+
import "./trueSight-CAaztf3O.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-BJrm5nzZ.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-ChIfu6mP.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
14
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-UvUcOSRb.esm.js";
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-CTinxa9H.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
18
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
@@ -20,7 +20,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-KINpmKtI.esm.js";
|
|
22
22
|
import { n as flagIdManualReview } from "./manualReviewService-D4IkipnN.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-28d5mDGM.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1338,7 +1338,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1340
1340
|
if (!input.dependencies) return;
|
|
1341
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1341
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CraWVfCs.esm.js");
|
|
1342
1342
|
return loadDeepsightSession({
|
|
1343
1343
|
ds: input.ds,
|
|
1344
1344
|
storage: input.dependencies.storage,
|
|
@@ -1380,7 +1380,7 @@ function performReportCaptureResultPreviewAssignment(context) {
|
|
|
1380
1380
|
if (context.config.supportsCaptureResultPreview !== true) return;
|
|
1381
1381
|
const assignment = exposeExperimentOnce(CAPTURE_RESULT_PREVIEW);
|
|
1382
1382
|
if (!assignment) return;
|
|
1383
|
-
recordExperimentAssignmentOnce(eventModuleNames.idCapture, assignment);
|
|
1383
|
+
recordExperimentAssignmentOnce(eventModuleNames.idCapture, CAPTURE_RESULT_PREVIEW.storeParam, assignment);
|
|
1384
1384
|
}
|
|
1385
1385
|
function performStopMediaRecording(context) {
|
|
1386
1386
|
if (context.recordingSession) stopRecording(context.recordingSession);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
package/dist/{idVerificationManager-CduNXhWd.esm.js → idVerificationManager-DdlrWSSB.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
|
|
4
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-AubRPhIi.esm.js";
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CzLZNgdh.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-AubRPhIi.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-BgoWtvIS.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-CcxP8TVK.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-zroQGzwb.esm.js";
|
|
2
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-CEIkNukS.esm.js";
|
|
3
3
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-BeELm1zS.esm.js → mandatoryConsentManager-CEIkNukS.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-zroQGzwb.esm.js";
|
|
4
4
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|