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