idmission-web-sdk 2.2.7 → 2.2.9

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.
Files changed (59) hide show
  1. package/dist/components/CompositeWizard.d.ts.map +1 -1
  2. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +1 -1
  3. package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
  4. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +1 -1
  5. package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
  6. package/dist/components/customer_flows/CustomerIdentification.d.ts +1 -1
  7. package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
  8. package/dist/components/customer_flows/CustomerVerification.d.ts +1 -1
  9. package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
  10. package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
  11. package/dist/components/customer_flows/FaceValidation.d.ts +1 -1
  12. package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
  13. package/dist/components/customer_flows/IdAndFaceValidation.d.ts +1 -1
  14. package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
  15. package/dist/components/customer_flows/IdValidation.d.ts +1 -1
  16. package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
  17. package/dist/components/customer_flows/SignatureKYC.d.ts +1 -1
  18. package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
  19. package/dist/components/customer_flows/VideoIdValidation.d.ts +3 -1
  20. package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
  21. package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts +1 -1
  22. package/dist/components/customer_identification/CustomerIdentificationCapture.d.ts.map +1 -1
  23. package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts +1 -1
  24. package/dist/components/customer_identification/CustomerIdentificationWizard.d.ts.map +1 -1
  25. package/dist/components/customer_verification/CustomerVerificationCapture.d.ts +1 -1
  26. package/dist/components/customer_verification/CustomerVerificationCapture.d.ts.map +1 -1
  27. package/dist/components/customer_verification/CustomerVerificationWizard.d.ts +1 -1
  28. package/dist/components/customer_verification/CustomerVerificationWizard.d.ts.map +1 -1
  29. package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
  30. package/dist/components/face_liveness/FaceLivenessWizard.d.ts +1 -1
  31. package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
  32. package/dist/components/id_capture/IdCapture.d.ts +1 -1
  33. package/dist/components/id_capture/IdCapture.d.ts.map +1 -1
  34. package/dist/components/id_capture/IdCaptureSuccess.d.ts.map +1 -1
  35. package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
  36. package/dist/components/submission/Errors.d.ts +1 -1
  37. package/dist/components/submission/Errors.d.ts.map +1 -1
  38. package/dist/components/submission/SubmissionProvider.d.ts +2 -2
  39. package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
  40. package/dist/components/submission/types.d.ts +189 -0
  41. package/dist/components/submission/types.d.ts.map +1 -0
  42. package/dist/components/video_id/IdVideoCaptureWizard.d.ts +1 -1
  43. package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
  44. package/dist/contexts/SubmissionContext.d.ts +1 -187
  45. package/dist/contexts/SubmissionContext.d.ts.map +1 -1
  46. package/dist/index.d.ts +1 -1
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/sdk2.cjs.development.js +30 -24
  49. package/dist/sdk2.cjs.development.js.map +1 -1
  50. package/dist/sdk2.cjs.production.js +1 -1
  51. package/dist/sdk2.cjs.production.js.map +1 -1
  52. package/dist/sdk2.esm.js +30 -24
  53. package/dist/sdk2.esm.js.map +1 -1
  54. package/dist/sdk2.umd.development.js +30 -24
  55. package/dist/sdk2.umd.development.js.map +1 -1
  56. package/dist/sdk2.umd.production.js +1 -1
  57. package/dist/sdk2.umd.production.js.map +1 -1
  58. package/dist/version.d.ts +1 -1
  59. package/package.json +3 -3
@@ -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.7';
214
+ var webSdkVersion = '2.2.9';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -278,6 +278,7 @@
278
278
  SubmissionAction["IDENTIFY"] = "IDENTIFY";
279
279
  SubmissionAction["VALIDATE"] = "VALIDATE";
280
280
  SubmissionAction["VERIFY"] = "VERIFY";
281
+ SubmissionAction["MATCH_ID_AND_FACE"] = "MATCH_ID_AND_FACE";
281
282
  })(SubmissionAction || (SubmissionAction = {}));
282
283
  var SubmissionStatus;
