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/index.mjs
CHANGED
|
@@ -2961,10 +2961,9 @@ var KycClient = class extends BaseClient {
|
|
|
2961
2961
|
* Create a Event-Based Face Verification session.
|
|
2962
2962
|
*
|
|
2963
2963
|
* Inspect the response before showing UI:
|
|
2964
|
-
* - `is_required === false` → skip face
|
|
2965
|
-
* - `
|
|
2966
|
-
*
|
|
2967
|
-
* - `device_type === 'mobile'` → open the face capture modal directly.
|
|
2964
|
+
* - `is_required === false` → skip face verification; `reason` explains why.
|
|
2965
|
+
* - `verification_url` present → embed the hosted journey and poll status.
|
|
2966
|
+
* - `verification_url` absent → use the local camera / QR fallback.
|
|
2968
2967
|
*
|
|
2969
2968
|
* @param request - Reference, customer_id, event, amount (for threshold events), optional URLs.
|
|
2970
2969
|
*/
|
|
@@ -3011,11 +3010,28 @@ var KycClient = class extends BaseClient {
|
|
|
3011
3010
|
headers: this.getUserHeaders()
|
|
3012
3011
|
});
|
|
3013
3012
|
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Mint a fresh hosted verification journey for the next attempt on an
|
|
3015
|
+
* active session whose previous hosted-journey attempt was declined.
|
|
3016
|
+
* Only valid while the session is active and attempts remain; the
|
|
3017
|
+
* response carries the new `verification_url` to embed. Used internally
|
|
3018
|
+
* by `FaceCaptureModal`'s Try Again flow in hosted-journey mode.
|
|
3019
|
+
*
|
|
3020
|
+
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
3021
|
+
*/
|
|
3022
|
+
async retryEventBasedFaceVerificationJourney(token) {
|
|
3023
|
+
return this.request("/api/v1/kyc/face/onsite/journey", {
|
|
3024
|
+
method: "POST",
|
|
3025
|
+
body: JSON.stringify({ token }),
|
|
3026
|
+
headers: this.getUserHeaders()
|
|
3027
|
+
});
|
|
3028
|
+
}
|
|
3014
3029
|
/**
|
|
3015
3030
|
* Fetch the Redis-backed handoff session for a token. Same backing
|
|
3016
|
-
* store as normal KYC (`kyc:session:<token>`, 15-minute TTL).
|
|
3017
|
-
*
|
|
3018
|
-
*
|
|
3031
|
+
* store as normal KYC (`kyc:session:<token>`, 15-minute TTL). The
|
|
3032
|
+
* Event-Based Face Verification database session still expires after
|
|
3033
|
+
* 10 minutes. Desktop callers poll `mobile_connected` to detect when a
|
|
3034
|
+
* mobile device has scanned the QR and attached.
|
|
3019
3035
|
*
|
|
3020
3036
|
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
3021
3037
|
*/
|