vesant-sdk 1.7.1-dev.8d808aa → 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.
@@ -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 capture; `reason` explains why.
706
- * - `device_type === 'desktop'` render `qr_payload` as a QR; the
707
- * mobile device picks up the session via the connect endpoint.
708
- * - `device_type === 'mobile'` → open the face capture modal directly.
705
+ * - `is_required === false` → skip face verification; `reason` explains why.
706
+ * - `verification_url` presentembed 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). Desktop
758
- * callers poll `mobile_connected` to detect when a mobile device has
759
- * scanned the QR and attached.
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
  */
@@ -1265,7 +1281,10 @@ var KYC_DECLINED_DESCRIPTIONS = {
1265
1281
  KYC_PROVIDER_REJECTED: "Identity verification was rejected by the verification provider",
1266
1282
  KYC_DECLINED: "Identity verification was declined"
1267
1283
  };
1284
+ function isKycDocumentExpiredCallbackEvent(value) {
1285
+ return typeof value === "object" && value !== null && value.event === "kyc_document_expired";
1286
+ }
1268
1287
 
1269
- export { KYC_DECLINED_DESCRIPTIONS, KycClient };
1288
+ export { KYC_DECLINED_DESCRIPTIONS, KycClient, isKycDocumentExpiredCallbackEvent };
1270
1289
  //# sourceMappingURL=index.mjs.map
1271
1290
  //# sourceMappingURL=index.mjs.map