vesant-sdk 1.7.0-dev.e0ee6d5 → 1.7.0-dev.f9faca4
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -12
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +1 -1
- package/dist/kyc/core.d.ts +1 -1
- package/dist/kyc/core.js +16 -12
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +16 -12
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +56 -50
- package/dist/kyc/index.d.ts +56 -50
- package/dist/kyc/index.js +16 -12
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +16 -12
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +14 -12
- package/dist/react.d.ts +14 -12
- package/dist/react.js +258 -29
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +258 -29
- package/dist/react.mjs.map +1 -1
- package/dist/tax/index.d.mts +18 -1
- package/dist/tax/index.d.ts +18 -1
- package/dist/tax/index.js +3 -0
- package/dist/tax/index.js.map +1 -1
- package/dist/tax/index.mjs +3 -0
- package/dist/tax/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/kyc/core.mjs
CHANGED
|
@@ -624,7 +624,7 @@ var KycClient = class extends BaseClient {
|
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
|
-
* Create a
|
|
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
|
|
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
|
|
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 `
|
|
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 `
|
|
655
|
+
* @param request - Token from `createEventBasedFaceVerificationSession`, plus the base64 selfie.
|
|
656
656
|
*/
|
|
657
|
-
async
|
|
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
|
|
666
|
-
*
|
|
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
|
-
*
|
|
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
|
|
671
|
-
return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(
|
|
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 `
|
|
686
|
+
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
683
687
|
*/
|
|
684
688
|
async getHandoffSession(token) {
|
|
685
689
|
return this.request(
|