@runtypelabs/persona 3.36.0 → 3.37.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.
package/dist/index.d.cts CHANGED
@@ -1946,6 +1946,7 @@ type RuntypeClientChatRequest = {
1946
1946
  type: "object";
1947
1947
  [key: string]: unknown;
1948
1948
  };
1949
+ untrustedContentHint?: boolean;
1949
1950
  }>;
1950
1951
  clientToolsFingerprint?: string;
1951
1952
  inputs?: Record<string, unknown>;
@@ -5833,6 +5834,16 @@ type AgentWidgetConfig = {
5833
5834
  * ```
5834
5835
  */
5835
5836
  parseSSEEvent?: AgentWidgetSSEEventParser;
5837
+ /**
5838
+ * Wire vocabulary requested from the dispatch endpoint.
5839
+ * - `'legacy'` (default): the current `agent_*` / `flow_*` SSE events.
5840
+ * - `'unified'`: opt into the API's neutral unified event vocabulary by sending
5841
+ * `?events=unified`; incoming frames are transparently bridged back to the same
5842
+ * handlers, so rendering is unchanged. Requires an upstream that honors the
5843
+ * param — the widget detects the actual wire mode from the first stream frame
5844
+ * and falls back to legacy automatically if the param was ignored.
5845
+ */
5846
+ events?: "legacy" | "unified";
5836
5847
  /**
5837
5848
  * Called for every parsed SSE frame (after JSON parse), before native handling.
5838
5849
  * Use for lightweight side effects (e.g. telemetry). Does not replace native
@@ -6461,6 +6472,13 @@ declare class AgentWidgetClient {
6461
6472
  * Check if operating in agent execution mode
6462
6473
  */
6463
6474
  isAgentMode(): boolean;
6475
+ /**
6476
+ * Append `?events=unified` when the widget opted into the unified vocabulary,
6477
+ * preserving any existing query string. No-op for the default legacy mode.
6478
+ * The server only switches vocabularies when it sees the param; the widget
6479
+ * still auto-detects the actual wire mode from the first stream frame.
6480
+ */
6481
+ private withEventsParam;
6464
6482
  /**
6465
6483
  * Get the appropriate API URL based on mode
6466
6484
  */
package/dist/index.d.ts CHANGED
@@ -1946,6 +1946,7 @@ type RuntypeClientChatRequest = {
1946
1946
  type: "object";
1947
1947
  [key: string]: unknown;
1948
1948
  };
1949
+ untrustedContentHint?: boolean;
1949
1950
  }>;
1950
1951
  clientToolsFingerprint?: string;
1951
1952
  inputs?: Record<string, unknown>;
@@ -5833,6 +5834,16 @@ type AgentWidgetConfig = {
5833
5834
  * ```
5834
5835
  */
5835
5836
  parseSSEEvent?: AgentWidgetSSEEventParser;
5837
+ /**
5838
+ * Wire vocabulary requested from the dispatch endpoint.
5839
+ * - `'legacy'` (default): the current `agent_*` / `flow_*` SSE events.
5840
+ * - `'unified'`: opt into the API's neutral unified event vocabulary by sending
5841
+ * `?events=unified`; incoming frames are transparently bridged back to the same
5842
+ * handlers, so rendering is unchanged. Requires an upstream that honors the
5843
+ * param — the widget detects the actual wire mode from the first stream frame
5844
+ * and falls back to legacy automatically if the param was ignored.
5845
+ */
5846
+ events?: "legacy" | "unified";
5836
5847
  /**
5837
5848
  * Called for every parsed SSE frame (after JSON parse), before native handling.
5838
5849
  * Use for lightweight side effects (e.g. telemetry). Does not replace native
@@ -6461,6 +6472,13 @@ declare class AgentWidgetClient {
6461
6472
  * Check if operating in agent execution mode
6462
6473
  */
6463
6474
  isAgentMode(): boolean;
6475
+ /**
6476
+ * Append `?events=unified` when the widget opted into the unified vocabulary,
6477
+ * preserving any existing query string. No-op for the default legacy mode.
6478
+ * The server only switches vocabularies when it sees the param; the widget
6479
+ * still auto-detects the actual wire mode from the first stream frame.
6480
+ */
6481
+ private withEventsParam;
6464
6482
  /**
6465
6483
  * Get the appropriate API URL based on mode
6466
6484
  */