vesant-sdk 1.4.4 → 1.5.0
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/{client-BlAt791q.d.ts → client-3cBb_Pp-.d.ts} +4 -4
- package/dist/{client-CY41e2Z_.d.mts → client-BQRONu8q.d.mts} +9 -5
- package/dist/{client-CY41e2Z_.d.ts → client-BQRONu8q.d.ts} +9 -5
- package/dist/{client-oo_3-0YW.d.mts → client-DKqyESgT.d.mts} +4 -4
- package/dist/compliance/index.d.mts +7 -7
- package/dist/compliance/index.d.ts +7 -7
- package/dist/compliance/index.js +55 -51
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +55 -51
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.d.mts +2 -2
- package/dist/decisions/index.d.ts +2 -2
- package/dist/decisions/index.js +41 -33
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +41 -33
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +4 -4
- package/dist/geolocation/index.d.ts +4 -4
- package/dist/geolocation/index.js +42 -34
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +42 -34
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +23 -19
- package/dist/index.d.ts +23 -19
- package/dist/index.js +58 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -53
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +3 -3
- package/dist/kyc/core.d.ts +3 -3
- package/dist/kyc/core.js +41 -33
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +41 -33
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +7 -7
- package/dist/kyc/index.d.ts +7 -7
- package/dist/kyc/index.js +41 -33
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +41 -33
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +6 -6
- package/dist/react.d.ts +6 -6
- package/dist/react.js +5 -5
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +5 -5
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +4 -4
- package/dist/risk-profile/index.d.ts +4 -4
- package/dist/risk-profile/index.js +44 -36
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +44 -36
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.d.mts +2 -2
- package/dist/scores/index.d.ts +2 -2
- package/dist/scores/index.js +41 -33
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +41 -33
- package/dist/scores/index.mjs.map +1 -1
- package/dist/{types-DZHongaK.d.mts → types-B1OzEQR3.d.mts} +1 -1
- package/dist/{types-DZHongaK.d.ts → types-B1OzEQR3.d.ts} +1 -1
- package/dist/{types-DLC7Sfy5.d.ts → types-BnL66DB3.d.ts} +2 -2
- package/dist/{types-jaLuzruy.d.mts → types-_hsTA3Ez.d.mts} +2 -2
- package/dist/webhooks/index.d.mts +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G as GeolocationClient, H as UseGeolocationOptions, I as UseGeolocationResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, b as CipherTextOptions, c as CipherTextResult, D as DeviceFingerprintRequest } from './client-
|
|
1
|
+
import { G as GeolocationClient, H as UseGeolocationOptions, I as UseGeolocationResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, b as CipherTextOptions, c as CipherTextResult, D as DeviceFingerprintRequest } from './client-3cBb_Pp-.js';
|
|
2
2
|
import { ComplianceClient, RegistrationVerificationResponse, RegistrationVerificationRequest, LoginVerificationResponse, LoginVerificationRequest, TransactionVerificationResponse, TransactionVerificationRequest } from './compliance/index.js';
|
|
3
3
|
import { RiskProfileClient } from './risk-profile/index.js';
|
|
4
|
-
import { C as CustomerProfile } from './types-
|
|
4
|
+
import { C as CustomerProfile } from './types-BnL66DB3.js';
|
|
5
5
|
import { KycClient, UseKycSubmissionOptions, UseKycSubmissionResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, CheckKycStatusResponse } from './kyc/index.js';
|
|
6
|
-
import './client-
|
|
7
|
-
import './types-
|
|
6
|
+
import './client-BQRONu8q.js';
|
|
7
|
+
import './types-B1OzEQR3.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Detect browser information from user agent.
|
|
@@ -18,7 +18,7 @@ declare function getBrowserInfo(): {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* React Hooks for
|
|
21
|
+
* React Hooks for Vesant Geolocation SDK
|
|
22
22
|
*
|
|
23
23
|
* Provides convenient React hooks for using the geolocation service in Next.js applications.
|
|
24
24
|
*/
|
|
@@ -242,7 +242,7 @@ interface UseCustomerProfileResult {
|
|
|
242
242
|
declare function useCustomerProfile(client: RiskProfileClient, customerId: string, options?: UseCustomerProfileOptions): UseCustomerProfileResult;
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
|
-
* React Hooks for
|
|
245
|
+
* React Hooks for Vesant KYC SDK
|
|
246
246
|
*
|
|
247
247
|
* Provides convenient React hooks for using the KYC service in Next.js applications.
|
|
248
248
|
*/
|
package/dist/react.js
CHANGED
|
@@ -10,7 +10,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
10
10
|
// src/geolocation/hooks.ts
|
|
11
11
|
|
|
12
12
|
// src/core/version.ts
|
|
13
|
-
var SDK_VERSION = "1.
|
|
13
|
+
var SDK_VERSION = "1.5.0";
|
|
14
14
|
|
|
15
15
|
// src/shared/browser-utils.ts
|
|
16
16
|
function generateUUID() {
|
|
@@ -27,7 +27,7 @@ function generateDeviceId() {
|
|
|
27
27
|
if (typeof window === "undefined" || typeof localStorage === "undefined") {
|
|
28
28
|
return generateUUID();
|
|
29
29
|
}
|
|
30
|
-
const storageKey = "
|
|
30
|
+
const storageKey = "vesant_device_id";
|
|
31
31
|
let deviceId = localStorage.getItem(storageKey);
|
|
32
32
|
if (!deviceId) {
|
|
33
33
|
deviceId = generateUUID();
|
|
@@ -346,7 +346,7 @@ function useGeolocation(client, options = {}) {
|
|
|
346
346
|
device_fingerprint: deviceFingerprint
|
|
347
347
|
});
|
|
348
348
|
} catch (err) {
|
|
349
|
-
console.error("Auto-verification failed:", err);
|
|
349
|
+
console.error("[Vesant SDK] Auto-verification failed:", err instanceof Error ? err.message : "Unknown error");
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
detectAndVerify();
|
|
@@ -419,7 +419,7 @@ function useCipherText(client) {
|
|
|
419
419
|
}
|
|
420
420
|
return await generateCipherText(options, configRef.current);
|
|
421
421
|
} catch (error) {
|
|
422
|
-
console.error("[
|
|
422
|
+
console.error("[Vesant SDK] Failed to generate cipherText:", error instanceof Error ? error.message : "Unknown error");
|
|
423
423
|
return null;
|
|
424
424
|
}
|
|
425
425
|
},
|
|
@@ -906,7 +906,7 @@ function FaceCaptureModal({
|
|
|
906
906
|
onCapture(base64);
|
|
907
907
|
}, 300);
|
|
908
908
|
} catch (error) {
|
|
909
|
-
console.error("Error processing image:", error);
|
|
909
|
+
console.error("[Vesant SDK] Error processing image:", error instanceof Error ? error.message : "Unknown error");
|
|
910
910
|
setIsProcessing(false);
|
|
911
911
|
}
|
|
912
912
|
};
|