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.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 capture; `reason` explains why.
2965
- * - `device_type === 'desktop'` render `qr_payload` as a QR; the
2966
- * mobile device picks up the session via the connect endpoint.
2967
- * - `device_type === 'mobile'` → open the face capture modal directly.
2964
+ * - `is_required === false` → skip face verification; `reason` explains why.
2965
+ * - `verification_url` presentembed 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). Desktop
3017
- * callers poll `mobile_connected` to detect when a mobile device has
3018
- * scanned the QR and attached.
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
  */