@telnyx/ai-chat-widget 4.2.0 → 5.0.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.ts CHANGED
@@ -5,26 +5,17 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
5
5
 
6
6
  declare type BaseProps = {
7
7
  /**
8
- * The default endpoint to use for the chat widget (user can toggle between modes)
8
+ * The default endpoint to use for the chat widget.
9
9
  * @default `aida`
10
- * @deprecated
10
+ * @deprecated No longer has any effect — there is a single endpoint, and
11
+ * this is already the default. Scheduled for removal in the next major.
11
12
  */
12
- endpoint?: 'flow' | 'aida';
13
+ endpoint?: 'aida';
13
14
  /**
14
15
  * The base URL for AIDA (Heavy thinking mode).
15
16
  * Optional — if omitted, defaults to the internal AIDA endpoint.
16
- * When only flowAPIUrl is provided, the widget runs in flow-only mode.
17
17
  */
18
18
  chatAPIUrl?: string;
19
- /**
20
- * The base URL for Flow (Instant mode). If not provided, uses chatAPIUrl.
21
- */
22
- flowAPIUrl?: string;
23
- /**
24
- * API key for Flow (Instant mode). If not provided, uses user.api_v2_token.
25
- * This allows using a separate API key for the Flow chatbot.
26
- */
27
- flowApiKey?: string;
28
19
  /**
29
20
  * The base URL of the feedback to send
30
21
  * @required
@@ -44,7 +35,7 @@ declare type BaseProps = {
44
35
  * role: 'admin',
45
36
  * expiresAt: '2025-01-01',
46
37
  * }
47
- * We use the api_v2_token to authenticate the user with the flow API.
38
+ * We use the api_v2_token to authenticate the user with the chat API.
48
39
  * @info If you include in api_v2_token, it'll be sent as an authentication header in both EventSource and Feedback API.
49
40
  */
50
41
  user: UserInfo;
@@ -79,7 +70,7 @@ declare type BaseProps = {
79
70
  firstMessage?: string | null;
80
71
  };
81
72
 
82
- export declare const ChatWidget: ({ chatAPIUrl, flowAPIUrl, flowApiKey, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, theme, firstMessage: customFirstMessage, }: ChatWidgetProps) => JSX.Element;
73
+ export declare const ChatWidget: ({ chatAPIUrl, feedbackAPIUrl, user, onHelpAction, open, setOpen, placeholders, mountPosition, mountDirection, offsetX, offsetY, icon, theme, firstMessage: customFirstMessage, }: ChatWidgetProps) => JSX.Element;
83
74
 
84
75
  declare interface ChatWidgetNoMounting extends BaseProps {
85
76
  open?: never;