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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -8
- 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 +27 -7
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +27 -8
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +130 -19
- package/dist/kyc/index.d.ts +130 -19
- package/dist/kyc/index.js +27 -7
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +27 -8
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.js +132 -24
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +132 -24
- 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
|
*/
|
|
@@ -3524,6 +3540,9 @@ var KYC_DECLINED_DESCRIPTIONS = {
|
|
|
3524
3540
|
KYC_PROVIDER_REJECTED: "Identity verification was rejected by the verification provider",
|
|
3525
3541
|
KYC_DECLINED: "Identity verification was declined"
|
|
3526
3542
|
};
|
|
3543
|
+
function isKycDocumentExpiredCallbackEvent(value) {
|
|
3544
|
+
return typeof value === "object" && value !== null && value.event === "kyc_document_expired";
|
|
3545
|
+
}
|
|
3527
3546
|
|
|
3528
3547
|
// src/tax/client.ts
|
|
3529
3548
|
var TaxClient = class extends BaseClient {
|
|
@@ -3813,6 +3832,6 @@ function buildHandler(options) {
|
|
|
3813
3832
|
return handler;
|
|
3814
3833
|
}
|
|
3815
3834
|
|
|
3816
|
-
export { AuthenticationError, BaseClient, CGSError, CircuitBreaker, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceClient, ComplianceError, DEFAULT_CURRENCY_RATES, GeolocationClient, InMemoryDedupStore, KYC_DECLINED_DESCRIPTIONS, KycClient, NetworkError, RateLimitError, RateLimitTracker, RefreshingTokenProvider, RiskProfileClient, SDK_VERSION, ServiceUnavailableError, StaticApiKeyProvider, TaxClient, TimeoutError, ValidationError, VesantError, WebhookHandler, assessGpsIntegrity, collectAll, collectDeviceSignals, createConsoleLogger, createNextWebhookHandler, createWebhookMiddleware, decodeCipherText, generateCipherText, gpsIntegrityInputFromPosition, isCipherTextExpired, noopLogger, paginate, probeGeolocationPermission, sdkReasons, verifyWebhookSignature };
|
|
3835
|
+
export { AuthenticationError, BaseClient, CGSError, CircuitBreaker, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceClient, ComplianceError, DEFAULT_CURRENCY_RATES, GeolocationClient, InMemoryDedupStore, KYC_DECLINED_DESCRIPTIONS, KycClient, NetworkError, RateLimitError, RateLimitTracker, RefreshingTokenProvider, RiskProfileClient, SDK_VERSION, ServiceUnavailableError, StaticApiKeyProvider, TaxClient, TimeoutError, ValidationError, VesantError, WebhookHandler, assessGpsIntegrity, collectAll, collectDeviceSignals, createConsoleLogger, createNextWebhookHandler, createWebhookMiddleware, decodeCipherText, generateCipherText, gpsIntegrityInputFromPosition, isCipherTextExpired, isKycDocumentExpiredCallbackEvent, noopLogger, paginate, probeGeolocationPermission, sdkReasons, verifyWebhookSignature };
|
|
3817
3836
|
//# sourceMappingURL=index.mjs.map
|
|
3818
3837
|
//# sourceMappingURL=index.mjs.map
|