idmission-web-sdk 2.2.78 → 2.2.80
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/components/customer_flows/CustomerBiometricsEnrollment.d.ts +4 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +4 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +3 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +2 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/components/submission/types.d.ts +20 -0
- package/dist/components/submission/types.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +48 -25
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +48 -25
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +48 -25
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.80';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2127,6 +2127,7 @@
|
|
|
2127
2127
|
webhooksSendProcessedImages = _t === void 0 ? false : _t,
|
|
2128
2128
|
_u = _a.webhooksFireOnReview,
|
|
2129
2129
|
webhooksFireOnReview = _u === void 0 ? false : _u,
|
|
2130
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
2130
2131
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
2131
2132
|
precapturedDocuments = _a.precapturedDocuments,
|
|
2132
2133
|
_v = _a.documentServiceUrl,
|
|
@@ -2412,6 +2413,7 @@
|
|
|
2412
2413
|
postDataAPIRequired: webhooksEnabled ? 'Y' : 'N',
|
|
2413
2414
|
postDataAPIURL: webhooksURL,
|
|
2414
2415
|
postDataOnReviewRequired: webhooksFireOnReview ? 'Y' : 'N',
|
|
2416
|
+
postDataOnReviewAPIURL: webhooksFireOnReviewURL,
|
|
2415
2417
|
sendInputImagesInPost: webhooksSendInputImages ? 'Y' : 'N',
|
|
2416
2418
|
sendProcessedImagesInPost: webhooksSendProcessedImages ? 'Y' : 'N',
|
|
2417
2419
|
needImmediateResponse: needImmediateResponse ? 'Y' : 'N',
|
|
@@ -2516,7 +2518,7 @@
|
|
|
2516
2518
|
}
|
|
2517
2519
|
});
|
|
2518
2520
|
});
|
|
2519
|
-
}, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idCardForFaceMatch, idData, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters, webhooksURL]);
|
|
2521
|
+
}, [additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, clientRequestID, companyId, customerDataMatchConfig, deduplicationEnabled, deduplicationSynchronous, documentServiceUrl, enrollmentId, expectedAudioText, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoAudioStartsAt, idCaptureVideoAudioUrl, idCaptureVideoIdBackImage, idCaptureVideoIdFrontImage, idCaptureVideoUrl, idCardForFaceMatch, idData, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, uploadDocument, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksFireOnReviewURL, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters, webhooksURL]);
|
|
2520
2522
|
var defaultOnSubmit = React.useCallback(function () {
|
|
2521
2523
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2522
2524
|
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
@@ -19685,6 +19687,7 @@
|
|
|
19685
19687
|
var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
19686
19688
|
var _b, _c, _d, _e;
|
|
19687
19689
|
var onCapture = _a.onCapture,
|
|
19690
|
+
onLivenessChecked = _a.onLivenessChecked,
|
|
19688
19691
|
onSuccess = _a.onSuccess,
|
|
19689
19692
|
onFailure = _a.onFailure,
|
|
19690
19693
|
onTimeout = _a.onTimeout,
|
|
@@ -19757,6 +19760,7 @@
|
|
|
19757
19760
|
return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
|
|
19758
19761
|
case 2:
|
|
19759
19762
|
response = _b.sent();
|
|
19763
|
+
onLivenessChecked === null || onLivenessChecked === void 0 ? void 0 : onLivenessChecked(response);
|
|
19760
19764
|
dispatch({
|
|
19761
19765
|
type: 'livenessChecked',
|
|
19762
19766
|
payload: {
|
|
@@ -19782,7 +19786,7 @@
|
|
|
19782
19786
|
});
|
|
19783
19787
|
});
|
|
19784
19788
|
})();
|
|
19785
|
-
}, [checkLiveness, face, frame, isReady, submissionError]);
|
|
19789
|
+
}, [checkLiveness, face, frame, isReady, onLivenessChecked, submissionError]);
|
|
19786
19790
|
var onFallbackImageCaptured = React.useCallback(function (imageUrl) {
|
|
19787
19791
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
19788
19792
|
var imageData, response, e_2;
|
|
@@ -20424,6 +20428,7 @@
|
|
|
20424
20428
|
var captureStartedAt = React.useRef();
|
|
20425
20429
|
var captureEndedAt = React.useRef();
|
|
20426
20430
|
var operationStartedAt = React.useRef();
|
|
20431
|
+
var livenessScore = React.useRef();
|
|
20427
20432
|
var _y = React.useContext(SelfieGuidanceModelsContext),
|
|
20428
20433
|
start = _y.start,
|
|
20429
20434
|
stop = _y.stop;
|
|
@@ -20434,19 +20439,21 @@
|
|
|
20434
20439
|
if (captureState !== 'CAPTURING') return;
|
|
20435
20440
|
captureStartedAt.current = new Date();
|
|
20436
20441
|
start();
|
|
20437
|
-
return
|
|
20438
|
-
stop();
|
|
20439
|
-
};
|
|
20442
|
+
return stop;
|
|
20440
20443
|
}, [captureState, start, stop]);
|
|
20441
20444
|
var onCapture = React.useCallback(function () {
|
|
20442
20445
|
captureEndedAt.current = new Date();
|
|
20443
20446
|
}, []);
|
|
20447
|
+
var onLivenessChecked = React.useCallback(function (resp) {
|
|
20448
|
+
livenessScore.current = resp.resultData.realScore;
|
|
20449
|
+
}, []);
|
|
20444
20450
|
var logCaptureMetadata = React.useCallback(function () {
|
|
20445
20451
|
var _a, _b, _c;
|
|
20446
20452
|
logSelfieCaptureAttempt({
|
|
20447
20453
|
autoCapture: 'Y',
|
|
20448
20454
|
captureTime: ((_a = captureEndedAt.current) !== null && _a !== void 0 ? _a : new Date()).getTime() - ((_b = captureStartedAt.current) !== null && _b !== void 0 ? _b : new Date()).getTime(),
|
|
20449
|
-
operationTime: new Date().getTime() - ((_c = operationStartedAt.current) !== null && _c !== void 0 ? _c : new Date()).getTime()
|
|
20455
|
+
operationTime: new Date().getTime() - ((_c = operationStartedAt.current) !== null && _c !== void 0 ? _c : new Date()).getTime(),
|
|
20456
|
+
livenessScore: livenessScore.current
|
|
20450
20457
|
});
|
|
20451
20458
|
operationStartedAt.current = new Date();
|
|
20452
20459
|
}, [logSelfieCaptureAttempt]);
|
|
@@ -20491,7 +20498,7 @@
|
|
|
20491
20498
|
setCaptureState('LOADING');
|
|
20492
20499
|
releaseCameraAccess();
|
|
20493
20500
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
20494
|
-
requestCameraAccess();
|
|
20501
|
+
void requestCameraAccess();
|
|
20495
20502
|
}, [onExitCapture, releaseCameraAccess, requestCameraAccess]);
|
|
20496
20503
|
var onRetryCallback = React.useCallback(function () {
|
|
20497
20504
|
logCaptureMetadata();
|
|
@@ -20503,7 +20510,7 @@
|
|
|
20503
20510
|
});
|
|
20504
20511
|
setCaptureState('LOADING');
|
|
20505
20512
|
releaseCameraAccess();
|
|
20506
|
-
requestCameraAccess();
|
|
20513
|
+
void requestCameraAccess();
|
|
20507
20514
|
}, [logCaptureMetadata, releaseCameraAccess, requestCameraAccess]);
|
|
20508
20515
|
var onDoneCallback = React.useCallback(function () {
|
|
20509
20516
|
logCaptureMetadata();
|
|
@@ -20541,6 +20548,7 @@
|
|
|
20541
20548
|
return /*#__PURE__*/React.createElement(FaceLivenessCapture, {
|
|
20542
20549
|
key: "capture".concat(attempt),
|
|
20543
20550
|
onCapture: onCapture,
|
|
20551
|
+
onLivenessChecked: onLivenessChecked,
|
|
20544
20552
|
onSuccess: onSuccessCallback,
|
|
20545
20553
|
onFailure: onFailureCallback,
|
|
20546
20554
|
onTimeout: onTimeout,
|
|
@@ -24217,15 +24225,18 @@
|
|
|
24217
24225
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
24218
24226
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
24219
24227
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
24228
|
+
_c = _a.webhooksFireOnReview,
|
|
24229
|
+
webhooksFireOnReview = _c === void 0 ? false : _c,
|
|
24230
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24220
24231
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24221
|
-
|
|
24222
|
-
loadingOverlayMode =
|
|
24223
|
-
|
|
24224
|
-
timeoutDurationMs =
|
|
24225
|
-
|
|
24226
|
-
modelLoadTimeoutMs =
|
|
24227
|
-
|
|
24228
|
-
skipSuccessScreen =
|
|
24232
|
+
_d = _a.loadingOverlayMode,
|
|
24233
|
+
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
24234
|
+
_e = _a.timeoutDurationMs,
|
|
24235
|
+
timeoutDurationMs = _e === void 0 ? 15000 : _e,
|
|
24236
|
+
_f = _a.modelLoadTimeoutMs,
|
|
24237
|
+
modelLoadTimeoutMs = _f === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _f,
|
|
24238
|
+
_g = _a.skipSuccessScreen,
|
|
24239
|
+
skipSuccessScreen = _g === void 0 ? false : _g,
|
|
24229
24240
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
24230
24241
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
24231
24242
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -24240,18 +24251,18 @@
|
|
|
24240
24251
|
onUserCancel = _a.onUserCancel,
|
|
24241
24252
|
onModelError = _a.onModelError,
|
|
24242
24253
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
24243
|
-
|
|
24244
|
-
theme =
|
|
24254
|
+
_h = _a.theme,
|
|
24255
|
+
theme = _h === void 0 ? 'default' : _h,
|
|
24245
24256
|
assets = _a.assets,
|
|
24246
24257
|
classNames = _a.classNames,
|
|
24247
24258
|
colors = _a.colors,
|
|
24248
24259
|
verbiage = _a.verbiage,
|
|
24249
|
-
|
|
24250
|
-
geolocationEnabled =
|
|
24251
|
-
|
|
24252
|
-
geolocationRequired =
|
|
24253
|
-
|
|
24254
|
-
debugMode =
|
|
24260
|
+
_j = _a.geolocationEnabled,
|
|
24261
|
+
geolocationEnabled = _j === void 0 ? true : _j,
|
|
24262
|
+
_k = _a.geolocationRequired,
|
|
24263
|
+
geolocationRequired = _k === void 0 ? false : _k,
|
|
24264
|
+
_l = _a.debugMode,
|
|
24265
|
+
debugMode = _l === void 0 ? false : _l;
|
|
24255
24266
|
useLanguage(lang);
|
|
24256
24267
|
useDebugLogging(debugMode);
|
|
24257
24268
|
var faceLivenessProps = React.useMemo(function () {
|
|
@@ -24291,6 +24302,8 @@
|
|
|
24291
24302
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
24292
24303
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
24293
24304
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
24305
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
24306
|
+
webhooksFireOnReviewURL: webhooksFireOnReviewURL,
|
|
24294
24307
|
sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
|
|
24295
24308
|
idCardForFaceMatch: idCardForFaceMatch,
|
|
24296
24309
|
onBeforeDocumentUpload: onBeforeDocumentUpload,
|
|
@@ -24337,6 +24350,7 @@
|
|
|
24337
24350
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
24338
24351
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
24339
24352
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
24353
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24340
24354
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24341
24355
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
24342
24356
|
precapturedDocuments = _a.precapturedDocuments,
|
|
@@ -24522,6 +24536,7 @@
|
|
|
24522
24536
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
24523
24537
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
24524
24538
|
webhooksFireOnReview: webhooksFireOnReview,
|
|
24539
|
+
webhooksFireOnReviewURL: webhooksFireOnReviewURL,
|
|
24525
24540
|
sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
|
|
24526
24541
|
customerDataMatchConfig: customerDataMatchConfig,
|
|
24527
24542
|
precapturedDocuments: precapturedDocuments,
|
|
@@ -24580,6 +24595,7 @@
|
|
|
24580
24595
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
24581
24596
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
24582
24597
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
24598
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24583
24599
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24584
24600
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
24585
24601
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
@@ -24784,6 +24800,7 @@
|
|
|
24784
24800
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
24785
24801
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
24786
24802
|
webhooksFireOnReview: webhooksFireOnReview,
|
|
24803
|
+
webhooksFireOnReviewURL: webhooksFireOnReviewURL,
|
|
24787
24804
|
sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
|
|
24788
24805
|
customerDataMatchConfig: customerDataMatchConfig,
|
|
24789
24806
|
onBeforeDocumentUpload: onBeforeDocumentUpload,
|
|
@@ -26047,6 +26064,7 @@
|
|
|
26047
26064
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
26048
26065
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
26049
26066
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
26067
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
26050
26068
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
26051
26069
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
26052
26070
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
@@ -26215,6 +26233,7 @@
|
|
|
26215
26233
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
26216
26234
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
26217
26235
|
webhooksFireOnReview: webhooksFireOnReview,
|
|
26236
|
+
webhooksFireOnReviewURL: webhooksFireOnReviewURL,
|
|
26218
26237
|
sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
|
|
26219
26238
|
customerDataMatchConfig: customerDataMatchConfig,
|
|
26220
26239
|
idCardForFaceMatch: idCardForFaceMatch,
|
|
@@ -26262,6 +26281,8 @@
|
|
|
26262
26281
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
26263
26282
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
26264
26283
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
26284
|
+
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
26285
|
+
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
26265
26286
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
26266
26287
|
_c = _a.loadingOverlayMode,
|
|
26267
26288
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -26378,6 +26399,8 @@
|
|
|
26378
26399
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
26379
26400
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
26380
26401
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
26402
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
26403
|
+
webhooksFireOnReviewURL: webhooksFireOnReviewURL,
|
|
26381
26404
|
sendBase64DocumentsInSwaggerProxy: sendBase64DocumentsInSwaggerProxy,
|
|
26382
26405
|
onBeforeDocumentUpload: onBeforeDocumentUpload,
|
|
26383
26406
|
onDocumentUploadProgress: onDocumentUploadProgress,
|