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.
- package/dist/{client-DoMSYMMR.d.ts → client-0NOPDnT0.d.ts} +29 -26
- package/dist/{client-DMIRx7Tu.d.mts → client-CvWNRwwg.d.mts} +29 -26
- package/dist/{client-ZNdnpWe7.d.mts → client-Dps40EtF.d.mts} +2 -2
- package/dist/{client-C3DCmGe9.d.ts → client-SMxqod4j.d.ts} +2 -2
- package/dist/{client-BolQlL5e.d.mts → client-q9fN8Hhf.d.mts} +103 -1
- package/dist/{client-BolQlL5e.d.ts → client-q9fN8Hhf.d.ts} +103 -1
- package/dist/compliance/index.d.mts +3 -3
- package/dist/compliance/index.d.ts +3 -3
- package/dist/compliance/index.js +133 -22
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +133 -22
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.d.mts +1 -1
- package/dist/decisions/index.d.ts +1 -1
- package/dist/decisions/index.js +68 -7
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +68 -7
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +59 -4
- package/dist/geolocation/index.d.ts +59 -4
- package/dist/geolocation/index.js +136 -19
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +134 -20
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index-C3zUKydT.d.mts +264 -0
- package/dist/index-DSDgS09k.d.ts +264 -0
- package/dist/index.d.mts +27 -10
- package/dist/index.d.ts +27 -10
- package/dist/index.js +343 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -70
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +2 -2
- package/dist/kyc/core.d.ts +2 -2
- package/dist/kyc/core.js +109 -30
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +109 -30
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +164 -61
- package/dist/kyc/index.d.ts +164 -61
- package/dist/kyc/index.js +109 -30
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +109 -30
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +21 -15
- package/dist/react.d.ts +21 -15
- package/dist/react.js +199 -87
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +199 -87
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +1 -1
- package/dist/risk-profile/index.d.ts +1 -1
- package/dist/risk-profile/index.js +68 -7
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +68 -7
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.d.mts +1 -1
- package/dist/scores/index.d.ts +1 -1
- package/dist/scores/index.js +68 -7
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +68 -7
- package/dist/scores/index.mjs.map +1 -1
- package/dist/tax/index.d.mts +20 -3
- package/dist/tax/index.d.ts +20 -3
- package/dist/tax/index.js +77 -10
- package/dist/tax/index.js.map +1 -1
- package/dist/tax/index.mjs +77 -10
- package/dist/tax/index.mjs.map +1 -1
- package/dist/webhooks/index.d.mts +2 -189
- package/dist/webhooks/index.d.ts +2 -189
- package/dist/webhooks/index.js +85 -21
- package/dist/webhooks/index.js.map +1 -1
- package/dist/webhooks/index.mjs +85 -22
- package/dist/webhooks/index.mjs.map +1 -1
- 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-
|
|
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-
|
|
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
|
|
6
|
-
import './client-
|
|
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
|
|
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
|
|
528
|
-
startSession: (request:
|
|
529
|
-
verifyFace: (session:
|
|
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
|
-
|
|
534
|
-
|
|
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:
|
|
546
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
541
547
|
} | {
|
|
542
548
|
kind: "cancelled";
|
|
543
|
-
session:
|
|
549
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
544
550
|
} | {
|
|
545
551
|
kind: "completed";
|
|
546
|
-
session:
|
|
547
|
-
result:
|
|
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,
|
|
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-
|
|
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-
|
|
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
|
|
6
|
-
import './client-
|
|
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
|
|
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
|
|
528
|
-
startSession: (request:
|
|
529
|
-
verifyFace: (session:
|
|
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
|
-
|
|
534
|
-
|
|
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:
|
|
546
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
541
547
|
} | {
|
|
542
548
|
kind: "cancelled";
|
|
543
|
-
session:
|
|
549
|
+
session: CreateEventBasedFaceVerificationSessionResponse;
|
|
544
550
|
} | {
|
|
545
551
|
kind: "completed";
|
|
546
|
-
session:
|
|
547
|
-
result:
|
|
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,
|
|
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 };
|