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.
Files changed (65) hide show
  1. package/dist/{client-BlAt791q.d.ts → client-3cBb_Pp-.d.ts} +4 -4
  2. package/dist/{client-CY41e2Z_.d.mts → client-BQRONu8q.d.mts} +9 -5
  3. package/dist/{client-CY41e2Z_.d.ts → client-BQRONu8q.d.ts} +9 -5
  4. package/dist/{client-oo_3-0YW.d.mts → client-DKqyESgT.d.mts} +4 -4
  5. package/dist/compliance/index.d.mts +7 -7
  6. package/dist/compliance/index.d.ts +7 -7
  7. package/dist/compliance/index.js +55 -51
  8. package/dist/compliance/index.js.map +1 -1
  9. package/dist/compliance/index.mjs +55 -51
  10. package/dist/compliance/index.mjs.map +1 -1
  11. package/dist/decisions/index.d.mts +2 -2
  12. package/dist/decisions/index.d.ts +2 -2
  13. package/dist/decisions/index.js +41 -33
  14. package/dist/decisions/index.js.map +1 -1
  15. package/dist/decisions/index.mjs +41 -33
  16. package/dist/decisions/index.mjs.map +1 -1
  17. package/dist/geolocation/index.d.mts +4 -4
  18. package/dist/geolocation/index.d.ts +4 -4
  19. package/dist/geolocation/index.js +42 -34
  20. package/dist/geolocation/index.js.map +1 -1
  21. package/dist/geolocation/index.mjs +42 -34
  22. package/dist/geolocation/index.mjs.map +1 -1
  23. package/dist/index.d.mts +23 -19
  24. package/dist/index.d.ts +23 -19
  25. package/dist/index.js +58 -52
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +58 -53
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/kyc/core.d.mts +3 -3
  30. package/dist/kyc/core.d.ts +3 -3
  31. package/dist/kyc/core.js +41 -33
  32. package/dist/kyc/core.js.map +1 -1
  33. package/dist/kyc/core.mjs +41 -33
  34. package/dist/kyc/core.mjs.map +1 -1
  35. package/dist/kyc/index.d.mts +7 -7
  36. package/dist/kyc/index.d.ts +7 -7
  37. package/dist/kyc/index.js +41 -33
  38. package/dist/kyc/index.js.map +1 -1
  39. package/dist/kyc/index.mjs +41 -33
  40. package/dist/kyc/index.mjs.map +1 -1
  41. package/dist/react.d.mts +6 -6
  42. package/dist/react.d.ts +6 -6
  43. package/dist/react.js +5 -5
  44. package/dist/react.js.map +1 -1
  45. package/dist/react.mjs +5 -5
  46. package/dist/react.mjs.map +1 -1
  47. package/dist/risk-profile/index.d.mts +4 -4
  48. package/dist/risk-profile/index.d.ts +4 -4
  49. package/dist/risk-profile/index.js +44 -36
  50. package/dist/risk-profile/index.js.map +1 -1
  51. package/dist/risk-profile/index.mjs +44 -36
  52. package/dist/risk-profile/index.mjs.map +1 -1
  53. package/dist/scores/index.d.mts +2 -2
  54. package/dist/scores/index.d.ts +2 -2
  55. package/dist/scores/index.js +41 -33
  56. package/dist/scores/index.js.map +1 -1
  57. package/dist/scores/index.mjs +41 -33
  58. package/dist/scores/index.mjs.map +1 -1
  59. package/dist/{types-DZHongaK.d.mts → types-B1OzEQR3.d.mts} +1 -1
  60. package/dist/{types-DZHongaK.d.ts → types-B1OzEQR3.d.ts} +1 -1
  61. package/dist/{types-DLC7Sfy5.d.ts → types-BnL66DB3.d.ts} +2 -2
  62. package/dist/{types-jaLuzruy.d.mts → types-_hsTA3Ez.d.mts} +2 -2
  63. package/dist/webhooks/index.d.mts +1 -1
  64. package/dist/webhooks/index.d.ts +1 -1
  65. 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-BlAt791q.js';
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-DLC7Sfy5.js';
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-CY41e2Z_.js';
7
- import './types-DZHongaK.js';
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 CGS Geolocation SDK
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 CGS KYC SDK
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.4.4";
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 = "cgs_device_id";
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("[CGS SDK] Failed to generate cipherText:", 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
  };