vesant-sdk 1.3.0 → 1.3.1

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.mjs CHANGED
@@ -2293,6 +2293,41 @@ var KycClient = class extends BaseClient {
2293
2293
  headers: this.getUserHeaders()
2294
2294
  });
2295
2295
  }
2296
+ /**
2297
+ * Create a reuse KYC session for validate a user with existing KYC verification
2298
+ *
2299
+ * @param request - Request containing the reference, customer_id, optional redirect URL, and callback URL (receives POST requests)
2300
+ */
2301
+ async createReuseKycSession(request) {
2302
+ return this.requestWithRetry("/api/v1/kyc/face/session", {
2303
+ method: "POST",
2304
+ body: JSON.stringify(request),
2305
+ headers: this.getUserHeaders()
2306
+ });
2307
+ }
2308
+ /**
2309
+ * Submit a reuse KYC session for validate a user with existing KYC verification
2310
+ *
2311
+ * @param request - Request containing the reference, token and proof (receives POST requests)
2312
+ */
2313
+ async submitReuseKycSession(request) {
2314
+ return this.requestWithRetry("/api/v1/kyc/face/submit", {
2315
+ method: "POST",
2316
+ body: JSON.stringify(request),
2317
+ headers: this.getUserHeaders()
2318
+ });
2319
+ }
2320
+ /**
2321
+ * Check reuse KYC session status for a reference
2322
+ * @param reference - The unique reference used for the reuse KYC session (e.g., customer ID or transaction ID)
2323
+ * @returns Response with kyc_status and message (reason)
2324
+ * **/
2325
+ async getReuseKycSessionStatus(reference) {
2326
+ return this.requestWithRetry(`/api/v1/kyc/face/verify/${encodeURIComponent(reference)}`, {
2327
+ method: "GET",
2328
+ headers: this.getUserHeaders()
2329
+ });
2330
+ }
2296
2331
  /**
2297
2332
  * Check KYC status for a user
2298
2333
  *