vesant-sdk 1.7.0-dev.e0ee6d5 → 1.7.0-next.d538ee4
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 +16 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -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 +54 -50
- package/dist/kyc/index.d.ts +54 -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 +248 -28
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +248 -28
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ export { RiskProfileClient } from './risk-profile/index.mjs';
|
|
|
8
8
|
export { a as CreateCustomerProfileRequest, a as CreateProfileRequest, C as CustomerProfile, P as CustomerProfileFilters, b as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-BOFaMQxI.mjs';
|
|
9
9
|
export { sdkReasons } from './compliance/index.mjs';
|
|
10
10
|
export { C as ComplianceClient, a as ComplianceLocationRequestInput, b as ComplianceLocationRequestResult, c as CurrencyRates, D as DEFAULT_CURRENCY_RATES, E as EventVerificationRequest, d as EventVerificationResponse, L as LoginVerificationRequest, e as LoginVerificationResponse, R as RegistrationVerificationRequest, f as RegistrationVerificationResponse, T as TransactionRiskResult, g as TransactionVerificationRequest, h as TransactionVerificationResponse } from './client-ZNdnpWe7.mjs';
|
|
11
|
-
export { CheckKycStatusRequest, CheckKycStatusResponse,
|
|
11
|
+
export { CheckKycStatusRequest, CheckKycStatusResponse, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, EventBasedFaceVerificationCallback, EventBasedFaceVerificationDeviceType, EventBasedFaceVerificationEvent, EventBasedFaceVerificationFrequencyTrigger, EventBasedFaceVerificationReactionResult, EventBasedFaceVerificationReactions, EventBasedFaceVerificationThresholdTrigger, EventBasedFaceVerificationTriggers, FaceProof, KYC_DECLINED_DESCRIPTIONS, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycDeclinedCode, KycHandoffSession, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitEventBasedFaceVerificationSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
|
|
12
12
|
export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileDocuments, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { RiskProfileClient } from './risk-profile/index.js';
|
|
|
8
8
|
export { a as CreateCustomerProfileRequest, a as CreateProfileRequest, C as CustomerProfile, P as CustomerProfileFilters, b as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-UGyDl1fd.js';
|
|
9
9
|
export { sdkReasons } from './compliance/index.js';
|
|
10
10
|
export { C as ComplianceClient, a as ComplianceLocationRequestInput, b as ComplianceLocationRequestResult, c as CurrencyRates, D as DEFAULT_CURRENCY_RATES, E as EventVerificationRequest, d as EventVerificationResponse, L as LoginVerificationRequest, e as LoginVerificationResponse, R as RegistrationVerificationRequest, f as RegistrationVerificationResponse, T as TransactionRiskResult, g as TransactionVerificationRequest, h as TransactionVerificationResponse } from './client-C3DCmGe9.js';
|
|
11
|
-
export { CheckKycStatusRequest, CheckKycStatusResponse,
|
|
11
|
+
export { CheckKycStatusRequest, CheckKycStatusResponse, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, EventBasedFaceVerificationCallback, EventBasedFaceVerificationDeviceType, EventBasedFaceVerificationEvent, EventBasedFaceVerificationFrequencyTrigger, EventBasedFaceVerificationReactionResult, EventBasedFaceVerificationReactions, EventBasedFaceVerificationThresholdTrigger, EventBasedFaceVerificationTriggers, FaceProof, KYC_DECLINED_DESCRIPTIONS, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycDeclinedCode, KycHandoffSession, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitEventBasedFaceVerificationSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
|
|
12
12
|
export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileDocuments, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.js';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2735,7 +2735,7 @@ var KycClient = class extends BaseClient {
|
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
2737
2737
|
/**
|
|
2738
|
-
* Create a
|
|
2738
|
+
* Create a Event-Based Face Verification session.
|
|
2739
2739
|
*
|
|
2740
2740
|
* Inspect the response before showing UI:
|
|
2741
2741
|
* - `is_required === false` → skip face capture; `reason` explains why.
|
|
@@ -2745,7 +2745,7 @@ var KycClient = class extends BaseClient {
|
|
|
2745
2745
|
*
|
|
2746
2746
|
* @param request - Reference, customer_id, event, amount (for threshold events), optional URLs.
|
|
2747
2747
|
*/
|
|
2748
|
-
async
|
|
2748
|
+
async createEventBasedFaceVerificationSession(request) {
|
|
2749
2749
|
return this.request("/api/v1/kyc/face/session", {
|
|
2750
2750
|
method: "POST",
|
|
2751
2751
|
body: JSON.stringify(request),
|
|
@@ -2753,19 +2753,19 @@ var KycClient = class extends BaseClient {
|
|
|
2753
2753
|
});
|
|
2754
2754
|
}
|
|
2755
2755
|
/**
|
|
2756
|
-
* Submit a real-time face capture for an active
|
|
2756
|
+
* Submit a real-time face capture for an active Event-Based Face Verification session.
|
|
2757
2757
|
*
|
|
2758
2758
|
* **Mobile-only.** The server rejects desktop User-Agents with HTTP
|
|
2759
2759
|
* 400 (`face capture must be completed on a mobile device`). Use the
|
|
2760
|
-
* QR handoff from `
|
|
2760
|
+
* QR handoff from `createEventBasedFaceVerificationSession` for desktop callers.
|
|
2761
2761
|
*
|
|
2762
2762
|
* The `data` field on the response carries `retries_remaining`,
|
|
2763
2763
|
* `retry_limit_exceeded`, and the reaction flags (`enforce_logout`,
|
|
2764
2764
|
* `freeze_account`, etc.) so the tenant app can act on a final failure.
|
|
2765
2765
|
*
|
|
2766
|
-
* @param request - Token from `
|
|
2766
|
+
* @param request - Token from `createEventBasedFaceVerificationSession`, plus the base64 selfie.
|
|
2767
2767
|
*/
|
|
2768
|
-
async
|
|
2768
|
+
async submitEventBasedFaceVerificationSession(request) {
|
|
2769
2769
|
return this.request("/api/v1/kyc/face/submit", {
|
|
2770
2770
|
method: "POST",
|
|
2771
2771
|
body: JSON.stringify(request),
|
|
@@ -2773,13 +2773,17 @@ var KycClient = class extends BaseClient {
|
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
2775
|
/**
|
|
2776
|
-
* Look up the current state of a
|
|
2777
|
-
*
|
|
2776
|
+
* Look up the current state of a Event-Based Face Verification session by its
|
|
2777
|
+
* session token. Useful for desktop pollers waiting on the mobile handoff.
|
|
2778
2778
|
*
|
|
2779
|
-
*
|
|
2779
|
+
* The lookup is scoped by the unguessable, server-issued session token (not
|
|
2780
|
+
* the enumerable forward reference): the endpoint is public/unauthenticated,
|
|
2781
|
+
* and scoping by the token is what prevents cross-tenant status reads.
|
|
2782
|
+
*
|
|
2783
|
+
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
2780
2784
|
*/
|
|
2781
|
-
async
|
|
2782
|
-
return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(
|
|
2785
|
+
async getEventBasedFaceVerificationSessionStatus(token) {
|
|
2786
|
+
return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(token)}`, {
|
|
2783
2787
|
method: "GET",
|
|
2784
2788
|
headers: this.getUserHeaders()
|
|
2785
2789
|
});
|
|
@@ -2790,7 +2794,7 @@ var KycClient = class extends BaseClient {
|
|
|
2790
2794
|
* callers poll `mobile_connected` to detect when a mobile device has
|
|
2791
2795
|
* scanned the QR and attached.
|
|
2792
2796
|
*
|
|
2793
|
-
* @param token - The session token returned by `
|
|
2797
|
+
* @param token - The session token returned by `createEventBasedFaceVerificationSession`.
|
|
2794
2798
|
*/
|
|
2795
2799
|
async getHandoffSession(token) {
|
|
2796
2800
|
return this.request(
|