vesant-sdk 1.8.0-dev.5c1c65a → 1.8.0-dev.8f52c8f
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 +22 -6
- package/dist/kyc/index.d.ts +22 -6
- 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
|
@@ -269,6 +269,16 @@ interface KycVerificationTriggers {
|
|
|
269
269
|
first_purchase: boolean;
|
|
270
270
|
/** Re-trigger verification once the customer's identity document has expired. */
|
|
271
271
|
auto_trigger_on_id_expiration: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Manual KYC Verification: whether customers may start a verification
|
|
274
|
+
* themselves (`trigger_event: "manual"`), independent of the event
|
|
275
|
+
* triggers and of their status. On by default. When on, a `manual`
|
|
276
|
+
* request always returns a link — an already verified customer included.
|
|
277
|
+
* When off, it answers `kyc_required: false` with reason
|
|
278
|
+
* `KYC_NOT_REQUIRED_TRIGGER_DISABLED`; hide your Verification option in
|
|
279
|
+
* that case.
|
|
280
|
+
*/
|
|
281
|
+
manual: boolean;
|
|
272
282
|
/** Hold sensitive profile changes (name, DOB, address) behind KYC. */
|
|
273
283
|
account_sensitive_action?: AccountSensitiveActionTrigger;
|
|
274
284
|
}
|
|
@@ -438,8 +448,9 @@ interface UpdateKycStatusRequest {
|
|
|
438
448
|
}
|
|
439
449
|
/**
|
|
440
450
|
* Events that can trigger a KYC request. Each maps to a per-event toggle in
|
|
441
|
-
* the tenant's KYC verification trigger preferences
|
|
442
|
-
*
|
|
451
|
+
* the tenant's KYC verification trigger preferences (`manual` to the Manual
|
|
452
|
+
* KYC Verification toggle), except `login` (only for an expired identity
|
|
453
|
+
* document).
|
|
443
454
|
*/
|
|
444
455
|
type KycTriggerEvent = 'onboarding' | 'first_withdrawal' | 'first_purchase'
|
|
445
456
|
/** Aliases of `first_withdrawal` / `first_purchase` — same tenant toggles. */
|
|
@@ -501,8 +512,12 @@ interface RequestKycSubmitLinkRequest {
|
|
|
501
512
|
/**
|
|
502
513
|
* Event that triggered the KYC request. The tenant's KYC verification
|
|
503
514
|
* trigger preferences decide, per event, whether KYC is required
|
|
504
|
-
* (`kyc_required` in the response). "manual"
|
|
505
|
-
*
|
|
515
|
+
* (`kyc_required` in the response). "manual" — the customer starting
|
|
516
|
+
* verification themselves — is governed by the tenant's Manual KYC
|
|
517
|
+
* Verification toggle (on by default): when on it always returns a link,
|
|
518
|
+
* even for an already verified customer, and honors the
|
|
519
|
+
* allow-skip-on-manual option (`can_skip`); when off it answers
|
|
520
|
+
* `kyc_required: false` with `KYC_NOT_REQUIRED_TRIGGER_DISABLED`. "login"
|
|
506
521
|
* answers for any customer state — never verified (asked, not skippable),
|
|
507
522
|
* document expired (asked, skippable so you can offer "Remind me later"),
|
|
508
523
|
* or verified and valid (not asked) — so a platform that gates entry on KYC
|
|
@@ -627,7 +642,8 @@ interface RequestKycSubmitLinkResponse {
|
|
|
627
642
|
* Whether the user may skip verification. `true` for
|
|
628
643
|
* `trigger_event: "manual"` when the tenant enables allow-skip-on-manual,
|
|
629
644
|
* for `"login"` when an expired identity document triggered the request
|
|
630
|
-
* (offer "Remind me later"), and when the customer is already verified
|
|
645
|
+
* (offer "Remind me later"), and when the customer is already verified
|
|
646
|
+
* (except on `"manual"`, which always issues a link while enabled).
|
|
631
647
|
* Always `false` at `"withdrawal"` / `"purchase"` — that is where a
|
|
632
648
|
* postponed re-verification becomes mandatory.
|
|
633
649
|
*/
|
|
@@ -692,7 +708,7 @@ interface KycCallbackReactions {
|
|
|
692
708
|
trigger_alert: boolean;
|
|
693
709
|
block: boolean;
|
|
694
710
|
freeze_account: boolean;
|
|
695
|
-
/** Set when `freeze_account` is true: the tenant
|
|
711
|
+
/** Set when `freeze_account` is true: the freeze window the tenant set for the rules that fired. */
|
|
696
712
|
freeze_duration_minutes?: number;
|
|
697
713
|
enforce_logout: boolean;
|
|
698
714
|
}
|
package/dist/kyc/index.d.ts
CHANGED
|
@@ -269,6 +269,16 @@ interface KycVerificationTriggers {
|
|
|
269
269
|
first_purchase: boolean;
|
|
270
270
|
/** Re-trigger verification once the customer's identity document has expired. */
|
|
271
271
|
auto_trigger_on_id_expiration: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Manual KYC Verification: whether customers may start a verification
|
|
274
|
+
* themselves (`trigger_event: "manual"`), independent of the event
|
|
275
|
+
* triggers and of their status. On by default. When on, a `manual`
|
|
276
|
+
* request always returns a link — an already verified customer included.
|
|
277
|
+
* When off, it answers `kyc_required: false` with reason
|
|
278
|
+
* `KYC_NOT_REQUIRED_TRIGGER_DISABLED`; hide your Verification option in
|
|
279
|
+
* that case.
|
|
280
|
+
*/
|
|
281
|
+
manual: boolean;
|
|
272
282
|
/** Hold sensitive profile changes (name, DOB, address) behind KYC. */
|
|
273
283
|
account_sensitive_action?: AccountSensitiveActionTrigger;
|
|
274
284
|
}
|
|
@@ -438,8 +448,9 @@ interface UpdateKycStatusRequest {
|
|
|
438
448
|
}
|
|
439
449
|
/**
|
|
440
450
|
* Events that can trigger a KYC request. Each maps to a per-event toggle in
|
|
441
|
-
* the tenant's KYC verification trigger preferences
|
|
442
|
-
*
|
|
451
|
+
* the tenant's KYC verification trigger preferences (`manual` to the Manual
|
|
452
|
+
* KYC Verification toggle), except `login` (only for an expired identity
|
|
453
|
+
* document).
|
|
443
454
|
*/
|
|
444
455
|
type KycTriggerEvent = 'onboarding' | 'first_withdrawal' | 'first_purchase'
|
|
445
456
|
/** Aliases of `first_withdrawal` / `first_purchase` — same tenant toggles. */
|
|
@@ -501,8 +512,12 @@ interface RequestKycSubmitLinkRequest {
|
|
|
501
512
|
/**
|
|
502
513
|
* Event that triggered the KYC request. The tenant's KYC verification
|
|
503
514
|
* trigger preferences decide, per event, whether KYC is required
|
|
504
|
-
* (`kyc_required` in the response). "manual"
|
|
505
|
-
*
|
|
515
|
+
* (`kyc_required` in the response). "manual" — the customer starting
|
|
516
|
+
* verification themselves — is governed by the tenant's Manual KYC
|
|
517
|
+
* Verification toggle (on by default): when on it always returns a link,
|
|
518
|
+
* even for an already verified customer, and honors the
|
|
519
|
+
* allow-skip-on-manual option (`can_skip`); when off it answers
|
|
520
|
+
* `kyc_required: false` with `KYC_NOT_REQUIRED_TRIGGER_DISABLED`. "login"
|
|
506
521
|
* answers for any customer state — never verified (asked, not skippable),
|
|
507
522
|
* document expired (asked, skippable so you can offer "Remind me later"),
|
|
508
523
|
* or verified and valid (not asked) — so a platform that gates entry on KYC
|
|
@@ -627,7 +642,8 @@ interface RequestKycSubmitLinkResponse {
|
|
|
627
642
|
* Whether the user may skip verification. `true` for
|
|
628
643
|
* `trigger_event: "manual"` when the tenant enables allow-skip-on-manual,
|
|
629
644
|
* for `"login"` when an expired identity document triggered the request
|
|
630
|
-
* (offer "Remind me later"), and when the customer is already verified
|
|
645
|
+
* (offer "Remind me later"), and when the customer is already verified
|
|
646
|
+
* (except on `"manual"`, which always issues a link while enabled).
|
|
631
647
|
* Always `false` at `"withdrawal"` / `"purchase"` — that is where a
|
|
632
648
|
* postponed re-verification becomes mandatory.
|
|
633
649
|
*/
|
|
@@ -692,7 +708,7 @@ interface KycCallbackReactions {
|
|
|
692
708
|
trigger_alert: boolean;
|
|
693
709
|
block: boolean;
|
|
694
710
|
freeze_account: boolean;
|
|
695
|
-
/** Set when `freeze_account` is true: the tenant
|
|
711
|
+
/** Set when `freeze_account` is true: the freeze window the tenant set for the rules that fired. */
|
|
696
712
|
freeze_duration_minutes?: number;
|
|
697
713
|
enforce_logout: boolean;
|
|
698
714
|
}
|