vesant-sdk 1.7.0-dev.362ac6b → 1.7.0-dev.3f9ec86

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 (75) hide show
  1. package/dist/{client-DoMSYMMR.d.ts → client-0NOPDnT0.d.ts} +29 -26
  2. package/dist/{client-DMIRx7Tu.d.mts → client-CvWNRwwg.d.mts} +29 -26
  3. package/dist/{client-ZNdnpWe7.d.mts → client-Dps40EtF.d.mts} +2 -2
  4. package/dist/{client-C3DCmGe9.d.ts → client-SMxqod4j.d.ts} +2 -2
  5. package/dist/{client-BolQlL5e.d.mts → client-q9fN8Hhf.d.mts} +103 -1
  6. package/dist/{client-BolQlL5e.d.ts → client-q9fN8Hhf.d.ts} +103 -1
  7. package/dist/compliance/index.d.mts +3 -3
  8. package/dist/compliance/index.d.ts +3 -3
  9. package/dist/compliance/index.js +133 -22
  10. package/dist/compliance/index.js.map +1 -1
  11. package/dist/compliance/index.mjs +133 -22
  12. package/dist/compliance/index.mjs.map +1 -1
  13. package/dist/decisions/index.d.mts +1 -1
  14. package/dist/decisions/index.d.ts +1 -1
  15. package/dist/decisions/index.js +68 -7
  16. package/dist/decisions/index.js.map +1 -1
  17. package/dist/decisions/index.mjs +68 -7
  18. package/dist/decisions/index.mjs.map +1 -1
  19. package/dist/geolocation/index.d.mts +59 -4
  20. package/dist/geolocation/index.d.ts +59 -4
  21. package/dist/geolocation/index.js +136 -19
  22. package/dist/geolocation/index.js.map +1 -1
  23. package/dist/geolocation/index.mjs +134 -20
  24. package/dist/geolocation/index.mjs.map +1 -1
  25. package/dist/index-C3zUKydT.d.mts +264 -0
  26. package/dist/index-DSDgS09k.d.ts +264 -0
  27. package/dist/index.d.mts +27 -10
  28. package/dist/index.d.ts +27 -10
  29. package/dist/index.js +343 -69
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +336 -70
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/kyc/core.d.mts +2 -2
  34. package/dist/kyc/core.d.ts +2 -2
  35. package/dist/kyc/core.js +109 -30
  36. package/dist/kyc/core.js.map +1 -1
  37. package/dist/kyc/core.mjs +109 -30
  38. package/dist/kyc/core.mjs.map +1 -1
  39. package/dist/kyc/index.d.mts +164 -61
  40. package/dist/kyc/index.d.ts +164 -61
  41. package/dist/kyc/index.js +109 -30
  42. package/dist/kyc/index.js.map +1 -1
  43. package/dist/kyc/index.mjs +109 -30
  44. package/dist/kyc/index.mjs.map +1 -1
  45. package/dist/react.d.mts +21 -15
  46. package/dist/react.d.ts +21 -15
  47. package/dist/react.js +199 -87
  48. package/dist/react.js.map +1 -1
  49. package/dist/react.mjs +199 -87
  50. package/dist/react.mjs.map +1 -1
  51. package/dist/risk-profile/index.d.mts +1 -1
  52. package/dist/risk-profile/index.d.ts +1 -1
  53. package/dist/risk-profile/index.js +68 -7
  54. package/dist/risk-profile/index.js.map +1 -1
  55. package/dist/risk-profile/index.mjs +68 -7
  56. package/dist/risk-profile/index.mjs.map +1 -1
  57. package/dist/scores/index.d.mts +1 -1
  58. package/dist/scores/index.d.ts +1 -1
  59. package/dist/scores/index.js +68 -7
  60. package/dist/scores/index.js.map +1 -1
  61. package/dist/scores/index.mjs +68 -7
  62. package/dist/scores/index.mjs.map +1 -1
  63. package/dist/tax/index.d.mts +20 -3
  64. package/dist/tax/index.d.ts +20 -3
  65. package/dist/tax/index.js +77 -10
  66. package/dist/tax/index.js.map +1 -1
  67. package/dist/tax/index.mjs +77 -10
  68. package/dist/tax/index.mjs.map +1 -1
  69. package/dist/webhooks/index.d.mts +2 -189
  70. package/dist/webhooks/index.d.ts +2 -189
  71. package/dist/webhooks/index.js +85 -21
  72. package/dist/webhooks/index.js.map +1 -1
  73. package/dist/webhooks/index.mjs +85 -22
  74. package/dist/webhooks/index.mjs.map +1 -1
  75. package/package.json +4 -1
