@vesant-sdk/fraud 0.1.3-next.ec7157c → 0.2.0-dev.03a9c84
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/README.md +24 -21
- package/dist/index.d.mts +78 -81
- package/dist/index.d.ts +78 -81
- package/dist/index.js +167 -212
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -198
- package/dist/index.mjs.map +1 -1
- package/package.json +50 -50
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { RiskLevel, Timestamp, BaseClient, RequestOptions } from '@vesant-sdk/core';
|
|
1
|
+
import { PaymentTypeValue, RiskLevel, Timestamp, BaseClient, RequestOptions } from '@vesant-sdk/core';
|
|
2
|
+
export { normalizePaymentType } from '@vesant-sdk/core';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Fraud event type unions aligned with fraud-service support matrix.
|
|
5
6
|
*/
|
|
6
|
-
/** Events that run
|
|
7
|
+
/** Events that run engine scoring + rule evaluation */
|
|
7
8
|
type ScoredFraudEventType = '$create_account' | '$create_order' | '$login' | '$logout' | '$update_account' | '$update_password' | '$transaction' | '$wager';
|
|
8
9
|
/** Feedback-only; no meaningful fraud score in response */
|
|
9
10
|
type ChargebackFraudEventType = '$chargeback';
|
|
@@ -26,10 +27,11 @@ declare function isPlannedFraudEventType(eventType: string): eventType is (typeo
|
|
|
26
27
|
declare function isSupportedFraudEventType(eventType: string): eventType is SupportedFraudEventType;
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* Enum types and const objects for fraud scoring requests.
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
-
declare const
|
|
32
|
+
|
|
33
|
+
declare const TransactionTypeValues: readonly ["$sale", "$authorize", "$capture", "$void", "$refund", "$deposit", "$withdrawal", "$transfer", "$buy", "$sell", "$send", "$receive"];
|
|
34
|
+
type TransactionType = '$sale' | '$authorize' | '$capture' | '$void' | '$refund' | '$deposit' | '$withdrawal' | '$transfer' | '$buy' | '$sell' | '$send' | '$receive';
|
|
33
35
|
declare const TransactionType: {
|
|
34
36
|
readonly Sale: "$sale";
|
|
35
37
|
readonly Authorize: "$authorize";
|
|
@@ -44,8 +46,8 @@ declare const TransactionType: {
|
|
|
44
46
|
readonly Send: "$send";
|
|
45
47
|
readonly Receive: "$receive";
|
|
46
48
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
declare const ChargebackStateValues: readonly ["$received", "$accepted", "$disputed", "$won", "$lost"];
|
|
50
|
+
type ChargebackState = '$received' | '$accepted' | '$disputed' | '$won' | '$lost';
|
|
49
51
|
declare const ChargebackState: {
|
|
50
52
|
readonly Received: "$received";
|
|
51
53
|
readonly Accepted: "$accepted";
|
|
@@ -53,8 +55,8 @@ declare const ChargebackState: {
|
|
|
53
55
|
readonly Won: "$won";
|
|
54
56
|
readonly Lost: "$lost";
|
|
55
57
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
declare const ChargebackReasonValues: readonly ["$fraud", "$duplicate", "$product_not_received", "$product_unacceptable", "$authorization", "$consumer_disputes", "$processing_errors", "$cancel_subscription", "$friendly_fraud", "$ach_return", "$ach_reversal", "$other"];
|
|
59
|
+
type ChargebackReason = '$fraud' | '$duplicate' | '$product_not_received' | '$product_unacceptable' | '$authorization' | '$consumer_disputes' | '$processing_errors' | '$cancel_subscription' | '$friendly_fraud' | '$ach_return' | '$ach_reversal' | '$other';
|
|
58
60
|
declare const ChargebackReason: {
|
|
59
61
|
readonly Fraud: "$fraud";
|
|
60
62
|
readonly Duplicate: "$duplicate";
|
|
@@ -69,43 +71,43 @@ declare const ChargebackReason: {
|
|
|
69
71
|
readonly AchReversal: "$ach_reversal";
|
|
70
72
|
readonly Other: "$other";
|
|
71
73
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
declare const LoginStatusValues: readonly ["$success", "$failure"];
|
|
75
|
+
type LoginStatus = '$success' | '$failure';
|
|
74
76
|
declare const LoginStatus: {
|
|
75
77
|
readonly Success: "$success";
|
|
76
78
|
readonly Failure: "$failure";
|
|
77
79
|
};
|
|
78
|
-
type
|
|
79
|
-
declare const
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
type LoginFailureReason = '$account_unknown' | '$account_suspended' | '$account_disabled' | '$wrong_password';
|
|
81
|
+
declare const LoginFailureReasonValues: readonly ["$account_unknown", "$account_suspended", "$account_disabled", "$wrong_password"];
|
|
82
|
+
declare const PasswordUpdateReasonValues: readonly ["$user_update", "$forgot_password", "$forced_reset"];
|
|
83
|
+
type PasswordUpdateReason = '$user_update' | '$forgot_password' | '$forced_reset';
|
|
82
84
|
declare const PasswordUpdateReason: {
|
|
83
85
|
readonly UserUpdate: "$user_update";
|
|
84
86
|
readonly ForgotPassword: "$forgot_password";
|
|
85
87
|
readonly ForcedReset: "$forced_reset";
|
|
86
88
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
declare const PasswordUpdateStatusValues: readonly ["$pending", "$success", "$failure"];
|
|
90
|
+
type PasswordUpdateStatus = '$pending' | '$success' | '$failure';
|
|
89
91
|
declare const PasswordUpdateStatus: {
|
|
90
92
|
readonly Pending: "$pending";
|
|
91
93
|
readonly Success: "$success";
|
|
92
94
|
readonly Failure: "$failure";
|
|
93
95
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
declare const WagerStatusValues: readonly ["$accept", "$cancel"];
|
|
97
|
+
type WagerStatus = '$accept' | '$cancel';
|
|
96
98
|
declare const WagerStatus: {
|
|
97
99
|
readonly Accept: "$accept";
|
|
98
100
|
readonly Cancel: "$cancel";
|
|
99
101
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
declare const TransactionStatusValues: readonly ["$success", "$failure", "$pending"];
|
|
103
|
+
type TransactionStatus = '$success' | '$failure' | '$pending';
|
|
102
104
|
declare const TransactionStatus: {
|
|
103
105
|
readonly Success: "$success";
|
|
104
106
|
readonly Failure: "$failure";
|
|
105
107
|
readonly Pending: "$pending";
|
|
106
108
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
declare const PaymentTypeValues: readonly ["$cash", "$check", "$credit_card", "$crypto_currency", "$debit_card", "$digital_wallet", "$electronic_fund_transfer", "$financing", "$gift_card", "$invoice", "$in_app_purchase", "$money_order", "$points", "$prepaid_card", "$store_credit", "$third_party_processor", "$voucher", "$sepa_credit", "$sepa_instant_credit", "$sepa_direct_debit", "$ach_credit", "$ach_debit", "$wire_credit", "$wire_debit"];
|
|
110
|
+
type PaymentType = PaymentTypeValue;
|
|
109
111
|
declare const PaymentType: {
|
|
110
112
|
readonly Cash: "$cash";
|
|
111
113
|
readonly Check: "$check";
|
|
@@ -132,8 +134,8 @@ declare const PaymentType: {
|
|
|
132
134
|
readonly WireCredit: "$wire_credit";
|
|
133
135
|
readonly WireDebit: "$wire_debit";
|
|
134
136
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
declare const WalletTypeValues: readonly ["$crypto", "$digital", "$fiat"];
|
|
138
|
+
type WalletType = '$crypto' | '$digital' | '$fiat';
|
|
137
139
|
declare const WalletType: {
|
|
138
140
|
readonly Crypto: "$crypto";
|
|
139
141
|
readonly Digital: "$digital";
|
|
@@ -143,10 +145,10 @@ type FraudRiskLevel = 'low' | 'medium' | 'high' | 'critical';
|
|
|
143
145
|
|
|
144
146
|
/**
|
|
145
147
|
* Metadata for fraud score requests.
|
|
146
|
-
* Plain keys are Vesant rule signals; $-prefixed keys are
|
|
148
|
+
* Plain keys are Vesant rule signals; $-prefixed keys are reserved pass-through (or set via typed fields).
|
|
147
149
|
*/
|
|
148
150
|
interface FraudRuleSignalMetadata {
|
|
149
|
-
/** Rule signal payment method (e.g. "$credit_card"), not
|
|
151
|
+
/** Rule signal payment method (e.g. "$credit_card"), not the reserved $payment_method object */
|
|
150
152
|
payment_method?: string;
|
|
151
153
|
country?: string;
|
|
152
154
|
/** Customer date of birth, ISO 8601 (YYYY-MM-DD). Useful on onboarding ($create_account). */
|
|
@@ -167,11 +169,11 @@ interface FraudRuleSignalMetadata {
|
|
|
167
169
|
days_since_last_activity?: number;
|
|
168
170
|
hours_since_account_creation?: number;
|
|
169
171
|
}
|
|
170
|
-
/** Extra
|
|
171
|
-
type
|
|
172
|
-
type FraudCustomMetadata = FraudRuleSignalMetadata &
|
|
172
|
+
/** Extra reserved fields forwarded verbatim in metadata (e.g. $referrer_user_id, $promotions). */
|
|
173
|
+
type ReservedMetadata = Record<`$${string}`, unknown>;
|
|
174
|
+
type FraudCustomMetadata = FraudRuleSignalMetadata & ReservedMetadata & Record<string, unknown>;
|
|
173
175
|
/** Maps typed request fields to metadata keys they populate (typed values win on normalize). */
|
|
174
|
-
declare const
|
|
176
|
+
declare const TYPED_METADATA_KEYS: Readonly<Record<string, string>>;
|
|
175
177
|
declare function findMetadataConflictWithTypedFields(metadata: FraudCustomMetadata, request: Record<string, unknown>): string | undefined;
|
|
176
178
|
|
|
177
179
|
/**
|
|
@@ -204,9 +206,9 @@ declare const UPDATE_ACCOUNT_RULE_SIGNAL_KEYS: readonly ["two_fa_enabled", "two_
|
|
|
204
206
|
declare const TRANSACTION_RULE_SIGNAL_KEYS: readonly ["payment_method", "is_first_deposit", "cumulative_deposit_amount", "deposit_count", "failed_deposit_count", "is_first_withdrawal", "withdrawal_method_differs", "cumulative_withdrawal_amount", "withdrawal_count", "hours_since_last_deposit", "days_since_last_activity", "hours_since_account_creation"];
|
|
205
207
|
|
|
206
208
|
/**
|
|
207
|
-
*
|
|
209
|
+
* Reserved structured fields normalized into metadata.$* on the wire.
|
|
208
210
|
*/
|
|
209
|
-
interface
|
|
211
|
+
interface BillingAddress {
|
|
210
212
|
name?: string;
|
|
211
213
|
phone?: string;
|
|
212
214
|
address_1?: string;
|
|
@@ -217,7 +219,7 @@ interface SiftBillingAddress {
|
|
|
217
219
|
zipcode?: string;
|
|
218
220
|
[key: string]: unknown;
|
|
219
221
|
}
|
|
220
|
-
interface
|
|
222
|
+
interface PaymentMethod {
|
|
221
223
|
payment_type?: string;
|
|
222
224
|
payment_gateway?: string;
|
|
223
225
|
card_bin?: string;
|
|
@@ -235,28 +237,28 @@ interface SiftPaymentMethod {
|
|
|
235
237
|
paypal_payer_id?: string;
|
|
236
238
|
paypal_payer_email?: string;
|
|
237
239
|
/**
|
|
238
|
-
* @deprecated Not a
|
|
240
|
+
* @deprecated Not a recognized field — use account_number_last5. Stripped by normalizePaymentMethod.
|
|
239
241
|
*/
|
|
240
242
|
account_number_last4?: string;
|
|
241
243
|
/**
|
|
242
|
-
* @deprecated Not a
|
|
244
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
243
245
|
*/
|
|
244
246
|
account_id?: string | number;
|
|
245
247
|
/**
|
|
246
|
-
* @deprecated Not a
|
|
248
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
247
249
|
*/
|
|
248
250
|
wallet_address_last4?: string;
|
|
249
251
|
/**
|
|
250
|
-
* @deprecated Not a
|
|
252
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
251
253
|
*/
|
|
252
254
|
crypto_currency?: string;
|
|
253
255
|
/**
|
|
254
|
-
* @deprecated Not a
|
|
256
|
+
* @deprecated Not a recognized field — moved to metadata by normalizePaymentMethod.
|
|
255
257
|
*/
|
|
256
258
|
network?: string;
|
|
257
259
|
[key: string]: unknown;
|
|
258
260
|
}
|
|
259
|
-
interface
|
|
261
|
+
interface AppInfo {
|
|
260
262
|
os?: string;
|
|
261
263
|
os_version?: string;
|
|
262
264
|
device_manufacturer?: string;
|
|
@@ -267,7 +269,7 @@ interface SiftApp {
|
|
|
267
269
|
client_language?: string;
|
|
268
270
|
[key: string]: unknown;
|
|
269
271
|
}
|
|
270
|
-
interface
|
|
272
|
+
interface BrowserInfo {
|
|
271
273
|
user_agent?: string;
|
|
272
274
|
accept_language?: string;
|
|
273
275
|
content_language?: string;
|
|
@@ -281,8 +283,8 @@ interface SiftBrowser {
|
|
|
281
283
|
interface FraudScoreRequestBase {
|
|
282
284
|
/** Tenant customer UUID or stable ID */
|
|
283
285
|
customer_id: string;
|
|
284
|
-
/**
|
|
285
|
-
|
|
286
|
+
/** Scoring-engine user reference — typically stable per customer */
|
|
287
|
+
user_reference: string;
|
|
286
288
|
ip_address?: string;
|
|
287
289
|
device_id?: string;
|
|
288
290
|
user_agent?: string;
|
|
@@ -294,22 +296,22 @@ interface FraudScoreRequestBase {
|
|
|
294
296
|
name?: string;
|
|
295
297
|
/** Maps to metadata.$phone */
|
|
296
298
|
phone?: string;
|
|
297
|
-
/** Maps to metadata.$payment_method (
|
|
298
|
-
|
|
299
|
-
/** Maps to metadata.$payment_methods (
|
|
300
|
-
payment_methods?:
|
|
299
|
+
/** Maps to metadata.$payment_method (reserved object) — typically on transactions */
|
|
300
|
+
payment_method_details?: PaymentMethod;
|
|
301
|
+
/** Maps to metadata.$payment_methods (reserved array) — account create/update baseline */
|
|
302
|
+
payment_methods?: PaymentMethod[];
|
|
301
303
|
/** Maps to metadata.$billing_address */
|
|
302
|
-
billing_address?:
|
|
304
|
+
billing_address?: BillingAddress;
|
|
303
305
|
/** Maps to metadata.$app */
|
|
304
|
-
app?:
|
|
306
|
+
app?: AppInfo;
|
|
305
307
|
/**
|
|
306
|
-
* Plain Vesant rule signals and optional $-prefixed
|
|
307
|
-
* Prefer typed fields for common
|
|
308
|
+
* Plain Vesant rule signals and optional $-prefixed reserved pass-through keys.
|
|
309
|
+
* Prefer typed fields for common reserved keys ($session_id, $user_email, etc.).
|
|
308
310
|
*/
|
|
309
311
|
metadata?: FraudCustomMetadata;
|
|
310
312
|
/**
|
|
311
|
-
* When true, payment_methods /
|
|
312
|
-
*
|
|
313
|
+
* When true, payment_methods / payment_method_details are passed through without
|
|
314
|
+
* field normalization (for tenants sending pre-normalized wire keys).
|
|
313
315
|
*/
|
|
314
316
|
skip_payment_method_normalization?: boolean;
|
|
315
317
|
}
|
|
@@ -318,8 +320,8 @@ interface CreateAccountScoreRequest extends FraudScoreRequestBase {
|
|
|
318
320
|
}
|
|
319
321
|
interface LoginScoreRequest extends FraudScoreRequestBase, LoginRuleSignals {
|
|
320
322
|
event_type: '$login';
|
|
321
|
-
login_status?:
|
|
322
|
-
login_failure_reason?:
|
|
323
|
+
login_status?: LoginStatus;
|
|
324
|
+
login_failure_reason?: LoginFailureReason;
|
|
323
325
|
}
|
|
324
326
|
interface LogoutScoreRequest extends FraudScoreRequestBase {
|
|
325
327
|
event_type: '$logout';
|
|
@@ -332,17 +334,17 @@ interface UpdateAccountScoreRequest extends FraudScoreRequestBase, UpdateAccount
|
|
|
332
334
|
interface UpdatePasswordScoreRequest extends FraudScoreRequestBase {
|
|
333
335
|
event_type: '$update_password';
|
|
334
336
|
/** Defaults to $user_update on the wire when omitted */
|
|
335
|
-
password_reason?:
|
|
337
|
+
password_reason?: PasswordUpdateReason;
|
|
336
338
|
/** Defaults to $success on the wire when omitted */
|
|
337
|
-
password_status?:
|
|
339
|
+
password_status?: PasswordUpdateStatus;
|
|
338
340
|
}
|
|
339
341
|
interface TransactionScoreRequest extends FraudScoreRequestBase, TransactionRuleSignals {
|
|
340
342
|
event_type: '$transaction';
|
|
341
343
|
amount: number;
|
|
342
344
|
currency: string;
|
|
343
345
|
transaction_id?: string;
|
|
344
|
-
transaction_type?:
|
|
345
|
-
transaction_status?:
|
|
346
|
+
transaction_type?: TransactionType;
|
|
347
|
+
transaction_status?: TransactionStatus;
|
|
346
348
|
decline_category?: string;
|
|
347
349
|
transfer_recipient_user_id?: string;
|
|
348
350
|
}
|
|
@@ -355,9 +357,9 @@ interface CreateOrderScoreRequest extends FraudScoreRequestBase {
|
|
|
355
357
|
amount: number;
|
|
356
358
|
currency_code: string;
|
|
357
359
|
exchange_rate?: unknown;
|
|
358
|
-
payment_methods?:
|
|
359
|
-
billing_address?:
|
|
360
|
-
shipping_address?:
|
|
360
|
+
payment_methods?: PaymentMethod[];
|
|
361
|
+
billing_address?: BillingAddress;
|
|
362
|
+
shipping_address?: BillingAddress;
|
|
361
363
|
expedited_shipping?: boolean;
|
|
362
364
|
shipping_method?: '$electronic' | '$physical' | (string & Record<string, never>);
|
|
363
365
|
shipping_carrier?: string;
|
|
@@ -366,14 +368,14 @@ interface CreateOrderScoreRequest extends FraudScoreRequestBase {
|
|
|
366
368
|
site_country?: string;
|
|
367
369
|
site_domain?: string;
|
|
368
370
|
ip?: string;
|
|
369
|
-
browser?:
|
|
370
|
-
app?:
|
|
371
|
+
browser?: BrowserInfo;
|
|
372
|
+
app?: AppInfo;
|
|
371
373
|
}
|
|
372
374
|
interface WagerScoreRequest extends FraudScoreRequestBase {
|
|
373
375
|
event_type: '$wager';
|
|
374
376
|
transaction_id: string;
|
|
375
377
|
wager_type: string;
|
|
376
|
-
wager_status:
|
|
378
|
+
wager_status: WagerStatus;
|
|
377
379
|
amount: number;
|
|
378
380
|
currency: string;
|
|
379
381
|
wager_event_type?: string;
|
|
@@ -384,8 +386,8 @@ interface ChargebackScoreRequest extends FraudScoreRequestBase {
|
|
|
384
386
|
event_type: ChargebackFraudEventType;
|
|
385
387
|
transaction_id?: string;
|
|
386
388
|
order_id?: string;
|
|
387
|
-
chargeback_state?:
|
|
388
|
-
chargeback_reason?:
|
|
389
|
+
chargeback_state?: ChargebackState;
|
|
390
|
+
chargeback_reason?: ChargebackReason;
|
|
389
391
|
ach_return_code?: string;
|
|
390
392
|
}
|
|
391
393
|
type FraudScoreRequest = CreateAccountScoreRequest | LoginScoreRequest | LogoutScoreRequest | UpdateAccountScoreRequest | UpdatePasswordScoreRequest | TransactionScoreRequest | CreateOrderScoreRequest | WagerScoreRequest | ChargebackScoreRequest;
|
|
@@ -471,7 +473,7 @@ interface FraudAlertCallbackEvent {
|
|
|
471
473
|
reference: string;
|
|
472
474
|
/** Tenant customer ID the decision applies to. */
|
|
473
475
|
customer_id: string;
|
|
474
|
-
/** Originating
|
|
476
|
+
/** Originating fraud event type (`$create_account`, `$transaction`, …). */
|
|
475
477
|
source_event_type: SupportedFraudEventType | (string & Record<string, never>);
|
|
476
478
|
decision: FraudDecision;
|
|
477
479
|
risk_level: RiskLevel;
|
|
@@ -511,28 +513,23 @@ declare function normalizeScoreRequestForApi(request: FraudScoreRequest): Record
|
|
|
511
513
|
declare function buildScoreRequestPreview(request: FraudScoreRequest): Record<string, unknown>;
|
|
512
514
|
|
|
513
515
|
/**
|
|
514
|
-
*
|
|
515
|
-
* Returns undefined when the value cannot be mapped.
|
|
516
|
-
*/
|
|
517
|
-
declare function normalizeSiftPaymentType(value: string | undefined): SiftPaymentType | undefined;
|
|
518
|
-
/**
|
|
519
|
-
* Normalizes last-4/last-5 account digits for Sift $account_number_last5.
|
|
516
|
+
* Normalizes last-4/last-5 account digits for $account_number_last5.
|
|
520
517
|
*/
|
|
521
|
-
declare function
|
|
518
|
+
declare function toAccountNumberLast5(value: unknown): string | undefined;
|
|
522
519
|
type NormalizePaymentMethodResult = {
|
|
523
|
-
method:
|
|
520
|
+
method: PaymentMethod;
|
|
524
521
|
metadataExtras?: Record<string, unknown>;
|
|
525
522
|
};
|
|
526
523
|
/**
|
|
527
|
-
* Normalizes a single payment method object for
|
|
524
|
+
* Normalizes a single payment method object for the wire format.
|
|
528
525
|
*/
|
|
529
|
-
declare function
|
|
526
|
+
declare function normalizePaymentMethod(raw: Record<string, unknown>): NormalizePaymentMethodResult | null;
|
|
530
527
|
/**
|
|
531
528
|
* Normalizes payment method arrays and aggregates stripped metadata.
|
|
532
529
|
*/
|
|
533
|
-
declare function
|
|
534
|
-
payment_methods?:
|
|
530
|
+
declare function normalizePaymentMethods(methods: PaymentMethod[] | undefined): {
|
|
531
|
+
payment_methods?: PaymentMethod[];
|
|
535
532
|
metadata?: Record<string, unknown>;
|
|
536
533
|
};
|
|
537
534
|
|
|
538
|
-
export { CHARGEBACK_FRAUD_EVENT_TYPE, type ChargebackFraudEventType, ChargebackReason, type ChargebackScoreRequest, type ChargebackScoreResponseData, ChargebackState, type CreateAccountScoreRequest, type CreateOrderScoreRequest, type FraudAlertCallbackEvent, type FraudCallbackTrigger, FraudClient, type FraudCustomMetadata, type FraudDecision, type FraudEventType, type FraudReactionType, type FraudRiskLevel, type FraudRuleSignalMetadata, type FraudScoreRequest, type FraudScoreRequestBase, type FraudScoreResponseData, type FraudScoreResponseEnvelope, type FraudScoreResponseMetadata, LOGIN_RULE_SIGNAL_KEYS, type
|
|
535
|
+
export { type AppInfo, type BillingAddress, type BrowserInfo, CHARGEBACK_FRAUD_EVENT_TYPE, type ChargebackFraudEventType, ChargebackReason, ChargebackReasonValues, type ChargebackScoreRequest, type ChargebackScoreResponseData, ChargebackState, ChargebackStateValues, type CreateAccountScoreRequest, type CreateOrderScoreRequest, type FraudAlertCallbackEvent, type FraudCallbackTrigger, FraudClient, type FraudCustomMetadata, type FraudDecision, type FraudEventType, type FraudReactionType, type FraudRiskLevel, type FraudRuleSignalMetadata, type FraudScoreRequest, type FraudScoreRequestBase, type FraudScoreResponseData, type FraudScoreResponseEnvelope, type FraudScoreResponseMetadata, LOGIN_RULE_SIGNAL_KEYS, type LoginFailureReason, LoginFailureReasonValues, type LoginRuleSignals, type LoginScoreRequest, LoginStatus, LoginStatusValues, type LogoutScoreRequest, PLANNED_FRAUD_EVENT_TYPES, PasswordUpdateReason, PasswordUpdateReasonValues, PasswordUpdateStatus, PasswordUpdateStatusValues, type PaymentMethod, PaymentType, PaymentTypeValues, type PlannedFraudEventType, type ReservedMetadata, SCORED_FRAUD_EVENT_TYPES, SUPPORTED_FRAUD_EVENT_TYPES, type ScoredFraudEventType, type ScoredFraudScoreRequest, type SupportedFraudEventType, TRANSACTION_RULE_SIGNAL_KEYS, TYPED_METADATA_KEYS, type TenantAction, type TransactionRuleSignals, type TransactionScoreRequest, TransactionStatus, TransactionStatusValues, TransactionType, TransactionTypeValues, UPDATE_ACCOUNT_RULE_SIGNAL_KEYS, type UpdateAccountRuleSignals, type UpdateAccountScoreRequest, type UpdatePasswordScoreRequest, type WagerScoreRequest, WagerStatus, WagerStatusValues, WalletType, WalletTypeValues, buildScoreRequestPreview, findMetadataConflictWithTypedFields, isFraudAlertCallbackEvent, isPlannedFraudEventType, isSupportedFraudEventType, normalizePaymentMethod, normalizePaymentMethods, normalizeScoreRequestForApi, toAccountNumberLast5, validateScoreRequest };
|