vesant-sdk 1.6.4 → 1.6.6-next.72429ce

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 (77) hide show
  1. package/dist/{client-ePzhQKp9.d.mts → client-BolQlL5e.d.mts} +1 -1
  2. package/dist/{client-ePzhQKp9.d.ts → client-BolQlL5e.d.ts} +1 -1
  3. package/dist/{client-BlCxjbY2.d.mts → client-D6PE3pcB.d.mts} +2 -2
  4. package/dist/{client-C_A7QLcB.d.ts → client-DPtiuQvW.d.ts} +2 -2
  5. package/dist/compliance/index.d.mts +4 -4
  6. package/dist/compliance/index.d.ts +4 -4
  7. package/dist/compliance/index.js +4 -1
  8. package/dist/compliance/index.js.map +1 -1
  9. package/dist/compliance/index.mjs +4 -1
  10. package/dist/compliance/index.mjs.map +1 -1
  11. package/dist/decisions/index.d.mts +1 -1
  12. package/dist/decisions/index.d.ts +1 -1
  13. package/dist/decisions/index.js +1 -1
  14. package/dist/decisions/index.js.map +1 -1
  15. package/dist/decisions/index.mjs +1 -1
  16. package/dist/decisions/index.mjs.map +1 -1
  17. package/dist/geolocation/index.d.mts +3 -3
  18. package/dist/geolocation/index.d.ts +3 -3
  19. package/dist/geolocation/index.js +1 -1
  20. package/dist/geolocation/index.js.map +1 -1
  21. package/dist/geolocation/index.mjs +1 -1
  22. package/dist/geolocation/index.mjs.map +1 -1
  23. package/dist/index.d.mts +9 -68
  24. package/dist/index.d.ts +9 -68
  25. package/dist/index.js +15 -171
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +16 -170
  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 +7 -11
  32. package/dist/kyc/core.js.map +1 -1
  33. package/dist/kyc/core.mjs +7 -11
  34. package/dist/kyc/core.mjs.map +1 -1
  35. package/dist/kyc/index.d.mts +15 -26
  36. package/dist/kyc/index.d.ts +15 -26
  37. package/dist/kyc/index.js +7 -11
  38. package/dist/kyc/index.js.map +1 -1
  39. package/dist/kyc/index.mjs +7 -11
  40. package/dist/kyc/index.mjs.map +1 -1
  41. package/dist/react.d.mts +5 -5
  42. package/dist/react.d.ts +5 -5
  43. package/dist/react.js +1 -1
  44. package/dist/react.js.map +1 -1
  45. package/dist/react.mjs +1 -1
  46. package/dist/react.mjs.map +1 -1
  47. package/dist/risk-profile/index.d.mts +3 -3
  48. package/dist/risk-profile/index.d.ts +3 -3
  49. package/dist/risk-profile/index.js +1 -1
  50. package/dist/risk-profile/index.js.map +1 -1
  51. package/dist/risk-profile/index.mjs +1 -1
  52. package/dist/risk-profile/index.mjs.map +1 -1
  53. package/dist/scores/index.d.mts +1 -1
  54. package/dist/scores/index.d.ts +1 -1
  55. package/dist/scores/index.js +1 -1
  56. package/dist/scores/index.js.map +1 -1
  57. package/dist/scores/index.mjs +1 -1
  58. package/dist/scores/index.mjs.map +1 -1
  59. package/dist/tax/index.d.mts +7 -37
  60. package/dist/tax/index.d.ts +7 -37
  61. package/dist/tax/index.js +6 -36
  62. package/dist/tax/index.js.map +1 -1
  63. package/dist/tax/index.mjs +6 -36
  64. package/dist/tax/index.mjs.map +1 -1
  65. package/dist/{types-1RzYeSal.d.mts → types-DGDVnogO.d.mts} +1 -1
  66. package/dist/{types-X5Md_dD_.d.ts → types-_YQdS3Ax.d.ts} +1 -1
  67. package/dist/webhooks/index.d.mts +177 -2
  68. package/dist/webhooks/index.d.ts +177 -2
  69. package/package.json +16 -13
  70. package/dist/fraud/index.d.mts +0 -80
  71. package/dist/fraud/index.d.ts +0 -80
  72. package/dist/fraud/index.js +0 -606
  73. package/dist/fraud/index.js.map +0 -1
  74. package/dist/fraud/index.mjs +0 -604
  75. package/dist/fraud/index.mjs.map +0 -1
  76. package/dist/index-B04H4xfJ.d.mts +0 -320
  77. package/dist/index-CItMPmLL.d.ts +0 -320
