vesant-sdk 2.0.0-next.c8fef46 → 2.0.0-next.f2f4e87
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/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +11 -28
- package/dist/kyc/index.d.ts +11 -28
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/kyc/index.d.mts
CHANGED
|
@@ -120,14 +120,13 @@ interface UpdateKycAlertRequest {
|
|
|
120
120
|
status?: KycAlertStatus;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* Threshold-gated trigger for transaction events.
|
|
123
|
+
* Threshold-gated trigger for transaction events. Each rule is
|
|
124
|
+
* self-contained — there is no umbrella flag.
|
|
124
125
|
*
|
|
125
|
-
* - `enabled=false`
|
|
126
|
+
* - `enabled=false` → event blocked.
|
|
126
127
|
* - `enabled=true`, `threshold=0` (or null/omitted) → every event of this
|
|
127
128
|
* type triggers Re-Use KYC, regardless of amount.
|
|
128
129
|
* - `enabled=true`, `threshold>0` → only amounts `>= threshold` trigger.
|
|
129
|
-
* - `enabled=false` + umbrella `transaction=true` → triggers on any
|
|
130
|
-
* amount; the threshold is ignored when the specific rule is disabled.
|
|
131
130
|
*/
|
|
132
131
|
interface ReuseKycThresholdTrigger {
|
|
133
132
|
enabled: boolean;
|
|
@@ -159,11 +158,6 @@ interface ReuseKycTriggers {
|
|
|
159
158
|
new_device_or_location: boolean;
|
|
160
159
|
device_fingerprint_change: boolean;
|
|
161
160
|
payment_method_change: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Legacy umbrella flag. When true and a specific transaction rule is
|
|
164
|
-
* not configured, any transaction triggers Re-Use KYC.
|
|
165
|
-
*/
|
|
166
|
-
transaction: boolean;
|
|
167
161
|
deposit: ReuseKycThresholdTrigger;
|
|
168
162
|
withdrawal: ReuseKycThresholdTrigger;
|
|
169
163
|
large_bet_placement: ReuseKycThresholdTrigger;
|
|
@@ -312,27 +306,22 @@ interface RequestKycSubmitLinkRequest {
|
|
|
312
306
|
* Trigger events that can request Re-Use KYC.
|
|
313
307
|
*
|
|
314
308
|
* Account-sensitive: any sensitive change to the account profile.
|
|
315
|
-
* Transaction events: covered by the per-event
|
|
316
|
-
* `ReuseKycTriggers` (`deposit`, `withdrawal`, `large_bet_placement
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
* The legacy `"login"` and `"transactions"` strings are accepted for
|
|
320
|
-
* backwards compatibility with older SDK clients that didn't have the
|
|
321
|
-
* fine-grained event enum.
|
|
309
|
+
* Transaction events: covered by the per-event rules in
|
|
310
|
+
* `ReuseKycTriggers` (`deposit`, `withdrawal`, `large_bet_placement`,
|
|
311
|
+
* `high_frequency_betting`, `account_balance_transfer`).
|
|
322
312
|
*/
|
|
323
|
-
type ReuseKycEvent = 'login' | 'password_change' | 'name_change' | 'phone_number_change' | 'two_factor_auth_change' | 'new_device_or_location' | 'device_fingerprint_change' | 'payment_method_change' | 'deposit' | 'withdrawal' | 'large_bet_placement' | 'high_frequency_betting' | 'account_balance_transfer'
|
|
324
|
-
/** Legacy umbrella string accepted by the server. */
|
|
325
|
-
| 'transactions';
|
|
313
|
+
type ReuseKycEvent = 'login' | 'password_change' | 'name_change' | 'phone_number_change' | 'two_factor_auth_change' | 'new_device_or_location' | 'device_fingerprint_change' | 'payment_method_change' | 'deposit' | 'withdrawal' | 'large_bet_placement' | 'high_frequency_betting' | 'account_balance_transfer';
|
|
326
314
|
interface CreateReuseKycSessionRequest {
|
|
327
315
|
/** Unique reference for the KYC session (e.g., customer ID or transaction ID) */
|
|
328
316
|
reference: string;
|
|
329
317
|
/** Customer ID to associate with the KYC session */
|
|
330
318
|
customer_id: string;
|
|
331
319
|
/**
|
|
332
|
-
* The triggering event.
|
|
333
|
-
* server
|
|
320
|
+
* The triggering event. One of the `ReuseKycEvent` union members.
|
|
321
|
+
* Required — when empty, the server falls through to the unknown-event
|
|
322
|
+
* passthrough and allows the request silently.
|
|
334
323
|
*/
|
|
335
|
-
event
|
|
324
|
+
event: ReuseKycEvent;
|
|
336
325
|
/**
|
|
337
326
|
* USD amount associated with the event. Required for threshold-gated
|
|
338
327
|
* events (`deposit`, `withdrawal`, `large_bet_placement`); ignored for
|
|
@@ -340,12 +329,6 @@ interface CreateReuseKycSessionRequest {
|
|
|
340
329
|
* session.
|
|
341
330
|
*/
|
|
342
331
|
amount?: number;
|
|
343
|
-
/**
|
|
344
|
-
* Legacy path field — `"login"` or `"transactions"`. Use `event`
|
|
345
|
-
* instead. Kept for older SDK clients.
|
|
346
|
-
* @deprecated Send `event` instead.
|
|
347
|
-
*/
|
|
348
|
-
path?: string;
|
|
349
332
|
/**
|
|
350
333
|
* Number of qualifying events the customer has performed in the
|
|
351
334
|
* window described by `event_window_minutes`. Required for
|
package/dist/kyc/index.d.ts
CHANGED
|
@@ -120,14 +120,13 @@ interface UpdateKycAlertRequest {
|
|
|
120
120
|
status?: KycAlertStatus;
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* Threshold-gated trigger for transaction events.
|
|
123
|
+
* Threshold-gated trigger for transaction events. Each rule is
|
|
124
|
+
* self-contained — there is no umbrella flag.
|
|
124
125
|
*
|
|
125
|
-
* - `enabled=false`
|
|
126
|
+
* - `enabled=false` → event blocked.
|
|
126
127
|
* - `enabled=true`, `threshold=0` (or null/omitted) → every event of this
|
|
127
128
|
* type triggers Re-Use KYC, regardless of amount.
|
|
128
129
|
* - `enabled=true`, `threshold>0` → only amounts `>= threshold` trigger.
|
|
129
|
-
* - `enabled=false` + umbrella `transaction=true` → triggers on any
|
|
130
|
-
* amount; the threshold is ignored when the specific rule is disabled.
|
|
131
130
|
*/
|
|
132
131
|
interface ReuseKycThresholdTrigger {
|
|
133
132
|
enabled: boolean;
|
|
@@ -159,11 +158,6 @@ interface ReuseKycTriggers {
|
|
|
159
158
|
new_device_or_location: boolean;
|
|
160
159
|
device_fingerprint_change: boolean;
|
|
161
160
|
payment_method_change: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Legacy umbrella flag. When true and a specific transaction rule is
|
|
164
|
-
* not configured, any transaction triggers Re-Use KYC.
|
|
165
|
-
*/
|
|
166
|
-
transaction: boolean;
|
|
167
161
|
deposit: ReuseKycThresholdTrigger;
|
|
168
162
|
withdrawal: ReuseKycThresholdTrigger;
|
|
169
163
|
large_bet_placement: ReuseKycThresholdTrigger;
|
|
@@ -312,27 +306,22 @@ interface RequestKycSubmitLinkRequest {
|
|
|
312
306
|
* Trigger events that can request Re-Use KYC.
|
|
313
307
|
*
|
|
314
308
|
* Account-sensitive: any sensitive change to the account profile.
|
|
315
|
-
* Transaction events: covered by the per-event
|
|
316
|
-
* `ReuseKycTriggers` (`deposit`, `withdrawal`, `large_bet_placement
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
* The legacy `"login"` and `"transactions"` strings are accepted for
|
|
320
|
-
* backwards compatibility with older SDK clients that didn't have the
|
|
321
|
-
* fine-grained event enum.
|
|
309
|
+
* Transaction events: covered by the per-event rules in
|
|
310
|
+
* `ReuseKycTriggers` (`deposit`, `withdrawal`, `large_bet_placement`,
|
|
311
|
+
* `high_frequency_betting`, `account_balance_transfer`).
|
|
322
312
|
*/
|
|
323
|
-
type ReuseKycEvent = 'login' | 'password_change' | 'name_change' | 'phone_number_change' | 'two_factor_auth_change' | 'new_device_or_location' | 'device_fingerprint_change' | 'payment_method_change' | 'deposit' | 'withdrawal' | 'large_bet_placement' | 'high_frequency_betting' | 'account_balance_transfer'
|
|
324
|
-
/** Legacy umbrella string accepted by the server. */
|
|
325
|
-
| 'transactions';
|
|
313
|
+
type ReuseKycEvent = 'login' | 'password_change' | 'name_change' | 'phone_number_change' | 'two_factor_auth_change' | 'new_device_or_location' | 'device_fingerprint_change' | 'payment_method_change' | 'deposit' | 'withdrawal' | 'large_bet_placement' | 'high_frequency_betting' | 'account_balance_transfer';
|
|
326
314
|
interface CreateReuseKycSessionRequest {
|
|
327
315
|
/** Unique reference for the KYC session (e.g., customer ID or transaction ID) */
|
|
328
316
|
reference: string;
|
|
329
317
|
/** Customer ID to associate with the KYC session */
|
|
330
318
|
customer_id: string;
|
|
331
319
|
/**
|
|
332
|
-
* The triggering event.
|
|
333
|
-
* server
|
|
320
|
+
* The triggering event. One of the `ReuseKycEvent` union members.
|
|
321
|
+
* Required — when empty, the server falls through to the unknown-event
|
|
322
|
+
* passthrough and allows the request silently.
|
|
334
323
|
*/
|
|
335
|
-
event
|
|
324
|
+
event: ReuseKycEvent;
|
|
336
325
|
/**
|
|
337
326
|
* USD amount associated with the event. Required for threshold-gated
|
|
338
327
|
* events (`deposit`, `withdrawal`, `large_bet_placement`); ignored for
|
|
@@ -340,12 +329,6 @@ interface CreateReuseKycSessionRequest {
|
|
|
340
329
|
* session.
|
|
341
330
|
*/
|
|
342
331
|
amount?: number;
|
|
343
|
-
/**
|
|
344
|
-
* Legacy path field — `"login"` or `"transactions"`. Use `event`
|
|
345
|
-
* instead. Kept for older SDK clients.
|
|
346
|
-
* @deprecated Send `event` instead.
|
|
347
|
-
*/
|
|
348
|
-
path?: string;
|
|
349
332
|
/**
|
|
350
333
|
* Number of qualifying events the customer has performed in the
|
|
351
334
|
* window described by `event_window_minutes`. Required for
|