smartcomply-web-sdk 1.0.91 → 1.0.93

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.
@@ -5837,7 +5837,7 @@ var SmartComplySDK = (() => {
5837
5837
  * CDN tag they installed with (e.g. @1, which floats to the latest
5838
5838
  * matching release) actually resolved to the version they expect.
5839
5839
  */
5840
- _SmartComply.VERSION = "1.0.91";
5840
+ _SmartComply.VERSION = "1.0.93";
5841
5841
  var SmartComply = _SmartComply;
5842
5842
 
5843
5843
  // src/flow/theme.ts
@@ -7883,6 +7883,7 @@ var SmartComplySDK = (() => {
7883
7883
  // legitimately need document_capture.
7884
7884
  info.failure_stage === "data_match") {
7885
7885
  this.selectedCountry = info.country || this.selectedCountry || "global";
7886
+ this.identityCheckId = info.identity_check_id ?? null;
7886
7887
  return "liveness";
7887
7888
  }
7888
7889
  if (info.failure_stage === "document" && info.country && info.identifier_type) {
@@ -9052,7 +9053,20 @@ var SmartComplySDK = (() => {
9052
9053
  identifier,
9053
9054
  identifier_type: this.selectedIdType,
9054
9055
  country,
9055
- challenge_actions: ["BLINK"],
9056
+ // Was hardcoded to ["BLINK"] only. This entry is reused for the
9057
+ // liveness step later via existingEntryId (see liveness.ts's
9058
+ // startCheck) — that reuse path builds a LOCAL stub object and
9059
+ // never calls create() again, so whatever challenge_actions is
9060
+ // sent HERE is what the backend permanently stores for this
9061
+ // entry, regardless of what the widget actually challenges the
9062
+ // user for afterward. A document-flow entry's liveness_challenges
9063
+ // was stuck showing only BLINK even when the customer genuinely
9064
+ // completed a full blink-and-motion scan, because the stored
9065
+ // set never included TURN_HEAD to begin with. Match
9066
+ // DEFAULT_CHALLENGE_ACTIONS so this is consistent with what the
9067
+ // liveness step (SmartComplyFlow's other startCheck call) and
9068
+ // the widget's own ActionDetector actually check for.
9069
+ challenge_actions: [...DEFAULT_CHALLENGE_ACTIONS],
9056
9070
  document: blob,
9057
9071
  document_back: this.documentBackBlob || void 0,
9058
9072
  device_type: deviceMeta.device_type,