283
284
  (function (SubmissionStatus) {
@@ -290,6 +291,7 @@
290
291
  prod: 'https://api.idmission.com',
291
292
  demo: 'https://apidemo.idmission.com'
292
293
  };
294
+
293
295
  function determineSubmissionHost(environment, token) {
294
296
  var host = submissionHosts[environment];
295
297
  if (!host) throw new Error("unrecognized SubmissionEnvironment ".concat(environment));
@@ -305,6 +307,8 @@
305
307
  return hasSelfie ? "/v4/customer/validate-id-match-face" : "/v4/customer/validate-id";
306
308
  case SubmissionAction.VERIFY:
307
309
  return "/v4/customer/verify";
310
+ case SubmissionAction.MATCH_ID_AND_FACE:
311
+ return "/v4/customer/match-id-face";
308
312
  default:
309
313
  throw new Error("unrecognized SubmissionAction ".concat(action));
310
314
  }
@@ -24952,28 +24956,30 @@
24952
24956
  silentFallback = _t === void 0 ? false : _t,
24953
24957
  _u = _a.mergeAVStreams,
24954
24958
  mergeAVStreams = _u === void 0 ? false : _u,
24955
- _v = _a.theme,
24956
- theme = _v === void 0 ? 'default' : _v,
24957
- _w = _a.assets,
24958
- assets = _w === void 0 ? {} : _w,
24959
- _x = _a.classNames,
24960
- classNames = _x === void 0 ? {} : _x,
24961
- _y = _a.colors,
24962
- colors = _y === void 0 ? {} : _y,
24963
- _z = _a.verbiage,
24964
- verbiage = _z === void 0 ? {} : _z,
24965
- _0 = _a.captureSignature,
24966
- captureSignature = _0 === void 0 ? false : _0,
24967
- _1 = _a.captureSignatureVideo,
24968
- captureSignatureVideo = _1 === void 0 ? false : _1,
24969
- _2 = _a.captureAdditionalDocuments,
24970
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
24971
- _3 = _a.geolocationEnabled,
24972
- geolocationEnabled = _3 === void 0 ? true : _3,
24973
- _4 = _a.geolocationRequired,
24974
- geolocationRequired = _4 === void 0 ? false : _4,
24975
- _5 = _a.debugMode,
24976
- debugMode = _5 === void 0 ? false : _5;
24959
+ _v = _a.matchOnly,
24960
+ matchOnly = _v === void 0 ? false : _v,
24961
+ _w = _a.theme,
24962
+ theme = _w === void 0 ? 'default' : _w,
24963
+ _x = _a.assets,
24964
+ assets = _x === void 0 ? {} : _x,
24965
+ _y = _a.classNames,
24966
+ classNames = _y === void 0 ? {} : _y,
24967
+ _z = _a.colors,
24968
+ colors = _z === void 0 ? {} : _z,
24969
+ _0 = _a.verbiage,
24970
+ verbiage = _0 === void 0 ? {} : _0,
24971
+ _1 = _a.captureSignature,
24972
+ captureSignature = _1 === void 0 ? false : _1,
24973
+ _2 = _a.captureSignatureVideo,
24974
+ captureSignatureVideo = _2 === void 0 ? false : _2,
24975
+ _3 = _a.captureAdditionalDocuments,
24976
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
24977
+ _4 = _a.geolocationEnabled,
24978
+ geolocationEnabled = _4 === void 0 ? true : _4,
24979
+ _5 = _a.geolocationRequired,
24980
+ geolocationRequired = _5 === void 0 ? false : _5,
24981
+ _6 = _a.debugMode,
24982
+ debugMode = _6 === void 0 ? false : _6;
24977
24983
  useLanguage(lang);
24978
24984
  useDebugLogging(debugMode);
24979
24985
  var videoIdCaptureProps = React.useMemo(function () {
@@ -25040,7 +25046,7 @@
25040
25046
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
25041
25047
  theme: theme
25042
25048
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
25043
- action: skipIdCapture ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
25049
+ action: idCardForFaceMatch || !skipIdCapture ? matchOnly ? SubmissionAction.MATCH_ID_AND_FACE : SubmissionAction.VALIDATE : SubmissionAction.NONE,
25044
25050
  submissionUrl: submissionUrl,
25045
25051
  clientRequestID: clientRequestID,
25046
25052
  documentServiceUrl: documentServiceUrl,