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
package/dist/sdk2.esm.js CHANGED
@@ -200,7 +200,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
200
200
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
201
201
  };
202
202
 
203
- var webSdkVersion = '2.2.7';
203
+ var webSdkVersion = '2.2.9';
204
204
 
205
205
  function getPlatform() {
206
206
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -267,6 +267,7 @@ var SubmissionAction;
267
267
  SubmissionAction["IDENTIFY"] = "IDENTIFY";
268
268
  SubmissionAction["VALIDATE"] = "VALIDATE";
269
269
  SubmissionAction["VERIFY"] = "VERIFY";
270
+ SubmissionAction["MATCH_ID_AND_FACE"] = "MATCH_ID_AND_FACE";
270
271
  })(SubmissionAction || (SubmissionAction = {}));
271
272
  var SubmissionStatus;
272
273
  (function (SubmissionStatus) {
@@ -279,6 +280,7 @@ var submissionHosts = {
279
280
  prod: 'https://api.idmission.com',
280
281
  demo: 'https://apidemo.idmission.com'
281
282
  };
283
+
282
284
  function determineSubmissionHost(environment, token) {
283
285
  var host = submissionHosts[environment];
284
286
  if (!host) throw new Error("unrecognized SubmissionEnvironment ".concat(environment));
@@ -294,6 +296,8 @@ function determineSubmissionEndpoint(action, hasId, hasSelfie) {
294
296
  return hasSelfie ? "/v4/customer/validate-id-match-face" : "/v4/customer/validate-id";
295
297
  case SubmissionAction.VERIFY:
296
298
  return "/v4/customer/verify";
299
+ case SubmissionAction.MATCH_ID_AND_FACE:
300
+ return "/v4/customer/match-id-face";
297
301
  default:
298
302
  throw new Error("unrecognized SubmissionAction ".concat(action));
299
303
  }
@@ -15213,28 +15217,30 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15213
15217
  silentFallback = _t === void 0 ? false : _t,
15214
15218
  _u = _a.mergeAVStreams,
15215
15219
  mergeAVStreams = _u === void 0 ? false : _u,
15216
- _v = _a.theme,
15217
- theme = _v === void 0 ? 'default' : _v,
15218
- _w = _a.assets,
15219
- assets = _w === void 0 ? {} : _w,
15220
- _x = _a.classNames,
15221
- classNames = _x === void 0 ? {} : _x,
15222
- _y = _a.colors,
15223
- colors = _y === void 0 ? {} : _y,
15224
- _z = _a.verbiage,
15225
- verbiage = _z === void 0 ? {} : _z,
15226
- _0 = _a.captureSignature,
15227
- captureSignature = _0 === void 0 ? false : _0,
15228
- _1 = _a.captureSignatureVideo,
15229
- captureSignatureVideo = _1 === void 0 ? false : _1,
15230
- _2 = _a.captureAdditionalDocuments,
15231
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
15232
- _3 = _a.geolocationEnabled,
15233
- geolocationEnabled = _3 === void 0 ? true : _3,
15234
- _4 = _a.geolocationRequired,
15235
- geolocationRequired = _4 === void 0 ? false : _4,
15236
- _5 = _a.debugMode,
15237
- debugMode = _5 === void 0 ? false : _5;
15220
+ _v = _a.matchOnly,
15221
+ matchOnly = _v === void 0 ? false : _v,
15222
+ _w = _a.theme,
15223
+ theme = _w === void 0 ? 'default' : _w,
15224
+ _x = _a.assets,
15225
+ assets = _x === void 0 ? {} : _x,
15226
+ _y = _a.classNames,
15227
+ classNames = _y === void 0 ? {} : _y,
15228
+ _z = _a.colors,
15229
+ colors = _z === void 0 ? {} : _z,
15230
+ _0 = _a.verbiage,
15231
+ verbiage = _0 === void 0 ? {} : _0,
15232
+ _1 = _a.captureSignature,
15233
+ captureSignature = _1 === void 0 ? false : _1,
15234
+ _2 = _a.captureSignatureVideo,
15235
+ captureSignatureVideo = _2 === void 0 ? false : _2,
15236
+ _3 = _a.captureAdditionalDocuments,
15237
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
15238
+ _4 = _a.geolocationEnabled,
15239
+ geolocationEnabled = _4 === void 0 ? true : _4,
15240
+ _5 = _a.geolocationRequired,
15241
+ geolocationRequired = _5 === void 0 ? false : _5,
15242
+ _6 = _a.debugMode,
15243
+ debugMode = _6 === void 0 ? false : _6;
15238
15244
  useLanguage(lang);
15239
15245
  useDebugLogging(debugMode);
15240
15246
  var videoIdCaptureProps = useMemo(function () {
@@ -15301,7 +15307,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15301
15307
  }, /*#__PURE__*/React__default.createElement(ThemeProvider, {
15302
15308
  theme: theme
15303
15309
  }, /*#__PURE__*/React__default.createElement(SubmissionProvider, {
15304
- action: skipIdCapture ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
15310
+ action: idCardForFaceMatch || !skipIdCapture ? matchOnly ? SubmissionAction.MATCH_ID_AND_FACE : SubmissionAction.VALIDATE : SubmissionAction.NONE,
15305
15311
  submissionUrl: submissionUrl,
15306
15312
  clientRequestID: clientRequestID,
15307
15313
  documentServiceUrl: documentServiceUrl,