vesant-sdk 1.6.1 → 1.6.3

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 (67) hide show
  1. package/dist/{client-DW1Xiz6a.d.mts → client-BlCxjbY2.d.mts} +6 -0
  2. package/dist/{client-eLbtPRkh.d.ts → client-C_A7QLcB.d.ts} +6 -0
  3. package/dist/compliance/index.d.mts +9 -2
  4. package/dist/compliance/index.d.ts +9 -2
  5. package/dist/compliance/index.js +177 -63
  6. package/dist/compliance/index.js.map +1 -1
  7. package/dist/compliance/index.mjs +177 -63
  8. package/dist/compliance/index.mjs.map +1 -1
  9. package/dist/decisions/index.js +1 -1
  10. package/dist/decisions/index.js.map +1 -1
  11. package/dist/decisions/index.mjs +1 -1
  12. package/dist/decisions/index.mjs.map +1 -1
  13. package/dist/fraud/index.d.mts +80 -0
  14. package/dist/fraud/index.d.ts +80 -0
  15. package/dist/fraud/index.js +606 -0
  16. package/dist/fraud/index.js.map +1 -0
  17. package/dist/fraud/index.mjs +604 -0
  18. package/dist/fraud/index.mjs.map +1 -0
  19. package/dist/geolocation/index.d.mts +2 -2
  20. package/dist/geolocation/index.d.ts +2 -2
  21. package/dist/geolocation/index.js +43 -14
  22. package/dist/geolocation/index.js.map +1 -1
  23. package/dist/geolocation/index.mjs +43 -14
  24. package/dist/geolocation/index.mjs.map +1 -1
  25. package/dist/index-B04H4xfJ.d.mts +320 -0
  26. package/dist/index-CItMPmLL.d.ts +320 -0
  27. package/dist/index.d.mts +9 -109
  28. package/dist/index.d.ts +9 -109
  29. package/dist/index.js +281 -69
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +281 -70
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/kyc/core.d.mts +1 -1
  34. package/dist/kyc/core.d.ts +1 -1
  35. package/dist/kyc/core.js +11 -7
  36. package/dist/kyc/core.js.map +1 -1
  37. package/dist/kyc/core.mjs +11 -7
  38. package/dist/kyc/core.mjs.map +1 -1
  39. package/dist/kyc/index.d.mts +24 -13
  40. package/dist/kyc/index.d.ts +24 -13
  41. package/dist/kyc/index.js +11 -7
  42. package/dist/kyc/index.js.map +1 -1
  43. package/dist/kyc/index.mjs +11 -7
  44. package/dist/kyc/index.mjs.map +1 -1
  45. package/dist/react.d.mts +1 -1
  46. package/dist/react.d.ts +1 -1
  47. package/dist/react.js +1 -1
  48. package/dist/react.js.map +1 -1
  49. package/dist/react.mjs +1 -1
  50. package/dist/react.mjs.map +1 -1
  51. package/dist/risk-profile/index.js +1 -1
  52. package/dist/risk-profile/index.js.map +1 -1
  53. package/dist/risk-profile/index.mjs +1 -1
  54. package/dist/risk-profile/index.mjs.map +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 +36 -2
  60. package/dist/tax/index.d.ts +36 -2
  61. package/dist/tax/index.js +36 -1
  62. package/dist/tax/index.js.map +1 -1
  63. package/dist/tax/index.mjs +36 -1
  64. package/dist/tax/index.mjs.map +1 -1
  65. package/dist/webhooks/index.d.mts +2 -177
  66. package/dist/webhooks/index.d.ts +2 -177
  67. package/package.json +6 -1
package/dist/index.d.mts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { L as Logger, B as BaseClient, a as BaseClientConfig, R as RequestOptions } from './client-ePzhQKp9.mjs';
2
2
  export { d as CGSConfig, i as CircuitBreaker, C as CircuitBreakerConfig, g as CircuitBreakerState, h as CircuitBreakerStatus, j as RateLimitStatus, k as RateLimitTracker, b as RequestInterceptor, f as RequiredBaseClientConfig, e as RequiredCGSConfig, c as RequiredVesantConfig, V as VesantConfig } from './client-ePzhQKp9.mjs';
