@smartspace/chat-ui 1.14.4-pr.620.883fd31 → 1.14.4-pr.625.76ed6db

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/index.js CHANGED
@@ -2620,7 +2620,8 @@ function kickOff(fn) {
2620
2620
  var isSupported = () => typeof window !== "undefined" && window.isSecureContext && !!navigator.mediaDevices?.getUserMedia;
2621
2621
  function classifyTokenFailure(error) {
2622
2622
  const code3 = error?.code;
2623
- if (code3 === "SP500") return "unavailable";
2623
+ if (code3 === "speech.identity_misconfigured" || code3 === "SP500")
2624
+ return "unavailable";
2624
2625
  if (error?.type === "NotFound") {
2625
2626
  return "unavailable";
2626
2627
  }
@@ -19627,12 +19628,18 @@ var ERROR_CODE_TEXT = {
19627
19628
  "llm.schema_validation": "\u26A0\uFE0F **The model returned an invalid response**\n\nPlease try again.",
19628
19629
  "llm.unsupported_modality": "\u26A0\uFE0F **This model can't read images**\n\nSwitch to a vision-capable model, or remove the attachment and describe it instead.",
19629
19630
  "llm.unknown": GENERIC_ERROR_TEXT,
19631
+ // The AI API's current names for the two above; older messages stored those.
19632
+ "llm.auth_failed": "\u26A0\uFE0F **The model connection isn't authorised**\n\nAn administrator needs to check the model configuration.",
19633
+ "llm.provider_error": GENERIC_ERROR_TEXT,
19634
+ "llm.unsupported_tools": "\u26A0\uFE0F **This model can't use tools**\n\nAn administrator needs to choose a model that supports tools for this step.",
19630
19635
  // Managed secrets. A secret's failure arrives as a 404 or 400, which the
19631
19636
  // status table below would read as a missing model or a generic error.
19632
19637
  "secret.user_value_not_set": "\u26A0\uFE0F **Your own key for this isn't set**\n\nThis step uses a credential each person sets for themselves, and none is set for you yet. Ask an administrator to add it.",
19633
19638
  "secret.run_has_no_user": "\u26A0\uFE0F **This step needs a signed-in user**\n\nIt uses a person's own credential, so it can't run when no one started the run.",
19634
19639
  "secret.user_mismatch": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
19635
19640
  "secret.run_required": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
19641
+ "secret.not_found": "\u26A0\uFE0F **A secret this flow uses doesn't exist**\n\nAn administrator needs to add it, or point the flow at another one.",
19642
+ // The API's name for secret.not_found before it was renamed; older messages stored it.
19636
19643
  MS404: "\u26A0\uFE0F **A secret this flow uses doesn't exist**\n\nAn administrator needs to add it, or point the flow at another one."
19637
19644
  };
19638
19645
  var STATUS_CODE_TEXT = {