vesant-sdk 1.3.0 → 1.3.1
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 +35 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -0
- 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 +35 -0
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +35 -0
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +43 -1
- package/dist/kyc/index.d.ts +43 -1
- package/dist/kyc/index.js +35 -0
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +35 -0
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +5 -2
- package/dist/react.d.ts +5 -2
- package/dist/react.js +421 -98
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +321 -3
- package/dist/react.mjs.map +1 -1
- package/package.json +10 -2
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { decodeCipherText, generateCipherText, isCipherTextExpired } from './geo
|
|
|
7
7
|
export { RiskProfileClient } from './risk-profile/index.mjs';
|
|
8
8
|
export { d as CreateCustomerProfileRequest, d as CreateProfileRequest, C as CustomerProfile, e as CustomerProfileFilters, f as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, P as ProfileDetailsResponse, e as ProfileFilters, f as ProfileListResponse, R as RiskCategory, h as RiskConfiguration, g as RiskDashboardMetrics, a as RiskFactor, b as RiskFactorType, c as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-jaLuzruy.mjs';
|
|
9
9
|
export { ComplianceClient, ComplianceLocationRequestInput, ComplianceLocationRequestResult, CurrencyRates, DEFAULT_CURRENCY_RATES, EventVerificationRequest, EventVerificationResponse, LoginVerificationRequest, LoginVerificationResponse, RegistrationVerificationRequest, RegistrationVerificationResponse, TransactionRiskResult, TransactionVerificationRequest, TransactionVerificationResponse } from './compliance/index.mjs';
|
|
10
|
-
export { CheckKycStatusRequest, CheckKycStatusResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
|
|
10
|
+
export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
|
|
11
11
|
export { ApplyLabelRequest, Decision, DecisionCategory, DecisionFilters, DecisionListResponse, DecisionSource, DecisionType, DecisionsClient, Label, LabelListResponse, LabelType, RecordDecisionRequest } from './decisions/index.mjs';
|
|
12
12
|
export { CustomerScore, ScoreBreakdown, ScoreFactor, ScoreHistoryEntry, ScoresClient, Workflow, WorkflowClient, WorkflowFilters, WorkflowListResponse, WorkflowStatus, WorkflowStep, WorkflowStepType } from './scores/index.mjs';
|
|
13
13
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { decodeCipherText, generateCipherText, isCipherTextExpired } from './geo
|
|
|
7
7
|
export { RiskProfileClient } from './risk-profile/index.js';
|
|
8
8
|
export { d as CreateCustomerProfileRequest, d as CreateProfileRequest, C as CustomerProfile, e as CustomerProfileFilters, f as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, P as ProfileDetailsResponse, e as ProfileFilters, f as ProfileListResponse, R as RiskCategory, h as RiskConfiguration, g as RiskDashboardMetrics, a as RiskFactor, b as RiskFactorType, c as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-DLC7Sfy5.js';
|
|
9
9
|
export { ComplianceClient, ComplianceLocationRequestInput, ComplianceLocationRequestResult, CurrencyRates, DEFAULT_CURRENCY_RATES, EventVerificationRequest, EventVerificationResponse, LoginVerificationRequest, LoginVerificationResponse, RegistrationVerificationRequest, RegistrationVerificationResponse, TransactionRiskResult, TransactionVerificationRequest, TransactionVerificationResponse } from './compliance/index.js';
|
|
10
|
-
export { CheckKycStatusRequest, CheckKycStatusResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
|
|
10
|
+
export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
|
|
11
11
|
export { ApplyLabelRequest, Decision, DecisionCategory, DecisionFilters, DecisionListResponse, DecisionSource, DecisionType, DecisionsClient, Label, LabelListResponse, LabelType, RecordDecisionRequest } from './decisions/index.js';
|
|
12
12
|
export { CustomerScore, ScoreBreakdown, ScoreFactor, ScoreHistoryEntry, ScoresClient, Workflow, WorkflowClient, WorkflowFilters, WorkflowListResponse, WorkflowStatus, WorkflowStep, WorkflowStepType } from './scores/index.js';
|
|
13
13
|
|
package/dist/index.js
CHANGED
|
@@ -2295,6 +2295,41 @@ var KycClient = class extends BaseClient {
|
|
|
2295
2295
|
headers: this.getUserHeaders()
|
|
2296
2296
|
});
|
|
2297
2297
|
}
|
|
2298
|
+
/**
|
|
2299
|
+
* Create a reuse KYC session for validate a user with existing KYC verification
|
|
2300
|
+
*
|
|
2301
|
+
* @param request - Request containing the reference, customer_id, optional redirect URL, and callback URL (receives POST requests)
|
|
2302
|
+
*/
|
|
2303
|
+
async createReuseKycSession(request) {
|
|
2304
|
+
return this.requestWithRetry("/api/v1/kyc/face/session", {
|
|
2305
|
+
method: "POST",
|
|
2306
|
+
body: JSON.stringify(request),
|
|
2307
|
+
headers: this.getUserHeaders()
|
|
2308
|
+
});
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Submit a reuse KYC session for validate a user with existing KYC verification
|
|
2312
|
+
*
|
|
2313
|
+
* @param request - Request containing the reference, token and proof (receives POST requests)
|
|
2314
|
+
*/
|
|
2315
|
+
async submitReuseKycSession(request) {
|
|
2316
|
+
return this.requestWithRetry("/api/v1/kyc/face/submit", {
|
|
2317
|
+
method: "POST",
|
|
2318
|
+
body: JSON.stringify(request),
|
|
2319
|
+
headers: this.getUserHeaders()
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
/**
|
|
2323
|
+
* Check reuse KYC session status for a reference
|
|
2324
|
+
* @param reference - The unique reference used for the reuse KYC session (e.g., customer ID or transaction ID)
|
|
2325
|
+
* @returns Response with kyc_status and message (reason)
|
|
2326
|
+
* **/
|
|
2327
|
+
async getReuseKycSessionStatus(reference) {
|
|
2328
|
+
return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(reference)}`, {
|
|
2329
|
+
method: "GET",
|
|
2330
|
+
headers: this.getUserHeaders()
|
|
2331
|
+
});
|
|
2332
|
+
}
|
|
2298
2333
|
/**
|
|
2299
2334
|
* Check KYC status for a user
|
|
2300
2335
|
*
|