@pushwoosh/rpc-gateway-ai-assistant 0.1.121 → 0.1.122

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/data.js CHANGED
@@ -920,6 +920,9 @@ export const data = {
920
920
  },
921
921
  "prompt": {
922
922
  "type": "string"
923
+ },
924
+ "url": {
925
+ "type": "string"
923
926
  }
924
927
  }
925
928
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -18,13 +18,16 @@ export type Message = {
18
18
  };
19
19
  /**
20
20
  * SuggestedAction represents a model-proposed follow-up action shown as a button.
21
- * id is a stable slug used for analytics; label is the button text;
22
- * prompt is the literal user message dispatched when the button is clicked.
21
+ * id is a stable slug used for analytics; label is the button text.
22
+ * Exactly one of prompt or url must be set:
23
+ * - prompt: literal user message dispatched when the button is clicked.
24
+ * - url: external link (e.g. documentation) opened when the button is clicked.
23
25
  */
24
26
  export type SuggestedAction = {
25
27
  id: string;
26
28
  label: string;
27
29
  prompt: string;
30
+ url: string;
28
31
  };
29
32
  /** Chat represents a conversation with its metadata and messages */
30
33
  export type Chat = {