vesant-sdk 1.7.1-dev.9fc141f → 1.7.1-dev.a461ee2
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/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -7
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.js +23 -7
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +23 -7
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +28 -10
- package/dist/kyc/index.d.ts +28 -10
- package/dist/kyc/index.js +23 -7
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +23 -7
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.js +113 -8
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +113 -8
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/kyc/core.js
CHANGED
|
@@ -704,10 +704,9 @@ var KycClient = class extends BaseClient {
|
|
|
704
704
|
* Create a Event-Based Face Verification session.
|
|
705
705
|
*
|
|
706
706
|
* Inspect the response before showing UI:
|
|
707
|
-
* - `is_required === false` → skip face
|
|
708
|
-
* - `
|
|
709
|
-
*
|
|
710
|
-
* - `device_type === 'mobile'` → open the face capture modal directly.
|
|
707
|
+
* - `is_required === false` → skip face verification; `reason` explains why.
|
|
708
|
+
* - `verification_url` present → embed the hosted journey and poll status.
|
|
709
|
+
* - `verification_url` absent → use the local camera / QR fallback.
|
|
711
710
|
*
|
|
712
711
|
* @param request - Reference, customer_id, event, amount (for threshold events), optional URLs.
|
|
713
712
|
*/
|
|
@@ -754,11 +753,28 @@ var KycClient = class extends BaseClient {
|
|
|
754
753
|
headers: this.getUserHeaders()
|
|
755
754
|
});
|
|
756
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* Mint a fresh hosted verification journey for the next attempt on an
|
|
758
|
+
* active session whose previous hosted-journey attempt was declined.
|
|
759
|
+
* Only valid while the session is active and attempts remain; the
|
|
760
|
+
* response carries the new `verification_url` to embed. Used internally
|
|
761
|
+
* by `FaceCaptureModal`'s Try Again flow in hosted-journey mode.
|
|
762
|
+
*
|
|
763
|
+
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
764
|
+
*/
|
|
765
|
+
async retryEventBasedFaceVerificationJourney(token) {
|
|
766
|
+
return this.request("/api/v1/kyc/face/onsite/journey", {
|
|
767
|
+
method: "POST",
|
|
768
|
+
body: JSON.stringify({ token }),
|
|
769
|
+
headers: this.getUserHeaders()
|
|
770
|
+
});
|
|
771
|
+
}
|
|
757
772
|
/**
|
|
758
773
|
* Fetch the Redis-backed handoff session for a token. Same backing
|
|
759
|
-
* store as normal KYC (`kyc:session:<token>`, 15-minute TTL).
|
|
760
|
-
*
|
|
761
|
-
*
|
|
774
|
+
* store as normal KYC (`kyc:session:<token>`, 15-minute TTL). The
|
|
775
|
+
* Event-Based Face Verification database session still expires after
|
|
776
|
+
* 10 minutes. Desktop callers poll `mobile_connected` to detect when a
|
|
777
|
+
* mobile device has scanned the QR and attached.
|
|
762
778
|
*
|
|
763
779
|
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
764
780
|
*/
|