vesant-sdk 1.7.0-dev.362ac6b → 1.7.0-dev.972b614
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 +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- 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 +9 -9
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +9 -9
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +48 -48
- package/dist/kyc/index.d.ts +48 -48
- package/dist/kyc/index.js +9 -9
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +9 -9
- 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.mjs
CHANGED
|
@@ -946,7 +946,7 @@ function FaceCaptureModal({
|
|
|
946
946
|
if (stopped || cancelledRef.current) return;
|
|
947
947
|
try {
|
|
948
948
|
if (mobileSeen) {
|
|
949
|
-
const result = await client.
|
|
949
|
+
const result = await client.getEventBasedFaceVerificationSessionStatus(session.reference);
|
|
950
950
|
if (result.status === "accepted") {
|
|
951
951
|
setStage({ kind: "accepted", result });
|
|
952
952
|
stopped = true;
|
|
@@ -1018,7 +1018,7 @@ function FaceCaptureModal({
|
|
|
1018
1018
|
try {
|
|
1019
1019
|
const postPromise = (async () => {
|
|
1020
1020
|
try {
|
|
1021
|
-
const data = await client.
|
|
1021
|
+
const data = await client.submitEventBasedFaceVerificationSession({
|
|
1022
1022
|
token: session.token,
|
|
1023
1023
|
reference: ref,
|
|
1024
1024
|
proof
|
|
@@ -1034,7 +1034,7 @@ function FaceCaptureModal({
|
|
|
1034
1034
|
while (Date.now() < deadline) {
|
|
1035
1035
|
if (settled || cancelledRef.current) return null;
|
|
1036
1036
|
try {
|
|
1037
|
-
const r = await client.
|
|
1037
|
+
const r = await client.getEventBasedFaceVerificationSessionStatus(ref);
|
|
1038
1038
|
if (isFreshPollResult(r)) return r;
|
|
1039
1039
|
} catch {
|
|
1040
1040
|
}
|
|
@@ -2078,9 +2078,9 @@ function getRiskColor(risk) {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
return colorMap[risk] || "#6b7280";
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function useEventBasedFaceVerificationSubmission(client) {
|
|
2082
2082
|
const startSession = useCallback(
|
|
2083
|
-
(request) => client.
|
|
2083
|
+
(request) => client.createEventBasedFaceVerificationSession(request),
|
|
2084
2084
|
[client]
|
|
2085
2085
|
);
|
|
2086
2086
|
const verifyFace = useCallback(
|
|
@@ -2124,6 +2124,6 @@ function useReuseKYCSubmission(client) {
|
|
|
2124
2124
|
return { startSession, verifyFace, runFlow };
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
|
-
export { createDeviceFingerprint, fileToBase64, formatKycStatus, getBrowserInfo, getRiskColor, getStatusColor, isValidFileSize, isValidFileType, useCipherText, useCustomerProfile, useGeolocation, useKycAlerts, useKycOverview, useKycPreferences, useKycRequests, useKycSubmission, useLocationCapture, useLocationRequests, useLoginVerification, useRegistration,
|
|
2127
|
+
export { createDeviceFingerprint, fileToBase64, formatKycStatus, getBrowserInfo, getRiskColor, getStatusColor, isValidFileSize, isValidFileType, useCipherText, useCustomerProfile, useEventBasedFaceVerificationSubmission, useGeolocation, useKycAlerts, useKycOverview, useKycPreferences, useKycRequests, useKycSubmission, useLocationCapture, useLocationRequests, useLoginVerification, useRegistration, useTransactionVerification };
|
|
2128
2128
|
//# sourceMappingURL=react.mjs.map
|
|
2129
2129
|
//# sourceMappingURL=react.mjs.map
|