vesant-sdk 2.0.0-dev.b41d336 → 2.0.0-dev.b7fc6ce
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 +54 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -10
- 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 +54 -10
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +54 -10
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +230 -19
- package/dist/kyc/index.d.ts +230 -19
- package/dist/kyc/index.js +54 -10
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +54 -10
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +37 -2
- package/dist/react.d.ts +37 -2
- package/dist/react.js +603 -272
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +603 -272
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextO
|
|
|
2
2
|
import { e as LoginVerificationResponse, L as LoginVerificationRequest, f as RegistrationVerificationResponse, R as RegistrationVerificationRequest, h as TransactionVerificationResponse, g as TransactionVerificationRequest, C as ComplianceClient } from './client-IAOGCBfm.mjs';
|
|
3
3
|
import { RiskProfileClient } from './risk-profile/index.mjs';
|
|
4
4
|
import { C as CustomerProfile } from './types-C4Zx0d_u.mjs';
|
|
5
|
-
import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult,
|
|
5
|
+
import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, ReuseKycCallback } from './kyc/index.mjs';
|
|
6
6
|
import './client-BolQlL5e.mjs';
|
|
7
7
|
import './types-QUCWam16.mjs';
|
|
8
8
|
|
|
@@ -507,8 +507,43 @@ declare function getStatusColor(status: string): string;
|
|
|
507
507
|
* @returns CSS color class or hex color
|
|
508
508
|
*/
|
|
509
509
|
declare function getRiskColor(risk: string): string;
|
|
510
|
+
/**
|
|
511
|
+
* Hook for the Re-Use KYC face-capture flow.
|
|
512
|
+
*
|
|
513
|
+
* Returns helpers that cover both mobile (direct capture) and desktop
|
|
514
|
+
* (QR + polling) modes. Device detection happens here on the client —
|
|
515
|
+
* the server accepts submissions from any User-Agent.
|
|
516
|
+
*
|
|
517
|
+
* - `startSession(req)` — POST /face/session. Inspect `is_required` first;
|
|
518
|
+
* skip the modal entirely when it's `false`.
|
|
519
|
+
* - `verifyFace(session, opts?)` — mount FaceCaptureModal and resolve once
|
|
520
|
+
* the user reaches a terminal state (accepted / declined-after-max /
|
|
521
|
+
* cancelled). The modal handles the device picker, QR handoff,
|
|
522
|
+
* selfie capture, retries within the configured `max_attempts`, and
|
|
523
|
+
* surfacing of the decline reason — all without unmounting in between.
|
|
524
|
+
* - `runFlow(req, opts?)` — convenience wrapper: `startSession` then
|
|
525
|
+
* `verifyFace`, with a short-circuit when `is_required` is false.
|
|
526
|
+
*/
|
|
510
527
|
declare function useReuseKYCSubmission(client: KycClient): {
|
|
511
|
-
|
|
528
|
+
startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
|
|
529
|
+
verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
|
|
530
|
+
defaultDevice?: "ask" | "this" | "mobile";
|
|
531
|
+
renderQR?: (payload: string) => React.ReactNode;
|
|
532
|
+
}) => Promise<ReuseKycCallback | null>;
|
|
533
|
+
runFlow: (request: CreateReuseKycSessionRequest, opts?: {
|
|
534
|
+
defaultDevice?: "ask" | "this" | "mobile";
|
|
535
|
+
renderQR?: (payload: string) => React.ReactNode;
|
|
536
|
+
}) => Promise<{
|
|
537
|
+
kind: "not_required";
|
|
538
|
+
session: CreateReuseKycSessionResponse;
|
|
539
|
+
} | {
|
|
540
|
+
kind: "cancelled";
|
|
541
|
+
session: CreateReuseKycSessionResponse;
|
|
542
|
+
} | {
|
|
543
|
+
kind: "completed";
|
|
544
|
+
session: CreateReuseKycSessionResponse;
|
|
545
|
+
result: ReuseKycCallback;
|
|
546
|
+
}>;
|
|
512
547
|
};
|
|
513
548
|
|
|
514
549
|
export { type UseCustomerProfileOptions, type UseCustomerProfileResult, UseGeolocationOptions, UseGeolocationResult, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult, UseLocationCaptureOptions, UseLocationCaptureResult, UseLocationRequestsOptions, UseLocationRequestsResult, type UseLoginVerificationOptions, type UseLoginVerificationResult, type UseRegistrationOptions, type UseRegistrationResult, type UseTransactionVerificationOptions, type UseTransactionVerificationResult, createDeviceFingerprint, fileToBase64, formatKycStatus, getBrowserInfo, getRiskColor, getStatusColor, isValidFileSize, isValidFileType, useCipherText, useCustomerProfile, useGeolocation, useKycAlerts, useKycOverview, useKycPreferences, useKycRequests, useKycSubmission, useLocationCapture, useLocationRequests, useLoginVerification, useRegistration, useReuseKYCSubmission, useTransactionVerification };
|
package/dist/react.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextO
|
|
|
2
2
|
import { e as LoginVerificationResponse, L as LoginVerificationRequest, f as RegistrationVerificationResponse, R as RegistrationVerificationRequest, h as TransactionVerificationResponse, g as TransactionVerificationRequest, C as ComplianceClient } from './client-BJ87_Vv5.js';
|
|
3
3
|
import { RiskProfileClient } from './risk-profile/index.js';
|
|
4
4
|
import { C as CustomerProfile } from './types-2utj53GK.js';
|
|
5
|
-
import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult,
|
|
5
|
+
import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, ReuseKycCallback } from './kyc/index.js';
|
|
6
6
|
import './client-BolQlL5e.js';
|
|
7
7
|
import './types-QUCWam16.js';
|
|
8
8
|
|
|
@@ -507,8 +507,43 @@ declare function getStatusColor(status: string): string;
|
|
|
507
507
|
* @returns CSS color class or hex color
|
|
508
508
|
*/
|
|
509
509
|
declare function getRiskColor(risk: string): string;
|
|
510
|
+
/**
|
|
511
|
+
* Hook for the Re-Use KYC face-capture flow.
|
|
512
|
+
*
|
|
513
|
+
* Returns helpers that cover both mobile (direct capture) and desktop
|
|
514
|
+
* (QR + polling) modes. Device detection happens here on the client —
|
|
515
|
+
* the server accepts submissions from any User-Agent.
|
|
516
|
+
*
|
|
517
|
+
* - `startSession(req)` — POST /face/session. Inspect `is_required` first;
|
|
518
|
+
* skip the modal entirely when it's `false`.
|
|
519
|
+
* - `verifyFace(session, opts?)` — mount FaceCaptureModal and resolve once
|
|
520
|
+
* the user reaches a terminal state (accepted / declined-after-max /
|
|
521
|
+
* cancelled). The modal handles the device picker, QR handoff,
|
|
522
|
+
* selfie capture, retries within the configured `max_attempts`, and
|
|
523
|
+
* surfacing of the decline reason — all without unmounting in between.
|
|
524
|
+
* - `runFlow(req, opts?)` — convenience wrapper: `startSession` then
|
|
525
|
+
* `verifyFace`, with a short-circuit when `is_required` is false.
|
|
526
|
+
*/
|
|
510
527
|
declare function useReuseKYCSubmission(client: KycClient): {
|
|
511
|
-
|
|
528
|
+
startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
|
|
529
|
+
verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
|
|
530
|
+
defaultDevice?: "ask" | "this" | "mobile";
|
|
531
|
+
renderQR?: (payload: string) => React.ReactNode;
|
|
532
|
+
}) => Promise<ReuseKycCallback | null>;
|
|
533
|
+
runFlow: (request: CreateReuseKycSessionRequest, opts?: {
|
|
534
|
+
defaultDevice?: "ask" | "this" | "mobile";
|
|
535
|
+
renderQR?: (payload: string) => React.ReactNode;
|
|
536
|
+
}) => Promise<{
|
|
537
|
+
kind: "not_required";
|
|
538
|
+
session: CreateReuseKycSessionResponse;
|
|
539
|
+
} | {
|
|
540
|
+
kind: "cancelled";
|
|
541
|
+
session: CreateReuseKycSessionResponse;
|
|
542
|
+
} | {
|
|
543
|
+
kind: "completed";
|
|
544
|
+
session: CreateReuseKycSessionResponse;
|
|
545
|
+
result: ReuseKycCallback;
|
|
546
|
+
}>;
|
|
512
547
|
};
|
|
513
548
|
|
|
514
549
|
export { type UseCustomerProfileOptions, type UseCustomerProfileResult, UseGeolocationOptions, UseGeolocationResult, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult, UseLocationCaptureOptions, UseLocationCaptureResult, UseLocationRequestsOptions, UseLocationRequestsResult, type UseLoginVerificationOptions, type UseLoginVerificationResult, type UseRegistrationOptions, type UseRegistrationResult, type UseTransactionVerificationOptions, type UseTransactionVerificationResult, createDeviceFingerprint, fileToBase64, formatKycStatus, getBrowserInfo, getRiskColor, getStatusColor, isValidFileSize, isValidFileType, useCipherText, useCustomerProfile, useGeolocation, useKycAlerts, useKycOverview, useKycPreferences, useKycRequests, useKycSubmission, useLocationCapture, useLocationRequests, useLoginVerification, useRegistration, useReuseKYCSubmission, useTransactionVerification };
|