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
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.82';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1171,83 +1171,85 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1171
1171
|
userSuppliedOnDocumentUploadFailed = _a.onDocumentUploadFailed,
|
|
1172
1172
|
userSuppliedOnResponseReceived = _a.onResponseReceived,
|
|
1173
1173
|
userSuppliedOnRequestFailure = _a.onRequestFailure,
|
|
1174
|
-
clientRequestID = _a.clientRequestID
|
|
1174
|
+
clientRequestID = _a.clientRequestID,
|
|
1175
|
+
_x = _a.useDocumentServiceForLivenessChecks,
|
|
1176
|
+
useDocumentServiceForLivenessChecks = _x === void 0 ? false : _x;
|
|
1175
1177
|
var sessionId = useAuthContext()[0].sessionId;
|
|
1176
|
-
var
|
|
1177
|
-
submissionStatus =
|
|
1178
|
-
setSubmissionStatus =
|
|
1179
|
-
var _y = useState(null),
|
|
1180
|
-
submissionRequest = _y[0],
|
|
1181
|
-
setSubmissionRequest = _y[1];
|
|
1178
|
+
var _y = useState(SubmissionStatus.READY),
|
|
1179
|
+
submissionStatus = _y[0],
|
|
1180
|
+
setSubmissionStatus = _y[1];
|
|
1182
1181
|
var _z = useState(null),
|
|
1183
|
-
|
|
1184
|
-
|
|
1182
|
+
submissionRequest = _z[0],
|
|
1183
|
+
setSubmissionRequest = _z[1];
|
|
1185
1184
|
var _0 = useState(null),
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
submissionResponse = _0[0],
|
|
1186
|
+
setSubmissionResponse = _0[1];
|
|
1188
1187
|
var _1 = useState(null),
|
|
1189
|
-
|
|
1190
|
-
|
|
1188
|
+
submissionError = _1[0],
|
|
1189
|
+
setSubmissionError = _1[1];
|
|
1191
1190
|
var _2 = useState(null),
|
|
1192
|
-
|
|
1193
|
-
|
|
1191
|
+
retrySubmission = _2[0],
|
|
1192
|
+
setRetrySubmission = _2[1];
|
|
1194
1193
|
var _3 = useState(null),
|
|
1195
|
-
|
|
1196
|
-
|
|
1194
|
+
livenessCheckRequest = _3[0],
|
|
1195
|
+
setLivenessCheckRequest = _3[1];
|
|
1197
1196
|
var _4 = useState(null),
|
|
1198
|
-
|
|
1199
|
-
|
|
1197
|
+
idFrontImage = _4[0],
|
|
1198
|
+
setIdFrontImage = _4[1];
|
|
1200
1199
|
var _5 = useState(null),
|
|
1201
|
-
|
|
1202
|
-
|
|
1200
|
+
idBackImage = _5[0],
|
|
1201
|
+
setIdBackImage = _5[1];
|
|
1203
1202
|
var _6 = useState(null),
|
|
1204
|
-
|
|
1205
|
-
|
|
1203
|
+
passportImage = _6[0],
|
|
1204
|
+
setPassportImage = _6[1];
|
|
1206
1205
|
var _7 = useState(null),
|
|
1207
|
-
|
|
1208
|
-
|
|
1206
|
+
selfieImage = _7[0],
|
|
1207
|
+
setSelfieImage = _7[1];
|
|
1209
1208
|
var _8 = useState(null),
|
|
1210
|
-
|
|
1211
|
-
|
|
1209
|
+
signatureData = _8[0],
|
|
1210
|
+
setSignatureData = _8[1];
|
|
1212
1211
|
var _9 = useState(null),
|
|
1213
|
-
|
|
1214
|
-
|
|
1212
|
+
signatureVideoUrl = _9[0],
|
|
1213
|
+
setSignatureVideoUrl = _9[1];
|
|
1215
1214
|
var _10 = useState(null),
|
|
1216
|
-
|
|
1217
|
-
|
|
1215
|
+
idCaptureVideoUrl = _10[0],
|
|
1216
|
+
setIdCaptureVideoUrl = _10[1];
|
|
1218
1217
|
var _11 = useState(null),
|
|
1219
|
-
|
|
1220
|
-
|
|
1218
|
+
idCaptureVideoIdFrontImage = _11[0],
|
|
1219
|
+
setIdCaptureVideoIdFrontImage = _11[1];
|
|
1221
1220
|
var _12 = useState(null),
|
|
1222
|
-
|
|
1223
|
-
|
|
1221
|
+
idCaptureVideoIdBackImage = _12[0],
|
|
1222
|
+
setIdCaptureVideoIdBackImage = _12[1];
|
|
1224
1223
|
var _13 = useState(null),
|
|
1225
|
-
|
|
1226
|
-
|
|
1224
|
+
idCaptureVideoAudioUrl = _13[0],
|
|
1225
|
+
setIdCaptureVideoAudioUrl = _13[1];
|
|
1227
1226
|
var _14 = useState(null),
|
|
1228
|
-
|
|
1229
|
-
|
|
1227
|
+
idCaptureVideoAudioStartsAt = _14[0],
|
|
1228
|
+
setIdCaptureVideoAudioStartsAt = _14[1];
|
|
1230
1229
|
var _15 = useState(null),
|
|
1231
|
-
|
|
1232
|
-
|
|
1230
|
+
expectedAudioText = _15[0],
|
|
1231
|
+
setExpectedAudioText = _15[1];
|
|
1233
1232
|
var _16 = useState(null),
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
var _17 = useState(
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
var _18 = useState(
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
var _19 = useState(
|
|
1243
|
-
|
|
1244
|
-
|
|
1233
|
+
additionalDocuments = _16[0],
|
|
1234
|
+
setAdditionalDocuments = _16[1];
|
|
1235
|
+
var _17 = useState(null),
|
|
1236
|
+
geolocationResult = _17[0],
|
|
1237
|
+
setGeolocationResult = _17[1];
|
|
1238
|
+
var _18 = useState(0),
|
|
1239
|
+
geolocationAttempts = _18[0],
|
|
1240
|
+
setGeolocationAttempts = _18[1];
|
|
1241
|
+
var _19 = useState(false),
|
|
1242
|
+
geolocationBlocked = _19[0],
|
|
1243
|
+
setGeolocationBlocked = _19[1];
|
|
1245
1244
|
var _20 = useState([]),
|
|
1246
|
-
|
|
1247
|
-
|
|
1245
|
+
idFrontCaptureAttempts = _20[0],
|
|
1246
|
+
setIdFrontCaptureAttempts = _20[1];
|
|
1248
1247
|
var _21 = useState([]),
|
|
1249
|
-
|
|
1250
|
-
|
|
1248
|
+
idBackCaptureAttempts = _21[0],
|
|
1249
|
+
setIdBackCaptureAttempts = _21[1];
|
|
1250
|
+
var _22 = useState([]),
|
|
1251
|
+
selfieCaptureAttempts = _22[0],
|
|
1252
|
+
setSelfieCaptureAttempts = _22[1];
|
|
1251
1253
|
var logIdFrontCaptureAttempt = useCallback(function (attempt) {
|
|
1252
1254
|
setIdFrontCaptureAttempts(function (attempts) {
|
|
1253
1255
|
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
@@ -1646,28 +1648,44 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1646
1648
|
}, [buildSubmissionPayload, defaultOnSubmit]);
|
|
1647
1649
|
var buildLivenessCheckPayload = useCallback(function (imageDataUrl) {
|
|
1648
1650
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
-
var request, onBeforeLivenessCheckResult;
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
switch (_d.label) {
|
|
1651
|
+
var selfie, request, onBeforeLivenessCheckResult;
|
|
1652
|
+
return __generator(this, function (_a) {
|
|
1653
|
+
switch (_a.label) {
|
|
1653
1654
|
case 0:
|
|
1654
|
-
|
|
1655
|
+
selfie = imageDataUrl;
|
|
1656
|
+
if (!(useDocumentServiceForLivenessChecks && documentServiceUrl)) return [3 /*break*/, 2];
|
|
1657
|
+
if (!selfie.startsWith('data:')) {
|
|
1658
|
+
selfie = "data:image/jpeg;base64,".concat(selfie);
|
|
1659
|
+
}
|
|
1660
|
+
return [4 /*yield*/, uploadDocument(selfie, {
|
|
1661
|
+
filename: 'liveness',
|
|
1662
|
+
filetype: 'image/jpeg'
|
|
1663
|
+
})];
|
|
1664
|
+
case 1:
|
|
1665
|
+
selfie = _a.sent();
|
|
1666
|
+
return [3 /*break*/, 3];
|
|
1667
|
+
case 2:
|
|
1668
|
+
selfie = dataUrlToBase64Sync(selfie);
|
|
1669
|
+
_a.label = 3;
|
|
1670
|
+
case 3:
|
|
1671
|
+
request = {
|
|
1655
1672
|
securityData: {
|
|
1656
1673
|
userName: '',
|
|
1657
1674
|
password: '',
|
|
1658
1675
|
merchantId: 0
|
|
1676
|
+
},
|
|
1677
|
+
customerData: {
|
|
1678
|
+
biometricData: {
|
|
1679
|
+
selfie: selfie
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
additionalData: {
|
|
1683
|
+
uniqueRequestId: new Date().getTime().toString(),
|
|
1684
|
+
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
1685
|
+
estimateAge: 'N',
|
|
1686
|
+
predictGender: 'N'
|
|
1659
1687
|
}
|
|
1660
1688
|
};
|
|
1661
|
-
_b = {};
|
|
1662
|
-
_c = {};
|
|
1663
|
-
return [4 /*yield*/, dataUrlToBase64(imageDataUrl)];
|
|
1664
|
-
case 1:
|
|
1665
|
-
request = (_a.customerData = (_b.biometricData = (_c.selfie = _d.sent(), _c), _b), _a.additionalData = {
|
|
1666
|
-
uniqueRequestId: new Date().getTime().toString(),
|
|
1667
|
-
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
1668
|
-
estimateAge: 'N',
|
|
1669
|
-
predictGender: 'N'
|
|
1670
|
-
}, _a);
|
|
1671
1689
|
if (clientRequestID) {
|
|
1672
1690
|
request.additionalData.clientRequestID = clientRequestID;
|
|
1673
1691
|
}
|
|
@@ -1686,19 +1704,19 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1686
1704
|
idBackCaptureAttempts: idBackCaptureAttempts,
|
|
1687
1705
|
geolocationResult: geolocationResult
|
|
1688
1706
|
});
|
|
1689
|
-
if (!onBeforeLivenessCheck.current) return [3 /*break*/,
|
|
1707
|
+
if (!onBeforeLivenessCheck.current) return [3 /*break*/, 5];
|
|
1690
1708
|
return [4 /*yield*/, onBeforeLivenessCheck.current(request)];
|
|
1691
|
-
case
|
|
1692
|
-
onBeforeLivenessCheckResult =
|
|
1709
|
+
case 4:
|
|
1710
|
+
onBeforeLivenessCheckResult = _a.sent();
|
|
1693
1711
|
if (onBeforeLivenessCheckResult) request = onBeforeLivenessCheckResult;
|
|
1694
|
-
|
|
1695
|
-
case
|
|
1712
|
+
_a.label = 5;
|
|
1713
|
+
case 5:
|
|
1696
1714
|
setLivenessCheckRequest(request);
|
|
1697
1715
|
return [2 /*return*/, request];
|
|
1698
1716
|
}
|
|
1699
1717
|
});
|
|
1700
1718
|
});
|
|
1701
|
-
}, [clientRequestID, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, webhooksStripSpecialCharacters]);
|
|
1719
|
+
}, [clientRequestID, documentServiceUrl, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, uploadDocument, webhooksStripSpecialCharacters]);
|
|
1702
1720
|
var checkLiveness = useCallback(function (imageDataUrl) {
|
|
1703
1721
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1704
1722
|
var request, host, endpoint, response, statusMessage, submissionResponse_3, e_2, err;
|
|
@@ -14180,6 +14198,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14180
14198
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
14181
14199
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14182
14200
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14201
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14183
14202
|
precapturedDocuments = _a.precapturedDocuments,
|
|
14184
14203
|
_c = _a.loadingOverlayMode,
|
|
14185
14204
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -14351,7 +14370,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14351
14370
|
onSubmit: onSubmit,
|
|
14352
14371
|
onResponseReceived: onResponseReceived,
|
|
14353
14372
|
geolocationEnabled: geolocationEnabled,
|
|
14354
|
-
geolocationRequired: geolocationRequired
|
|
14373
|
+
geolocationRequired: geolocationRequired,
|
|
14374
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14355
14375
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
14356
14376
|
checks: useMemo(function () {
|
|
14357
14377
|
return ['IdCapture'];
|
|
@@ -14387,6 +14407,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
14387
14407
|
webhooksFireOnReview = _c === void 0 ? false : _c,
|
|
14388
14408
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14389
14409
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14410
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14390
14411
|
_d = _a.loadingOverlayMode,
|
|
14391
14412
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
14392
14413
|
_e = _a.timeoutDurationMs,
|
|
@@ -14470,7 +14491,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
14470
14491
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
14471
14492
|
onBeforeLivenessCheck: onBeforeSubmit,
|
|
14472
14493
|
geolocationEnabled: geolocationEnabled,
|
|
14473
|
-
geolocationRequired: geolocationRequired
|
|
14494
|
+
geolocationRequired: geolocationRequired,
|
|
14495
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14474
14496
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
14475
14497
|
checks: useMemo(function () {
|
|
14476
14498
|
return ['FaceLiveness'];
|
|
@@ -14511,6 +14533,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14511
14533
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14512
14534
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14513
14535
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14536
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14514
14537
|
precapturedDocuments = _a.precapturedDocuments,
|
|
14515
14538
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
14516
14539
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -14707,7 +14730,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14707
14730
|
onSubmit: onSubmit,
|
|
14708
14731
|
onResponseReceived: onResponseReceived,
|
|
14709
14732
|
geolocationEnabled: geolocationEnabled,
|
|
14710
|
-
geolocationRequired: geolocationRequired
|
|
14733
|
+
geolocationRequired: geolocationRequired,
|
|
14734
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14711
14735
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
14712
14736
|
checks: checks,
|
|
14713
14737
|
idCaptureProps: idCaptureProps,
|
|
@@ -14756,6 +14780,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14756
14780
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
14757
14781
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
14758
14782
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
14783
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
14759
14784
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
14760
14785
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
14761
14786
|
_d = _a.idCaptureRequirement,
|
|
@@ -14969,7 +14994,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14969
14994
|
onSubmit: onSubmit,
|
|
14970
14995
|
onResponseReceived: onResponseReceived,
|
|
14971
14996
|
geolocationEnabled: geolocationEnabled,
|
|
14972
|
-
geolocationRequired: geolocationRequired
|
|
14997
|
+
geolocationRequired: geolocationRequired,
|
|
14998
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
14973
14999
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
14974
15000
|
checks: checks,
|
|
14975
15001
|
idCaptureProps: idCaptureProps,
|
|
@@ -15458,6 +15484,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
15458
15484
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
15459
15485
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
15460
15486
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
15487
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
15461
15488
|
_c = _a.loadingOverlayMode,
|
|
15462
15489
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
15463
15490
|
_d = _a.timeoutDurationMs,
|
|
@@ -15520,7 +15547,8 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
15520
15547
|
onBeforeSubmit: onBeforeSubmit,
|
|
15521
15548
|
onSubmit: onSubmit,
|
|
15522
15549
|
geolocationEnabled: geolocationEnabled,
|
|
15523
|
-
geolocationRequired: geolocationRequired
|
|
15550
|
+
geolocationRequired: geolocationRequired,
|
|
15551
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
15524
15552
|
}, /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
15525
15553
|
preferFrontFacingCamera: true,
|
|
15526
15554
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -16016,6 +16044,7 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
16016
16044
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
16017
16045
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
16018
16046
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16047
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16019
16048
|
_c = _a.loadingOverlayMode,
|
|
16020
16049
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
16021
16050
|
_d = _a.timeoutDurationMs,
|
|
@@ -16077,7 +16106,8 @@ var CustomerIdentification = function CustomerIdentification(_a) {
|
|
|
16077
16106
|
onBeforeSubmit: onBeforeSubmit,
|
|
16078
16107
|
onSubmit: onSubmit,
|
|
16079
16108
|
geolocationEnabled: geolocationEnabled,
|
|
16080
|
-
geolocationRequired: geolocationRequired
|
|
16109
|
+
geolocationRequired: geolocationRequired,
|
|
16110
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16081
16111
|
}, /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
16082
16112
|
preferFrontFacingCamera: true,
|
|
16083
16113
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -16114,6 +16144,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16114
16144
|
submissionUrl = _a.submissionUrl,
|
|
16115
16145
|
documentServiceUrl = _a.documentServiceUrl,
|
|
16116
16146
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16147
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16117
16148
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16118
16149
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16119
16150
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16167,7 +16198,8 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16167
16198
|
onSubmit: onSubmit,
|
|
16168
16199
|
onResponseReceived: onComplete,
|
|
16169
16200
|
geolocationEnabled: geolocationEnabled,
|
|
16170
|
-
geolocationRequired: geolocationRequired
|
|
16201
|
+
geolocationRequired: geolocationRequired,
|
|
16202
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16171
16203
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
16172
16204
|
debugMode: debugMode,
|
|
16173
16205
|
checks: useMemo(function () {
|
|
@@ -16225,6 +16257,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16225
16257
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
16226
16258
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16227
16259
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
16260
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16228
16261
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16229
16262
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16230
16263
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16403,7 +16436,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16403
16436
|
onBeforeSubmit: onBeforeSubmit,
|
|
16404
16437
|
onResponseReceived: onComplete,
|
|
16405
16438
|
geolocationEnabled: geolocationEnabled,
|
|
16406
|
-
geolocationRequired: geolocationRequired
|
|
16439
|
+
geolocationRequired: geolocationRequired,
|
|
16440
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16407
16441
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
16408
16442
|
checks: useMemo(function () {
|
|
16409
16443
|
return ['VideoIdCapture'];
|
|
@@ -16442,6 +16476,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
16442
16476
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
16443
16477
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
16444
16478
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16479
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16445
16480
|
_c = _a.loadingOverlayMode,
|
|
16446
16481
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
16447
16482
|
_d = _a.timeoutDurationMs,
|
|
@@ -16568,7 +16603,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
16568
16603
|
onSubmit: onSubmit,
|
|
16569
16604
|
onResponseReceived: onResponseReceived,
|
|
16570
16605
|
geolocationEnabled: geolocationEnabled,
|
|
16571
|
-
geolocationRequired: geolocationRequired
|
|
16606
|
+
geolocationRequired: geolocationRequired,
|
|
16607
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16572
16608
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
16573
16609
|
checks: useMemo(function () {
|
|
16574
16610
|
return ['FaceLiveness'];
|
|
@@ -16595,6 +16631,7 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
16595
16631
|
submissionUrl = _a.submissionUrl,
|
|
16596
16632
|
documentServiceUrl = _a.documentServiceUrl,
|
|
16597
16633
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
16634
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
16598
16635
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
16599
16636
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
16600
16637
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -16637,7 +16674,8 @@ var DocumentCapture = function DocumentCapture(_a) {
|
|
|
16637
16674
|
onDocumentUploaded: onDocumentUploaded,
|
|
16638
16675
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
16639
16676
|
geolocationEnabled: geolocationEnabled,
|
|
16640
|
-
geolocationRequired: geolocationRequired
|
|
16677
|
+
geolocationRequired: geolocationRequired,
|
|
16678
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
16641
16679
|
}, /*#__PURE__*/React__default.createElement(CameraStoreProvider, {
|
|
16642
16680
|
requestAccessAutomatically: false,
|
|
16643
16681
|
preferIphoneContinuityCamera: true,
|