@noodleseed/assistant 1.19.0 → 1.20.0

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.
@@ -4,7 +4,7 @@ import {
4
4
  copyAssistantPageContext,
5
5
  createAssistantClient,
6
6
  sessionSourceKey
7
- } from "./chunk-S373FCAI.js";
7
+ } from "./chunk-52XT7BLR.js";
8
8
  import {
9
9
  _enum,
10
10
  _null,
@@ -6844,11 +6844,11 @@ var AssistantElementEventController = class {
6844
6844
  );
6845
6845
  return;
6846
6846
  }
6847
- if (name === "auth_requested" && typeof data.continuation === "string") {
6847
+ if (name === "auth_requested" && typeof data.signInTicket === "string") {
6848
6848
  this.#appendSignInRequest(
6849
6849
  String(data.id ?? ""),
6850
6850
  String(data.tool ?? "this"),
6851
- data.continuation,
6851
+ data.signInTicket,
6852
6852
  String(data.expiresAt ?? "")
6853
6853
  );
6854
6854
  return;
@@ -6941,15 +6941,15 @@ var AssistantElementEventController = class {
6941
6941
  /**
6942
6942
  * The host application owns the login. This renders the prompt and raises
6943
6943
  * `assistant-sign-in-requested`; the page signs the visitor in however it already does, then its
6944
- * backend spends the continuation. Nothing here talks to an identity provider.
6944
+ * backend spends the sign-in ticket. Nothing here talks to an identity provider.
6945
6945
  */
6946
- #appendSignInRequest(id, tool, continuation, expiresAt) {
6946
+ #appendSignInRequest(id, tool, signInTicket, expiresAt) {
6947
6947
  const messages = this.#host.messages();
6948
6948
  if (!messages) return;
6949
6949
  this.#proposalCards.get(id)?.remove();
6950
6950
  const card = createSignInCard({
6951
6951
  tool,
6952
- continuation,
6952
+ signInTicket,
6953
6953
  expiresAt,
6954
6954
  labels: {
6955
6955
  heading: "Sign in to continue",
@@ -6957,7 +6957,7 @@ var AssistantElementEventController = class {
6957
6957
  },
6958
6958
  onSignIn: () => this.#host.element.dispatchEvent(
6959
6959
  new CustomEvent("assistant-sign-in-requested", {
6960
- detail: { id, tool, continuation, expiresAt },
6960
+ detail: { id, tool, signInTicket, expiresAt },
6961
6961
  bubbles: true,
6962
6962
  composed: true
6963
6963
  })
@@ -6968,7 +6968,7 @@ var AssistantElementEventController = class {
6968
6968
  this.#host.revealLatest();
6969
6969
  this.#host.element.dispatchEvent(
6970
6970
  new CustomEvent("assistant-sign-in-required", {
6971
- detail: { id, tool, continuation, expiresAt }
6971
+ detail: { id, tool, signInTicket, expiresAt }
6972
6972
  })
6973
6973
  );
6974
6974
  }
@@ -8465,4 +8465,4 @@ export {
8465
8465
  dompurify/dist/purify.es.mjs:
8466
8466
  (*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
8467
8467
  */
8468
- //# sourceMappingURL=chunk-RFETV5KQ.js.map
8468
+ //# sourceMappingURL=chunk-DLUINP4W.js.map