3
- import { T as Timestamp } from './types-B4Ezqo7V.mjs';
4
- export { A as APIResponse, C as CustomerStatus, E as EntityType, b as ErrorResponse, L as LocationCompliance, a as PaginatedResponse, P as PaginationParams, c as Result, R as RiskLevel, S as SuccessResponse, U as UUID, V as VerificationEventType } from './types-B4Ezqo7V.mjs';
5
- export { BaseWebhookEvent, ComplianceCheckFailedPayload, DecisionRecordedPayload, GeolocationBlockedPayload, GeolocationVerifiedPayload, KycStatusChangedPayload, LabelAppliedPayload, LocationRequestCompletedPayload, ProfileCreatedPayload, ProfileUpdatedPayload, RiskCategoryChangedPayload, RiskScoreChangedPayload, WebhookAnyHandler, WebhookEvent, WebhookEventHandler, WebhookEventType, WebhookHandler, WebhookHandlerConfig, WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature } from './webhooks/index.mjs';
6
- export { B as APIError, p as AlertFilters, q as AlertListResponse, m as AlertSeverity, A as AlertStatus, n as AlertType, e as CipherTextCustomerData, b as CipherTextOptions, C as CipherTextPayload, a as CipherTextReason, c as CipherTextResult, l as ComplianceCheckResponse, w as CreateGeofenceRuleRequest, s as CreateJurisdictionRequest, Q as CreateLocationRequestRequest, r as DashboardMetrics, d as DecryptedCipherText, j as DeviceFingerprint, D as DeviceFingerprintRequest, k as DeviceTrustResult, h as GeoIPResult, u as GeofenceAction, i as GeofenceEvaluation, v as GeofenceRule, t as GeofenceRuleType, o as GeolocationAlert, G as GeolocationClient, F as GeolocationClientConfig, E as GeolocationConfigResponse, z as GeolocationRecord, J as JurisdictionConfig, Y as LocationCaptureRequest, _ as LocationCaptureResponse, P as LocationRequest, O as LocationRequestChannel, S as LocationRequestFilters, T as LocationRequestListResponse, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, L as LocationVerification, W as ResendLocationRequestRequest, y as UpdateDeviceTrustRequest, x as UpdateGeofenceRuleRequest, U as UpdateJurisdictionRequest, K as UseAlertsOptions, M as UseAlertsResult, H as UseGeolocationOptions, I as UseGeolocationResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, V as ValidateCipherTextRequest, f as ValidateCipherTextResponse, g as VerifyIPRequest, X as WiFiNetwork } from './client-DW1Xiz6a.mjs';
3
+ export { A as APIResponse, C as CustomerStatus, E as EntityType, b as ErrorResponse, L as LocationCompliance, a as PaginatedResponse, P as PaginationParams, c as Result, R as RiskLevel, S as SuccessResponse, T as Timestamp, U as UUID, V as VerificationEventType } from './types-B4Ezqo7V.mjs';
4
+ import { T as TransactionCreateDTO, a as TransactionCreateResponse } from './index-B04H4xfJ.mjs';
5
+ export { B as BaseWebhookEvent, C as ComplianceCheckFailedPayload, D as DecisionRecordedPayload, o as GeolocationBlockedPayload, G as GeolocationVerifiedPayload, J as JSONB, K as KycStatusChangedPayload, L as LabelAppliedPayload, p as LocationRequestCompletedPayload, P as ProfileCreatedPayload, n as ProfileUpdatedPayload, m as RiskCategoryChangedPayload, R as RiskScoreChangedPayload, r as TaxFormType, s as TaxReminderSentPayload, q as TaxReminderType, g as Transaction, t as TransactionCallbackPayload, h as TransactionClientConfig, c as TransactionMode, d as TransactionStatus, b as TransactionType, y as WebhookAnyHandler, u as WebhookEvent, x as WebhookEventHandler, l as WebhookEventType, W as WebhookHandler, w as WebhookHandlerConfig, i as WebhookMiddlewareOptions, f as WithholdingReason, e as WithholdingType, k as createNextWebhookHandler, j as createWebhookMiddleware, v as verifyWebhookSignature } from './index-B04H4xfJ.mjs';
6
+ export { B as APIError, p as AlertFilters, q as AlertListResponse, m as AlertSeverity, A as AlertStatus, n as AlertType, e as CipherTextCustomerData, b as CipherTextOptions, C as CipherTextPayload, a as CipherTextReason, c as CipherTextResult, l as ComplianceCheckResponse, w as CreateGeofenceRuleRequest, s as CreateJurisdictionRequest, Q as CreateLocationRequestRequest, r as DashboardMetrics, d as DecryptedCipherText, j as DeviceFingerprint, D as DeviceFingerprintRequest, k as DeviceTrustResult, h as GeoIPResult, u as GeofenceAction, i as GeofenceEvaluation, v as GeofenceRule, t as GeofenceRuleType, o as GeolocationAlert, G as GeolocationClient, F as GeolocationClientConfig, E as GeolocationConfigResponse, z as GeolocationRecord, J as JurisdictionConfig, Y as LocationCaptureRequest, _ as LocationCaptureResponse, P as LocationRequest, O as LocationRequestChannel, S as LocationRequestFilters, T as LocationRequestListResponse, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, L as LocationVerification, W as ResendLocationRequestRequest, y as UpdateDeviceTrustRequest, x as UpdateGeofenceRuleRequest, U as UpdateJurisdictionRequest, K as UseAlertsOptions, M as UseAlertsResult, H as UseGeolocationOptions, I as UseGeolocationResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, V as ValidateCipherTextRequest, f as ValidateCipherTextResponse, g as VerifyIPRequest, X as WiFiNetwork } from './client-BlCxjbY2.mjs';
7
7
  export { decodeCipherText, generateCipherText, isCipherTextExpired } from './geolocation/index.mjs';
