vesant-sdk 1.7.0-dev.9f7da53 → 1.7.0-dev.ab7ff29

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.
@@ -624,7 +624,7 @@ var KycClient = class extends BaseClient {
624
624
  });
625
625
  }
626
626
  /**
627
- * Create a Re-Use KYC session.
627
+ * Create a Event-Based Face Verification session.
628
628
  *
629
629
  * Inspect the response before showing UI:
630
630
  * - `is_required === false` → skip face capture; `reason` explains why.
@@ -634,7 +634,7 @@ var KycClient = class extends BaseClient {
634
634
  *
635
635
  * @param request - Reference, customer_id, event, amount (for threshold events), optional URLs.
636
636
  */
637
- async createReuseKycSession(request) {
637
+ async createEventBasedFaceVerificationSession(request) {
638
638
  return this.request("/api/v1/kyc/face/session", {
639
639
  method: "POST",
640
640
  body: JSON.stringify(request),
@@ -642,19 +642,19 @@ var KycClient = class extends BaseClient {
642
642
  });
643
643
  }
644
644
  /**
645
- * Submit a real-time face capture for an active Re-Use KYC session.
645
+ * Submit a real-time face capture for an active Event-Based Face Verification session.
646
646
  *
647
647
  * **Mobile-only.** The server rejects desktop User-Agents with HTTP
648
648
  * 400 (`face capture must be completed on a mobile device`). Use the
649
- * QR handoff from `createReuseKycSession` for desktop callers.
649
+ * QR handoff from `createEventBasedFaceVerificationSession` for desktop callers.
650
650
  *
651
651
  * The `data` field on the response carries `retries_remaining`,
652
652
  * `retry_limit_exceeded`, and the reaction flags (`enforce_logout`,
653
653
  * `freeze_account`, etc.) so the tenant app can act on a final failure.
654
654
  *
655
- * @param request - Token from `createReuseKycSession`, plus the base64 selfie.
655
+ * @param request - Token from `createEventBasedFaceVerificationSession`, plus the base64 selfie.
656
656
  */
657
- async submitReuseKycSession(request) {
657
+ async submitEventBasedFaceVerificationSession(request) {
658
658
  return this.request("/api/v1/kyc/face/submit", {
659
659
  method: "POST",
660
660
  body: JSON.stringify(request),
@@ -662,13 +662,17 @@ var KycClient = class extends BaseClient {
662
662
  });
663
663
  }
664
664
  /**
665
- * Look up the current state of a Re-Use KYC session by its forward
666
- * reference. Useful for desktop pollers waiting on the mobile handoff.
665
+ * Look up the current state of a Event-Based Face Verification session by its
666
+ * session token. Useful for desktop pollers waiting on the mobile handoff.
667
667
  *
668
- * @param reference - The reference used when the session was created.
668
+ * The lookup is scoped by the unguessable, server-issued session token (not
669
+ * the enumerable forward reference): the endpoint is public/unauthenticated,
670
+ * and scoping by the token is what prevents cross-tenant status reads.
671
+ *
672
+ * @param token - The session token returned by `createEventBasedFaceVerificationSession`.
669
673
  */
670
- async getReuseKycSessionStatus(reference) {
671
- return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(reference)}`, {
674
+ async getEventBasedFaceVerificationSessionStatus(token) {
675
+ return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(token)}`, {
672
676
  method: "GET",
673
677
  headers: this.getUserHeaders()
674
678
  });
@@ -679,7 +683,7 @@ var KycClient = class extends BaseClient {
679
683
  * callers poll `mobile_connected` to detect when a mobile device has
680
684
  * scanned the QR and attached.
681
685
  *
682
- * @param token - The session token returned by `createReuseKycSession`.
686
+ * @param token - The session token returned by `createEventBasedFaceVerificationSession`.
683
687
  */
684
688
  async getHandoffSession(token) {
685
689
  return this.request(