vesant-sdk 1.7.0-dev.e0ee6d5 → 1.7.0-dev.e1da577

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 (43) hide show
  1. package/dist/{client-ZNdnpWe7.d.mts → client-B0qhE2kr.d.mts} +1 -1
  2. package/dist/{client-DoMSYMMR.d.ts → client-DF7hlMEz.d.ts} +13 -0
  3. package/dist/{client-DMIRx7Tu.d.mts → client-DrjgZoH_.d.mts} +13 -0
  4. package/dist/{client-C3DCmGe9.d.ts → client-DtH2RLuy.d.ts} +1 -1
  5. package/dist/compliance/index.d.mts +2 -2
  6. package/dist/compliance/index.d.ts +2 -2
  7. package/dist/compliance/index.js +0 -3
  8. package/dist/compliance/index.js.map +1 -1
  9. package/dist/compliance/index.mjs +0 -3
  10. package/dist/compliance/index.mjs.map +1 -1
  11. package/dist/geolocation/index.d.mts +2 -2
  12. package/dist/geolocation/index.d.ts +2 -2
  13. package/dist/index.d.mts +4 -4
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +40 -22
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +40 -22
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/kyc/core.d.mts +1 -1
  20. package/dist/kyc/core.d.ts +1 -1
  21. package/dist/kyc/core.js +36 -18
  22. package/dist/kyc/core.js.map +1 -1
  23. package/dist/kyc/core.mjs +36 -18
  24. package/dist/kyc/core.mjs.map +1 -1
  25. package/dist/kyc/index.d.mts +161 -58
  26. package/dist/kyc/index.d.ts +161 -58
  27. package/dist/kyc/index.js +36 -18
  28. package/dist/kyc/index.js.map +1 -1
  29. package/dist/kyc/index.mjs +36 -18
  30. package/dist/kyc/index.mjs.map +1 -1
  31. package/dist/react.d.mts +18 -14
  32. package/dist/react.d.ts +18 -14
  33. package/dist/react.js +303 -35
  34. package/dist/react.js.map +1 -1
  35. package/dist/react.mjs +303 -35
  36. package/dist/react.mjs.map +1 -1
  37. package/dist/tax/index.d.mts +18 -1
  38. package/dist/tax/index.d.ts +18 -1
  39. package/dist/tax/index.js +4 -1
  40. package/dist/tax/index.js.map +1 -1
  41. package/dist/tax/index.mjs +4 -1
  42. package/dist/tax/index.mjs.map +1 -1
  43. package/package.json +1 -1
package/dist/react.d.mts CHANGED
@@ -1,8 +1,8 @@
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-DrjgZoH_.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-B0qhE2kr.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';
5
+ import { KycClient, CreateEventBasedFaceVerificationSessionRequest, CreateEventBasedFaceVerificationSessionResponse, EventBasedFaceVerificationCallback, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
6
6
  import './client-BolQlL5e.mjs';
7
7
  import './types-CBQRNL-l.mjs';
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 Re-Use KYC face-capture flow.
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,26 +524,30 @@ 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 useReuseKYCSubmission(client: KycClient): {
528
- startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
529
- verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
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
- }) => Promise<ReuseKycCallback | null>;
533
- runFlow: (request: CreateReuseKycSessionRequest, opts?: {
532
+ onCancel?: () => void;
533
+ mediapipeAssetBasePath?: string;
534
+ }) => Promise<EventBasedFaceVerificationCallback | null>;
535
+ runFlow: (request: CreateEventBasedFaceVerificationSessionRequest, opts?: {
534
536
  defaultDevice?: "ask" | "this" | "mobile";
535
537
  renderQR?: (payload: string) => React.ReactNode;
538
+ onCancel?: () => void;
539
+ mediapipeAssetBasePath?: string;
536
540
  }) => Promise<{
537
541
  kind: "not_required";
538
- session: CreateReuseKycSessionResponse;
542
+ session: CreateEventBasedFaceVerificationSessionResponse;
539
543
  } | {
540
544
  kind: "cancelled";
541
- session: CreateReuseKycSessionResponse;
545
+ session: CreateEventBasedFaceVerificationSessionResponse;
542
546
  } | {
543
547
  kind: "completed";
544
- session: CreateReuseKycSessionResponse;
545
- result: ReuseKycCallback;
548
+ session: CreateEventBasedFaceVerificationSessionResponse;
549
+ result: EventBasedFaceVerificationCallback;
546
550
  }>;
547
551
  };
548
552
 
549
- 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 };
553
+ 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,8 +1,8 @@
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-DF7hlMEz.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-DtH2RLuy.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';
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 Re-Use KYC face-capture flow.
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,26 +524,30 @@ 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 useReuseKYCSubmission(client: KycClient): {
528
- startSession: (request: CreateReuseKycSessionRequest) => Promise<CreateReuseKycSessionResponse>;
529
- verifyFace: (session: CreateReuseKycSessionResponse, opts?: {
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
- }) => Promise<ReuseKycCallback | null>;
533
- runFlow: (request: CreateReuseKycSessionRequest, opts?: {
532
+ onCancel?: () => void;
533
+ mediapipeAssetBasePath?: string;
534
+ }) => Promise<EventBasedFaceVerificationCallback | null>;
535
+ runFlow: (request: CreateEventBasedFaceVerificationSessionRequest, opts?: {
534
536
  defaultDevice?: "ask" | "this" | "mobile";
535
537
  renderQR?: (payload: string) => React.ReactNode;
538
+ onCancel?: () => void;
539
+ mediapipeAssetBasePath?: string;
536
540
  }) => Promise<{
537
541
  kind: "not_required";
538
- session: CreateReuseKycSessionResponse;
542
+ session: CreateEventBasedFaceVerificationSessionResponse;
539
543
  } | {
540
544
  kind: "cancelled";
541
- session: CreateReuseKycSessionResponse;
545
+ session: CreateEventBasedFaceVerificationSessionResponse;
542
546
  } | {
543
547
  kind: "completed";
544
- session: CreateReuseKycSessionResponse;
545
- result: ReuseKycCallback;
548
+ session: CreateEventBasedFaceVerificationSessionResponse;
549
+ result: EventBasedFaceVerificationCallback;
546
550
  }>;
547
551
  };
548
552
 
549
- 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 };
553
+ 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 };