vesant-sdk 1.7.1-dev.afc5a32 → 1.7.1-dev.c2ac5a5
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 +4 -0
- package/dist/{client-D23KhWeh.d.mts → client-5q4whhGu.d.mts} +1 -1
- package/dist/{client-fy3trF2K.d.ts → client-BaUekQT8.d.ts} +32 -10
- package/dist/{client-B3DCAHlg.d.ts → client-DUHC-68_.d.ts} +1 -1
- package/dist/{client-BwXMQA2a.d.mts → client-XDEhh9VN.d.mts} +32 -10
- package/dist/compliance/index.d.mts +2 -2
- package/dist/compliance/index.d.ts +2 -2
- package/dist/compliance/index.js +39 -1
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +39 -1
- 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/geolocation/index.js +39 -1
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +39 -1
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +86 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +86 -23
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +1 -1
- package/dist/kyc/core.d.ts +1 -1
- package/dist/kyc/core.js +47 -22
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +47 -22
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +178 -39
- package/dist/kyc/index.d.ts +178 -39
- package/dist/kyc/index.js +47 -22
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +47 -22
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.d.mts +126 -48
- package/dist/react.d.ts +126 -48
- package/dist/react.js +131 -20
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +129 -21
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/kyc/index.d.mts
CHANGED
|
@@ -23,6 +23,8 @@ type KycAlertType = 'kyc' | 'fraud';
|
|
|
23
23
|
type DocumentType = 'id_card' | 'driving_license' | 'passport';
|
|
24
24
|
type ProofType = 'document' | 'document_two' | 'face' | 'address' | 'additional_document';
|
|
25
25
|
type SupportedDocumentType = 'id_card' | 'passport' | 'driving_license';
|
|
26
|
+
/** Document types a tenant can accept as proof of address. */
|
|
27
|
+
type SupportedAddressDocumentType = 'id_card' | 'passport' | 'driving_license' | 'utility_bill' | 'bank_statement' | 'rent_agreement' | 'employer_letter' | 'insurance_agreement' | 'tax_bill' | 'envelope' | 'cpr_smart_card_reader_copy' | 'property_tax' | 'lease_agreement' | 'insurance_card' | 'permanent_residence_permit' | 'credit_card_statement' | 'insurance_policy' | 'e_commerce_receipt' | 'bank_letter_receipt' | 'birth_certificate' | 'salary_slip';
|
|
26
28
|
interface KycRequest {
|
|
27
29
|
id: string;
|
|
28
30
|
reference: string;
|
|
@@ -34,6 +36,35 @@ interface KycRequest {
|
|
|
34
36
|
dob?: string;
|
|
35
37
|
full_address?: string;
|
|
36
38
|
email?: string;
|
|
39
|
+
gender?: string;
|
|
40
|
+
height?: string;
|
|
41
|
+
country?: string;
|
|
42
|
+
country_code?: string;
|
|
43
|
+
nationality?: string;
|
|
44
|
+
authority?: string;
|
|
45
|
+
document_type?: string;
|
|
46
|
+
document_number?: string;
|
|
47
|
+
personal_number?: string;
|
|
48
|
+
place_of_birth?: string;
|
|
49
|
+
issue_date?: string;
|
|
50
|
+
expiry_date?: string;
|
|
51
|
+
age?: number;
|
|
52
|
+
document_two_type?: string;
|
|
53
|
+
document_two_number?: string;
|
|
54
|
+
document_two_first_name?: string;
|
|
55
|
+
document_two_middle_name?: string;
|
|
56
|
+
document_two_last_name?: string;
|
|
57
|
+
document_two_dob?: string;
|
|
58
|
+
document_two_gender?: string;
|
|
59
|
+
document_two_height?: string;
|
|
60
|
+
document_two_country?: string;
|
|
61
|
+
document_two_country_code?: string;
|
|
62
|
+
document_two_nationality?: string;
|
|
63
|
+
document_two_authority?: string;
|
|
64
|
+
document_two_personal_number?: string;
|
|
65
|
+
document_two_place_of_birth?: string;
|
|
66
|
+
document_two_issue_date?: string;
|
|
67
|
+
document_two_expiry_date?: string;
|
|
37
68
|
id_verified: boolean;
|
|
38
69
|
address_verified: boolean;
|
|
39
70
|
face_verified: boolean;
|
|
@@ -41,8 +72,13 @@ interface KycRequest {
|
|
|
41
72
|
status: KycStatus;
|
|
42
73
|
location?: string;
|
|
43
74
|
identity_hash?: string;
|
|
75
|
+
/** True when verification could not run because of an internal failure. */
|
|
76
|
+
is_internal_error?: boolean;
|
|
77
|
+
/** The `trigger_event` the submit link was requested with. */
|
|
78
|
+
event?: string;
|
|
44
79
|
required_document_count: number;
|
|
45
80
|
supported_document_types?: SupportedDocumentType[];
|
|
81
|
+
supported_address_document_types?: SupportedAddressDocumentType[];
|
|
46
82
|
is_id_verification_required: boolean;
|
|
47
83
|
is_face_verification_required: boolean;
|
|
48
84
|
is_address_verification_required: boolean;
|
|
@@ -188,27 +224,70 @@ interface EventBasedFaceVerificationTriggers {
|
|
|
188
224
|
account_balance_transfer: boolean;
|
|
189
225
|
}
|
|
190
226
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* `enforce_logout
|
|
194
|
-
*
|
|
227
|
+
* Retry budget for Event-Based Face Verification. This is the only field the
|
|
228
|
+
* platform stores here; the reactions taken when the budget is exhausted
|
|
229
|
+
* (`trigger_alert`, `enforce_logout`, `freeze_account`, `block`,
|
|
230
|
+
* `freeze_duration_minutes`) come from the tenant's per-event KYC alert
|
|
231
|
+
* configuration and are reported on
|
|
232
|
+
* {@link EventBasedFaceVerificationReactionResult}.
|
|
195
233
|
*/
|
|
196
234
|
interface EventBasedFaceVerificationReactions {
|
|
197
235
|
/** Retries after the first attempt; total submissions = this + 1. */
|
|
198
236
|
max_retry_attempts: number;
|
|
199
|
-
trigger_alert
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
237
|
+
/** @deprecated Never populated; read `data.trigger_alert` on the callback instead. */
|
|
238
|
+
trigger_alert?: boolean;
|
|
239
|
+
/** @deprecated Never populated; read `data.enforce_logout` on the callback instead. */
|
|
240
|
+
enforce_logout?: boolean;
|
|
241
|
+
/** @deprecated Never populated; read `data.freeze_account` on the callback instead. */
|
|
242
|
+
freeze_account?: boolean;
|
|
243
|
+
/** @deprecated Never populated; read `data.freeze_duration_minutes` on the callback instead. */
|
|
244
|
+
freeze_duration_minutes?: number;
|
|
245
|
+
}
|
|
246
|
+
/** Per-event toggles that decide when a submit-link request requires KYC. */
|
|
247
|
+
interface KycVerificationTriggers {
|
|
248
|
+
onboarding: boolean;
|
|
249
|
+
first_withdrawal: boolean;
|
|
250
|
+
first_purchase: boolean;
|
|
251
|
+
/** Re-trigger verification once the customer's identity document has expired. */
|
|
252
|
+
auto_trigger_on_id_expiration: boolean;
|
|
253
|
+
}
|
|
254
|
+
interface KycSkipOptions {
|
|
255
|
+
/** Let a `manual` trigger be skipped (`can_skip` on the submit-link response). */
|
|
256
|
+
allow_skip_on_manual: boolean;
|
|
257
|
+
}
|
|
258
|
+
/** Tenant-defined reasons available to reviewers for a given resource. */
|
|
259
|
+
interface KycOtherReason {
|
|
260
|
+
resource: string;
|
|
261
|
+
reasons: string[];
|
|
262
|
+
}
|
|
263
|
+
/** Disclosure text shown to the customer on the hosted submission page. */
|
|
264
|
+
interface KycDisclosureConsent {
|
|
265
|
+
data_collected: string[];
|
|
266
|
+
data_usage: string[];
|
|
267
|
+
data_sharing: {
|
|
268
|
+
third_party_providers: boolean;
|
|
269
|
+
regulatory_authorities: boolean;
|
|
270
|
+
internal_systems: boolean;
|
|
271
|
+
provider_names?: string[];
|
|
272
|
+
};
|
|
273
|
+
data_retention_period: string;
|
|
274
|
+
customer_rights: {
|
|
275
|
+
can_access: boolean;
|
|
276
|
+
can_correct: boolean;
|
|
277
|
+
can_delete: boolean;
|
|
278
|
+
contact_info?: string;
|
|
279
|
+
};
|
|
203
280
|
}
|
|
204
281
|
interface KycPreferences {
|
|
205
282
|
id: string;
|
|
206
283
|
tenant_id: string;
|
|
207
284
|
approve_kyc_reasons: string[];
|
|
285
|
+
other_reasons?: KycOtherReason[];
|
|
208
286
|
is_document_verification_required: boolean;
|
|
209
287
|
is_face_verification_required: boolean;
|
|
210
288
|
is_address_verification_required: boolean;
|
|
211
289
|
is_age_verification_required: boolean;
|
|
290
|
+
is_duplicate_verification_required?: boolean;
|
|
212
291
|
/** Master switch for the Event-Based Face Verification feature. */
|
|
213
292
|
is_reuse_kyc_enabled?: boolean;
|
|
214
293
|
min_age: number;
|
|
@@ -218,13 +297,34 @@ interface KycPreferences {
|
|
|
218
297
|
high_risk_score: number;
|
|
219
298
|
medium_risk_score: number;
|
|
220
299
|
supported_document_types: SupportedDocumentType[];
|
|
300
|
+
supported_address_document_types?: SupportedAddressDocumentType[];
|
|
301
|
+
/** Tenant-level callback URL used when a submit-link request passes none. */
|
|
302
|
+
callback_url?: string;
|
|
303
|
+
address_fuzzy_match?: boolean;
|
|
304
|
+
document_fuzzy_match?: boolean;
|
|
305
|
+
document_translate?: boolean;
|
|
306
|
+
decline_on_single_step?: boolean;
|
|
307
|
+
allow_warnings?: boolean;
|
|
308
|
+
backside_proof_required?: boolean;
|
|
309
|
+
document_two_backside_proof_required?: boolean;
|
|
310
|
+
verification_mode?: string;
|
|
311
|
+
document_upload_option?: boolean;
|
|
312
|
+
disclosure_consent?: KycDisclosureConsent;
|
|
313
|
+
/** Per-event toggles for document verification (`requestKycSubmitLink`). */
|
|
314
|
+
kyc_triggers?: KycVerificationTriggers;
|
|
315
|
+
kyc_skip_options?: KycSkipOptions;
|
|
221
316
|
/** Per-event triggers for Event-Based Face Verification. */
|
|
222
317
|
reuse_kyc_triggers?: EventBasedFaceVerificationTriggers;
|
|
223
|
-
/** Retry
|
|
318
|
+
/** Retry budget for Event-Based Face Verification. */
|
|
224
319
|
reuse_kyc_reactions?: EventBasedFaceVerificationReactions;
|
|
225
320
|
created_at: string;
|
|
226
321
|
updated_at: string;
|
|
227
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* @deprecated KYC preferences are managed in the Vesant console; the platform
|
|
325
|
+
* exposes no update operation to the SDK, so `updatePreferences` always fails.
|
|
326
|
+
* This type will be removed in a future release.
|
|
327
|
+
*/
|
|
228
328
|
interface UpdateKycPreferencesRequest {
|
|
229
329
|
reasons?: string[];
|
|
230
330
|
is_document_verification_required?: boolean;
|
|
@@ -306,13 +406,13 @@ interface DocumentVerificationResponse {
|
|
|
306
406
|
message?: string;
|
|
307
407
|
}
|
|
308
408
|
interface UpdateKycStatusRequest {
|
|
309
|
-
/**
|
|
409
|
+
/** Provider reference or KYC ID */
|
|
310
410
|
reference: string;
|
|
311
411
|
/** Target status */
|
|
312
412
|
status: KycStatus;
|
|
313
413
|
/** Acceptance/decline reason */
|
|
314
414
|
reason?: string;
|
|
315
|
-
/**
|
|
415
|
+
/** Provider warnings data */
|
|
316
416
|
warnings?: Record<string, Record<string, string>>;
|
|
317
417
|
}
|
|
318
418
|
/**
|
|
@@ -617,9 +717,13 @@ interface EventBasedFaceVerificationCallback {
|
|
|
617
717
|
block?: boolean;
|
|
618
718
|
/** Names the event/verification that triggered the block. Omitted when not blocked. */
|
|
619
719
|
block_reason?: string;
|
|
620
|
-
/**
|
|
720
|
+
/**
|
|
721
|
+
* Structured decline reasons. Returned by
|
|
722
|
+
* `getEventBasedFaceVerificationSessionStatus`; the submit response and the
|
|
723
|
+
* webhook carry {@link declined_reason} only.
|
|
724
|
+
*/
|
|
621
725
|
declined_reasons?: Reason[];
|
|
622
|
-
/**
|
|
726
|
+
/** Decline text. Present on the submit response, the webhook, and status lookups. */
|
|
623
727
|
declined_reason?: string;
|
|
624
728
|
/** @deprecated Use structured reasons. */
|
|
625
729
|
warnings?: Record<string, Record<string, string>>;
|
|
@@ -669,20 +773,28 @@ interface CheckKycStatusResponse {
|
|
|
669
773
|
address_verified: boolean;
|
|
670
774
|
face_verified: boolean;
|
|
671
775
|
age_verified: boolean;
|
|
672
|
-
/**
|
|
776
|
+
/**
|
|
777
|
+
* Structured decline reasons. The platform currently returns these only on
|
|
778
|
+
* the full record: read `additional_data.declined_reasons` and fall back to
|
|
779
|
+
* {@link declined_reason}. This top-level field is reserved and not populated.
|
|
780
|
+
*/
|
|
673
781
|
declined_reasons?: Reason[];
|
|
674
|
-
/**
|
|
782
|
+
/**
|
|
783
|
+
* Structured, non-blocking warnings. Currently returned only as
|
|
784
|
+
* `additional_data.warning_reasons`; this top-level field is not populated.
|
|
785
|
+
*/
|
|
675
786
|
warning_reasons?: Reason[];
|
|
676
|
-
/**
|
|
787
|
+
/** Comma-joined decline text. Always present on a declined response. */
|
|
677
788
|
declined_reason?: string;
|
|
678
|
-
/**
|
|
789
|
+
/** Legacy decline code; prefer the `code` on `additional_data.declined_reasons`. */
|
|
679
790
|
declined_code?: KycDeclinedCode;
|
|
680
791
|
other_reason?: string;
|
|
681
792
|
accepted_reason?: string;
|
|
682
|
-
/**
|
|
793
|
+
/** Legacy warning map; prefer `additional_data.warning_reasons`. */
|
|
683
794
|
warnings?: Record<string, Record<string, string>>;
|
|
684
795
|
required_document_count: number;
|
|
685
796
|
supported_document_types?: SupportedDocumentType[];
|
|
797
|
+
supported_address_document_types?: SupportedAddressDocumentType[];
|
|
686
798
|
is_id_verification_required: boolean;
|
|
687
799
|
is_face_verification_required: boolean;
|
|
688
800
|
is_address_verification_required: boolean;
|
|
@@ -811,6 +923,7 @@ interface UseKycOverviewResult extends BaseHookState {
|
|
|
811
923
|
}
|
|
812
924
|
interface UseKycPreferencesResult extends BaseHookState {
|
|
813
925
|
preferences: KycPreferences | null;
|
|
926
|
+
/** @deprecated The platform exposes no preference-update operation; this call always fails. */
|
|
814
927
|
updatePreferences: (update: UpdateKycPreferencesRequest) => Promise<void>;
|
|
815
928
|
refresh: () => Promise<void>;
|
|
816
929
|
}
|
|
@@ -829,8 +942,9 @@ interface UseKycPreferencesResult extends BaseHookState {
|
|
|
829
942
|
* - Automatic timeout management
|
|
830
943
|
* - Debug logging
|
|
831
944
|
*
|
|
832
|
-
*
|
|
833
|
-
*
|
|
945
|
+
* Read calls use requestWithRetry() to ride out transient failures.
|
|
946
|
+
* Calls that create or bill something (submit link, document submit,
|
|
947
|
+
* face session, face submit, hosted journey retry) are made exactly once.
|
|
834
948
|
*/
|
|
835
949
|
declare class KycClient extends BaseClient {
|
|
836
950
|
private userId?;
|
|
@@ -853,19 +967,27 @@ declare class KycClient extends BaseClient {
|
|
|
853
967
|
*
|
|
854
968
|
* Generates a link that the user can visit to submit their KYC documents.
|
|
855
969
|
*
|
|
970
|
+
* Pass the `trigger_event` that matches the user action so the tenant's
|
|
971
|
+
* trigger preferences decide whether verification is required; inspect
|
|
972
|
+
* `kyc_required` and `reason` on the response before redirecting.
|
|
973
|
+
*
|
|
856
974
|
* Optionally pass the customer's registered identity data as
|
|
857
975
|
* `customer_data` (same shape as the geolocation `customer_data` block).
|
|
858
976
|
* It seeds the customer's risk profile so document verification can
|
|
859
977
|
* cross-check the submitted document against trusted reference data;
|
|
860
978
|
* fields never overwrite data already on the profile.
|
|
861
979
|
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
980
|
+
* The call is made once and is not retried: each request creates a new
|
|
981
|
+
* KYC record and link, so a retry after a timeout would leave duplicates.
|
|
982
|
+
*
|
|
983
|
+
* @param request - Request containing the user ID, trigger event, optional redirect URL, optional callback URL (receives POST requests), and optional customer identity data
|
|
984
|
+
* @returns Response containing the redirect link, KYC ID, `kyc_required`, `can_skip` and `reason`
|
|
864
985
|
*
|
|
865
986
|
* @example
|
|
866
987
|
* ```typescript
|
|
867
988
|
* const result = await client.requestKycSubmitLink({
|
|
868
989
|
* user_id: "user_123",
|
|
990
|
+
* trigger_event: "onboarding",
|
|
869
991
|
* redirect_url: "https://merchant.com/kyc-complete", // optional
|
|
870
992
|
* callback_url: "https://merchant.com/api/kyc-webhook", // optional - receives POST requests on status change
|
|
871
993
|
* customer_data: { // optional - seeds the risk profile for document cross-checks
|
|
@@ -878,6 +1000,7 @@ declare class KycClient extends BaseClient {
|
|
|
878
1000
|
* }
|
|
879
1001
|
* });
|
|
880
1002
|
*
|
|
1003
|
+
* if (!result.kyc_required) return proceed();
|
|
881
1004
|
* console.log(`Redirect user to: ${result.link}`);
|
|
882
1005
|
* console.log(`KYC ID: ${result.kyc_id}`);
|
|
883
1006
|
* ```
|
|
@@ -897,9 +1020,9 @@ declare class KycClient extends BaseClient {
|
|
|
897
1020
|
/**
|
|
898
1021
|
* Submit a real-time face capture for an active Event-Based Face Verification session.
|
|
899
1022
|
*
|
|
900
|
-
*
|
|
901
|
-
*
|
|
902
|
-
*
|
|
1023
|
+
* Works from any device: the platform does not inspect the User-Agent.
|
|
1024
|
+
* `FaceCaptureModal` decides between direct capture and the QR handoff
|
|
1025
|
+
* on the client; custom UIs may submit from desktop or mobile alike.
|
|
903
1026
|
*
|
|
904
1027
|
* The `data` field on the response carries `retries_remaining`,
|
|
905
1028
|
* `retry_limit_exceeded`, and the reaction flags (`enforce_logout`,
|
|
@@ -954,25 +1077,30 @@ declare class KycClient extends BaseClient {
|
|
|
954
1077
|
* Check KYC status for a user
|
|
955
1078
|
*
|
|
956
1079
|
* Returns the current KYC status:
|
|
957
|
-
* - "
|
|
958
|
-
* - "
|
|
959
|
-
* - "
|
|
960
|
-
* -
|
|
1080
|
+
* - "accepted" / "review.pending" → verified (limited access while under review)
|
|
1081
|
+
* - "pending" → documents submitted, verification running: keep polling
|
|
1082
|
+
* - "awaiting_kyc" → nothing submitted yet; check `link_expired` before
|
|
1083
|
+
* re-surfacing or re-requesting the link. Never treat as in progress.
|
|
1084
|
+
* - "declined" → show `additional_data.declined_reasons` (fallback
|
|
1085
|
+
* `declined_reason`) with a retry option
|
|
961
1086
|
*
|
|
962
|
-
* @param request - Request containing user_id and
|
|
963
|
-
* @returns Response with
|
|
1087
|
+
* @param request - Request containing user_id and kyc_id
|
|
1088
|
+
* @returns Response with status, verification flags and, once terminal, the full record in `additional_data`
|
|
964
1089
|
*
|
|
965
1090
|
* @example
|
|
966
1091
|
* ```typescript
|
|
967
1092
|
* const result = await client.checkKycStatus({
|
|
968
1093
|
* user_id: "user_123",
|
|
969
|
-
*
|
|
1094
|
+
* kyc_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
970
1095
|
* });
|
|
971
1096
|
*
|
|
972
|
-
* if (result.
|
|
973
|
-
* //
|
|
974
|
-
* } else if (result.
|
|
1097
|
+
* if (result.status === 'accepted' || result.status === 'review.pending') {
|
|
1098
|
+
* // Grant access
|
|
1099
|
+
* } else if (result.status === 'declined') {
|
|
1100
|
+
* const reasons = result.additional_data?.declined_reasons;
|
|
975
1101
|
* // Show error + retry option
|
|
1102
|
+
* } else if (result.status === 'awaiting_kyc') {
|
|
1103
|
+
* // Prompt to verify; request a new link when result.link_expired is true
|
|
976
1104
|
* } else {
|
|
977
1105
|
* // Keep polling
|
|
978
1106
|
* }
|
|
@@ -982,7 +1110,9 @@ declare class KycClient extends BaseClient {
|
|
|
982
1110
|
/**
|
|
983
1111
|
* Submit a document verification request with OCR
|
|
984
1112
|
*
|
|
985
|
-
*
|
|
1113
|
+
* The call is made once and is not retried: every submission is processed
|
|
1114
|
+
* and billed, and the platform does not replay this route from an
|
|
1115
|
+
* idempotency key. Retry explicitly if the request fails.
|
|
986
1116
|
*
|
|
987
1117
|
* @param request - Document verification request with documents and customer info
|
|
988
1118
|
* @returns Verification response with status and reference
|
|
@@ -1047,14 +1177,14 @@ declare class KycClient extends BaseClient {
|
|
|
1047
1177
|
* ```typescript
|
|
1048
1178
|
* // Accept a KYC request
|
|
1049
1179
|
* await client.updateKycStatus({
|
|
1050
|
-
* reference: "
|
|
1180
|
+
* reference: "kyc-ref-123",
|
|
1051
1181
|
* status: "accepted",
|
|
1052
1182
|
* reason: "All documents verified successfully"
|
|
1053
1183
|
* });
|
|
1054
1184
|
*
|
|
1055
1185
|
* // Decline a KYC request
|
|
1056
1186
|
* await client.updateKycStatus({
|
|
1057
|
-
* reference: "
|
|
1187
|
+
* reference: "kyc-ref-456",
|
|
1058
1188
|
* status: "declined",
|
|
1059
1189
|
* reason: "Document expired"
|
|
1060
1190
|
* });
|
|
@@ -1064,6 +1194,10 @@ declare class KycClient extends BaseClient {
|
|
|
1064
1194
|
/**
|
|
1065
1195
|
* Request additional documents from customer
|
|
1066
1196
|
*
|
|
1197
|
+
* @deprecated The platform does not expose this operation; the call always
|
|
1198
|
+
* fails. Request additional documents from the Vesant console instead.
|
|
1199
|
+
* This method will be removed in a future release.
|
|
1200
|
+
*
|
|
1067
1201
|
* @param request - Request with KYC ID and document types needed
|
|
1068
1202
|
*
|
|
1069
1203
|
* @example
|
|
@@ -1182,6 +1316,11 @@ declare class KycClient extends BaseClient {
|
|
|
1182
1316
|
/**
|
|
1183
1317
|
* Update KYC preferences for the tenant
|
|
1184
1318
|
*
|
|
1319
|
+
* @deprecated KYC preferences are managed in the Vesant console; the
|
|
1320
|
+
* platform exposes no update operation to the SDK, so this call always
|
|
1321
|
+
* fails. Use `getPreferences()` to read them. This method will be removed
|
|
1322
|
+
* in a future release.
|
|
1323
|
+
*
|
|
1185
1324
|
* @param update - Fields to update
|
|
1186
1325
|
* @returns Updated preferences
|
|
1187
1326
|
*
|
|
@@ -1270,4 +1409,4 @@ declare class KycClient extends BaseClient {
|
|
|
1270
1409
|
createCustomerProfile(profile: CreateProfileRequest): Promise<CustomerProfile>;
|
|
1271
1410
|
}
|
|
1272
1411
|
|
|
1273
|
-
export { type CheckKycStatusRequest, type CheckKycStatusResponse, CreateProfileRequest as CreateCustomerProfileRequest, type CreateEventBasedFaceVerificationSessionRequest, type CreateEventBasedFaceVerificationSessionResponse, CustomerProfile, ProfileFilters as CustomerProfileFilters, ProfileListResponse as CustomerProfileListResponse, type DocumentType, type DocumentVerificationRequest, type DocumentVerificationResponse, type EventBasedFaceVerificationCallback, type EventBasedFaceVerificationDeviceType, type EventBasedFaceVerificationEvent, type EventBasedFaceVerificationFrequencyTrigger, type EventBasedFaceVerificationReactionResult, type EventBasedFaceVerificationReactions, type EventBasedFaceVerificationThresholdTrigger, type EventBasedFaceVerificationTriggers, type FaceProof, KYC_DECLINED_DESCRIPTIONS, type KycAlert, type KycAlertFilters, type KycAlertListResponse, type KycAlertStatus, type KycAlertType, KycClient, type KycClientConfig, type KycCustomerData, type KycCustomerProfile, type KycDeclinedCode, type KycDocumentExpiredCallbackEvent, type KycHandoffSession, type KycOverview, type KycPagination, type KycPreferences, type KycRequest, type KycRequestFilters, type KycRequestListResponse, type KycRequestReason, type KycRequestReasonCode, type KycStatus, type KycTriggerEvent, type Name, PaginationParams, type Proof, type ProofDownloadURL, type ProofType, type RequestAdditionalDocumentsRequest, type RequestKycSubmitLinkRequest, type RequestKycSubmitLinkResponse, RiskLevel, type SubmitEventBasedFaceVerificationSessionRequest, type SubmittedDocument, type SupportedDocumentType, type UpdateKycAlertRequest, type UpdateKycPreferencesRequest, type UpdateKycStatusRequest, type UseKycAlertsOptions, type UseKycAlertsResult, type UseKycOverviewOptions, type UseKycOverviewResult, type UseKycPreferencesResult, type UseKycRequestsOptions, type UseKycRequestsResult, type UseKycSubmissionOptions, type UseKycSubmissionResult, isKycDocumentExpiredCallbackEvent };
|
|
1412
|
+
export { type CheckKycStatusRequest, type CheckKycStatusResponse, CreateProfileRequest as CreateCustomerProfileRequest, type CreateEventBasedFaceVerificationSessionRequest, type CreateEventBasedFaceVerificationSessionResponse, CustomerProfile, ProfileFilters as CustomerProfileFilters, ProfileListResponse as CustomerProfileListResponse, type DocumentType, type DocumentVerificationRequest, type DocumentVerificationResponse, type EventBasedFaceVerificationCallback, type EventBasedFaceVerificationDeviceType, type EventBasedFaceVerificationEvent, type EventBasedFaceVerificationFrequencyTrigger, type EventBasedFaceVerificationReactionResult, type EventBasedFaceVerificationReactions, type EventBasedFaceVerificationThresholdTrigger, type EventBasedFaceVerificationTriggers, type FaceProof, KYC_DECLINED_DESCRIPTIONS, type KycAlert, type KycAlertFilters, type KycAlertListResponse, type KycAlertStatus, type KycAlertType, KycClient, type KycClientConfig, type KycCustomerData, type KycCustomerProfile, type KycDeclinedCode, type KycDisclosureConsent, type KycDocumentExpiredCallbackEvent, type KycHandoffSession, type KycOtherReason, type KycOverview, type KycPagination, type KycPreferences, type KycRequest, type KycRequestFilters, type KycRequestListResponse, type KycRequestReason, type KycRequestReasonCode, type KycSkipOptions, type KycStatus, type KycTriggerEvent, type KycVerificationTriggers, type Name, PaginationParams, type Proof, type ProofDownloadURL, type ProofType, type RequestAdditionalDocumentsRequest, type RequestKycSubmitLinkRequest, type RequestKycSubmitLinkResponse, RiskLevel, type SubmitEventBasedFaceVerificationSessionRequest, type SubmittedDocument, type SupportedAddressDocumentType, type SupportedDocumentType, type UpdateKycAlertRequest, type UpdateKycPreferencesRequest, type UpdateKycStatusRequest, type UseKycAlertsOptions, type UseKycAlertsResult, type UseKycOverviewOptions, type UseKycOverviewResult, type UseKycPreferencesResult, type UseKycRequestsOptions, type UseKycRequestsResult, type UseKycSubmissionOptions, type UseKycSubmissionResult, isKycDocumentExpiredCallbackEvent };
|