vesant-sdk 1.7.0-dev.362ac6b → 1.7.0-dev.9b89b96
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 +12 -12
- package/dist/react.d.ts +12 -12
- package/dist/react.js +6 -6
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +6 -6
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
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-C3DCmGe9.js';
|
|
3
3
|
import { RiskProfileClient } from './risk-profile/index.js';
|
|
4
4
|
import { C as CustomerProfile } from './types-UGyDl1fd.js';
|
|
5
|
-
import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult
|
|
5
|
+
import { KycClient, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, EventBasedFaceVerificationCallback, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
|
|
6
6
|
import './client-BolQlL5e.js';
|
|
7
7
|
import './types-CBQRNL-l.js';
|
|
8
8
|
|
|
@@ -508,7 +508,7 @@ declare function getStatusColor(status: string): string;
|
|
|
508
508
|
*/
|
|
509
509
|
declare function getRiskColor(risk: string): string;
|
|
510
510
|
/**
|
|
511
|
-
* Hook for the
|
|
511
|
+
* Hook for the Event-Based Face Verification face-capture flow.
|
|
512
512
|
*
|
|
513
513
|
* Returns helpers that cover both mobile (direct capture) and desktop
|
|
514
514
|
* (QR + polling) modes. Device detection happens here on the client —
|
|
@@ -524,28 +524,28 @@ declare function getRiskColor(risk: string): string;
|
|
|
524
524
|
* - `runFlow(req, opts?)` — convenience wrapper: `startSession` then
|
|
525
525
|
* `verifyFace`, with a short-circuit when `is_required` is false.
|
|
526
526
|
*/
|
|
527
|
-
declare function
|
|
528
|
-
startSession: (request:
|
|
529
|
-
verifyFace: (session:
|
|
527
|
+
declare function useEventBasedFaceVerificationSubmission(client: KycClient): {
|
|
528
|
+
startSession: (request: CreateEventBasedFaceVerificationSessionRequest) => Promise<CreateEventBasedFaceVerificationSessionResponse>;
|
|
529
|
+
verifyFace: (session: CreateEventBasedFaceVerificationSessionResponse, opts?: {
|
|
530
530
|
defaultDevice?: "ask" | "this" | "mobile";
|
|
531
531
|
renderQR?: (payload: string) => React.ReactNode;
|
|
532
532
|
onCancel?: () => void;
|
|
533
|
-
}) => Promise<
|
|
534
|
-
runFlow: (request:
|
|
533
|
+
}) => Promise<EventBasedFaceVerificationCallback | null>;
|
|
534
|
+
runFlow: (request: CreateEventBasedFaceVerificationSessionRequest, opts?: {
|
|
535
535
|
defaultDevice?: "ask" | "this" | "mobile";
|
|
536
536
|
renderQR?: (payload: string) => React.ReactNode;
|
|
537
537
|
onCancel?: () => void;
|
|
538
538
|
}) => Promise<{
|
|
539
539
|
kind: "not_required";
|
|
540
|
-
session:
|
|
540
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
541
541
|
} | {
|
|
542
542
|
kind: "cancelled";
|
|
543
|
-
session:
|
|
543
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
544
544
|
} | {
|
|
545
545
|
kind: "completed";
|
|
546
|
-
session:
|
|
547
|
-
result:
|
|
546
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
547
|
+
result: EventBasedFaceVerificationCallback;
|
|
548
548
|
}>;
|
|
549
549
|
};
|
|
550
550
|
|
|
551
|
-
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,
|
|
551
|
+
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, useEventBasedFaceVerificationSubmission, useGeolocation, useKycAlerts, useKycOverview, useKycPreferences, useKycRequests, useKycSubmission, useLocationCapture, useLocationRequests, useLoginVerification, useRegistration, useTransactionVerification };
|
package/dist/react.js
CHANGED
|
@@ -952,7 +952,7 @@ function FaceCaptureModal({
|
|
|
952
952
|
if (stopped || cancelledRef.current) return;
|
|
953
953
|
try {
|
|
954
954
|
if (mobileSeen) {
|
|
955
|
-
const result = await client.
|
|
955
|
+
const result = await client.getEventBasedFaceVerificationSessionStatus(session.token);
|
|
956
956
|
if (result.status === "accepted") {
|
|
957
957
|
setStage({ kind: "accepted", result });
|
|
958
958
|
stopped = true;
|
|
@@ -1024,7 +1024,7 @@ function FaceCaptureModal({
|
|
|
1024
1024
|
try {
|
|
1025
1025
|
const postPromise = (async () => {
|
|
1026
1026
|
try {
|
|
1027
|
-
const data = await client.
|
|
1027
|
+
const data = await client.submitEventBasedFaceVerificationSession({
|
|
1028
1028
|
token: session.token,
|
|
1029
1029
|
reference: ref,
|
|
1030
1030
|
proof
|
|
@@ -1040,7 +1040,7 @@ function FaceCaptureModal({
|
|
|
1040
1040
|
while (Date.now() < deadline) {
|
|
1041
1041
|
if (settled || cancelledRef.current) return null;
|
|
1042
1042
|
try {
|
|
1043
|
-
const r = await client.
|
|
1043
|
+
const r = await client.getEventBasedFaceVerificationSessionStatus(session.token);
|
|
1044
1044
|
if (isFreshPollResult(r)) return r;
|
|
1045
1045
|
} catch {
|
|
1046
1046
|
}
|
|
@@ -2084,9 +2084,9 @@ function getRiskColor(risk) {
|
|
|
2084
2084
|
};
|
|
2085
2085
|
return colorMap[risk] || "#6b7280";
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function useEventBasedFaceVerificationSubmission(client$1) {
|
|
2088
2088
|
const startSession = React.useCallback(
|
|
2089
|
-
(request) => client$1.
|
|
2089
|
+
(request) => client$1.createEventBasedFaceVerificationSession(request),
|
|
2090
2090
|
[client$1]
|
|
2091
2091
|
);
|
|
2092
2092
|
const verifyFace = React.useCallback(
|
|
@@ -2140,6 +2140,7 @@ exports.isValidFileSize = isValidFileSize;
|
|
|
2140
2140
|
exports.isValidFileType = isValidFileType;
|
|
2141
2141
|
exports.useCipherText = useCipherText;
|
|
2142
2142
|
exports.useCustomerProfile = useCustomerProfile;
|
|
2143
|
+
exports.useEventBasedFaceVerificationSubmission = useEventBasedFaceVerificationSubmission;
|
|
2143
2144
|
exports.useGeolocation = useGeolocation;
|
|
2144
2145
|
exports.useKycAlerts = useKycAlerts;
|
|
2145
2146
|
exports.useKycOverview = useKycOverview;
|
|
@@ -2150,7 +2151,6 @@ exports.useLocationCapture = useLocationCapture;
|
|
|
2150
2151
|
exports.useLocationRequests = useLocationRequests;
|
|
2151
2152
|
exports.useLoginVerification = useLoginVerification;
|
|
2152
2153
|
exports.useRegistration = useRegistration;
|
|
2153
|
-
exports.useReuseKYCSubmission = useReuseKYCSubmission;
|
|
2154
2154
|
exports.useTransactionVerification = useTransactionVerification;
|
|
2155
2155
|
//# sourceMappingURL=react.js.map
|
|
2156
2156
|
//# sourceMappingURL=react.js.map
|