package/dist/react.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextOptions, l as CipherTextResult, W as UseGeolocationOptions, X as UseGeolocationResult, Y as UseLocationCaptureOptions, Z as UseLocationCaptureResult, _ as UseLocationRequestsOptions, $ as UseLocationRequestsResult } from './client-DMIRx7Tu.mjs';
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-ZNdnpWe7.mjs';
1
+ import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextOptions, l as CipherTextResult, W as UseGeolocationOptions, X as UseGeolocationResult, Y as UseLocationCaptureOptions, Z as UseLocationCaptureResult, _ as UseLocationRequestsOptions, $ as UseLocationRequestsResult } from './client-CvWNRwwg.mjs';
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-Dps40EtF.mjs';
3
3
  import { RiskProfileClient } from './risk-profile/index.mjs';
4
4
  import { C as CustomerProfile } from './types-BOFaMQxI.mjs';
5
- import { KycClient, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, ReuseKycCallback } from './kyc/index.mjs';
6
- import './client-BolQlL5e.mjs';
5
+ import { KycClient, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, EventBasedFaceVerificationCallback, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
6
+ import './client-q9fN8Hhf.mjs';
7
7
  import './types-CBQRNL-l.mjs';
8
8
 
9
9
  /**
@@ -21,6 +21,10 @@ declare function getBrowserInfo(): {
21
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
+ *
25
+ * Scope: the web SDK collects GPS + IP only (no WiFi/cell positioning — no browser
26
+ * API exists). The client never asserts its own IP; the server derives it. GPS
27
+ * fixes are run through advisory in-browser integrity heuristics (see ./integrity).
24
28
  */
25
29
 
26
30
  /**
@@ -508,7 +512,7 @@ declare function getStatusColor(status: string): string;
508
512
  */
509
513
  declare function getRiskColor(risk: string): string;
510
514
  /**
511
- * Hook for the Re-Use KYC face-capture flow.
515
+ * Hook for the Event-Based Face Verification face-capture flow.
512
516
  *
513
517
  * Returns helpers that cover both mobile (direct capture) and desktop
514
518
  * (QR + polling) modes. Device detection happens here on the client —
@@ -524,28 +528,30 @@ declare function getRiskColor(risk: string): string;
524
528
  * - `runFlow(req, opts?)` — convenience wrapper: `startSession` then
525
529
  * `verifyFace`, with a short-circuit when `is_required` is false.
526
530
  */
527
- declare function useReuseKYCSubmission(client: KycClient): {
528
- startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
529
- verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
531
+ declare function useEventBasedFaceVerificationSubmission(client: KycClient): {
532
+ startSession: (request: CreateEventBasedFaceVerificationSessionRequest) => Promise<CreateEventBasedFaceVerificationSessionResponse>;
533
+ verifyFace: (session: CreateEventBasedFaceVerificationSessionResponse, opts?: {
530
534
  defaultDevice?: "ask" | "this" | "mobile";
531
535
  renderQR?: (payload: string) => React.ReactNode;
532
536
  onCancel?: () => void;
533
- }) => Promise<ReuseKycCallback | null>;
534
- runFlow: (request: CreateReuseKycSessionRequest, opts?: {
537
+ mediapipeAssetBasePath?: string;
538
+ }) => Promise<EventBasedFaceVerificationCallback | null>;
539
+ runFlow: (request: CreateEventBasedFaceVerificationSessionRequest, opts?: {
535
540
  defaultDevice?: "ask" | "this" | "mobile";
536
541
  renderQR?: (payload: string) => React.ReactNode;
537
542
  onCancel?: () => void;
543
+ mediapipeAssetBasePath?: string;
538
544
  }) => Promise<{
539
545
  kind: "not_required";
540
- session: CreateReuseKycSessionResponse;
546
+ session: CreateEventBasedFaceVerificationSessionResponse;
541
547
  } | {
542
548
  kind: "cancelled";
543
- session: CreateReuseKycSessionResponse;
549
+ session: CreateEventBasedFaceVerificationSessionResponse;
544
550
  } | {
545
551
  kind: "completed";
546
- session: CreateReuseKycSessionResponse;
547
- result: ReuseKycCallback;
552
+ session: CreateEventBasedFaceVerificationSessionResponse;
553
+ result: EventBasedFaceVerificationCallback;
548
554
  }>;
549
555
  };
550
556
 
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, useReuseKYCSubmission, useTransactionVerification };
557
+ 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.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextOptions, l as CipherTextResult, W as UseGeolocationOptions, X as UseGeolocationResult, Y as UseLocationCaptureOptions, Z as UseLocationCaptureResult, _ as UseLocationRequestsOptions, $ as UseLocationRequestsResult } from './client-DoMSYMMR.js';
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';
1
+ import { D as DeviceFingerprintRequest, G as GeolocationClient, i as CipherTextOptions, l as CipherTextResult, W as UseGeolocationOptions, X as UseGeolocationResult, Y as UseLocationCaptureOptions, Z as UseLocationCaptureResult, _ as UseLocationRequestsOptions, $ as UseLocationRequestsResult } from './client-0NOPDnT0.js';
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-SMxqod4j.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, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, ReuseKycCallback } from './kyc/index.js';
6
- import './client-BolQlL5e.js';
5
+ import { KycClient, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, EventBasedFaceVerificationCallback, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
6
+ import './client-q9fN8Hhf.js';
7
7
  import './types-CBQRNL-l.js';
8
8
 
9
9
  /**
@@ -21,6 +21,10 @@ declare function getBrowserInfo(): {
21
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
+ *
25
+ * Scope: the web SDK collects GPS + IP only (no WiFi/cell positioning — no browser
26
+ * API exists). The client never asserts its own IP; the server derives it. GPS
27
+ * fixes are run through advisory in-browser integrity heuristics (see ./integrity).
24
28
  */
25
29
 
26
30
  /**
@@ -508,7 +512,7 @@ declare function getStatusColor(status: string): string;
508
512
  */
509
513
  declare function getRiskColor(risk: string): string;
510
514
  /**
511
- * Hook for the Re-Use KYC face-capture flow.
515
+ * Hook for the Event-Based Face Verification face-capture flow.
512
516
  *
513
517
  * Returns helpers that cover both mobile (direct capture) and desktop
514
518
  * (QR + polling) modes. Device detection happens here on the client —
@@ -524,28 +528,30 @@ declare function getRiskColor(risk: string): string;
524
528
  * - `runFlow(req, opts?)` — convenience wrapper: `startSession` then
525
529
  * `verifyFace`, with a short-circuit when `is_required` is false.
526
530
  */
527
- declare function useReuseKYCSubmission(client: KycClient): {
528
- startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
529
- verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
531
+ declare function useEventBasedFaceVerificationSubmission(client: KycClient): {
532
+ startSession: (request: CreateEventBasedFaceVerificationSessionRequest) => Promise<CreateEventBasedFaceVerificationSessionResponse>;
533
+ verifyFace: (session: CreateEventBasedFaceVerificationSessionResponse, opts?: {
530
534
  defaultDevice?: "ask" | "this" | "mobile";
531
535
  renderQR?: (payload: string) => React.ReactNode;
532
536
  onCancel?: () => void;
533
- }) => Promise<ReuseKycCallback | null>;
534
- runFlow: (request: CreateReuseKycSessionRequest, opts?: {
537
+ mediapipeAssetBasePath?: string;
538
+ }) => Promise<EventBasedFaceVerificationCallback | null>;
539
+ runFlow: (request: CreateEventBasedFaceVerificationSessionRequest, opts?: {
535
540
  defaultDevice?: "ask" | "this" | "mobile";
536
541
  renderQR?: (payload: string) => React.ReactNode;
537
542
  onCancel?: () => void;
543
+ mediapipeAssetBasePath?: string;
538
544
  }) => Promise<{
539
545
  kind: "not_required";
540
- session: CreateReuseKycSessionResponse;
546
+ session: CreateEventBasedFaceVerificationSessionResponse;
541
547
  } | {
542
548
  kind: "cancelled";
543
- session: CreateReuseKycSessionResponse;
549
+ session: CreateEventBasedFaceVerificationSessionResponse;
544
550
  } | {
545
551
  kind: "completed";
546
- session: CreateReuseKycSessionResponse;
547
- result: ReuseKycCallback;
552
+ session: CreateEventBasedFaceVerificationSessionResponse;
553
+ result: EventBasedFaceVerificationCallback;
548
554
  }>;
549
555
  };
550
556
 
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, useReuseKYCSubmission, useTransactionVerification };
557
+ 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 };