vesant-sdk 1.5.2 → 1.6.1
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-BZxzOidG.d.mts → client-DW1Xiz6a.d.mts} +4 -2
- package/dist/{client-B8pFrXx_.d.ts → client-eLbtPRkh.d.ts} +4 -2
- package/dist/{client-CIon-bGS.d.mts → client-ePzhQKp9.d.mts} +2 -0
- package/dist/{client-CIon-bGS.d.ts → client-ePzhQKp9.d.ts} +2 -0
- package/dist/compliance/index.d.mts +18 -5
- package/dist/compliance/index.d.ts +18 -5
- package/dist/compliance/index.js +222 -42
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +222 -42
- 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 +14 -1
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +14 -1
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +3 -3
- package/dist/geolocation/index.d.ts +3 -3
- package/dist/geolocation/index.js +14 -1
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +14 -1
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +6 -376
- package/dist/index.d.ts +6 -376
- package/dist/index.js +289 -251
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +289 -251
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +1 -1
- package/dist/kyc/core.d.ts +1 -1
- package/dist/kyc/core.js +14 -1
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +14 -1
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +1 -1
- package/dist/kyc/index.d.ts +1 -1
- package/dist/kyc/index.js +14 -1
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +14 -1
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1 -1
- 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 +14 -1
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +14 -1
- 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 +14 -1
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +14 -1
- package/dist/scores/index.mjs.map +1 -1
- package/dist/tax/index.d.mts +256 -0
- package/dist/tax/index.d.ts +256 -0
- package/dist/tax/index.js +652 -0
- package/dist/tax/index.js.map +1 -0
- package/dist/tax/index.mjs +650 -0
- package/dist/tax/index.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Logger, B as BaseClient, R as RequestOptions } from './client-
|
|
1
|
+
import { L as Logger, B as BaseClient, R as RequestOptions } from './client-ePzhQKp9.mjs';
|
|
2
2
|
import { P as PaginationParams } from './types-B4Ezqo7V.mjs';
|
|
3
3
|
|
|
4
4
|
interface DeviceFingerprintRequest {
|
|
@@ -295,6 +295,8 @@ interface LocationVerification {
|
|
|
295
295
|
geofence_evaluation?: GeofenceEvaluation;
|
|
296
296
|
device_trust?: DeviceTrustResult;
|
|
297
297
|
record_id: string;
|
|
298
|
+
/** Whether GPS verification is required for this event type (based on tenant config) */
|
|
299
|
+
gps_required?: boolean;
|
|
298
300
|
}
|
|
299
301
|
interface ComplianceCheckResponse {
|
|
300
302
|
jurisdiction?: JurisdictionConfig;
|
|
@@ -1008,4 +1010,4 @@ declare class GeolocationClient extends BaseClient {
|
|
|
1008
1010
|
generateCipherText(options: Omit<CipherTextOptions, 'apiKey' | 'signingKey'>, gpsConfig?: GeolocationConfigResponse): Promise<CipherTextResult>;
|
|
1009
1011
|
}
|
|
1010
1012
|
|
|
1011
|
-
export { type
|
|
1013
|
+
export { type UseLocationRequestsOptions as $, type AlertStatus as A, type APIError as B, type CipherTextPayload as C, type DeviceFingerprintRequest as D, type GeolocationConfigResponse as E, type GeolocationClientConfig as F, GeolocationClient as G, type UseGeolocationOptions as H, type UseGeolocationResult as I, type JurisdictionConfig as J, type UseAlertsOptions as K, type LocationVerification as L, type UseAlertsResult as M, type LocationRequestStatus as N, type LocationRequestChannel as O, type LocationRequest as P, type CreateLocationRequestRequest as Q, type LocationRequestResult as R, type LocationRequestFilters as S, type LocationRequestListResponse as T, type UpdateJurisdictionRequest as U, type ValidateCipherTextRequest as V, type ResendLocationRequestRequest as W, type WiFiNetwork as X, type LocationCaptureRequest as Y, type LocationShareInfo as Z, type LocationCaptureResponse as _, type CipherTextReason as a, type UseLocationRequestsResult as a0, type UseLocationCaptureOptions as a1, type UseLocationCaptureResult as a2, type CipherTextOptions as b, type CipherTextResult as c, type DecryptedCipherText as d, type CipherTextCustomerData as e, type ValidateCipherTextResponse as f, type VerifyIPRequest as g, type GeoIPResult as h, type GeofenceEvaluation as i, type DeviceFingerprint as j, type DeviceTrustResult as k, type ComplianceCheckResponse as l, type AlertSeverity as m, type AlertType as n, type GeolocationAlert as o, type AlertFilters as p, type AlertListResponse as q, type DashboardMetrics as r, type CreateJurisdictionRequest as s, type GeofenceRuleType as t, type GeofenceAction as u, type GeofenceRule as v, type CreateGeofenceRuleRequest as w, type UpdateGeofenceRuleRequest as x, type UpdateDeviceTrustRequest as y, type GeolocationRecord as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Logger, B as BaseClient, R as RequestOptions } from './client-
|
|
1
|
+
import { L as Logger, B as BaseClient, R as RequestOptions } from './client-ePzhQKp9.js';
|
|
2
2
|
import { P as PaginationParams } from './types-B4Ezqo7V.js';
|
|
3
3
|
|
|
4
4
|
interface DeviceFingerprintRequest {
|
|
@@ -295,6 +295,8 @@ interface LocationVerification {
|
|
|
295
295
|
geofence_evaluation?: GeofenceEvaluation;
|
|
296
296
|
device_trust?: DeviceTrustResult;
|
|
297
297
|
record_id: string;
|
|
298
|
+
/** Whether GPS verification is required for this event type (based on tenant config) */
|
|
299
|
+
gps_required?: boolean;
|
|
298
300
|
}
|
|
299
301
|
interface ComplianceCheckResponse {
|
|
300
302
|
jurisdiction?: JurisdictionConfig;
|
|
@@ -1008,4 +1010,4 @@ declare class GeolocationClient extends BaseClient {
|
|
|
1008
1010
|
generateCipherText(options: Omit<CipherTextOptions, 'apiKey' | 'signingKey'>, gpsConfig?: GeolocationConfigResponse): Promise<CipherTextResult>;
|
|
1009
1011
|
}
|
|
1010
1012
|
|
|
1011
|
-
export { type
|
|
1013
|
+
export { type UseLocationRequestsOptions as $, type AlertStatus as A, type APIError as B, type CipherTextPayload as C, type DeviceFingerprintRequest as D, type GeolocationConfigResponse as E, type GeolocationClientConfig as F, GeolocationClient as G, type UseGeolocationOptions as H, type UseGeolocationResult as I, type JurisdictionConfig as J, type UseAlertsOptions as K, type LocationVerification as L, type UseAlertsResult as M, type LocationRequestStatus as N, type LocationRequestChannel as O, type LocationRequest as P, type CreateLocationRequestRequest as Q, type LocationRequestResult as R, type LocationRequestFilters as S, type LocationRequestListResponse as T, type UpdateJurisdictionRequest as U, type ValidateCipherTextRequest as V, type ResendLocationRequestRequest as W, type WiFiNetwork as X, type LocationCaptureRequest as Y, type LocationShareInfo as Z, type LocationCaptureResponse as _, type CipherTextReason as a, type UseLocationRequestsResult as a0, type UseLocationCaptureOptions as a1, type UseLocationCaptureResult as a2, type CipherTextOptions as b, type CipherTextResult as c, type DecryptedCipherText as d, type CipherTextCustomerData as e, type ValidateCipherTextResponse as f, type VerifyIPRequest as g, type GeoIPResult as h, type GeofenceEvaluation as i, type DeviceFingerprint as j, type DeviceTrustResult as k, type ComplianceCheckResponse as l, type AlertSeverity as m, type AlertType as n, type GeolocationAlert as o, type AlertFilters as p, type AlertListResponse as q, type DashboardMetrics as r, type CreateJurisdictionRequest as s, type GeofenceRuleType as t, type GeofenceAction as u, type GeofenceRule as v, type CreateGeofenceRuleRequest as w, type UpdateGeofenceRuleRequest as x, type UpdateDeviceTrustRequest as y, type GeolocationRecord as z };
|
|
@@ -64,6 +64,8 @@ interface RequestOptions {
|
|
|
64
64
|
signal?: AbortSignal;
|
|
65
65
|
/** Idempotency key for POST/PUT/PATCH requests */
|
|
66
66
|
idempotencyKey?: string;
|
|
67
|
+
/** Response type — defaults to 'json'. Use 'arraybuffer' for binary downloads (PDF, etc.) */
|
|
68
|
+
responseType?: 'json' | 'arraybuffer';
|
|
67
69
|
}
|
|
68
70
|
interface RequestInterceptor {
|
|
69
71
|
/** Called before each request. Can modify headers or options. */
|
|
@@ -64,6 +64,8 @@ interface RequestOptions {
|
|
|
64
64
|
signal?: AbortSignal;
|
|
65
65
|
/** Idempotency key for POST/PUT/PATCH requests */
|
|
66
66
|
idempotencyKey?: string;
|
|
67
|
+
/** Response type — defaults to 'json'. Use 'arraybuffer' for binary downloads (PDF, etc.) */
|
|
68
|
+
responseType?: 'json' | 'arraybuffer';
|
|
67
69
|
}
|
|
68
70
|
interface RequestInterceptor {
|
|
69
71
|
/** Called before each request. Can modify headers or options. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DeviceFingerprintRequest, L as LocationVerification,
|
|
2
|
-
export {
|
|
1
|
+
import { D as DeviceFingerprintRequest, L as LocationVerification, f as ValidateCipherTextResponse, P as LocationRequest, G as GeolocationClient, S as LocationRequestFilters, T as LocationRequestListResponse } from '../client-DW1Xiz6a.mjs';
|
|
2
|
+
export { Q as CreateLocationRequestRequest, Y as LocationCaptureRequest, _ as LocationCaptureResponse, O as LocationRequestChannel, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, W as ResendLocationRequestRequest } from '../client-DW1Xiz6a.mjs';
|
|
3
3
|
import { RiskProfileClient } from '../risk-profile/index.mjs';
|
|
4
|
-
import { V as VesantConfig, R as RequestOptions } from '../client-
|
|
4
|
+
import { V as VesantConfig, R as RequestOptions } from '../client-ePzhQKp9.mjs';
|
|
5
5
|
import { C as CustomerProfile } from '../types-1RzYeSal.mjs';
|
|
6
6
|
import { E as EntityType, P as PaginationParams } from '../types-B4Ezqo7V.mjs';
|
|
7
7
|
|
|
@@ -15,6 +15,7 @@ interface RegistrationVerificationRequest {
|
|
|
15
15
|
entityType?: EntityType;
|
|
16
16
|
ipAddress: string;
|
|
17
17
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
18
|
+
cipherText?: string;
|
|
18
19
|
metadata?: Record<string, unknown>;
|
|
19
20
|
}
|
|
20
21
|
interface RegistrationVerificationResponse {
|
|
@@ -25,20 +26,23 @@ interface RegistrationVerificationResponse {
|
|
|
25
26
|
requiresEDD: boolean;
|
|
26
27
|
blockReasons: string[];
|
|
27
28
|
processingTime: number;
|
|
29
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
28
30
|
}
|
|
29
31
|
interface LoginVerificationRequest {
|
|
30
32
|
customerId: string;
|
|
31
33
|
ipAddress: string;
|
|
32
34
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
35
|
+
cipherText?: string;
|
|
33
36
|
metadata?: Record<string, unknown>;
|
|
34
37
|
}
|
|
35
38
|
interface LoginVerificationResponse {
|
|
36
39
|
allowed: boolean;
|
|
37
40
|
geolocation: LocationVerification;
|
|
38
|
-
profile: CustomerProfile;
|
|
41
|
+
profile: CustomerProfile | null;
|
|
39
42
|
requiresStepUp: boolean;
|
|
40
43
|
blockReasons: string[];
|
|
41
44
|
processingTime: number;
|
|
45
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
42
46
|
}
|
|
43
47
|
interface TransactionVerificationRequest {
|
|
44
48
|
customerId: string;
|
|
@@ -47,16 +51,18 @@ interface TransactionVerificationRequest {
|
|
|
47
51
|
currency: string;
|
|
48
52
|
transactionType?: 'deposit' | 'withdrawal' | 'bet' | 'transfer' | 'payout';
|
|
49
53
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
54
|
+
cipherText?: string;
|
|
50
55
|
metadata?: Record<string, unknown>;
|
|
51
56
|
}
|
|
52
57
|
interface TransactionVerificationResponse {
|
|
53
58
|
allowed: boolean;
|
|
54
59
|
geolocation: LocationVerification;
|
|
55
|
-
profile: CustomerProfile;
|
|
60
|
+
profile: CustomerProfile | null;
|
|
56
61
|
transactionRisk: TransactionRiskResult;
|
|
57
62
|
requiresApproval: boolean;
|
|
58
63
|
blockReasons: string[];
|
|
59
64
|
processingTime: number;
|
|
65
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
60
66
|
}
|
|
61
67
|
interface TransactionRiskResult {
|
|
62
68
|
score: number;
|
|
@@ -70,6 +76,7 @@ interface EventVerificationRequest {
|
|
|
70
76
|
ipAddress: string;
|
|
71
77
|
eventType: string;
|
|
72
78
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
79
|
+
cipherText?: string;
|
|
73
80
|
metadata?: Record<string, unknown>;
|
|
74
81
|
}
|
|
75
82
|
interface EventVerificationResponse {
|
|
@@ -77,6 +84,7 @@ interface EventVerificationResponse {
|
|
|
77
84
|
geolocation: LocationVerification;
|
|
78
85
|
blockReasons: string[];
|
|
79
86
|
processingTime: number;
|
|
87
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
80
88
|
}
|
|
81
89
|
interface CurrencyRates {
|
|
82
90
|
[currency: string]: number;
|
|
@@ -264,6 +272,11 @@ declare class ComplianceClient {
|
|
|
264
272
|
verifyEvent(request: EventVerificationRequest, requestOptions?: RequestOptions): Promise<EventVerificationResponse>;
|
|
265
273
|
private shouldUpdateProfile;
|
|
266
274
|
private createProfileFromGeo;
|
|
275
|
+
/**
|
|
276
|
+
* Execute cipherText validation with graceful degradation.
|
|
277
|
+
* Returns undefined if cipherText is not provided or validation fails.
|
|
278
|
+
*/
|
|
279
|
+
private executeCipherTextValidation;
|
|
267
280
|
private calculateTransactionRisk;
|
|
268
281
|
private checkJurisdictionLimits;
|
|
269
282
|
private normalizeToUSD;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DeviceFingerprintRequest, L as LocationVerification,
|
|
2
|
-
export {
|
|
1
|
+
import { D as DeviceFingerprintRequest, L as LocationVerification, f as ValidateCipherTextResponse, P as LocationRequest, G as GeolocationClient, S as LocationRequestFilters, T as LocationRequestListResponse } from '../client-eLbtPRkh.js';
|
|
2
|
+
export { Q as CreateLocationRequestRequest, Y as LocationCaptureRequest, _ as LocationCaptureResponse, O as LocationRequestChannel, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, W as ResendLocationRequestRequest } from '../client-eLbtPRkh.js';
|
|
3
3
|
import { RiskProfileClient } from '../risk-profile/index.js';
|
|
4
|
-
import { V as VesantConfig, R as RequestOptions } from '../client-
|
|
4
|
+
import { V as VesantConfig, R as RequestOptions } from '../client-ePzhQKp9.js';
|
|
5
5
|
import { C as CustomerProfile } from '../types-X5Md_dD_.js';
|
|
6
6
|
import { E as EntityType, P as PaginationParams } from '../types-B4Ezqo7V.js';
|
|
7
7
|
|
|
@@ -15,6 +15,7 @@ interface RegistrationVerificationRequest {
|
|
|
15
15
|
entityType?: EntityType;
|
|
16
16
|
ipAddress: string;
|
|
17
17
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
18
|
+
cipherText?: string;
|
|
18
19
|
metadata?: Record<string, unknown>;
|
|
19
20
|
}
|
|
20
21
|
interface RegistrationVerificationResponse {
|
|
@@ -25,20 +26,23 @@ interface RegistrationVerificationResponse {
|
|
|
25
26
|
requiresEDD: boolean;
|
|
26
27
|
blockReasons: string[];
|
|
27
28
|
processingTime: number;
|
|
29
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
28
30
|
}
|
|
29
31
|
interface LoginVerificationRequest {
|
|
30
32
|
customerId: string;
|
|
31
33
|
ipAddress: string;
|
|
32
34
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
35
|
+
cipherText?: string;
|
|
33
36
|
metadata?: Record<string, unknown>;
|
|
34
37
|
}
|
|
35
38
|
interface LoginVerificationResponse {
|
|
36
39
|
allowed: boolean;
|
|
37
40
|
geolocation: LocationVerification;
|
|
38
|
-
profile: CustomerProfile;
|
|
41
|
+
profile: CustomerProfile | null;
|
|
39
42
|
requiresStepUp: boolean;
|
|
40
43
|
blockReasons: string[];
|
|
41
44
|
processingTime: number;
|
|
45
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
42
46
|
}
|
|
43
47
|
interface TransactionVerificationRequest {
|
|
44
48
|
customerId: string;
|
|
@@ -47,16 +51,18 @@ interface TransactionVerificationRequest {
|
|
|
47
51
|
currency: string;
|
|
48
52
|
transactionType?: 'deposit' | 'withdrawal' | 'bet' | 'transfer' | 'payout';
|
|
49
53
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
54
|
+
cipherText?: string;
|
|
50
55
|
metadata?: Record<string, unknown>;
|
|
51
56
|
}
|
|
52
57
|
interface TransactionVerificationResponse {
|
|
53
58
|
allowed: boolean;
|
|
54
59
|
geolocation: LocationVerification;
|
|
55
|
-
profile: CustomerProfile;
|
|
60
|
+
profile: CustomerProfile | null;
|
|
56
61
|
transactionRisk: TransactionRiskResult;
|
|
57
62
|
requiresApproval: boolean;
|
|
58
63
|
blockReasons: string[];
|
|
59
64
|
processingTime: number;
|
|
65
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
60
66
|
}
|
|
61
67
|
interface TransactionRiskResult {
|
|
62
68
|
score: number;
|
|
@@ -70,6 +76,7 @@ interface EventVerificationRequest {
|
|
|
70
76
|
ipAddress: string;
|
|
71
77
|
eventType: string;
|
|
72
78
|
deviceFingerprint?: DeviceFingerprintRequest;
|
|
79
|
+
cipherText?: string;
|
|
73
80
|
metadata?: Record<string, unknown>;
|
|
74
81
|
}
|
|
75
82
|
interface EventVerificationResponse {
|
|
@@ -77,6 +84,7 @@ interface EventVerificationResponse {
|
|
|
77
84
|
geolocation: LocationVerification;
|
|
78
85
|
blockReasons: string[];
|
|
79
86
|
processingTime: number;
|
|
87
|
+
cipherTextValidation?: ValidateCipherTextResponse;
|
|
80
88
|
}
|
|
81
89
|
interface CurrencyRates {
|
|
82
90
|
[currency: string]: number;
|
|
@@ -264,6 +272,11 @@ declare class ComplianceClient {
|
|
|
264
272
|
verifyEvent(request: EventVerificationRequest, requestOptions?: RequestOptions): Promise<EventVerificationResponse>;
|
|
265
273
|
private shouldUpdateProfile;
|
|
266
274
|
private createProfileFromGeo;
|
|
275
|
+
/**
|
|
276
|
+
* Execute cipherText validation with graceful degradation.
|
|
277
|
+
* Returns undefined if cipherText is not provided or validation fails.
|
|
278
|
+
*/
|
|
279
|
+
private executeCipherTextValidation;
|
|
267
280
|
private calculateTransactionRisk;
|
|
268
281
|
private checkJurisdictionLimits;
|
|
269
282
|
private normalizeToUSD;
|