vesant-sdk 1.2.0 → 1.3.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-BWp5FI3x.d.ts → client-B6fUFAUM.d.mts} +2 -1
- package/dist/{client-BIfLMfuC.d.mts → client-DoczGA6L.d.ts} +2 -1
- package/dist/client-DzElM7u-.d.mts +238 -0
- package/dist/client-DzElM7u-.d.ts +238 -0
- package/dist/compliance/index.d.mts +5 -4
- package/dist/compliance/index.d.ts +5 -4
- package/dist/compliance/index.js +306 -98
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +306 -98
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.d.mts +100 -0
- package/dist/decisions/index.d.ts +100 -0
- package/dist/decisions/index.js +607 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/decisions/index.mjs +605 -0
- package/dist/decisions/index.mjs.map +1 -0
- package/dist/geolocation/index.d.mts +4 -3
- package/dist/geolocation/index.d.ts +4 -3
- package/dist/geolocation/index.js +306 -98
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +306 -98
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +676 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +667 -91
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +4 -3
- package/dist/kyc/core.d.ts +4 -3
- package/dist/kyc/core.js +284 -29
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +284 -29
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +46 -3
- package/dist/kyc/index.d.ts +46 -3
- package/dist/kyc/index.js +284 -29
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +284 -29
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +9 -5
- package/dist/react.d.ts +9 -5
- package/dist/react.js +422 -99
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +322 -4
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +4 -4
- package/dist/risk-profile/index.d.ts +4 -4
- package/dist/risk-profile/index.js +249 -29
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +249 -29
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.d.mts +96 -0
- package/dist/scores/index.d.ts +96 -0
- package/dist/scores/index.js +594 -0
- package/dist/scores/index.js.map +1 -0
- package/dist/scores/index.mjs +591 -0
- package/dist/scores/index.mjs.map +1 -0
- package/dist/{types-DfHLp_tz.d.ts → types-DLC7Sfy5.d.ts} +1 -1
- package/dist/types-DZHongaK.d.mts +61 -0
- package/dist/types-DZHongaK.d.ts +61 -0
- package/dist/{types-DKCQN4C5.d.mts → types-jaLuzruy.d.mts} +1 -1
- package/dist/webhooks/index.d.mts +176 -0
- package/dist/webhooks/index.d.ts +176 -0
- package/dist/webhooks/index.js +193 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/index.mjs +188 -0
- package/dist/webhooks/index.mjs.map +1 -0
- package/package.json +25 -2
- package/dist/types-BpKxSXGF.d.mts +0 -177
- package/dist/types-BpKxSXGF.d.ts +0 -177
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { B as BaseClient, R as RequestOptions } from '../client-DzElM7u-.mjs';
|
|
2
|
+
import { U as UUID, T as Timestamp } from '../types-DZHongaK.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Decision and Label type definitions for the Decisions module.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type DecisionType = '$block' | '$approve' | '$manual_review';
|
|
9
|
+
type DecisionSource = 'automated' | 'manual' | 'rule_engine' | 'ml_model';
|
|
10
|
+
type DecisionCategory = 'registration' | 'login' | 'transaction' | 'account' | 'payment';
|
|
11
|
+
interface Decision {
|
|
12
|
+
id: UUID;
|
|
13
|
+
customer_id: string;
|
|
14
|
+
decision_type: DecisionType;
|
|
15
|
+
category: DecisionCategory;
|
|
16
|
+
source: DecisionSource;
|
|
17
|
+
risk_score?: number;
|
|
18
|
+
reasons?: string[];
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
created_at: Timestamp;
|
|
21
|
+
updated_at: Timestamp;
|
|
22
|
+
}
|
|
23
|
+
interface RecordDecisionRequest {
|
|
24
|
+
customer_id: string;
|
|
25
|
+
decision_type: DecisionType;
|
|
26
|
+
category: DecisionCategory;
|
|
27
|
+
source: DecisionSource;
|
|
28
|
+
risk_score?: number;
|
|
29
|
+
reasons?: string[];
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
interface DecisionFilters {
|
|
33
|
+
category?: DecisionCategory;
|
|
34
|
+
decision_type?: DecisionType;
|
|
35
|
+
source?: DecisionSource;
|
|
36
|
+
from_date?: string;
|
|
37
|
+
to_date?: string;
|
|
38
|
+
page?: number;
|
|
39
|
+
page_size?: number;
|
|
40
|
+
}
|
|
41
|
+
interface DecisionListResponse {
|
|
42
|
+
data: Decision[];
|
|
43
|
+
total: number;
|
|
44
|
+
page: number;
|
|
45
|
+
page_size: number;
|
|
46
|
+
total_pages: number;
|
|
47
|
+
}
|
|
48
|
+
type LabelType = '$fraud' | '$legitimate' | '$chargeback' | '$abuse' | '$account_takeover' | '$money_laundering';
|
|
49
|
+
interface Label {
|
|
50
|
+
id: UUID;
|
|
51
|
+
customer_id: string;
|
|
52
|
+
label_type: LabelType;
|
|
53
|
+
reasons?: string[];
|
|
54
|
+
metadata?: Record<string, unknown>;
|
|
55
|
+
created_at: Timestamp;
|
|
56
|
+
updated_at: Timestamp;
|
|
57
|
+
}
|
|
58
|
+
interface ApplyLabelRequest {
|
|
59
|
+
customer_id: string;
|
|
60
|
+
label_type: LabelType;
|
|
61
|
+
reasons?: string[];
|
|
62
|
+
metadata?: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
interface LabelListResponse {
|
|
65
|
+
data: Label[];
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Decisions and Labels API client.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
declare class DecisionsClient extends BaseClient {
|
|
74
|
+
/**
|
|
75
|
+
* Record a new decision for a customer.
|
|
76
|
+
*/
|
|
77
|
+
recordDecision(request: RecordDecisionRequest, requestOptions?: RequestOptions): Promise<Decision>;
|
|
78
|
+
/**
|
|
79
|
+
* Get decisions for a customer.
|
|
80
|
+
*/
|
|
81
|
+
getDecisions(customerId: string, filters?: DecisionFilters, requestOptions?: RequestOptions): Promise<DecisionListResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Get a specific decision by ID.
|
|
84
|
+
*/
|
|
85
|
+
getDecision(decisionId: string, requestOptions?: RequestOptions): Promise<Decision>;
|
|
86
|
+
/**
|
|
87
|
+
* Apply a label to a customer.
|
|
88
|
+
*/
|
|
89
|
+
applyLabel(request: ApplyLabelRequest, requestOptions?: RequestOptions): Promise<Label>;
|
|
90
|
+
/**
|
|
91
|
+
* Remove a label from a customer.
|
|
92
|
+
*/
|
|
93
|
+
removeLabel(customerId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Get labels for a customer.
|
|
96
|
+
*/
|
|
97
|
+
getLabels(customerId: string, requestOptions?: RequestOptions): Promise<LabelListResponse>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { type ApplyLabelRequest, type Decision, type DecisionCategory, type DecisionFilters, type DecisionListResponse, type DecisionSource, type DecisionType, DecisionsClient, type Label, type LabelListResponse, type LabelType, type RecordDecisionRequest };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { B as BaseClient, R as RequestOptions } from '../client-DzElM7u-.js';
|
|
2
|
+
import { U as UUID, T as Timestamp } from '../types-DZHongaK.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Decision and Label type definitions for the Decisions module.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type DecisionType = '$block' | '$approve' | '$manual_review';
|
|
9
|
+
type DecisionSource = 'automated' | 'manual' | 'rule_engine' | 'ml_model';
|
|
10
|
+
type DecisionCategory = 'registration' | 'login' | 'transaction' | 'account' | 'payment';
|
|
11
|
+
interface Decision {
|
|
12
|
+
id: UUID;
|
|
13
|
+
customer_id: string;
|
|
14
|
+
decision_type: DecisionType;
|
|
15
|
+
category: DecisionCategory;
|
|
16
|
+
source: DecisionSource;
|
|
17
|
+
risk_score?: number;
|
|
18
|
+
reasons?: string[];
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
created_at: Timestamp;
|
|
21
|
+
updated_at: Timestamp;
|
|
22
|
+
}
|
|
23
|
+
interface RecordDecisionRequest {
|
|
24
|
+
customer_id: string;
|
|
25
|
+
decision_type: DecisionType;
|
|
26
|
+
category: DecisionCategory;
|
|
27
|
+
source: DecisionSource;
|
|
28
|
+
risk_score?: number;
|
|
29
|
+
reasons?: string[];
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
interface DecisionFilters {
|
|
33
|
+
category?: DecisionCategory;
|
|
34
|
+
decision_type?: DecisionType;
|
|
35
|
+
source?: DecisionSource;
|
|
36
|
+
from_date?: string;
|
|
37
|
+
to_date?: string;
|
|
38
|
+
page?: number;
|
|
39
|
+
page_size?: number;
|
|
40
|
+
}
|
|
41
|
+
interface DecisionListResponse {
|
|
42
|
+
data: Decision[];
|
|
43
|
+
total: number;
|
|
44
|
+
page: number;
|
|
45
|
+
page_size: number;
|
|
46
|
+
total_pages: number;
|
|
47
|
+
}
|
|
48
|
+
type LabelType = '$fraud' | '$legitimate' | '$chargeback' | '$abuse' | '$account_takeover' | '$money_laundering';
|
|
49
|
+
interface Label {
|
|
50
|
+
id: UUID;
|
|
51
|
+
customer_id: string;
|
|
52
|
+
label_type: LabelType;
|
|
53
|
+
reasons?: string[];
|
|
54
|
+
metadata?: Record<string, unknown>;
|
|
55
|
+
created_at: Timestamp;
|
|
56
|
+
updated_at: Timestamp;
|
|
57
|
+
}
|
|
58
|
+
interface ApplyLabelRequest {
|
|
59
|
+
customer_id: string;
|
|
60
|
+
label_type: LabelType;
|
|
61
|
+
reasons?: string[];
|
|
62
|
+
metadata?: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
interface LabelListResponse {
|
|
65
|
+
data: Label[];
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Decisions and Labels API client.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
declare class DecisionsClient extends BaseClient {
|
|
74
|
+
/**
|
|
75
|
+
* Record a new decision for a customer.
|
|
76
|
+
*/
|
|
77
|
+
recordDecision(request: RecordDecisionRequest, requestOptions?: RequestOptions): Promise<Decision>;
|
|
78
|
+
/**
|
|
79
|
+
* Get decisions for a customer.
|
|
80
|
+
*/
|
|
81
|
+
getDecisions(customerId: string, filters?: DecisionFilters, requestOptions?: RequestOptions): Promise<DecisionListResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Get a specific decision by ID.
|
|
84
|
+
*/
|
|
85
|
+
getDecision(decisionId: string, requestOptions?: RequestOptions): Promise<Decision>;
|
|
86
|
+
/**
|
|
87
|
+
* Apply a label to a customer.
|
|
88
|
+
*/
|
|
89
|
+
applyLabel(request: ApplyLabelRequest, requestOptions?: RequestOptions): Promise<Label>;
|
|
90
|
+
/**
|
|
91
|
+
* Remove a label from a customer.
|
|
92
|
+
*/
|
|
93
|
+
removeLabel(customerId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Get labels for a customer.
|
|
96
|
+
*/
|
|
97
|
+
getLabels(customerId: string, requestOptions?: RequestOptions): Promise<LabelListResponse>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { type ApplyLabelRequest, type Decision, type DecisionCategory, type DecisionFilters, type DecisionListResponse, type DecisionSource, type DecisionType, DecisionsClient, type Label, type LabelListResponse, type LabelType, type RecordDecisionRequest };
|