@@ -237,4 +237,4 @@ declare abstract class BaseClient {
237
237
  }>;
238
238
  }
239
239
 
240
- export { BaseClient as B, type CircuitBreakerConfig as C, type Logger as L, type RequestOptions as R, type VesantConfig as V, type BaseClientConfig as a, type RequestInterceptor as b, type RequiredVesantConfig as c, type CGSConfig as d, type RequiredCGSConfig as e, type RequiredBaseClientConfig as f, type CircuitBreakerState as g, type CircuitBreakerStatus as h, CircuitBreaker as i, type RateLimitStatus as j, RateLimitTracker as k };
240
+ export { BaseClient as B, type CGSConfig as C, type Logger as L, type RequestOptions as R, type VesantConfig as V, type BaseClientConfig as a, CircuitBreaker as b, type CircuitBreakerConfig as c, type CircuitBreakerState as d, type CircuitBreakerStatus as e, type RateLimitStatus as f, RateLimitTracker as g, type RequestInterceptor as h, type RequiredBaseClientConfig as i, type RequiredCGSConfig as j, type RequiredVesantConfig as k };
@@ -237,4 +237,4 @@ declare abstract class BaseClient {
237
237
  }>;
238
238
  }
239
239
 
240
- export { BaseClient as B, type CircuitBreakerConfig as C, type Logger as L, type RequestOptions as R, type VesantConfig as V, type BaseClientConfig as a, type RequestInterceptor as b, type RequiredVesantConfig as c, type CGSConfig as d, type RequiredCGSConfig as e, type RequiredBaseClientConfig as f, type CircuitBreakerState as g, type CircuitBreakerStatus as h, CircuitBreaker as i, type RateLimitStatus as j, RateLimitTracker as k };
240
+ export { BaseClient as B, type CGSConfig as C, type Logger as L, type RequestOptions as R, type VesantConfig as V, type BaseClientConfig as a, CircuitBreaker as b, type CircuitBreakerConfig as c, type CircuitBreakerState as d, type CircuitBreakerStatus as e, type RateLimitStatus as f, RateLimitTracker as g, type RequestInterceptor as h, type RequiredBaseClientConfig as i, type RequiredCGSConfig as j, type RequiredVesantConfig as k };
@@ -1,4 +1,4 @@
1
- import { L as Logger, B as BaseClient, R as RequestOptions } from './client-ePzhQKp9.mjs';
1
+ import { L as Logger, B as BaseClient, R as RequestOptions } from './client-BolQlL5e.mjs';
2
2
  import { P as PaginationParams } from './types-B4Ezqo7V.mjs';
3
3
 
