idmission-web-sdk 2.2.80 → 2.2.82
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 +2 -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/CustomerIdentification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/DocumentCapture.d.ts +2 -0
- package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -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/SignatureKYC.d.ts +2 -0
- package/dist/components/customer_flows/SignatureKYC.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/submission/SubmissionProvider.d.ts +2 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +126 -88
- 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 +126 -88
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +126 -88
- 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 +3 -3
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.2.
|
|
237
|
+
var webSdkVersion = '2.2.82';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1202,83 +1202,85 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1202
1202
|
userSuppliedOnDocumentUploadFailed = _a.onDocumentUploadFailed,
|
|
1203
1203
|
userSuppliedOnResponseReceived = _a.onResponseReceived,
|
|
1204
1204
|
userSuppliedOnRequestFailure = _a.onRequestFailure,
|
|
1205
|
-
clientRequestID = _a.clientRequestID
|
|
1205
|
+
clientRequestID = _a.clientRequestID,
|
|
1206
|
+
_x = _a.useDocumentServiceForLivenessChecks,
|
|
1207
|
+
useDocumentServiceForLivenessChecks = _x === void 0 ? false : _x;
|
|
1206
1208
|
var sessionId = useAuthContext()[0].sessionId;
|
|
1207
|
-
var
|
|
1208
|
-
submissionStatus =
|
|
1209
|
-
setSubmissionStatus =
|
|
1210
|
-
var _y = React.useState(null),
|
|
1211
|
-
submissionRequest = _y[0],
|
|
1212
|
-
setSubmissionRequest = _y[1];
|
|
1209
|
+
var _y = React.useState(SubmissionStatus.READY),
|
|
1210
|
+
submissionStatus = _y[0],
|
|
1211
|
+
setSubmissionStatus = _y[1];
|
|
1213
1212
|
var _z = React.useState(null),
|
|
1214
|
-
|
|
1215
|
-
|
|
1213
|
+
submissionRequest = _z[0],
|
|
1214
|
+
setSubmissionRequest = _z[1];
|
|
1216
1215
|
var _0 = React.useState(null),
|
|
1217
|
-
|
|
1218
|
-
|
|
1216
|
+
submissionResponse = _0[0],
|
|
1217
|
+
setSubmissionResponse = _0[1];
|
|
1219
1218
|
var _1 = React.useState(null),
|
|
1220
|
-
|
|
1221
|
-
|
|
1219
|
+
submissionError = _1[0],
|
|
1220
|
+
setSubmissionError = _1[1];
|
|
1222
1221
|
var _2 = React.useState(null),
|
|
1223
|
-
|
|
1224
|
-
|
|
1222
|
+
retrySubmission = _2[0],
|
|
1223
|
+
setRetrySubmission = _2[1];
|
|
1225
1224
|
var _3 = React.useState(null),
|
|
1226
|
-
|
|
1227
|
-
|
|
1225
|
+
livenessCheckRequest = _3[0],
|
|
1226
|
+
setLivenessCheckRequest = _3[1];
|
|
1228
1227
|
var _4 = React.useState(null),
|
|
1229
|
-
|
|
1230
|
-
|
|
1228
|
+
idFrontImage = _4[0],
|
|
1229
|
+
setIdFrontImage = _4[1];
|
|
1231
1230
|
var _5 = React.useState(null),
|
|
1232
|
-
|
|
1233
|
-
|
|
1231
|
+
idBackImage = _5[0],
|
|
1232
|
+
setIdBackImage = _5[1];
|
|
1234
1233
|
var _6 = React.useState(null),
|
|
1235
|
-
|
|
1236
|
-
|
|
1234
|
+
passportImage = _6[0],
|
|
1235
|
+
setPassportImage = _6[1];
|
|
1237
1236
|
var _7 = React.useState(null),
|
|
1238
|
-
|
|
1239
|
-
|
|
1237
|
+
selfieImage = _7[0],
|
|
1238
|
+
setSelfieImage = _7[1];
|
|
1240
1239
|
var _8 = React.useState(null),
|
|
1241
|
-
|
|
1242
|
-
|
|
1240
|
+
signatureData = _8[0],
|
|
1241
|
+
setSignatureData = _8[1];
|
|
1243
1242
|
var _9 = React.useState(null),
|
|
1244
|
-
|
|
1245
|
-
|
|
1243
|
+
signatureVideoUrl = _9[0],
|
|
1244
|
+
setSignatureVideoUrl = _9[1];
|
|
1246
1245
|
var _10 = React.useState(null),
|
|
1247
|
-
|
|
1248
|
-
|
|
1246
|
+
idCaptureVideoUrl = _10[0],
|
|
1247
|
+
setIdCaptureVideoUrl = _10[1];
|
|
1249
1248
|
var _11 = React.useState(null),
|
|
1250
|
-
|
|
1251
|
-
|
|
1249
|
+
idCaptureVideoIdFrontImage = _11[0],
|
|
1250
|
+
setIdCaptureVideoIdFrontImage = _11[1];
|
|
1252
1251
|
var _12 = React.useState(null),
|
|
1253
|
-
|
|
1254
|
-
|
|
1252
|
+
idCaptureVideoIdBackImage = _12[0],
|
|
1253
|
+
setIdCaptureVideoIdBackImage = _12[1];
|
|
1255
1254
|
var _13 = React.useState(null),
|
|
1256
|
-
|
|
1257
|
-
|
|
1255
|
+
idCaptureVideoAudioUrl = _13[0],
|
|
1256
|
+
setIdCaptureVideoAudioUrl = _13[1];
|
|
1258
1257
|
var _14 = React.useState(null),
|
|
1259
|
-
|
|
1260
|
-
|
|
1258
|
+
idCaptureVideoAudioStartsAt = _14[0],
|
|
1259
|
+
setIdCaptureVideoAudioStartsAt = _14[1];
|
|
1261
1260
|
var _15 = React.useState(null),
|
|
1262
|
-
|
|
1263
|
-
|
|
1261
|
+
expectedAudioText = _15[0],
|
|
1262
|
+
setExpectedAudioText = _15[1];
|
|
1264
1263
|
var _16 = React.useState(null),
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
var _17 = React.useState(
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
var _18 = React.useState(
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
var _19 = React.useState(
|
|
1274
|
-
|
|
1275
|
-
|
|
1264
|
+
additionalDocuments = _16[0],
|
|
1265
|
+
setAdditionalDocuments = _16[1];
|
|
1266
|
+
var _17 = React.useState(null),
|
|
1267
|
+
geolocationResult = _17[0],
|
|
1268
|
+
setGeolocationResult = _17[1];
|
|
1269
|
+
var _18 = React.useState(0),
|
|
1270
|
+
geolocationAttempts = _18[0],
|
|
1271
|
+
setGeolocationAttempts = _18[1];
|
|
1272
|
+
var _19 = React.useState(false),
|
|
1273
|
+
geolocationBlocked = _19[0],
|
|
1274
|
+
setGeolocationBlocked = _19[1];
|
|
1276
1275
|
var _20 = React.useState([]),
|
|
1277
|
-
|
|
1278
|
-
|
|
1276
|
+
idFrontCaptureAttempts = _20[0],
|
|
1277
|
+
setIdFrontCaptureAttempts = _20[1];
|
|
1279
1278
|
var _21 = React.useState([]),
|
|
1280
|
-
|
|
1281
|
-
|
|
1279
|
+
idBackCaptureAttempts = _21[0],
|
|
1280
|
+
setIdBackCaptureAttempts = _21[1];
|
|
1281
|
+
var _22 = React.useState([]),
|
|
1282
|
+
selfieCaptureAttempts = _22[0],
|
|
1283
|
+
setSelfieCaptureAttempts = _22[1];
|
|
1282
1284
|
var logIdFrontCaptureAttempt = React.useCallback(function (attempt) {
|
|
1283
1285
|
setIdFrontCaptureAttempts(function (attempts) {
|
|
1284
1286
|
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
@@ -1677,28 +1679,44 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1677
1679
|
}, [buildSubmissionPayload, defaultOnSubmit]);
|
|
1678
1680
|
var buildLivenessCheckPayload = React.useCallback(function (imageDataUrl) {
|
|
1679
1681
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
-
var request, onBeforeLivenessCheckResult;
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
switch (_d.label) {
|
|
1682
|
+
var selfie, request, onBeforeLivenessCheckResult;
|
|
1683
|
+
return __generator(this, function (_a) {
|
|
1684
|
+
switch (_a.label) {
|
|
1684
1685
|
case 0:
|
|
1685
|
-
|
|
1686
|
+
selfie = imageDataUrl;
|
|
1687
|
+
if (!(useDocumentServiceForLivenessChecks && documentServiceUrl)) return [3 /*break*/, 2];
|
|
1688
|
+
if (!selfie.startsWith('data:')) {
|
|
1689
|
+
selfie = "data:image/jpeg;base64,".concat(selfie);
|
|
1690
|
+
}
|
|
1691
|
+
return [4 /*yield*/, uploadDocument(selfie, {
|
|
1692
|
+
filename: 'liveness',
|
|
1693
|
+
filetype: 'image/jpeg'
|
|
1694
|
+
})];
|
|
1695
|
+
case 1:
|
|
1696
|
+
selfie = _a.sent();
|
|
1697
|
+
return [3 /*break*/, 3];
|
|
1698
|
+
case 2:
|
|
1699
|
+
selfie = dataUrlToBase64Sync(selfie);
|
|
1700
|
+
_a.label = 3;
|
|
1701
|
+
case 3:
|
|
1702
|
+
request = {
|
|
1686
1703
|
securityData: {
|
|
1687
1704
|
userName: '',
|
|
1688
1705
|
password: '',
|
|
1689
1706
|
merchantId: 0
|
|
1707
|
+
},
|
|
1708
|
+
customerData: {
|
|
1709
|
+
biometricData: {
|
|
1710
|
+
selfie: selfie
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
additionalData: {
|
|
1714
|
+
uniqueRequestId: new Date().getTime().toString(),
|
|
1715
|
+
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
1716
|
+
estimateAge: 'N',
|
|
1717
|
+
predictGender: 'N'
|
|
1690
1718
|
}
|
|
1691
1719
|
};
|
|
1692
|
-
_b = {};
|
|
1693
|
-
_c = {};
|
|
1694
|
-
return [4 /*yield*/, dataUrlToBase64(imageDataUrl)];
|
|
1695
|
-
case 1:
|
|
1696
|
-
request = (_a.customerData = (_b.biometricData = (_c.selfie = _d.sent(), _c), _b), _a.additionalData = {
|
|
1697
|
-
uniqueRequestId: new Date().getTime().toString(),
|
|
1698
|
-
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
1699
|
-
estimateAge: 'N',
|
|
1700
|
-
predictGender: 'N'
|
|
1701
|
-
}, _a);
|
|
1702
1720
|
if (clientRequestID) {
|
|
1703
1721
|
request.additionalData.clientRequestID = clientRequestID;
|
|
1704
1722
|
}
|
|
@@ -1717,19 +1735,19 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1717
1735
|
idBackCaptureAttempts: idBackCaptureAttempts,
|
|
1718
1736
|
geolocationResult: geolocationResult
|
|
1719
1737
|
});
|
|
1720
|
-
if (!onBeforeLivenessCheck.current) return [3 /*break*/,
|
|
1738
|
+
if (!onBeforeLivenessCheck.current) return [3 /*break*/, 5];
|
|
1721
1739
|
return [4 /*yield*/, onBeforeLivenessCheck.current(request)];
|
|
1722
|
-
case
|
|
1723
|
-
onBeforeLivenessCheckResult =
|
|
1740
|
+
case 4:
|
|
1741
|
+
onBeforeLivenessCheckResult = _a.sent();
|
|
1724
1742
|
if (onBeforeLivenessCheckResult) request = onBeforeLivenessCheckResult;
|
|
1725
|
-
|
|
1726
|
-
case
|
|
1743
|
+
_a.label = 5;
|
|
1744
|
+
case 5:
|
|
1727
1745
|
setLivenessCheckRequest(request);
|
|
1728
1746
|
return [2 /*return*/, request];
|
|
1729
1747
|
}
|
|
1730
1748
|
});
|
|
1731
1749
|
});
|
|
1732
|
-
}, [clientRequestID, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, webhooksStripSpecialCharacters]);
|
|
1750
|
+
}, [clientRequestID, documentServiceUrl, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, uploadDocument, webhooksStripSpecialCharacters]);
|
|
1733
1751
|
var checkLiveness = React.useCallback(function (imageDataUrl) {
|
|
1734
1752
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1735
1753
|
var request, host, endpoint, response, statusMessage, submissionResponse_3, e_2, err;
|
|
@@ -14211,6 +14229,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14211
14229
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
14212
14230
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14213
14231
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14232
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14214
14233
|
precapturedDocuments = _a.precapturedDocuments,
|
|
14215
14234
|
_c = _a.loadingOverlayMode,
|
|
14216
14235
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -14382,7 +14401,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14382
14401
|
onSubmit: onSubmit,
|
|
14383
14402
|
onResponseReceived: onResponseReceived,
|
|
14384
14403
|
geolocationEnabled: geolocationEnabled,
|
|
14385
|
-
geolocationRequired: geolocationRequired
|
|
14404
|
+
geolocationRequired: geolocationRequired,
|
|
14405
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14386
14406
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
14387
14407
|
checks: React.useMemo(function () {
|
|
14388
14408
|
return ['IdCapture'];
|
|
@@ -14418,6 +14438,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
14418
14438
|
webhooksFireOnReview = _c === void 0 ? false : _c,
|
|
14419
14439
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14420
14440
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14441
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14421
14442
|
_d = _a.loadingOverlayMode,
|
|
14422
14443
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
14423
14444
|
_e = _a.timeoutDurationMs,
|
|
@@ -14501,7 +14522,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
14501
14522
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
14502
14523
|
onBeforeLivenessCheck: onBeforeSubmit,
|
|
14503
14524
|
geolocationEnabled: geolocationEnabled,
|
|
14504
|
-
geolocationRequired: geolocationRequired
|
|
14525
|
+
geolocationRequired: geolocationRequired,
|
|
14526
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14505
14527
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
14506
14528
|
checks: React.useMemo(function () {
|
|
14507
14529
|
return ['FaceLiveness'];
|
|
@@ -14542,6 +14564,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14542
14564
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14543
14565
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14544
14566
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14567
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14545
14568
|
precapturedDocuments = _a.precapturedDocuments,
|
|
14546
14569
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
14547
14570
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -14738,7 +14761,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14738
14761
|
onSubmit: onSubmit,
|
|
14739
14762
|
onResponseReceived: onResponseReceived,
|
|
14740
14763
|
geolocationEnabled: geolocationEnabled,
|
|
14741
|
-
geolocationRequired: geolocationRequired
|
|
14764
|
+
geolocationRequired: geolocationRequired,
|
|
14765
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14742
14766
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
14743
14767
|
checks: checks,
|
|
14744
14768
|
idCaptureProps: idCaptureProps,
|
|
@@ -14787,6 +14811,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14787
14811
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14788
14812
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14789
14813
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14814
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14790
14815
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
14791
14816
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
14792
14817
|
_d = _a.idCaptureRequirement,
|
|
@@ -15000,7 +15025,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
15000
15025
|
onSubmit: onSubmit,
|
|
15001
15026
|
onResponseReceived: onResponseReceived,
|
|
15002
15027
|
geolocationEnabled: geolocationEnabled,
|
|
15003
|
-
geolocationRequired: geolocationRequired
|
|
15028
|
+
geolocationRequired: geolocationRequired,
|
|
15029
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
15004
15030
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
15005
15031
|
checks: checks,
|
|
15006
15032
|
idCaptureProps: idCaptureProps,
|
|
@@ -15489,6 +15515,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
15489
15515
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
15490
15516
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
15491
15517
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
15518
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
15492
15519
|
_c = _a.loadingOverlayMode,
|
|
15493
15520
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
15494
15521
|
_d = _a.timeoutDurationMs,
|
|
@@ -15551,7 +15578,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
15551
15578
|
onBeforeSubmit: onBeforeSubmit,
|
|
15552
15579
|
onSubmit: onSubmit,
|
|
15553
15580
|
geolocationEnabled: geolocationEnabled,
|
|
15554
|
-
geolocationRequired: geolocationRequired
|
|
15581
|
+
geolocationRequired: geolocationRequired,
|
|
15582
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
15555
15583
|
}, /*#__PURE__*/React__namespace.default.createElement(CameraStoreProvider, {
|
|
15556
15584
|
preferFrontFacingCamera: true,
|
|
15557
15585
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -16047,6 +16075,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
16047
16075
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
16048
16076
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
16049
16077
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16078
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16050
16079
|
_c = _a.loadingOverlayMode,
|
|
16051
16080
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
16052
16081
|
_d = _a.timeoutDurationMs,
|
|
@@ -16108,7 +16137,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
16108
16137
|
onBeforeSubmit: onBeforeSubmit,
|
|
16109
16138
|
onSubmit: onSubmit,
|
|
16110
16139
|
geolocationEnabled: geolocationEnabled,
|
|
16111
|
-
geolocationRequired: geolocationRequired
|
|
16140
|
+
geolocationRequired: geolocationRequired,
|
|
16141
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16112
16142
|
}, /*#__PURE__*/React__namespace.default.createElement(CameraStoreProvider, {
|
|
16113
16143
|
preferFrontFacingCamera: true,
|
|
16114
16144
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -16145,6 +16175,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16145
16175
|
submissionUrl = _a.submissionUrl,
|
|
16146
16176
|
documentServiceUrl = _a.documentServiceUrl,
|
|
16147
16177
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16178
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16148
16179
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16149
16180
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16150
16181
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16198,7 +16229,8 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16198
16229
|
onSubmit: onSubmit,
|
|
16199
16230
|
onResponseReceived: onComplete,
|
|
16200
16231
|
geolocationEnabled: geolocationEnabled,
|
|
16201
|
-
geolocationRequired: geolocationRequired
|
|
16232
|
+
geolocationRequired: geolocationRequired,
|
|
16233
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16202
16234
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
16203
16235
|
debugMode: debugMode,
|
|
16204
16236
|
checks: React.useMemo(function () {
|
|
@@ -16256,6 +16288,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16256
16288
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
16257
16289
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16258
16290
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
16291
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16259
16292
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16260
16293
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16261
16294
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16434,7 +16467,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16434
16467
|
onBeforeSubmit: onBeforeSubmit,
|
|
16435
16468
|
onResponseReceived: onComplete,
|
|
16436
16469
|
geolocationEnabled: geolocationEnabled,
|
|
16437
|
-
geolocationRequired: geolocationRequired
|
|
16470
|
+
geolocationRequired: geolocationRequired,
|
|
16471
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16438
16472
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
16439
16473
|
checks: React.useMemo(function () {
|
|
16440
16474
|
return ['VideoIdCapture'];
|
|
@@ -16473,6 +16507,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
16473
16507
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
16474
16508
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
16475
16509
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16510
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16476
16511
|
_c = _a.loadingOverlayMode,
|
|
16477
16512
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
16478
16513
|
_d = _a.timeoutDurationMs,
|
|
@@ -16599,7 +16634,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
16599
16634
|
onSubmit: onSubmit,
|
|
16600
16635
|
onResponseReceived: onResponseReceived,
|
|
16601
16636
|
geolocationEnabled: geolocationEnabled,
|
|
16602
|
-
geolocationRequired: geolocationRequired
|
|
16637
|
+
geolocationRequired: geolocationRequired,
|
|
16638
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16603
16639
|
}, /*#__PURE__*/React__namespace.default.createElement(CompositeWizard, {
|
|
16604
16640
|
checks: React.useMemo(function () {
|
|
16605
16641
|
return ['FaceLiveness'];
|
|
@@ -16626,6 +16662,7 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
16626
16662
|
submissionUrl = _a.submissionUrl,
|
|
16627
16663
|
documentServiceUrl = _a.documentServiceUrl,
|
|
16628
16664
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16665
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16629
16666
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16630
16667
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16631
16668
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16668,7 +16705,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
16668
16705
|
onDocumentUploaded: onDocumentUploaded,
|
|
16669
16706
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
16670
16707
|
geolocationEnabled: geolocationEnabled,
|
|
16671
|
-
geolocationRequired: geolocationRequired
|
|
16708
|
+
geolocationRequired: geolocationRequired,
|
|
16709
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16672
16710
|
}, /*#__PURE__*/React__namespace.default.createElement(CameraStoreProvider, {
|
|
16673
16711
|
requestAccessAutomatically: false,
|
|
16674
16712
|
preferIphoneContinuityCamera: true,
|