@incodetech/core 0.0.0-dev-20261125-a5ad677d → 0.0.0-dev-20261125-65fbd784
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/{FaceDetectionProvider-CFiUc8Hd.esm.js → FaceDetectionProvider-UrN7k619.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-CyZr5sJC.esm.js → apiError-CsuExqla.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BcaFEs66.esm.js → authenticationManager-Cbpz582r.esm.js} +3 -3
- package/dist/{authenticationStateMachine-CmeTbxk_.esm.js → authenticationStateMachine-CH9TtEc6.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DlvhoJYc.d.ts → consentManager-B0YKqYtZ.d.ts} +1 -1
- package/dist/{deepsightCaptureConfig-CtmyE45E.esm.js → deepsightCaptureConfig-RVaZFoEz.esm.js} +2 -2
- package/dist/{deepsightLoader-DrIuEum0.esm.js → deepsightLoader-Be1Bjk19.esm.js} +4 -4
- package/dist/{desktopCameraElection-xd8heeHT.esm.js → desktopCameraElection-DHaOf19x.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DLWTqjUr.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +1 -1
- package/dist/{documentSignatureStateMachine-HS58MVdz.esm.js → documentSignatureStateMachine-DnfvJuoF.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CqZJyFi-.esm.js → dynamicFormsManager-SMPiIP9V.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-DWfpWGH5.esm.js → dynamicFormsStateMachine-g-GCXUfp.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-CaiVvuE_.esm.js → ekybManager-Csz6Yln4.esm.js} +1 -1
- package/dist/{ekybStateMachine-CHWV0FPV.esm.js → ekybStateMachine-IzsMbVST.esm.js} +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/{ekycPrefillManager-Bxsytrss.esm.js → ekycPrefillManager-DAdxVx71.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-CUD-wW2P.esm.js → ekycPrefillStateMachine-Dejlk4O7.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-w1-9CjP-.esm.js → electronicSignatureManager-zgzamcm1.esm.js} +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-CaBOqy4Y.esm.js → faceCaptureManagerFactory-C8a6AyaE.esm.js} +2 -2
- package/dist/{faceCaptureSetup-6ec5YJKA.esm.js → faceCaptureSetup-BViX3dHW.esm.js} +7 -7
- package/dist/{feature-management-DZdsmvB-.esm.js → feature-management-DZv3-5N-.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BtXsL0Jl.esm.js → flowCompletionService-DIGIkFDm.esm.js} +1 -1
- package/dist/{flowServices-CI7DGeeX.esm.js → flowServices-B1lJmQ2F.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-C-8IbX1W.esm.js → geolocationManager-DFinMPWo.esm.js} +1 -1
- package/dist/{geolocationStateMachine-gk_HySyS.esm.js → geolocationStateMachine-27nczfaJ.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Be6WFx7U.esm.js → idCaptureManager-BYyDEMJw.esm.js} +18 -12
- package/dist/{idCaptureManager-Bn264bcv.d.ts → idCaptureManager-CNFBeYgV.d.ts} +18 -3
- package/dist/{idCaptureServices-BfP780ra.esm.js → idCaptureServices-CP98fZUe.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-BhQcndal.esm.js → idCaptureStateMachine-Ddj9SOMp.esm.js} +169 -35
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CEkZBIpx.esm.js → kybChecksManager-Dg9BsU9Y.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-_bfnqyqG.esm.js → kybChecksStateMachine-HBHyQLgV.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BKNQU13o.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-jIrbh3yU.esm.js → recordingService-CjvUTbJ2.esm.js} +1 -1
- package/dist/{runChildModule-DGqpF7Gh.esm.js → runChildModule-CgRyonpB.esm.js} +1 -1
- package/dist/{sdkVersion-q_DFk6X9.esm.js → sdkVersion-DCCBTate.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-B0dMeKUc.esm.js → selfieErrorUtils-bGh4PR_u.esm.js} +1 -1
- package/dist/{selfieManager-BSnXvPxT.esm.js → selfieManager-xqPVk5ID.esm.js} +3 -3
- package/dist/{selfieStateMachine-CuklsHDX.esm.js → selfieStateMachine-C4QDeMWl.esm.js} +3 -3
- package/dist/{session-BET0YocC.esm.js → session-SjMxzn_z.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CSfkw25P.esm.js → sessionInitializer-B62QNOn0.esm.js} +4 -4
- package/dist/{setup-CdfzNIu9.esm.js → setup-C9kGuFdp.esm.js} +5 -5
- package/dist/trueSight-ByoxDfCz.esm.js +1 -0
- package/dist/{trueSightService-Bh_OnIJ9.esm.js → trueSightService-CS75tmsV.esm.js} +1 -1
- package/dist/{types-D8N0WLfT.d.ts → types-D-FEM1rT.d.ts} +24 -8
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-BvL4dBmY.esm.js → videoSelfieCameraWarmer-rPGaHVRK.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
- package/dist/trueSight-CrRl8NmS.esm.js +0 -1
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
2
|
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
3
|
-
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-CNFBeYgV.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-BRAZQtkM.js";
|
|
6
|
-
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-D-FEM1rT.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-Ddj9SOMp.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-BYyDEMJw.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-CP98fZUe.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-C9kGuFdp.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
3
3
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
4
4
|
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
5
5
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
6
|
+
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
6
7
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
8
|
import { i as assign, s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
9
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -11,9 +12,9 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
|
|
|
11
12
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
12
13
|
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-Csq_7Cbg.esm.js";
|
|
13
14
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
14
|
-
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-
|
|
15
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
16
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
15
|
+
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-RVaZFoEz.esm.js";
|
|
16
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-Ddj9SOMp.esm.js";
|
|
17
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-CP98fZUe.esm.js";
|
|
17
18
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-D2FOfi4O.esm.js";
|
|
18
19
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
19
20
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -316,18 +317,23 @@ function mapDigitalIdRedirectState(snapshot) {
|
|
|
316
317
|
const childSnapshot = snapshot.children["digitalIdRedirect"]?.getSnapshot();
|
|
317
318
|
const childCtx = childSnapshot?.context;
|
|
318
319
|
const childValue = childSnapshot?.value;
|
|
320
|
+
const phase = (() => {
|
|
321
|
+
if (childValue === "readyToRedirect") return "redirecting";
|
|
322
|
+
if (childValue === "showingQr") return "qr";
|
|
323
|
+
if (childValue === "succeeded") return "success";
|
|
324
|
+
if (childValue === "failed") return "failed";
|
|
325
|
+
if (childValue === "error") return "error";
|
|
326
|
+
return "loading";
|
|
327
|
+
})();
|
|
328
|
+
const providerId = childCtx?.selectedProvider ?? childCtx?.config.provider;
|
|
319
329
|
return {
|
|
320
330
|
status: "digitalIdRedirect",
|
|
321
|
-
phase
|
|
322
|
-
if (childValue === "readyToRedirect") return "redirecting";
|
|
323
|
-
if (childValue === "succeeded") return "success";
|
|
324
|
-
if (childValue === "failed") return "failed";
|
|
325
|
-
if (childValue === "error") return "error";
|
|
326
|
-
return "loading";
|
|
327
|
-
})(),
|
|
331
|
+
phase,
|
|
328
332
|
launchUrl: childCtx?.launchUrl,
|
|
329
333
|
failureReason: childCtx?.failureReason,
|
|
330
|
-
providerId
|
|
334
|
+
providerId,
|
|
335
|
+
walletName: snapshot.context.digitalIdRedirectOptions.find((option) => option.providerId === providerId)?.displayName,
|
|
336
|
+
canOpenWalletOnDevice: !isDesktop()
|
|
331
337
|
};
|
|
332
338
|
}
|
|
333
339
|
function mapDeviceWalletState(snapshot) {
|
|
@@ -12,7 +12,7 @@ import { t as BaseWasmProvider } from "./BaseWasmProvider-CPdofn7R.js";
|
|
|
12
12
|
import { n as DeepsightService } from "./StreamCanvasCapture-BqaHTJF0.js";
|
|
13
13
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
14
14
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-BRAZQtkM.js";
|
|
15
|
-
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
15
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-D-FEM1rT.js";
|
|
16
16
|
//#region src/internal/http/endpoints.d.ts
|
|
17
17
|
/**
|
|
18
18
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -674,12 +674,27 @@ type IdCaptureDigitalIdRedirectState = {
|
|
|
674
674
|
* `failed` — recoverable failure screen (retry / use another method);
|
|
675
675
|
* `error` — generic recoverable error screen.
|
|
676
676
|
*/
|
|
677
|
-
phase: 'loading' | 'redirecting' | 'success' | 'failed' | 'error';
|
|
678
|
-
/**
|
|
677
|
+
phase: 'loading' | 'redirecting' | 'qr' | 'success' | 'failed' | 'error';
|
|
678
|
+
/**
|
|
679
|
+
* Provider full-page redirect target in the `redirecting` phase; in the `qr` phase
|
|
680
|
+
* (cross-device wallet, e.g. France Identité) the link to render as a QR code while polling.
|
|
681
|
+
*/
|
|
679
682
|
launchUrl: string | undefined;
|
|
680
683
|
/** Localized-failure discriminator; present in the `failed` phase. */
|
|
681
684
|
failureReason: FailureReason | undefined;
|
|
682
685
|
providerId: DigitalIdProviderId | undefined;
|
|
686
|
+
/**
|
|
687
|
+
* The provider's name from the backend catalog (`displayName` of the chooser
|
|
688
|
+
* option), e.g. `France Identité`. The `qr` screen names the wallet with it,
|
|
689
|
+
* so a new wallet needs no SDK change. `undefined` when the catalog has none.
|
|
690
|
+
*/
|
|
691
|
+
walletName: string | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* `true` on a phone or tablet, where the wallet may be installed on this
|
|
694
|
+
* device: the `qr` screen then also offers to open `launchUrl` here. On a
|
|
695
|
+
* desktop the wallet link has no handler, so only the QR code is shown.
|
|
696
|
+
*/
|
|
697
|
+
canOpenWalletOnDevice: boolean;
|
|
683
698
|
};
|
|
684
699
|
type IdCaptureDeviceWalletState = {
|
|
685
700
|
status: 'deviceWallet';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-C9kGuFdp.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DZv3-5N-.esm.js";
|
|
4
4
|
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
5
5
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
6
6
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
package/dist/{idCaptureStateMachine-BhQcndal.esm.js → idCaptureStateMachine-Ddj9SOMp.esm.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { n as getTimestamp, r as revokeObjectURL } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as isGoogleWalletSignedRequestsEnabled, t as ensureWasmPipelines, u as BrowserStorageProvider } from "./setup-C9kGuFdp.esm.js";
|
|
3
3
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
4
4
|
import { n as eventModuleNames, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
5
5
|
import { r as getToken, t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
6
6
|
import { n as recordExperimentAssignmentOnce, t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
7
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
8
|
-
import "./trueSight-
|
|
9
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
7
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-CS75tmsV.esm.js";
|
|
8
|
+
import "./trueSight-ByoxDfCz.esm.js";
|
|
9
|
+
import { t as getDisableIpify } from "./sessionInitializer-B62QNOn0.esm.js";
|
|
10
10
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
11
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
11
|
+
import { s as exposeExperimentOnce } from "./feature-management-DZv3-5N-.esm.js";
|
|
12
12
|
import { t as addDeviceStats } from "./stats-DHu3li6G.esm.js";
|
|
13
13
|
import { d as isSamsungDevice, i as isIOS, l as isMacOsSafari, o as isIPad, s as isIPhone14OrHigher, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
14
|
-
import "./session-
|
|
14
|
+
import "./session-SjMxzn_z.esm.js";
|
|
15
15
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
16
16
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
17
17
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -20,8 +20,8 @@ import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
|
20
20
|
import { i as requestMotionPermission, n as invokeRequestPermissionActor, o as requiresMotionPermissionUserGesture, t as checkPermission, u as queryPermission } from "./permissionServices-Csq_7Cbg.esm.js";
|
|
21
21
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
22
22
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
23
|
-
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-
|
|
24
|
-
import { a as cameraCycleProvider, c as deepsightSignalConfigActor, i as runProtectedAttempt, l as PROTECTED_CAPTURE_TARGET, n as createCameraCycleOwnership, r as readIadCameraStepGates, s as flagIdManualReview, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
23
|
+
import { r as wantsDeepsightMotion } from "./deepsightCaptureConfig-RVaZFoEz.esm.js";
|
|
24
|
+
import { a as cameraCycleProvider, c as deepsightSignalConfigActor, i as runProtectedAttempt, l as PROTECTED_CAPTURE_TARGET, n as createCameraCycleOwnership, r as readIadCameraStepGates, s as flagIdManualReview, t as electDesktopCameraDevice } from "./desktopCameraElection-DHaOf19x.esm.js";
|
|
25
25
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
26
26
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BqqRUDJ3.esm.js";
|
|
27
27
|
import { t as carryAttempts } from "./attemptCarry-CxiYlUAO.esm.js";
|
|
@@ -30,7 +30,7 @@ import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
|
30
30
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
31
31
|
import { t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
32
32
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CFyXIRuM.esm.js";
|
|
33
|
-
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-
|
|
33
|
+
import { C as OPTIMIZING_WATCHDOG_MARGIN_MS, S as CAPTURE_OPTIMIZING, _ as validateUploadResponse, a as finalizeRecordingSession, b as resolveCountdownStepMs, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, s as initializeIdCapture, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES, w as getIdCameraStream, x as resolveIdCaptureThresholds } from "./idCaptureServices-CP98fZUe.esm.js";
|
|
34
34
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
35
35
|
import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
36
36
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
@@ -889,6 +889,25 @@ async function detectDigitalIdCountries(dependencies, options = {}) {
|
|
|
889
889
|
function isRedirectFlowType(flowType) {
|
|
890
890
|
return flowType === "REDIRECT" || flowType === "WEB_REDIRECT";
|
|
891
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* True when a digital-ID method is launched by the `digitalIdRedirect` child:
|
|
894
|
+
* a full-page redirect, or a QR code for a wallet on another device (EUDI
|
|
895
|
+
* wallets over OID4VP, e.g. France Identité). Both are external-provider
|
|
896
|
+
* methods, never a device wallet; only the launch step differs.
|
|
897
|
+
*/
|
|
898
|
+
function isProviderLaunchFlowType(flowType) {
|
|
899
|
+
return isRedirectFlowType(flowType) || flowType === "QR";
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* BACK-COMPAT ONLY for redirect providers — do not add new providers here.
|
|
903
|
+
*
|
|
904
|
+
* The backend catalog (user-service) defines every Digital ID provider and
|
|
905
|
+
* sends `providerId`, `flowType`, `displayName`, `logoUrl` and `countries` on
|
|
906
|
+
* each `digitalIds.methods[]` entry; the SDK launches such a method from that
|
|
907
|
+
* data alone. The redirect entries below only serve backends that still send
|
|
908
|
+
* bare method names. The `mDL` funnel (device wallet first, then its redirect
|
|
909
|
+
* fallback) is the one part that is still SDK logic.
|
|
910
|
+
*/
|
|
892
911
|
const DIGITAL_ID_REGISTRY = {
|
|
893
912
|
mDL: [{
|
|
894
913
|
kind: "incodeWallet",
|
|
@@ -1000,11 +1019,12 @@ const TEST_MOCK_REDIRECT_PROVIDER_BY_METHOD = {
|
|
|
1000
1019
|
TRINSIC_MOCK_OUTPUT: "trinsic_trinsic_mock_output"
|
|
1001
1020
|
};
|
|
1002
1021
|
/**
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1022
|
+
* BACK-COMPAT ONLY: persisted method name → provider id, derived from the
|
|
1023
|
+
* registry's redirect entries. Used only when a method arrives without
|
|
1024
|
+
* `providerId` + a launch `flowType` (backends older than the catalog
|
|
1025
|
+
* enrichment, ENG-60819). An enriched method always wins.
|
|
1026
|
+
* TODO(roadmap: fully-catalog-driven): remove once every supported backend
|
|
1027
|
+
* enriches `digitalIds.methods[]` with `providerId` + `flowType`.
|
|
1008
1028
|
*/
|
|
1009
1029
|
const REDIRECT_PROVIDER_BY_METHOD = (() => {
|
|
1010
1030
|
const map = { ...TEST_MOCK_REDIRECT_PROVIDER_BY_METHOD };
|
|
@@ -1012,9 +1032,9 @@ const REDIRECT_PROVIDER_BY_METHOD = (() => {
|
|
|
1012
1032
|
return map;
|
|
1013
1033
|
})();
|
|
1014
1034
|
/**
|
|
1015
|
-
*
|
|
1016
|
-
* chooser rank redirect providers by country
|
|
1017
|
-
*
|
|
1035
|
+
* BACK-COMPAT ONLY: catalog provider id → the countries it serves, from the
|
|
1036
|
+
* registry. Lets the chooser rank redirect providers by country when the
|
|
1037
|
+
* backend sends a method without `countries`; the backend's list always wins.
|
|
1018
1038
|
*/
|
|
1019
1039
|
const REDIRECT_PROVIDER_COUNTRIES = Object.fromEntries(DIGITAL_ID_DOCUMENT_TYPES.flatMap((docType) => DIGITAL_ID_REGISTRY[docType].flatMap((entry) => entry.kind === "trinsicRedirect" && entry.countries ? [[entry.providerId, entry.countries]] : [])));
|
|
1020
1040
|
/**
|
|
@@ -1046,7 +1066,7 @@ function isStandaloneRedirectProvider(providerId) {
|
|
|
1046
1066
|
*/
|
|
1047
1067
|
function resolveRedirectProviderId(method) {
|
|
1048
1068
|
if (method.flowType) {
|
|
1049
|
-
if (!
|
|
1069
|
+
if (!isProviderLaunchFlowType(method.flowType)) return;
|
|
1050
1070
|
const explicit = method.provider ?? method.providerId;
|
|
1051
1071
|
if (explicit) return explicit;
|
|
1052
1072
|
}
|
|
@@ -1076,7 +1096,7 @@ function normalizeDigitalIdMethods(config) {
|
|
|
1076
1096
|
* `SAMSUNG_WALLET` is listed by name because the onboarding catalog does not
|
|
1077
1097
|
* enrich it yet: it arrives as a bare `{ method: 'SAMSUNG_WALLET' }`. Without
|
|
1078
1098
|
* the name it would fall through to the unfiltered `deviceWallet` flag and
|
|
1079
|
-
* skip `WALLET_PLATFORM_RULES
|
|
1099
|
+
* skip `WALLET_PLATFORM_RULES`, whose Samsung rule keeps it off the tile.
|
|
1080
1100
|
*/
|
|
1081
1101
|
const DEVICE_WALLET_METHODS = /* @__PURE__ */ new Set([
|
|
1082
1102
|
"APPLE_WALLET",
|
|
@@ -1094,23 +1114,25 @@ const DEVICE_WALLET_METHODS = /* @__PURE__ */ new Set([
|
|
|
1094
1114
|
* any caller walks the list.
|
|
1095
1115
|
*/
|
|
1096
1116
|
function isDeviceWalletMethod(method) {
|
|
1097
|
-
if (method.flowType
|
|
1117
|
+
if (method.flowType === "DEVICE_WALLET") return true;
|
|
1118
|
+
if (method.flowType && isProviderLaunchFlowType(method.flowType)) return false;
|
|
1098
1119
|
if (method.type?.toUpperCase() === "MDL") return true;
|
|
1099
1120
|
return method.method !== void 0 && DEVICE_WALLET_METHODS.has(method.method.toUpperCase());
|
|
1100
1121
|
}
|
|
1101
1122
|
/**
|
|
1102
1123
|
* Device-level hard filter per wallet method: a wallet the device cannot reach
|
|
1103
|
-
* is never offered. Apple Wallet needs the Apple platform
|
|
1104
|
-
* other
|
|
1105
|
-
*
|
|
1124
|
+
* is never offered. Apple Wallet needs the Apple platform and Google Wallet any
|
|
1125
|
+
* other. Samsung Wallet never makes the Digital ID tile show: it has its own
|
|
1126
|
+
* card, whose eligibility is `hasEligibleSamsungWallet`. Methods without a rule
|
|
1127
|
+
* (CA DMV Wallet, an unknown catalog `MDL` method) run on either platform.
|
|
1106
1128
|
*
|
|
1107
1129
|
* A rule only rejects on a known platform fact, so a caller that omits
|
|
1108
|
-
* `walletPlatform`
|
|
1130
|
+
* `walletPlatform` gets no filtering.
|
|
1109
1131
|
*/
|
|
1110
1132
|
const WALLET_PLATFORM_RULES = {
|
|
1111
1133
|
APPLE_WALLET: (platform) => platform.walletPlatform !== "android",
|
|
1112
1134
|
GOOGLE_WALLET: (platform) => platform.walletPlatform !== "ios",
|
|
1113
|
-
SAMSUNG_WALLET: (
|
|
1135
|
+
SAMSUNG_WALLET: () => false
|
|
1114
1136
|
};
|
|
1115
1137
|
function isDeviceWalletMethodEligible(method, platform) {
|
|
1116
1138
|
const rule = method.method !== void 0 ? WALLET_PLATFORM_RULES[method.method.toUpperCase()] : void 0;
|
|
@@ -1137,6 +1159,18 @@ function hasEligibleDeviceWallet(config, platform) {
|
|
|
1137
1159
|
if (walletMethods.length > 0) return walletMethods.some((method) => isDeviceWalletMethodEligible(method, platform));
|
|
1138
1160
|
return config.deviceWallet === true;
|
|
1139
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Whether the separate Samsung Wallet card shows: the Credentials API is
|
|
1164
|
+
* there, `SAMSUNG_WALLET` is enabled for the flow, and the device is not an
|
|
1165
|
+
* Apple one. It runs over the v2 `samsung_wallet` verification, signed with
|
|
1166
|
+
* the Samsung verifier certificate (`createSamsungWalletServices`).
|
|
1167
|
+
*
|
|
1168
|
+
* Not narrowed to detected Samsung devices: Chrome reduces the Android user
|
|
1169
|
+
* agent, so `samsungDevice` is `false` on most Samsung phones.
|
|
1170
|
+
*/
|
|
1171
|
+
function hasEligibleSamsungWallet(config, platform) {
|
|
1172
|
+
return platform.credentialsAvailable && platform.walletPlatform !== "ios" && normalizeDigitalIdMethods(config).some((method) => method.method?.toUpperCase() === "SAMSUNG_WALLET");
|
|
1173
|
+
}
|
|
1140
1174
|
/** Whether a funnel entry is activated by config + platform capabilities. */
|
|
1141
1175
|
function isEntryActive(entry, config, platform) {
|
|
1142
1176
|
if (entry.kind === "incodeWallet") return platform.credentialsAvailable && hasEligibleDeviceWallet(config, platform);
|
|
@@ -1149,11 +1183,11 @@ function isEntryActive(entry, config, platform) {
|
|
|
1149
1183
|
* `normalizeDigitalIdMethods`.
|
|
1150
1184
|
*/
|
|
1151
1185
|
function findConfiguredMethod(entry, config) {
|
|
1152
|
-
return normalizeDigitalIdMethods(config).find((method) => method.method?.toUpperCase() === entry.method || method.provider === entry.providerId && !!method.flowType &&
|
|
1186
|
+
return normalizeDigitalIdMethods(config).find((method) => method.method?.toUpperCase() === entry.method || method.provider === entry.providerId && !!method.flowType && isProviderLaunchFlowType(method.flowType));
|
|
1153
1187
|
}
|
|
1154
1188
|
/** Normalizes a raw configured method into the mapped shape for the child input. */
|
|
1155
1189
|
function toMappedMethod(entry, method) {
|
|
1156
|
-
if (method.flowType &&
|
|
1190
|
+
if (method.flowType && isProviderLaunchFlowType(method.flowType)) return method;
|
|
1157
1191
|
return {
|
|
1158
1192
|
method: method.method,
|
|
1159
1193
|
provider: entry.providerId,
|
|
@@ -1185,14 +1219,15 @@ function resolveDigitalIdImplementation(docType, config, platform) {
|
|
|
1185
1219
|
/**
|
|
1186
1220
|
* Normalizes a configured method into the mapped redirect shape for a
|
|
1187
1221
|
* resolved provider. The already-mapped shape is returned as-is; the raw
|
|
1188
|
-
* backend shape gets `provider`
|
|
1222
|
+
* backend shape gets `provider` filled in, and keeps its own launch
|
|
1223
|
+
* `flowType` (`QR` for a wallet on another device), else `WEB_REDIRECT`.
|
|
1189
1224
|
*/
|
|
1190
1225
|
function toRedirectMethod(method, provider) {
|
|
1191
1226
|
if (method.provider && method.flowType) return method;
|
|
1192
1227
|
return {
|
|
1193
1228
|
method: method.method,
|
|
1194
1229
|
provider,
|
|
1195
|
-
flowType: "WEB_REDIRECT",
|
|
1230
|
+
flowType: method.flowType && isProviderLaunchFlowType(method.flowType) ? method.flowType : "WEB_REDIRECT",
|
|
1196
1231
|
country: method.country ?? method.countries?.[0],
|
|
1197
1232
|
displayName: method.displayName,
|
|
1198
1233
|
logoUrl: method.logoUrl
|
|
@@ -1335,6 +1370,7 @@ function getAvailableDocumentTypes(config, platform = { credentialsAvailable: fa
|
|
|
1335
1370
|
const documentType = route.kind === "incodeWallet" ? "digitalId" : "digitalIdRedirect";
|
|
1336
1371
|
if (!adjustedDocumentTypes.includes(documentType)) adjustedDocumentTypes.push(documentType);
|
|
1337
1372
|
}
|
|
1373
|
+
if (hasEligibleSamsungWallet(config, platform)) adjustedDocumentTypes.push("samsungWallet");
|
|
1338
1374
|
if (!adjustedDocumentTypes.includes("digitalIdRedirect") && getAvailableDigitalIdRedirectOptions(config).length > 0) adjustedDocumentTypes.push("digitalIdRedirect");
|
|
1339
1375
|
return adjustedDocumentTypes;
|
|
1340
1376
|
}
|
|
@@ -1502,6 +1538,8 @@ const isDigitalIdUploadSelectedGuard = ({ event }) => event.type === "SELECT_DOC
|
|
|
1502
1538
|
const isDigitalIdRedirectSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "digitalIdRedirect";
|
|
1503
1539
|
/** The Digital ID (device wallet) chooser tile was picked. */
|
|
1504
1540
|
const isDigitalIdSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "digitalId";
|
|
1541
|
+
/** The separate Samsung Wallet card was picked. */
|
|
1542
|
+
const isSamsungWalletSelectedGuard = ({ event }) => event.type === "SELECT_DOCUMENT" && event.documentType === "samsungWallet";
|
|
1505
1543
|
/** Funnel resolution stored by `resolveDigitalIdRoute` picked the native wallet. */
|
|
1506
1544
|
const digitalIdRouteIsWalletGuard = ({ context }) => context.digitalIdRoute?.kind === "incodeWallet";
|
|
1507
1545
|
/** Funnel resolution picked the Trinsic web-redirect fallback. */
|
|
@@ -2042,7 +2080,7 @@ fromPromise(async ({ input }) => {
|
|
|
2042
2080
|
});
|
|
2043
2081
|
fromPromise(async ({ input }) => {
|
|
2044
2082
|
if (!input.dependencies) return;
|
|
2045
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2083
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-Be1Bjk19.esm.js");
|
|
2046
2084
|
return loadDeepsightSession({
|
|
2047
2085
|
ds: input.ds,
|
|
2048
2086
|
storage: input.dependencies.storage,
|
|
@@ -2486,7 +2524,7 @@ function cleanup(service) {
|
|
|
2486
2524
|
service.cleanup();
|
|
2487
2525
|
} catch {}
|
|
2488
2526
|
}
|
|
2489
|
-
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-
|
|
2527
|
+
function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-Be1Bjk19.esm.js")).loadDeepsightSession(input)) {
|
|
2490
2528
|
let disposed = false;
|
|
2491
2529
|
let preparation;
|
|
2492
2530
|
let service;
|
|
@@ -3882,6 +3920,7 @@ const digitalIdRedirectMachine = setup({
|
|
|
3882
3920
|
},
|
|
3883
3921
|
guards: {
|
|
3884
3922
|
hasPresetProvider: ({ context }) => Boolean(context.config.provider),
|
|
3923
|
+
createdQrFlow: ({ event }) => event.output.flowType === "QR",
|
|
3885
3924
|
autoStartPreset: ({ context }) => context.autoStart && Boolean(context.config.provider),
|
|
3886
3925
|
autoStartCatalog: ({ context }) => context.autoStart && !context.config.provider,
|
|
3887
3926
|
isResuming: ({ context }) => Boolean(context.returnParams),
|
|
@@ -3960,15 +3999,41 @@ const digitalIdRedirectMachine = setup({
|
|
|
3960
3999
|
providerId: context.selectedProvider ?? "",
|
|
3961
4000
|
redirectUrl: context.returnUrl
|
|
3962
4001
|
}),
|
|
3963
|
-
onDone: {
|
|
4002
|
+
onDone: [{
|
|
4003
|
+
guard: "createdQrFlow",
|
|
4004
|
+
target: "showingQr",
|
|
4005
|
+
actions: "setVerification"
|
|
4006
|
+
}, {
|
|
3964
4007
|
target: "persisting",
|
|
3965
4008
|
actions: "setVerification"
|
|
3966
|
-
},
|
|
4009
|
+
}],
|
|
3967
4010
|
onError: {
|
|
3968
4011
|
target: "error",
|
|
3969
4012
|
actions: "setError"
|
|
3970
4013
|
}
|
|
3971
4014
|
} },
|
|
4015
|
+
showingQr: {
|
|
4016
|
+
invoke: {
|
|
4017
|
+
src: "pollStatus",
|
|
4018
|
+
input: ({ context }) => ({ verificationId: context.verificationId ?? "" })
|
|
4019
|
+
},
|
|
4020
|
+
on: {
|
|
4021
|
+
POLL_RESULT: [{
|
|
4022
|
+
guard: "polledOk",
|
|
4023
|
+
target: "succeeded",
|
|
4024
|
+
actions: "setVerificationFromEvent"
|
|
4025
|
+
}, {
|
|
4026
|
+
target: "failed",
|
|
4027
|
+
actions: "setVerificationFromEvent"
|
|
4028
|
+
}],
|
|
4029
|
+
CLOSE: { target: "closed" },
|
|
4030
|
+
USE_ANOTHER_METHOD: { target: "closed" }
|
|
4031
|
+
},
|
|
4032
|
+
after: { [MAX_POLL_DURATION_MS]: {
|
|
4033
|
+
target: "error",
|
|
4034
|
+
actions: assign({ error: () => POLL_CEILING_ERROR })
|
|
4035
|
+
} }
|
|
4036
|
+
},
|
|
3972
4037
|
persisting: { invoke: {
|
|
3973
4038
|
src: "persistPending",
|
|
3974
4039
|
input: ({ context }) => ({
|
|
@@ -4063,6 +4128,65 @@ const digitalIdRedirectMachine = setup({
|
|
|
4063
4128
|
}
|
|
4064
4129
|
});
|
|
4065
4130
|
//#endregion
|
|
4131
|
+
//#region src/modules/id/deviceWallet/samsungWalletServices.ts
|
|
4132
|
+
/** Catalog provider id of Samsung Wallet on the v2 digital-ID API. */
|
|
4133
|
+
const SAMSUNG_WALLET_PROVIDER_ID = "samsung_wallet";
|
|
4134
|
+
/**
|
|
4135
|
+
* Device-wallet services for Samsung Wallet over the v2 digital-ID API.
|
|
4136
|
+
*
|
|
4137
|
+
* Samsung Wallet must get a request signed with the Samsung verifier
|
|
4138
|
+
* certificate. The v1 Google request (`/device/wallet/google/request`) is
|
|
4139
|
+
* signed with the Google one, which Samsung Wallet does not trust, so this
|
|
4140
|
+
* handshake creates a `samsung_wallet` verification instead: its
|
|
4141
|
+
* `flowData.challengeData` is the Samsung-signed Digital Credentials API
|
|
4142
|
+
* request (the same shapes as the Google payload, see
|
|
4143
|
+
* {@link toGoogleRequestOptions}), and the wallet's JWE goes back to that
|
|
4144
|
+
* verification's `/response`.
|
|
4145
|
+
*
|
|
4146
|
+
* One instance per handshake: it keeps the verification id between the
|
|
4147
|
+
* request and the response. A retry creates the verification again; the
|
|
4148
|
+
* backend reuses the pending one.
|
|
4149
|
+
*/
|
|
4150
|
+
function createSamsungWalletServices() {
|
|
4151
|
+
let verificationId;
|
|
4152
|
+
return {
|
|
4153
|
+
async requestWalletData(_platform, signal) {
|
|
4154
|
+
const verification = (await api.post(endpoints.digitalIdVerifications, {
|
|
4155
|
+
providerId: SAMSUNG_WALLET_PROVIDER_ID,
|
|
4156
|
+
signedSupported: true
|
|
4157
|
+
}, { signal })).data;
|
|
4158
|
+
const challengeData = verification.flowData?.challengeData;
|
|
4159
|
+
if (!verification.verificationId || !challengeData) throw new Error("Samsung Wallet verification has no wallet request");
|
|
4160
|
+
verificationId = verification.verificationId;
|
|
4161
|
+
return toGoogleRequestOptions(JSON.parse(challengeData));
|
|
4162
|
+
},
|
|
4163
|
+
async decryptWalletResponse(_platform, walletResponse, signal) {
|
|
4164
|
+
if (!verificationId) throw new Error("Samsung Wallet response without a verification");
|
|
4165
|
+
return toDecryptResponse((await api.post(`${endpoints.digitalIdVerifications}/${verificationId}/response`, { walletResponse }, { signal })).data);
|
|
4166
|
+
}
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
/**
|
|
4170
|
+
* Maps the v2 status onto the v1 decrypt response the device-wallet machine
|
|
4171
|
+
* reads. `FAILED` is a completed but rejected handshake, as a v1 `REJECTED`
|
|
4172
|
+
* decision is; any other non-terminal or ended status is an error, so the
|
|
4173
|
+
* machine offers a retry.
|
|
4174
|
+
*/
|
|
4175
|
+
function toDecryptResponse(verification) {
|
|
4176
|
+
switch (verification.status) {
|
|
4177
|
+
case "COMPLETED": return {
|
|
4178
|
+
success: true,
|
|
4179
|
+
decision: "ACCEPTED"
|
|
4180
|
+
};
|
|
4181
|
+
case "FAILED": return {
|
|
4182
|
+
success: false,
|
|
4183
|
+
decision: "REJECTED",
|
|
4184
|
+
failureReason: verification.failureReason
|
|
4185
|
+
};
|
|
4186
|
+
default: throw new Error(`Samsung Wallet verification ended as ${verification.status ?? "unknown"}`);
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
//#endregion
|
|
4066
4190
|
//#region src/modules/id/idCaptureDependencies.ts
|
|
4067
4191
|
function resolveIdCaptureDependencies(dependencies) {
|
|
4068
4192
|
return dependencies ?? { storage: new BrowserStorageProvider() };
|
|
@@ -4645,6 +4769,7 @@ const idCaptureMachine = setup({
|
|
|
4645
4769
|
isDigitalIdUploadSelected: ({ event }) => isDigitalIdUploadSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4646
4770
|
isDigitalIdRedirectSelected: ({ event }) => isDigitalIdRedirectSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4647
4771
|
isDigitalIdSelected: ({ event }) => isDigitalIdSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4772
|
+
isSamsungWalletSelected: ({ event }) => isSamsungWalletSelectedGuard({ event: asPublicIdEvent(event) }),
|
|
4648
4773
|
digitalIdRouteIsWallet: digitalIdRouteIsWalletGuard,
|
|
4649
4774
|
digitalIdRouteIsTrinsic: digitalIdRouteIsTrinsicGuard,
|
|
4650
4775
|
isUploadExpired: isUploadExpiredGuard,
|
|
@@ -4863,6 +4988,11 @@ const idCaptureMachine = setup({
|
|
|
4863
4988
|
guard: "isDigitalIdSelected",
|
|
4864
4989
|
actions: ["setSelectedDocument", "resolveDigitalIdRoute"]
|
|
4865
4990
|
},
|
|
4991
|
+
{
|
|
4992
|
+
target: "deviceWallet",
|
|
4993
|
+
guard: "isSamsungWalletSelected",
|
|
4994
|
+
actions: ["setSelectedDocument"]
|
|
4995
|
+
},
|
|
4866
4996
|
{
|
|
4867
4997
|
target: "digitalIdRedirect",
|
|
4868
4998
|
guard: "isDigitalIdRedirectSelected",
|
|
@@ -5992,10 +6122,14 @@ const idCaptureMachine = setup({
|
|
|
5992
6122
|
invoke: {
|
|
5993
6123
|
id: "deviceWallet",
|
|
5994
6124
|
src: "deviceWalletMachine",
|
|
5995
|
-
input: ({ context }) =>
|
|
6125
|
+
input: ({ context }) => context.selectedDocumentType === "samsungWallet" ? {
|
|
6126
|
+
platform: "android",
|
|
6127
|
+
credentials: context.dependencies?.credentials ?? unavailableDigitalCredentials,
|
|
6128
|
+
services: createSamsungWalletServices()
|
|
6129
|
+
} : {
|
|
5996
6130
|
platform: resolveWalletPlatform(),
|
|
5997
6131
|
credentials: context.dependencies?.credentials ?? unavailableDigitalCredentials
|
|
5998
|
-
}
|
|
6132
|
+
},
|
|
5999
6133
|
onSnapshot: { actions: () => {} },
|
|
6000
6134
|
onDone: [
|
|
6001
6135
|
{
|
|
@@ -110,7 +110,7 @@ declare const idOcrStateMachine: StateMachine<IdOcrContext, {
|
|
|
110
110
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "success" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "success" | "finished" | "submitting" | "loading" | "inputting" | "readonly" | "validatingContinue", string, IdOcrInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
114
114
|
readonly id: "idOcr";
|
|
115
115
|
readonly initial: "idle";
|
|
116
116
|
readonly context: ({ input }: {
|
package/dist/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-C9kGuFdp.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
package/dist/kyb-checks.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
2
|
-
import { t as createKybChecksManager } from "./kybChecksManager-
|
|
1
|
+
import { t as kybChecksMachine } from "./kybChecksStateMachine-HBHyQLgV.esm.js";
|
|
2
|
+
import { t as createKybChecksManager } from "./kybChecksManager-Dg9BsU9Y.esm.js";
|
|
3
3
|
export { createKybChecksManager, kybChecksMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { n as toKybErrors, t as kybChecksMachine } from "./kybChecksStateMachine-
|
|
3
|
+
import { n as toKybErrors, t as kybChecksMachine } from "./kybChecksStateMachine-HBHyQLgV.esm.js";
|
|
4
4
|
//#region src/modules/kyb-checks/kybChecksActor.ts
|
|
5
5
|
/** Creates and starts a KYB Checks actor, idle until `LOAD`. */
|
|
6
6
|
function createKybChecksActor(options = {}) {
|
package/dist/{kybChecksStateMachine-_bfnqyqG.esm.js → kybChecksStateMachine-HBHyQLgV.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
-
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError, t as IncodeApiError } from "./apiError-CsuExqla.esm.js";
|
|
4
4
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-LbccjQYX.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-BcxCesP5.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-BKNQU13o.d.ts → mandatoryConsentManager-BcxCesP5.d.ts}
RENAMED
|
@@ -83,7 +83,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
83
83
|
type: "hasConsent";
|
|
84
84
|
params: unknown;
|
|
85
85
|
};
|
|
86
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
86
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "loading" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
87
87
|
readonly id: "mandatoryConsent";
|
|
88
88
|
readonly initial: "idle";
|
|
89
89
|
readonly context: ({ input }: {
|
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-zgzamcm1.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
2
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
3
|
-
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-
|
|
3
|
+
import { n as recordsLivenessClip } from "./deepsightCaptureConfig-RVaZFoEz.esm.js";
|
|
4
4
|
import { r as createRecordingCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-Di_V9TnZ.esm.js";
|
|
6
6
|
import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-BO7urYwT.esm.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { C as createEventBus } from "./types-DLsivQsu.esm.js";
|
|
3
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
3
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-CS75tmsV.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
//#region src/internal/flow-events/flowEvents.ts
|