4
4
  interface DeviceFingerprintRequest {
@@ -1016,4 +1016,4 @@ declare class GeolocationClient extends BaseClient {
1016
1016
  generateCipherText(options: Omit<CipherTextOptions, 'apiKey' | 'signingKey'>, gpsConfig?: GeolocationConfigResponse): Promise<CipherTextResult>;
1017
1017
  }
1018
1018
 
1019
- 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 };
1019
+ export { type ValidateCipherTextRequest as $, type APIError as A, type LocationCaptureResponse as B, type CipherTextCustomerData as C, type DashboardMetrics as D, type LocationRequest as E, type LocationRequestChannel as F, type GeoIPResult as G, type LocationRequestFilters as H, type LocationRequestListResponse as I, type JurisdictionConfig as J, type LocationRequestResult as K, type LocationCaptureRequest as L, type LocationRequestStatus as M, type LocationShareInfo as N, type LocationVerification as O, type UpdateGeofenceRuleRequest as P, type UpdateJurisdictionRequest as Q, type ResendLocationRequestRequest as R, type UseAlertsOptions as S, type UseAlertsResult as T, type UpdateDeviceTrustRequest as U, type UseGeolocationOptions as V, type UseGeolocationResult as W, type UseLocationCaptureOptions as X, type UseLocationCaptureResult as Y, type UseLocationRequestsOptions as Z, type UseLocationRequestsResult as _, type AlertFilters as a, type ValidateCipherTextResponse as a0, type VerifyIPRequest as a1, type WiFiNetwork as a2, type AlertListResponse as b, type AlertSeverity as c, type AlertStatus as d, type AlertType as e, type CipherTextOptions as f, type CipherTextPayload as g, type CipherTextReason as h, type CipherTextResult as i, type ComplianceCheckResponse as j, type CreateGeofenceRuleRequest as k, type CreateJurisdictionRequest as l, type CreateLocationRequestRequest as m, type DecryptedCipherText as n, type DeviceFingerprint as o, type DeviceFingerprintRequest as p, type DeviceTrustResult as q, type GeofenceAction as r, type GeofenceEvaluation as s, type GeofenceRule as t, type GeofenceRuleType as u, type GeolocationAlert as v, GeolocationClient as w, type GeolocationClientConfig as x, type GeolocationConfigResponse as y, type GeolocationRecord as z };
@@ -1,4 +1,4 @@
1
- import { L as Logger, B as BaseClient, R as RequestOptions } from './client-ePzhQKp9.js';
1
+ import { L as Logger, B as BaseClient, R as RequestOptions } from './client-BolQlL5e.js';
2
2
  import { P as PaginationParams } from './types-B4Ezqo7V.js';
3
3
 
4
4
  interface DeviceFingerprintRequest {
@@ -1016,4 +1016,4 @@ declare class GeolocationClient extends BaseClient {
1016
1016
  generateCipherText(options: Omit<CipherTextOptions, 'apiKey' | 'signingKey'>, gpsConfig?: GeolocationConfigResponse): Promise<CipherTextResult>;
1017
1017
  }
1018
1018
 
1019
- 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 };
1019
+ export { type ValidateCipherTextRequest as $, type APIError as A, type LocationCaptureResponse as B, type CipherTextCustomerData as C, type DashboardMetrics as D, type LocationRequest as E, type LocationRequestChannel as F, type GeoIPResult as G, type LocationRequestFilters as H, type LocationRequestListResponse as I, type JurisdictionConfig as J, type LocationRequestResult as K, type LocationCaptureRequest as L, type LocationRequestStatus as M, type LocationShareInfo as N, type LocationVerification as O, type UpdateGeofenceRuleRequest as P, type UpdateJurisdictionRequest as Q, type ResendLocationRequestRequest as R, type UseAlertsOptions as S, type UseAlertsResult as T, type UpdateDeviceTrustRequest as U, type UseGeolocationOptions as V, type UseGeolocationResult as W, type UseLocationCaptureOptions as X, type UseLocationCaptureResult as Y, type UseLocationRequestsOptions as Z, type UseLocationRequestsResult as _, type AlertFilters as a, type ValidateCipherTextResponse as a0, type VerifyIPRequest as a1, type WiFiNetwork as a2, type AlertListResponse as b, type AlertSeverity as c, type AlertStatus as d, type AlertType as e, type CipherTextOptions as f, type CipherTextPayload as g, type CipherTextReason as h, type CipherTextResult as i, type ComplianceCheckResponse as j, type CreateGeofenceRuleRequest as k, type CreateJurisdictionRequest as l, type CreateLocationRequestRequest as m, type DecryptedCipherText as n, type DeviceFingerprint as o, type DeviceFingerprintRequest as p, type DeviceTrustResult as q, type GeofenceAction as r, type GeofenceEvaluation as s, type GeofenceRule as t, type GeofenceRuleType as u, type GeolocationAlert as v, GeolocationClient as w, type GeolocationClientConfig as x, type GeolocationConfigResponse as y, type GeolocationRecord as z };
@@ -1,8 +1,8 @@
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-BlCxjbY2.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-BlCxjbY2.mjs';
1
+ import { p as DeviceFingerprintRequest, O as LocationVerification, a0 as ValidateCipherTextResponse, E as LocationRequest, w as GeolocationClient, H as LocationRequestFilters, I as LocationRequestListResponse } from '../client-D6PE3pcB.mjs';
2
+ export { m as CreateLocationRequestRequest, L as LocationCaptureRequest, B as LocationCaptureResponse, F as LocationRequestChannel, K as LocationRequestResult, M as LocationRequestStatus, N as LocationShareInfo, R as ResendLocationRequestRequest } from '../client-D6PE3pcB.mjs';
3
3
  import { RiskProfileClient } from '../risk-profile/index.mjs';
