vesant-sdk 2.0.0-dev.76771da → 2.0.0-dev.9578c07
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-CIEa7xYG.d.mts → client-BwkGrRW9.d.mts} +1 -1
- package/dist/{client-BJ87_Vv5.d.ts → client-CqSx0lAG.d.ts} +3 -3
- package/dist/{client-IAOGCBfm.d.mts → client-Dq0NMaXT.d.mts} +3 -3
- package/dist/{client-Bvp-f05-.d.ts → client-DvobLmsc.d.ts} +1 -1
- package/dist/compliance/index.d.mts +4 -4
- package/dist/compliance/index.d.ts +4 -4
- package/dist/decisions/index.d.mts +1 -1
- package/dist/decisions/index.d.ts +1 -1
- package/dist/geolocation/index.d.mts +3 -3
- package/dist/geolocation/index.d.ts +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +54 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -10
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +3 -3
- package/dist/kyc/core.d.ts +3 -3
- package/dist/kyc/core.js +54 -10
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +54 -10
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +253 -21
- package/dist/kyc/index.d.ts +253 -21
- package/dist/kyc/index.js +54 -10
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +54 -10
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +41 -6
- package/dist/react.d.ts +41 -6
- package/dist/react.js +603 -272
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +603 -272
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +3 -3
- package/dist/risk-profile/index.d.ts +3 -3
- package/dist/scores/index.d.mts +1 -1
- package/dist/scores/index.d.ts +1 -1
- package/dist/{types-C4Zx0d_u.d.mts → types-BOFaMQxI.d.mts} +1 -1
- package/dist/{types-QUCWam16.d.mts → types-CBQRNL-l.d.mts} +10 -3
- package/dist/{types-QUCWam16.d.ts → types-CBQRNL-l.d.ts} +10 -3
- package/dist/{types-2utj53GK.d.ts → types-UGyDl1fd.d.ts} +1 -1
- package/dist/webhooks/index.d.mts +12 -4
- package/dist/webhooks/index.d.ts +12 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as BaseClient, a as BaseClientConfig, R as RequestOptions } from '../client-BolQlL5e.mjs';
|
|
2
|
-
import { a as CreateProfileRequest, C as CustomerProfile, U as UpdateProfileRequest } from '../types-
|
|
3
|
-
export { E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus } from '../types-
|
|
4
|
-
export { E as EntityType } from '../types-
|
|
2
|
+
import { a as CreateProfileRequest, C as CustomerProfile, U as UpdateProfileRequest } from '../types-BOFaMQxI.mjs';
|
|
3
|
+
export { E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus } from '../types-BOFaMQxI.mjs';
|
|
4
|
+
export { E as EntityType } from '../types-CBQRNL-l.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* RiskProfileClient - Customer Risk Profile Management
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as BaseClient, a as BaseClientConfig, R as RequestOptions } from '../client-BolQlL5e.js';
|
|
2
|
-
import { a as CreateProfileRequest, C as CustomerProfile, U as UpdateProfileRequest } from '../types-
|
|
3
|
-
export { E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus } from '../types-
|
|
4
|
-
export { E as EntityType } from '../types-
|
|
2
|
+
import { a as CreateProfileRequest, C as CustomerProfile, U as UpdateProfileRequest } from '../types-UGyDl1fd.js';
|
|
3
|
+
export { E as EmploymentType, L as LegalForm, c as ProfileDetailsResponse, P as ProfileFilters, b as ProfileListResponse, R as RiskCategory, d as RiskConfiguration, e as RiskDashboardMetrics, f as RiskFactor, g as RiskFactorType, h as RiskHistory, S as ScreeningStatus } from '../types-UGyDl1fd.js';
|
|
4
|
+
export { E as EntityType } from '../types-CBQRNL-l.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* RiskProfileClient - Customer Risk Profile Management
|
package/dist/scores/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseClient, R as RequestOptions } from '../client-BolQlL5e.mjs';
|
|
2
|
-
import { R as RiskLevel, T as Timestamp, U as UUID } from '../types-
|
|
2
|
+
import { R as RiskLevel, T as Timestamp, U as UUID } from '../types-CBQRNL-l.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Score and Workflow type definitions.
|
package/dist/scores/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseClient, R as RequestOptions } from '../client-BolQlL5e.js';
|
|
2
|
-
import { R as RiskLevel, T as Timestamp, U as UUID } from '../types-
|
|
2
|
+
import { R as RiskLevel, T as Timestamp, U as UUID } from '../types-CBQRNL-l.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Score and Workflow type definitions.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityType, C as CustomerStatus, L as LocationCompliance, U as UUID, T as Timestamp, P as PaginationParams, a as PaginatedResponse } from './types-
|
|
1
|
+
import { E as EntityType, C as CustomerStatus, L as LocationCompliance, U as UUID, T as Timestamp, P as PaginationParams, a as PaginatedResponse } from './types-CBQRNL-l.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Type definitions for Vesant Risk Profile Service
|
|
@@ -57,11 +57,18 @@ type LocationCompliance = 'compliant' | 'non-compliant' | 'unknown';
|
|
|
57
57
|
* Verification event types
|
|
58
58
|
*/
|
|
59
59
|
type VerificationEventType = 'registration' | 'login' | 'transaction' | 'withdrawal' | 'deposit' | 'api_access' | 'profile_update';
|
|
60
|
-
/**
|
|
61
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Structured reason with a machine-readable code and a human-readable message.
|
|
62
|
+
* Shared across compliance signals — compliance block reasons and KYC
|
|
63
|
+
* declines/warnings all use this shape.
|
|
64
|
+
*/
|
|
65
|
+
interface Reason {
|
|
62
66
|
code: string;
|
|
63
67
|
message: string;
|
|
64
68
|
metadata?: Record<string, unknown>;
|
|
65
69
|
}
|
|
70
|
+
/** Domain alias of {@link Reason}, used for compliance block reasons. Both names
|
|
71
|
+
* refer to the same structure; use whichever reads best in context. */
|
|
72
|
+
type BlockReason = Reason;
|
|
66
73
|
|
|
67
|
-
export type { APIResponse as A, BlockReason as B, CustomerStatus as C, EntityType as E, LocationCompliance as L, PaginationParams as P, RiskLevel as R, SuccessResponse as S, Timestamp as T, UUID as U, VerificationEventType as V, PaginatedResponse as a, ErrorResponse as b,
|
|
74
|
+
export type { APIResponse as A, BlockReason as B, CustomerStatus as C, EntityType as E, LocationCompliance as L, PaginationParams as P, RiskLevel as R, SuccessResponse as S, Timestamp as T, UUID as U, VerificationEventType as V, PaginatedResponse as a, ErrorResponse as b, Reason as c, Result as d };
|
|
@@ -57,11 +57,18 @@ type LocationCompliance = 'compliant' | 'non-compliant' | 'unknown';
|
|
|
57
57
|
* Verification event types
|
|
58
58
|
*/
|
|
59
59
|
type VerificationEventType = 'registration' | 'login' | 'transaction' | 'withdrawal' | 'deposit' | 'api_access' | 'profile_update';
|
|
60
|
-
/**
|
|
61
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Structured reason with a machine-readable code and a human-readable message.
|
|
62
|
+
* Shared across compliance signals — compliance block reasons and KYC
|
|
63
|
+
* declines/warnings all use this shape.
|
|
64
|
+
*/
|
|
65
|
+
interface Reason {
|
|
62
66
|
code: string;
|
|
63
67
|
message: string;
|
|
64
68
|
metadata?: Record<string, unknown>;
|
|
65
69
|
}
|
|
70
|
+
/** Domain alias of {@link Reason}, used for compliance block reasons. Both names
|
|
71
|
+
* refer to the same structure; use whichever reads best in context. */
|
|
72
|
+
type BlockReason = Reason;
|
|
66
73
|
|
|
67
|
-
export type { APIResponse as A, BlockReason as B, CustomerStatus as C, EntityType as E, LocationCompliance as L, PaginationParams as P, RiskLevel as R, SuccessResponse as S, Timestamp as T, UUID as U, VerificationEventType as V, PaginatedResponse as a, ErrorResponse as b,
|
|
74
|
+
export type { APIResponse as A, BlockReason as B, CustomerStatus as C, EntityType as E, LocationCompliance as L, PaginationParams as P, RiskLevel as R, SuccessResponse as S, Timestamp as T, UUID as U, VerificationEventType as V, PaginatedResponse as a, ErrorResponse as b, Reason as c, Result as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityType, C as CustomerStatus, L as LocationCompliance, U as UUID, T as Timestamp, P as PaginationParams, a as PaginatedResponse } from './types-
|
|
1
|
+
import { E as EntityType, C as CustomerStatus, L as LocationCompliance, U as UUID, T as Timestamp, P as PaginationParams, a as PaginatedResponse } from './types-CBQRNL-l.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Type definitions for Vesant Risk Profile Service
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UUID, T as Timestamp, R as RiskLevel } from '../types-
|
|
1
|
+
import { U as UUID, T as Timestamp, R as RiskLevel } from '../types-CBQRNL-l.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Webhook signature verification utilities.
|
|
@@ -21,7 +21,7 @@ declare function verifyWebhookSignature(payload: string, signature: string, secr
|
|
|
21
21
|
* Webhook event types and payload definitions.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
type WebhookEventType = 'risk.score.changed' | 'risk.category.changed' | 'profile.created' | 'profile.updated' | 'geolocation.verified' | 'geolocation.blocked' | 'kyc.status.changed' | 'kyc.approved' | 'kyc.declined' | 'decision.recorded' | 'label.applied' | 'location_request.completed' | 'compliance.check.failed';
|
|
24
|
+
type WebhookEventType = 'risk.score.changed' | 'risk.category.changed' | 'profile.created' | 'profile.updated' | 'geolocation.verified' | 'geolocation.blocked' | 'kyc.status.changed' | 'kyc.approved' | 'kyc.declined' | 'decision.recorded' | 'label.applied' | 'location_request.completed' | 'compliance.check.failed' | 'tax.reminder.sent';
|
|
25
25
|
interface BaseWebhookEvent<T extends WebhookEventType = WebhookEventType, P = unknown> {
|
|
26
26
|
id: UUID;
|
|
27
27
|
type: T;
|
|
@@ -92,7 +92,15 @@ interface ComplianceCheckFailedPayload {
|
|
|
92
92
|
reasons: string[];
|
|
93
93
|
severity: string;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface TaxReminderSentPayload {
|
|
96
|
+
/** W-form the reminder is for (e.g. "W-9", "W-8BEN", "W-8BEN-E") */
|
|
97
|
+
form_type: string;
|
|
98
|
+
/** Sequential count of reminders sent in the current solicitation cycle */
|
|
99
|
+
reminder_count: number;
|
|
100
|
+
/** Configured maximum reminders per cycle (reminder_max_count) */
|
|
101
|
+
max_count: number;
|
|
102
|
+
}
|
|
103
|
+
type WebhookEvent = BaseWebhookEvent<'risk.score.changed', RiskScoreChangedPayload> | BaseWebhookEvent<'risk.category.changed', RiskCategoryChangedPayload> | BaseWebhookEvent<'profile.created', ProfileCreatedPayload> | BaseWebhookEvent<'profile.updated', ProfileUpdatedPayload> | BaseWebhookEvent<'geolocation.verified', GeolocationVerifiedPayload> | BaseWebhookEvent<'geolocation.blocked', GeolocationBlockedPayload> | BaseWebhookEvent<'kyc.status.changed', KycStatusChangedPayload> | BaseWebhookEvent<'kyc.approved', KycStatusChangedPayload> | BaseWebhookEvent<'kyc.declined', KycStatusChangedPayload> | BaseWebhookEvent<'decision.recorded', DecisionRecordedPayload> | BaseWebhookEvent<'label.applied', LabelAppliedPayload> | BaseWebhookEvent<'location_request.completed', LocationRequestCompletedPayload> | BaseWebhookEvent<'compliance.check.failed', ComplianceCheckFailedPayload> | BaseWebhookEvent<'tax.reminder.sent', TaxReminderSentPayload>;
|
|
96
104
|
interface WebhookHandlerConfig {
|
|
97
105
|
/** Webhook signing secret for signature verification */
|
|
98
106
|
secret: string;
|
|
@@ -178,4 +186,4 @@ declare function createWebhookMiddleware(options: WebhookMiddlewareOptions): (re
|
|
|
178
186
|
*/
|
|
179
187
|
declare function createNextWebhookHandler(options: WebhookMiddlewareOptions): (request: Request) => Promise<Response>;
|
|
180
188
|
|
|
181
|
-
export { type BaseWebhookEvent, type ComplianceCheckFailedPayload, type DecisionRecordedPayload, type GeolocationBlockedPayload, type GeolocationVerifiedPayload, type KycStatusChangedPayload, type LabelAppliedPayload, type LocationRequestCompletedPayload, type ProfileCreatedPayload, type ProfileUpdatedPayload, type RiskCategoryChangedPayload, type RiskScoreChangedPayload, type WebhookAnyHandler, type WebhookEvent, type WebhookEventHandler, type WebhookEventType, WebhookHandler, type WebhookHandlerConfig, type WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature };
|
|
189
|
+
export { type BaseWebhookEvent, type ComplianceCheckFailedPayload, type DecisionRecordedPayload, type GeolocationBlockedPayload, type GeolocationVerifiedPayload, type KycStatusChangedPayload, type LabelAppliedPayload, type LocationRequestCompletedPayload, type ProfileCreatedPayload, type ProfileUpdatedPayload, type RiskCategoryChangedPayload, type RiskScoreChangedPayload, type TaxReminderSentPayload, type WebhookAnyHandler, type WebhookEvent, type WebhookEventHandler, type WebhookEventType, WebhookHandler, type WebhookHandlerConfig, type WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature };
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UUID, T as Timestamp, R as RiskLevel } from '../types-
|
|
1
|
+
import { U as UUID, T as Timestamp, R as RiskLevel } from '../types-CBQRNL-l.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Webhook signature verification utilities.
|
|
@@ -21,7 +21,7 @@ declare function verifyWebhookSignature(payload: string, signature: string, secr
|
|
|
21
21
|
* Webhook event types and payload definitions.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
type WebhookEventType = 'risk.score.changed' | 'risk.category.changed' | 'profile.created' | 'profile.updated' | 'geolocation.verified' | 'geolocation.blocked' | 'kyc.status.changed' | 'kyc.approved' | 'kyc.declined' | 'decision.recorded' | 'label.applied' | 'location_request.completed' | 'compliance.check.failed';
|
|
24
|
+
type WebhookEventType = 'risk.score.changed' | 'risk.category.changed' | 'profile.created' | 'profile.updated' | 'geolocation.verified' | 'geolocation.blocked' | 'kyc.status.changed' | 'kyc.approved' | 'kyc.declined' | 'decision.recorded' | 'label.applied' | 'location_request.completed' | 'compliance.check.failed' | 'tax.reminder.sent';
|
|
25
25
|
interface BaseWebhookEvent<T extends WebhookEventType = WebhookEventType, P = unknown> {
|
|
26
26
|
id: UUID;
|
|
27
27
|
type: T;
|
|
@@ -92,7 +92,15 @@ interface ComplianceCheckFailedPayload {
|
|
|
92
92
|
reasons: string[];
|
|
93
93
|
severity: string;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface TaxReminderSentPayload {
|
|
96
|
+
/** W-form the reminder is for (e.g. "W-9", "W-8BEN", "W-8BEN-E") */
|
|
97
|
+
form_type: string;
|
|
98
|
+
/** Sequential count of reminders sent in the current solicitation cycle */
|
|
99
|
+
reminder_count: number;
|
|
100
|
+
/** Configured maximum reminders per cycle (reminder_max_count) */
|
|
101
|
+
max_count: number;
|
|
102
|
+
}
|
|
103
|
+
type WebhookEvent = BaseWebhookEvent<'risk.score.changed', RiskScoreChangedPayload> | BaseWebhookEvent<'risk.category.changed', RiskCategoryChangedPayload> | BaseWebhookEvent<'profile.created', ProfileCreatedPayload> | BaseWebhookEvent<'profile.updated', ProfileUpdatedPayload> | BaseWebhookEvent<'geolocation.verified', GeolocationVerifiedPayload> | BaseWebhookEvent<'geolocation.blocked', GeolocationBlockedPayload> | BaseWebhookEvent<'kyc.status.changed', KycStatusChangedPayload> | BaseWebhookEvent<'kyc.approved', KycStatusChangedPayload> | BaseWebhookEvent<'kyc.declined', KycStatusChangedPayload> | BaseWebhookEvent<'decision.recorded', DecisionRecordedPayload> | BaseWebhookEvent<'label.applied', LabelAppliedPayload> | BaseWebhookEvent<'location_request.completed', LocationRequestCompletedPayload> | BaseWebhookEvent<'compliance.check.failed', ComplianceCheckFailedPayload> | BaseWebhookEvent<'tax.reminder.sent', TaxReminderSentPayload>;
|
|
96
104
|
interface WebhookHandlerConfig {
|
|
97
105
|
/** Webhook signing secret for signature verification */
|
|
98
106
|
secret: string;
|
|
@@ -178,4 +186,4 @@ declare function createWebhookMiddleware(options: WebhookMiddlewareOptions): (re
|
|
|
178
186
|
*/
|
|
179
187
|
declare function createNextWebhookHandler(options: WebhookMiddlewareOptions): (request: Request) => Promise<Response>;
|
|
180
188
|
|
|
181
|
-
export { type BaseWebhookEvent, type ComplianceCheckFailedPayload, type DecisionRecordedPayload, type GeolocationBlockedPayload, type GeolocationVerifiedPayload, type KycStatusChangedPayload, type LabelAppliedPayload, type LocationRequestCompletedPayload, type ProfileCreatedPayload, type ProfileUpdatedPayload, type RiskCategoryChangedPayload, type RiskScoreChangedPayload, type WebhookAnyHandler, type WebhookEvent, type WebhookEventHandler, type WebhookEventType, WebhookHandler, type WebhookHandlerConfig, type WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature };
|
|
189
|
+
export { type BaseWebhookEvent, type ComplianceCheckFailedPayload, type DecisionRecordedPayload, type GeolocationBlockedPayload, type GeolocationVerifiedPayload, type KycStatusChangedPayload, type LabelAppliedPayload, type LocationRequestCompletedPayload, type ProfileCreatedPayload, type ProfileUpdatedPayload, type RiskCategoryChangedPayload, type RiskScoreChangedPayload, type TaxReminderSentPayload, type WebhookAnyHandler, type WebhookEvent, type WebhookEventHandler, type WebhookEventType, WebhookHandler, type WebhookHandlerConfig, type WebhookMiddlewareOptions, createNextWebhookHandler, createWebhookMiddleware, verifyWebhookSignature };
|