8
8
  export { RiskProfileClient } from './risk-profile/index.mjs';
9
9
  export { d as CreateCustomerProfileRequest, d as CreateProfileRequest, C as CustomerProfile, e as CustomerProfileFilters, f as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, P as ProfileDetailsResponse, e as ProfileFilters, f as ProfileListResponse, R as RiskCategory, h as RiskConfiguration, g as RiskDashboardMetrics, a as RiskFactor, b as RiskFactorType, c as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-1RzYeSal.mjs';
10
10
  export { ComplianceClient, ComplianceLocationRequestInput, ComplianceLocationRequestResult, CurrencyRates, DEFAULT_CURRENCY_RATES, EventVerificationRequest, EventVerificationResponse, LoginVerificationRequest, LoginVerificationResponse, RegistrationVerificationRequest, RegistrationVerificationResponse, TransactionRiskResult, TransactionVerificationRequest, TransactionVerificationResponse } from './compliance/index.mjs';
11
- export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
12
- export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.mjs';
11
+ export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, KycTriggerEvent, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.mjs';
12
+ export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, RunRemindersResponse, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateReminderConfigInput, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.mjs';
13
+ export { FraudClient, FraudDecision, FraudEventType, FraudReactionType, FraudScoreRequest, FraudScoreResponseData, FraudScoreResponseEnvelope, FraudScoreResponseMetadata, TenantAction } from './fraud/index.mjs';
13
14
 
14
15
  /**
15
16
  * Error hierarchy for Vesant SDK
@@ -66,108 +67,7 @@ declare const noopLogger: Logger;
66
67
  /**
67
68
  * Single source of truth for the SDK version.
68
69
  */
69
- declare const SDK_VERSION = "1.6.1";
70
-
71
- /**
72
- * TypeScript types for the Transaction Monitoring (TM) Service
73
- *
74
- * These definitions mirror the Go structs used in
75
- * services/transaction-monitoring-service/internal/domain/
76
- *
77
- * Only a subset of fields is included; additional helpers may be
78
- * added as the SDK grows.
79
- */
80
-
81
- /**
82
- * Supported transaction types.
83
- * See domain/transaction.go TransactionType constants.
84
- */
85
- type TransactionType = "deposit" | "withdrawal" | "transfer" | "payment" | "refund" | "fee" | "adjustment";
86
- /**
87
- * Modes or channels by which the transaction was carried out.
88
- */
89
- type TransactionMode = "fiat" | "crypto" | "bank_transfer" | "card" | "wallet";
90
- /**
91
- * Current status of the transaction record.
92
- */
93
- type TransactionStatus = "pending" | "processing" | "completed" | "failed" | "cancelled" | "reversed";
94
- /**
95
- * Payload sent when creating a new transaction via the TM API.
96
- *
97
- * Numeric decimal types in Go are represented as strings in the SDK to avoid
98
- * precision loss in JavaScript. Dates are ISO strings.
99
- */
100
- interface TransactionCreateDTO {
101
- tx_id: string;
102
- reference: string;
103
- tenant_id: string;
104
- customer_id: string;
105
- transaction_type: TransactionType;
106
- transaction_mode: TransactionMode;
107
- amount: string;
108
- currency: string;
109
- status: TransactionStatus;
110
- source_account: string;
111
- destination_account: string;
112
- country: string;
113
- ip_address: string;
114
- metadata: Record<string, any>;
115
- benificiary_comment: string;
116
- transaction_date: Timestamp;
117
- }
118
- /**
119
- * Representation of a transaction record returned from the TM service.
120
- */
121
- type WithholdingType = "none" | "backup_us" | "backup_non_us" | "treaty";
122
- type JSONB = Record<string, any>;
123
- type Transaction = {
124
- id: string;
125
- tx_id: string;
126
- reference: string;
127
- tenant_id: string;
128
- customer_id: string;
129
- transaction_type: TransactionType;
130
- transaction_mode: TransactionMode;
131
- amount: string;
132
- withheld_amount: string;
133
- released_amount: string;
134
- withholding_rate: number;
135
- withholding_reason?: string;
136
- withholding_type?: WithholdingType;
137
- tax_year: number;
138
- currency: string;
139
- status: TransactionStatus;
140
- source_account?: string;
141
- destination_account?: string;
142
- country?: string;
143
- ip_address?: string;
144
- risk_score: number;
145
- metadata?: JSONB;
146
- benificiary_comment?: string;
147
- transaction_date: string;
148
- created_at: string;
149
- updated_at: string;
150
- deleted_at?: string | null;
151
- };
152
- /**
153
- * Configuration object consumed by {@link TransactionClient}.
154
- * Currently identical to {@link import('../core/types').BaseClientConfig},
155
- * exported here for future extensibility.
156
- */
157
- interface TransactionClientConfig {
158
- baseURL: string;
159
- tenantId: string;
160
- apiKey?: string;
161
- headers?: Record<string, string>;
162
- timeout?: number;
163
- retries?: number;
164
- debug?: boolean;
165
- environment?: 'production' | 'sandbox';
166
- }
167
- type TransactionCreateResponse = {
168
- transaction: Transaction;
169
- message: string;
170
- };
70
+ declare const SDK_VERSION = "1.6.2";
171
71
 
172
72
  /**
173
73
  * TransactionClient - TypeScript SDK for the Transaction Monitoring service
@@ -226,4 +126,4 @@ declare class TransactionClient extends BaseClient {
226
126
  getTransaction(transactionId: string, requestOptions?: RequestOptions): Promise<void>;
227
127
  }
228
128
 
229
- export { AuthenticationError, BaseClient, BaseClientConfig, CGSError, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceError, type JSONB, Logger, NetworkError, RateLimitError, RequestOptions, SDK_VERSION, ServiceUnavailableError, TimeoutError, Timestamp, type Transaction, TransactionClient, type TransactionClientConfig, type TransactionCreateDTO, type TransactionCreateResponse, type TransactionMode, type TransactionStatus, type TransactionType, ValidationError, VesantError, type WithholdingType, createConsoleLogger, noopLogger };
129
+ export { AuthenticationError, BaseClient, BaseClientConfig, CGSError, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceError, Logger, NetworkError, RateLimitError, RequestOptions, SDK_VERSION, ServiceUnavailableError, TimeoutError, TransactionClient, TransactionCreateDTO, TransactionCreateResponse, ValidationError, VesantError, createConsoleLogger, noopLogger };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { L as Logger, B as BaseClient, a as BaseClientConfig, R as RequestOptions } from './client-ePzhQKp9.js';
2
2
  export { d as CGSConfig, i as CircuitBreaker, C as CircuitBreakerConfig, g as CircuitBreakerState, h as CircuitBreakerStatus, j as RateLimitStatus, k as RateLimitTracker, b as RequestInterceptor, f as RequiredBaseClientConfig, e as RequiredCGSConfig, c as RequiredVesantConfig, V as VesantConfig } from './client-ePzhQKp9.js';
3
- import { T as Timestamp } from './types-B4Ezqo7V.js';
4
- export { A as APIResponse, C as CustomerStatus, E as EntityType, b as ErrorResponse, L as LocationCompliance, a as PaginatedResponse, P as PaginationParams, c as Result, R as RiskLevel, S as SuccessResponse, U as UUID, V as VerificationEventType } from './types-B4Ezqo7V.js';
5
- export { BaseWebhookEvent, ComplianceCheckFailedPayload, DecisionRecordedPayload, GeolocationBlockedPayload, GeolocationVerifiedPayload, KycStatusChangedPayload, LabelAppliedPayload, LocationRequestCompletedPayload, ProfileCreatedPayload, ProfileUpdatedPayload, RiskCategoryChangedPayload, RiskScoreChangedPayload, WebhookAnyHandler, WebhookEvent, WebhookEventHandler, WebhookEventType, WebhookHandler, WebhookHandlerConfig, WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature } from './webhooks/index.js';
6
- export { B as APIError, p as AlertFilters, q as AlertListResponse, m as AlertSeverity, A as AlertStatus, n as AlertType, e as CipherTextCustomerData, b as CipherTextOptions, C as CipherTextPayload, a as CipherTextReason, c as CipherTextResult, l as ComplianceCheckResponse, w as CreateGeofenceRuleRequest, s as CreateJurisdictionRequest, Q as CreateLocationRequestRequest, r as DashboardMetrics, d as DecryptedCipherText, j as DeviceFingerprint, D as DeviceFingerprintRequest, k as DeviceTrustResult, h as GeoIPResult, u as GeofenceAction, i as GeofenceEvaluation, v as GeofenceRule, t as GeofenceRuleType, o as GeolocationAlert, G as GeolocationClient, F as GeolocationClientConfig, E as GeolocationConfigResponse, z as GeolocationRecord, J as JurisdictionConfig, Y as LocationCaptureRequest, _ as LocationCaptureResponse, P as LocationRequest, O as LocationRequestChannel, S as LocationRequestFilters, T as LocationRequestListResponse, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, L as LocationVerification, W as ResendLocationRequestRequest, y as UpdateDeviceTrustRequest, x as UpdateGeofenceRuleRequest, U as UpdateJurisdictionRequest, K as UseAlertsOptions, M as UseAlertsResult, H as UseGeolocationOptions, I as UseGeolocationResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, V as ValidateCipherTextRequest, f as ValidateCipherTextResponse, g as VerifyIPRequest, X as WiFiNetwork } from './client-eLbtPRkh.js';
3
+ export { A as APIResponse, C as CustomerStatus, E as EntityType, b as ErrorResponse, L as LocationCompliance, a as PaginatedResponse, P as PaginationParams, c as Result, R as RiskLevel, S as SuccessResponse, T as Timestamp, U as UUID, V as VerificationEventType } from './types-B4Ezqo7V.js';
4
+ import { T as TransactionCreateDTO, a as TransactionCreateResponse } from './index-CItMPmLL.js';
5
+ export { B as BaseWebhookEvent, C as ComplianceCheckFailedPayload, D as DecisionRecordedPayload, o as GeolocationBlockedPayload, G as GeolocationVerifiedPayload, J as JSONB, K as KycStatusChangedPayload, L as LabelAppliedPayload, p as LocationRequestCompletedPayload, P as ProfileCreatedPayload, n as ProfileUpdatedPayload, m as RiskCategoryChangedPayload, R as RiskScoreChangedPayload, r as TaxFormType, s as TaxReminderSentPayload, q as TaxReminderType, g as Transaction, t as TransactionCallbackPayload, h as TransactionClientConfig, c as TransactionMode, d as TransactionStatus, b as TransactionType, y as WebhookAnyHandler, u as WebhookEvent, x as WebhookEventHandler, l as WebhookEventType, W as WebhookHandler, w as WebhookHandlerConfig, i as WebhookMiddlewareOptions, f as WithholdingReason, e as WithholdingType, k as createNextWebhookHandler, j as createWebhookMiddleware, v as verifyWebhookSignature } from './index-CItMPmLL.js';
6
+ export { B as APIError, p as AlertFilters, q as AlertListResponse, m as AlertSeverity, A as AlertStatus, n as AlertType, e as CipherTextCustomerData, b as CipherTextOptions, C as CipherTextPayload, a as CipherTextReason, c as CipherTextResult, l as ComplianceCheckResponse, w as CreateGeofenceRuleRequest, s as CreateJurisdictionRequest, Q as CreateLocationRequestRequest, r as DashboardMetrics, d as DecryptedCipherText, j as DeviceFingerprint, D as DeviceFingerprintRequest, k as DeviceTrustResult, h as GeoIPResult, u as GeofenceAction, i as GeofenceEvaluation, v as GeofenceRule, t as GeofenceRuleType, o as GeolocationAlert, G as GeolocationClient, F as GeolocationClientConfig, E as GeolocationConfigResponse, z as GeolocationRecord, J as JurisdictionConfig, Y as LocationCaptureRequest, _ as LocationCaptureResponse, P as LocationRequest, O as LocationRequestChannel, S as LocationRequestFilters, T as LocationRequestListResponse, R as LocationRequestResult, N as LocationRequestStatus, Z as LocationShareInfo, L as LocationVerification, W as ResendLocationRequestRequest, y as UpdateDeviceTrustRequest, x as UpdateGeofenceRuleRequest, U as UpdateJurisdictionRequest, K as UseAlertsOptions, M as UseAlertsResult, H as UseGeolocationOptions, I as UseGeolocationResult, a1 as UseLocationCaptureOptions, a2 as UseLocationCaptureResult, $ as UseLocationRequestsOptions, a0 as UseLocationRequestsResult, V as ValidateCipherTextRequest, f as ValidateCipherTextResponse, g as VerifyIPRequest, X as WiFiNetwork } from './client-C_A7QLcB.js';
7
7
  export { decodeCipherText, generateCipherText, isCipherTextExpired } from './geolocation/index.js';
8
8
  export { RiskProfileClient } from './risk-profile/index.js';
9
9
  export { d as CreateCustomerProfileRequest, d as CreateProfileRequest, C as CustomerProfile, e as CustomerProfileFilters, f as CustomerProfileListResponse, E as EmploymentType, L as LegalForm, P as ProfileDetailsResponse, e as ProfileFilters, f as ProfileListResponse, R as RiskCategory, h as RiskConfiguration, g as RiskDashboardMetrics, a as RiskFactor, b as RiskFactorType, c as RiskHistory, S as ScreeningStatus, U as UpdateProfileRequest } from './types-X5Md_dD_.js';
10
10
  export { ComplianceClient, ComplianceLocationRequestInput, ComplianceLocationRequestResult, CurrencyRates, DEFAULT_CURRENCY_RATES, EventVerificationRequest, EventVerificationResponse, LoginVerificationRequest, LoginVerificationResponse, RegistrationVerificationRequest, RegistrationVerificationResponse, TransactionRiskResult, TransactionVerificationRequest, TransactionVerificationResponse } from './compliance/index.js';
11
- export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
12
- export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.js';
11
+ export { CheckKycStatusRequest, CheckKycStatusResponse, CreateReuseKycSessionRequest, CreateReuseKycSessionResponse, DocumentType, DocumentVerificationRequest, DocumentVerificationResponse, FaceProof, KycAlert, KycAlertFilters, KycAlertListResponse, KycAlertStatus, KycAlertType, KycClient, KycClientConfig, KycCustomerProfile, KycOverview, KycPagination, KycPreferences, KycRequest, KycRequestFilters, KycRequestListResponse, KycStatus, KycTriggerEvent, Name, Proof, ProofDownloadURL, ProofType, RequestAdditionalDocumentsRequest, RequestKycSubmitLinkRequest, RequestKycSubmitLinkResponse, SubmitReuseKycSessionRequest, SubmittedDocument, SupportedDocumentType, UpdateKycAlertRequest, UpdateKycPreferencesRequest, UpdateKycStatusRequest, UseKycAlertsOptions, UseKycAlertsResult, UseKycOverviewOptions, UseKycOverviewResult, UseKycPreferencesResult, UseKycRequestsOptions, UseKycRequestsResult, UseKycSubmissionOptions, UseKycSubmissionResult } from './kyc/index.js';
12
+ export { CTPFormStatus, CTPTINStatus, ComplianceStats, ComplianceStatsFilters, CustomerTaxProfileRecord, CustomerType, DocumentRequestBreakdown, EmailSendingMethod, EnableWithholdingInput, EnableWithholdingResponse, GlobalTaxRule, ReRequestTaxFormInput, RunRemindersResponse, TINCheckResult, TINStatusBreakdown, TaxClient, TaxClientConfig, TaxRuleApprovalStatus, TaxRuleVersion, TaxRules, TransactionAction, TreatyCountry, TreatyCountryListResponse, UpdateReminderConfigInput, UpdateTaxRulesInput, WFormCountBreakdown, WFormStatusBreakdown } from './tax/index.js';
13
+ export { FraudClient, FraudDecision, FraudEventType, FraudReactionType, FraudScoreRequest, FraudScoreResponseData, FraudScoreResponseEnvelope, FraudScoreResponseMetadata, TenantAction } from './fraud/index.js';
13
14
 
14
15
  /**
15
16
  * Error hierarchy for Vesant SDK
@@ -66,108 +67,7 @@ declare const noopLogger: Logger;
66
67
  /**
67
68
  * Single source of truth for the SDK version.
68
69
  */
69
- declare const SDK_VERSION = "1.6.1";
70
-
71
- /**
72
- * TypeScript types for the Transaction Monitoring (TM) Service
73
- *
74
- * These definitions mirror the Go structs used in
75
- * services/transaction-monitoring-service/internal/domain/
76
- *
77
- * Only a subset of fields is included; additional helpers may be
78
- * added as the SDK grows.
79
- */
80
-
81
- /**
82
- * Supported transaction types.
83
- * See domain/transaction.go TransactionType constants.
84
- */
85
- type TransactionType = "deposit" | "withdrawal" | "transfer" | "payment" | "refund" | "fee" | "adjustment";
86
- /**
87
- * Modes or channels by which the transaction was carried out.
88
- */
89
- type TransactionMode = "fiat" | "crypto" | "bank_transfer" | "card" | "wallet";
90
- /**
91
- * Current status of the transaction record.
92
- */
93
- type TransactionStatus = "pending" | "processing" | "completed" | "failed" | "cancelled" | "reversed";
94
- /**
95
- * Payload sent when creating a new transaction via the TM API.
96
- *
97
- * Numeric decimal types in Go are represented as strings in the SDK to avoid
98
- * precision loss in JavaScript. Dates are ISO strings.
99
- */
100
- interface TransactionCreateDTO {
101
- tx_id: string;
102
- reference: string;
103
- tenant_id: string;
104
- customer_id: string;
105
- transaction_type: TransactionType;
106
- transaction_mode: TransactionMode;
107
- amount: string;
108
- currency: string;
109
- status: TransactionStatus;
110
- source_account: string;
111
- destination_account: string;
112
- country: string;
113
- ip_address: string;
114
- metadata: Record<string, any>;
115
- benificiary_comment: string;
116
- transaction_date: Timestamp;
117
- }
118
- /**
119
- * Representation of a transaction record returned from the TM service.
120
- */
121
- type WithholdingType = "none" | "backup_us" | "backup_non_us" | "treaty";
122
- type JSONB = Record<string, any>;
123
- type Transaction = {
124
- id: string;
125
- tx_id: string;
126
- reference: string;
127
- tenant_id: string;
128
- customer_id: string;
129
- transaction_type: TransactionType;
130
- transaction_mode: TransactionMode;
131
- amount: string;
132
- withheld_amount: string;
133
- released_amount: string;
134
- withholding_rate: number;
135
- withholding_reason?: string;
136
- withholding_type?: WithholdingType;
137
- tax_year: number;
138
- currency: string;
139
- status: TransactionStatus;
140
- source_account?: string;
141
- destination_account?: string;
142
- country?: string;
143
- ip_address?: string;
144
- risk_score: number;
145
- metadata?: JSONB;
146
- benificiary_comment?: string;
147
- transaction_date: string;
148
- created_at: string;
149
- updated_at: string;
150
- deleted_at?: string | null;
151
- };
152
- /**
153
- * Configuration object consumed by {@link TransactionClient}.
154
- * Currently identical to {@link import('../core/types').BaseClientConfig},
155
- * exported here for future extensibility.
156
- */
157
- interface TransactionClientConfig {
158
- baseURL: string;
159
- tenantId: string;
160
- apiKey?: string;
161
- headers?: Record<string, string>;
162
- timeout?: number;
163
- retries?: number;
164
- debug?: boolean;
165
- environment?: 'production' | 'sandbox';
166
- }
167
- type TransactionCreateResponse = {
168
- transaction: Transaction;
169
- message: string;
170
- };
70
+ declare const SDK_VERSION = "1.6.2";
171
71
 
172
72
  /**
173
73
  * TransactionClient - TypeScript SDK for the Transaction Monitoring service
@@ -226,4 +126,4 @@ declare class TransactionClient extends BaseClient {
226
126
  getTransaction(transactionId: string, requestOptions?: RequestOptions): Promise<void>;
227
127
  }
228
128
 
229
- export { AuthenticationError, BaseClient, BaseClientConfig, CGSError, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceError, type JSONB, Logger, NetworkError, RateLimitError, RequestOptions, SDK_VERSION, ServiceUnavailableError, TimeoutError, Timestamp, type Transaction, TransactionClient, type TransactionClientConfig, type TransactionCreateDTO, type TransactionCreateResponse, type TransactionMode, type TransactionStatus, type TransactionType, ValidationError, VesantError, type WithholdingType, createConsoleLogger, noopLogger };
129
+ export { AuthenticationError, BaseClient, BaseClientConfig, CGSError, CircuitBreakerOpenError, ComplianceBlockedError, ComplianceError, Logger, NetworkError, RateLimitError, RequestOptions, SDK_VERSION, ServiceUnavailableError, TimeoutError, TransactionClient, TransactionCreateDTO, TransactionCreateResponse, ValidationError, VesantError, createConsoleLogger, noopLogger };