4
- import { V as VesantConfig, R as RequestOptions } from '../client-ePzhQKp9.mjs';
5
- import { C as CustomerProfile } from '../types-1RzYeSal.mjs';
4
+ import { V as VesantConfig, R as RequestOptions } from '../client-BolQlL5e.mjs';
5
+ import { a as CustomerProfile } from '../types-DGDVnogO.mjs';
6
6
  import { E as EntityType, P as PaginationParams } from '../types-B4Ezqo7V.mjs';
7
7
 
8
8
  interface RegistrationVerificationRequest {
@@ -1,8 +1,8 @@
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-C_A7QLcB.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-C_A7QLcB.js';
1
+ import { p as DeviceFingerprintRequest, O as LocationVerification, a0 as ValidateCipherTextResponse, E as LocationRequest, w as GeolocationClient, H as LocationRequestFilters, I as LocationRequestListResponse } from '../client-DPtiuQvW.js';
2
+ export { m as CreateLocationRequestRequest, L as LocationCaptureRequest, B as LocationCaptureResponse, F as LocationRequestChannel, K as LocationRequestResult, M as LocationRequestStatus, N as LocationShareInfo, R as ResendLocationRequestRequest } from '../client-DPtiuQvW.js';
3
3
  import { RiskProfileClient } from '../risk-profile/index.js';
4
- import { V as VesantConfig, R as RequestOptions } from '../client-ePzhQKp9.js';
5
- import { C as CustomerProfile } from '../types-X5Md_dD_.js';
4
+ import { V as VesantConfig, R as RequestOptions } from '../client-BolQlL5e.js';
5
+ import { a as CustomerProfile } from '../types-_YQdS3Ax.js';
6
6
  import { E as EntityType, P as PaginationParams } from '../types-B4Ezqo7V.js';
7
7
 
8
8
  interface RegistrationVerificationRequest {
@@ -224,7 +224,7 @@ function createConsoleLogger() {
224
224
  }
225
225
 
226
226
  // src/core/version.ts
227
- var SDK_VERSION = "1.6.4";
227
+ var SDK_VERSION = "1.6.6";
228
228
 
229
229
  // src/shared/browser-utils.ts
230
230
  function generateUUID() {
@@ -1573,6 +1573,9 @@ var ComplianceClient = class {
1573
1573
  message: error instanceof Error ? error.message : "Unknown error"
1574
1574
  });
1575
1575
  }
1576
+ if (error instanceof VesantError && error.code === "DUPLICATE_PROFILE") {
1577
+ throw error;
1578
+ }
1576
1579
  throw new ComplianceError(
1577
1580
  "Registration verification failed",
1578
1581
  error instanceof Error ? error.message : void 0,