vesant-sdk 1.7.0-dev.ac305d8 → 1.7.0-dev.c2e85f3
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-ZNdnpWe7.d.mts → client-B0qhE2kr.d.mts} +1 -1
- package/dist/{client-DoMSYMMR.d.ts → client-DF7hlMEz.d.ts} +13 -0
- package/dist/{client-DMIRx7Tu.d.mts → client-DrjgZoH_.d.mts} +13 -0
- package/dist/{client-C3DCmGe9.d.ts → client-DtH2RLuy.d.ts} +1 -1
- package/dist/compliance/index.d.mts +2 -2
- package/dist/compliance/index.d.ts +2 -2
- package/dist/compliance/index.js +0 -3
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +0 -3
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +2 -2
- package/dist/geolocation/index.d.ts +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -17
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.js +4 -4
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +4 -4
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +54 -5
- package/dist/kyc/index.d.ts +54 -5
- package/dist/kyc/index.js +4 -4
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +4 -4
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +4 -2
- package/dist/react.d.ts +4 -2
- package/dist/react.js +112 -73
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +112 -73
- package/dist/react.mjs.map +1 -1
- package/dist/tax/index.d.mts +1 -24
- package/dist/tax/index.d.ts +1 -24
- package/dist/tax/index.js +1 -10
- package/dist/tax/index.js.map +1 -1
- package/dist/tax/index.mjs +1 -10
- package/dist/tax/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/kyc/index.d.mts
CHANGED
|
@@ -57,6 +57,18 @@ interface KycRequest {
|
|
|
57
57
|
other_reason?: string;
|
|
58
58
|
/** @deprecated Use {@link warning_reasons}. */
|
|
59
59
|
warnings?: Record<string, Record<string, string>>;
|
|
60
|
+
/**
|
|
61
|
+
* Tenant app should block onboarding/the action when true. Set when a
|
|
62
|
+
* failed verification matches a per-event KYC alert rule with the `block`
|
|
63
|
+
* reaction; sticky once set (a later non-blocking update won't clear it).
|
|
64
|
+
*/
|
|
65
|
+
block: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Names the configured verification that triggered the block (e.g.
|
|
68
|
+
* `document_verification`, `face_verification`, `address_verification`,
|
|
69
|
+
* `age_verification`). Empty when {@link block} is false.
|
|
70
|
+
*/
|
|
71
|
+
block_reason?: string;
|
|
60
72
|
proofs?: Proof[];
|
|
61
73
|
alerts?: KycAlert[];
|
|
62
74
|
risk_profile?: KycCustomerProfile;
|
|
@@ -306,7 +318,14 @@ interface RequestKycSubmitLinkRequest {
|
|
|
306
318
|
redirect_url?: string;
|
|
307
319
|
/** URL to receive callback notifications via POST request when KYC status changes (optional) */
|
|
308
320
|
callback_url?: string;
|
|
309
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* Event that triggered the KYC request. Valid values: "onboarding",
|
|
323
|
+
* "first_withdrawal", "first_purchase", "manual". The tenant's KYC
|
|
324
|
+
* verification trigger preferences decide, per event, whether KYC is
|
|
325
|
+
* required (`kyc_required` in the response). "manual" always requires
|
|
326
|
+
* KYC and honors the tenant's allow-skip-on-manual option (`can_skip`).
|
|
327
|
+
* Omitted or unknown values default to KYC required with no skip.
|
|
328
|
+
*/
|
|
310
329
|
trigger_event?: string;
|
|
311
330
|
}
|
|
312
331
|
/**
|
|
@@ -362,12 +381,34 @@ interface SubmitEventBasedFaceVerificationSessionRequest {
|
|
|
362
381
|
proof: string;
|
|
363
382
|
/** Unique reference for the KYC session (e.g., customer ID or transaction ID) */
|
|
364
383
|
reference?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Optional capture telemetry (JSON string): the face-detection
|
|
386
|
+
* bounding-box samples recorded in the moments before capture. Attached
|
|
387
|
+
* automatically by `FaceCaptureModal` when in-modal detection is active;
|
|
388
|
+
* omit when building a custom capture UI without detection. Stored
|
|
389
|
+
* verbatim server-side for audit/review — a weak presence signal, not
|
|
390
|
+
* certified anti-spoofing.
|
|
391
|
+
*/
|
|
392
|
+
liveness_artifact?: string;
|
|
365
393
|
}
|
|
366
394
|
interface RequestKycSubmitLinkResponse {
|
|
367
395
|
/** Generated KYC submission redirect URL */
|
|
368
396
|
link: string;
|
|
369
397
|
/** KYC request ID */
|
|
370
398
|
kyc_id: string;
|
|
399
|
+
/**
|
|
400
|
+
* Whether KYC is required for the reported `trigger_event`, per the
|
|
401
|
+
* tenant's verification trigger preferences. `false` when the trigger
|
|
402
|
+
* is disabled for the tenant, or when the customer is already verified
|
|
403
|
+
* (in that case `link` and `kyc_id` are empty).
|
|
404
|
+
*/
|
|
405
|
+
kyc_required: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Whether the user may skip verification. Only `true` for
|
|
408
|
+
* `trigger_event: "manual"` when the tenant enables allow-skip-on-manual,
|
|
409
|
+
* or when the customer is already verified.
|
|
410
|
+
*/
|
|
411
|
+
can_skip: boolean;
|
|
371
412
|
}
|
|
372
413
|
/** Device class detected by the SDK (purely client-side — server doesn't care). */
|
|
373
414
|
type EventBasedFaceVerificationDeviceType = 'mobile' | 'desktop';
|
|
@@ -430,6 +471,14 @@ interface EventBasedFaceVerificationCallback {
|
|
|
430
471
|
reference: string;
|
|
431
472
|
resource_id: string;
|
|
432
473
|
status: KycStatus;
|
|
474
|
+
/**
|
|
475
|
+
* True when the tenant app should block the action/account. Mirrors the
|
|
476
|
+
* `block` reaction on {@link data} at the top level of the callback so
|
|
477
|
+
* consumers can branch without inspecting `data`. Omitted when false.
|
|
478
|
+
*/
|
|
479
|
+
block?: boolean;
|
|
480
|
+
/** Names the event/verification that triggered the block. Omitted when not blocked. */
|
|
481
|
+
block_reason?: string;
|
|
433
482
|
/** Structured decline reasons. */
|
|
434
483
|
declined_reasons?: Reason[];
|
|
435
484
|
/** @deprecated Use {@link declined_reasons}. */
|
|
@@ -769,7 +818,7 @@ declare class KycClient extends BaseClient {
|
|
|
769
818
|
* @example
|
|
770
819
|
* ```typescript
|
|
771
820
|
* const result = await client.submitVerification({
|
|
772
|
-
* reference: "
|
|
821
|
+
* reference: "4d2aff34-ab86-422d-992e-50b1234a5b67",
|
|
773
822
|
* email: "customer@example.com",
|
|
774
823
|
* country: "US",
|
|
775
824
|
* document: {
|
|
@@ -795,7 +844,7 @@ declare class KycClient extends BaseClient {
|
|
|
795
844
|
*
|
|
796
845
|
* @example
|
|
797
846
|
* ```typescript
|
|
798
|
-
* const kyc = await client.getKycRequest("
|
|
847
|
+
* const kyc = await client.getKycRequest("550e8400-e29b-41d4-a716-446655440000");
|
|
799
848
|
* console.log(`Status: ${kyc.status}, ID Verified: ${kyc.id_verified}`);
|
|
800
849
|
* ```
|
|
801
850
|
*/
|
|
@@ -848,7 +897,7 @@ declare class KycClient extends BaseClient {
|
|
|
848
897
|
* @example
|
|
849
898
|
* ```typescript
|
|
850
899
|
* await client.requestAdditionalDocuments({
|
|
851
|
-
* id: "
|
|
900
|
+
* id: "550e8400-e29b-41d4-a716-446655440000",
|
|
852
901
|
* document_types: ["address", "document_two"],
|
|
853
902
|
* message: "Please provide proof of address and secondary ID"
|
|
854
903
|
* });
|
|
@@ -863,7 +912,7 @@ declare class KycClient extends BaseClient {
|
|
|
863
912
|
*
|
|
864
913
|
* @example
|
|
865
914
|
* ```typescript
|
|
866
|
-
* const proofs = await client.getProofDownloadURLs("
|
|
915
|
+
* const proofs = await client.getProofDownloadURLs("550e8400-e29b-41d4-a716-446655440000");
|
|
867
916
|
* proofs.forEach(proof => {
|
|
868
917
|
* console.log(`${proof.type}: ${proof.url} (expires: ${proof.expires_at})`);
|
|
869
918
|
* });
|
package/dist/kyc/index.d.ts
CHANGED
|
@@ -57,6 +57,18 @@ interface KycRequest {
|
|
|
57
57
|
other_reason?: string;
|
|
58
58
|
/** @deprecated Use {@link warning_reasons}. */
|
|
59
59
|
warnings?: Record<string, Record<string, string>>;
|
|
60
|
+
/**
|
|
61
|
+
* Tenant app should block onboarding/the action when true. Set when a
|
|
62
|
+
* failed verification matches a per-event KYC alert rule with the `block`
|
|
63
|
+
* reaction; sticky once set (a later non-blocking update won't clear it).
|
|
64
|
+
*/
|
|
65
|
+
block: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Names the configured verification that triggered the block (e.g.
|
|
68
|
+
* `document_verification`, `face_verification`, `address_verification`,
|
|
69
|
+
* `age_verification`). Empty when {@link block} is false.
|
|
70
|
+
*/
|
|
71
|
+
block_reason?: string;
|
|
60
72
|
proofs?: Proof[];
|
|
61
73
|
alerts?: KycAlert[];
|
|
62
74
|
risk_profile?: KycCustomerProfile;
|
|
@@ -306,7 +318,14 @@ interface RequestKycSubmitLinkRequest {
|
|
|
306
318
|
redirect_url?: string;
|
|
307
319
|
/** URL to receive callback notifications via POST request when KYC status changes (optional) */
|
|
308
320
|
callback_url?: string;
|
|
309
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* Event that triggered the KYC request. Valid values: "onboarding",
|
|
323
|
+
* "first_withdrawal", "first_purchase", "manual". The tenant's KYC
|
|
324
|
+
* verification trigger preferences decide, per event, whether KYC is
|
|
325
|
+
* required (`kyc_required` in the response). "manual" always requires
|
|
326
|
+
* KYC and honors the tenant's allow-skip-on-manual option (`can_skip`).
|
|
327
|
+
* Omitted or unknown values default to KYC required with no skip.
|
|
328
|
+
*/
|
|
310
329
|
trigger_event?: string;
|
|
311
330
|
}
|
|
312
331
|
/**
|
|
@@ -362,12 +381,34 @@ interface SubmitEventBasedFaceVerificationSessionRequest {
|
|
|
362
381
|
proof: string;
|
|
363
382
|
/** Unique reference for the KYC session (e.g., customer ID or transaction ID) */
|
|
364
383
|
reference?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Optional capture telemetry (JSON string): the face-detection
|
|
386
|
+
* bounding-box samples recorded in the moments before capture. Attached
|
|
387
|
+
* automatically by `FaceCaptureModal` when in-modal detection is active;
|
|
388
|
+
* omit when building a custom capture UI without detection. Stored
|
|
389
|
+
* verbatim server-side for audit/review — a weak presence signal, not
|
|
390
|
+
* certified anti-spoofing.
|
|
391
|
+
*/
|
|
392
|
+
liveness_artifact?: string;
|
|
365
393
|
}
|
|
366
394
|
interface RequestKycSubmitLinkResponse {
|
|
367
395
|
/** Generated KYC submission redirect URL */
|
|
368
396
|
link: string;
|
|
369
397
|
/** KYC request ID */
|
|
370
398
|
kyc_id: string;
|
|
399
|
+
/**
|
|
400
|
+
* Whether KYC is required for the reported `trigger_event`, per the
|
|
401
|
+
* tenant's verification trigger preferences. `false` when the trigger
|
|
402
|
+
* is disabled for the tenant, or when the customer is already verified
|
|
403
|
+
* (in that case `link` and `kyc_id` are empty).
|
|
404
|
+
*/
|
|
405
|
+
kyc_required: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Whether the user may skip verification. Only `true` for
|
|
408
|
+
* `trigger_event: "manual"` when the tenant enables allow-skip-on-manual,
|
|
409
|
+
* or when the customer is already verified.
|
|
410
|
+
*/
|
|
411
|
+
can_skip: boolean;
|
|
371
412
|
}
|
|
372
413
|
/** Device class detected by the SDK (purely client-side — server doesn't care). */
|
|
373
414
|
type EventBasedFaceVerificationDeviceType = 'mobile' | 'desktop';
|
|
@@ -430,6 +471,14 @@ interface EventBasedFaceVerificationCallback {
|
|
|
430
471
|
reference: string;
|
|
431
472
|
resource_id: string;
|
|
432
473
|
status: KycStatus;
|
|
474
|
+
/**
|
|
475
|
+
* True when the tenant app should block the action/account. Mirrors the
|
|
476
|
+
* `block` reaction on {@link data} at the top level of the callback so
|
|
477
|
+
* consumers can branch without inspecting `data`. Omitted when false.
|
|
478
|
+
*/
|
|
479
|
+
block?: boolean;
|
|
480
|
+
/** Names the event/verification that triggered the block. Omitted when not blocked. */
|
|
481
|
+
block_reason?: string;
|
|
433
482
|
/** Structured decline reasons. */
|
|
434
483
|
declined_reasons?: Reason[];
|
|
435
484
|
/** @deprecated Use {@link declined_reasons}. */
|
|
@@ -769,7 +818,7 @@ declare class KycClient extends BaseClient {
|
|
|
769
818
|
* @example
|
|
770
819
|
* ```typescript
|
|
771
820
|
* const result = await client.submitVerification({
|
|
772
|
-
* reference: "
|
|
821
|
+
* reference: "4d2aff34-ab86-422d-992e-50b1234a5b67",
|
|
773
822
|
* email: "customer@example.com",
|
|
774
823
|
* country: "US",
|
|
775
824
|
* document: {
|
|
@@ -795,7 +844,7 @@ declare class KycClient extends BaseClient {
|
|
|
795
844
|
*
|
|
796
845
|
* @example
|
|
797
846
|
* ```typescript
|
|
798
|
-
* const kyc = await client.getKycRequest("
|
|
847
|
+
* const kyc = await client.getKycRequest("550e8400-e29b-41d4-a716-446655440000");
|
|
799
848
|
* console.log(`Status: ${kyc.status}, ID Verified: ${kyc.id_verified}`);
|
|
800
849
|
* ```
|
|
801
850
|
*/
|
|
@@ -848,7 +897,7 @@ declare class KycClient extends BaseClient {
|
|
|
848
897
|
* @example
|
|
849
898
|
* ```typescript
|
|
850
899
|
* await client.requestAdditionalDocuments({
|
|
851
|
-
* id: "
|
|
900
|
+
* id: "550e8400-e29b-41d4-a716-446655440000",
|
|
852
901
|
* document_types: ["address", "document_two"],
|
|
853
902
|
* message: "Please provide proof of address and secondary ID"
|
|
854
903
|
* });
|
|
@@ -863,7 +912,7 @@ declare class KycClient extends BaseClient {
|
|
|
863
912
|
*
|
|
864
913
|
* @example
|
|
865
914
|
* ```typescript
|
|
866
|
-
* const proofs = await client.getProofDownloadURLs("
|
|
915
|
+
* const proofs = await client.getProofDownloadURLs("550e8400-e29b-41d4-a716-446655440000");
|
|
867
916
|
* proofs.forEach(proof => {
|
|
868
917
|
* console.log(`${proof.type}: ${proof.url} (expires: ${proof.expires_at})`);
|
|
869
918
|
* });
|
package/dist/kyc/index.js
CHANGED
|
@@ -760,7 +760,7 @@ var KycClient = class extends BaseClient {
|
|
|
760
760
|
* @example
|
|
761
761
|
* ```typescript
|
|
762
762
|
* const result = await client.submitVerification({
|
|
763
|
-
* reference: "
|
|
763
|
+
* reference: "4d2aff34-ab86-422d-992e-50b1234a5b67",
|
|
764
764
|
* email: "customer@example.com",
|
|
765
765
|
* country: "US",
|
|
766
766
|
* document: {
|
|
@@ -792,7 +792,7 @@ var KycClient = class extends BaseClient {
|
|
|
792
792
|
*
|
|
793
793
|
* @example
|
|
794
794
|
* ```typescript
|
|
795
|
-
* const kyc = await client.getKycRequest("
|
|
795
|
+
* const kyc = await client.getKycRequest("550e8400-e29b-41d4-a716-446655440000");
|
|
796
796
|
* console.log(`Status: ${kyc.status}, ID Verified: ${kyc.id_verified}`);
|
|
797
797
|
* ```
|
|
798
798
|
*/
|
|
@@ -867,7 +867,7 @@ var KycClient = class extends BaseClient {
|
|
|
867
867
|
* @example
|
|
868
868
|
* ```typescript
|
|
869
869
|
* await client.requestAdditionalDocuments({
|
|
870
|
-
* id: "
|
|
870
|
+
* id: "550e8400-e29b-41d4-a716-446655440000",
|
|
871
871
|
* document_types: ["address", "document_two"],
|
|
872
872
|
* message: "Please provide proof of address and secondary ID"
|
|
873
873
|
* });
|
|
@@ -888,7 +888,7 @@ var KycClient = class extends BaseClient {
|
|
|
888
888
|
*
|
|
889
889
|
* @example
|
|
890
890
|
* ```typescript
|
|
891
|
-
* const proofs = await client.getProofDownloadURLs("
|
|
891
|
+
* const proofs = await client.getProofDownloadURLs("550e8400-e29b-41d4-a716-446655440000");
|
|
892
892
|
* proofs.forEach(proof => {
|
|
893
893
|
* console.log(`${proof.type}: ${proof.url} (expires: ${proof.expires_at})`);
|
|
894
894
|
* });
|