@exotel-npm-dev/exotel-ai-assist 1.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/LICENSE +201 -0
- package/README.md +294 -0
- package/controller.js +5 -0
- package/dist/components/EmptyState.d.ts +7 -0
- package/dist/components/ExotelAIAssistApp.d.ts +7 -0
- package/dist/components/ExotelAIAssistProvider.d.ts +12 -0
- package/dist/components/LoadingBox.d.ts +12 -0
- package/dist/components/Toast.d.ts +11 -0
- package/dist/components/key-components/Header.d.ts +5 -0
- package/dist/components/key-components/SuggestionTab.d.ts +7 -0
- package/dist/components/key-components/TranscriptTab.d.ts +7 -0
- package/dist/components/logos/NoInteraction.d.ts +1 -0
- package/dist/components/logos/Sparkle.d.ts +1 -0
- package/dist/controller/index.d.ts +25 -0
- package/dist/controller/index.js +1743 -0
- package/dist/hooks/useExotelAIAssist.d.ts +19 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +21867 -0
- package/dist/react/index.d.ts +8 -0
- package/dist/react/index.js +7173 -0
- package/dist/transport/index.d.ts +35 -0
- package/dist/types/index.d.ts +89 -0
- package/dist/utils/index.d.ts +39 -0
- package/package.json +97 -0
- package/react.js +5 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExotelAIAssistParams, Suggestion, TranscriptLine, Sentiment, BotConfig, ConnectionStatus } from "../types";
|
|
2
|
+
export interface UseExotelAIAssistReturn {
|
|
3
|
+
status: ConnectionStatus;
|
|
4
|
+
/** AI suggestions, oldest first, capped at 50. */
|
|
5
|
+
suggestions: Suggestion[];
|
|
6
|
+
/** Live transcript lines, ordered by start time. */
|
|
7
|
+
transcripts: TranscriptLine[];
|
|
8
|
+
/** Latest sentiment reading, or null before the first event. */
|
|
9
|
+
sentiment: Sentiment | null;
|
|
10
|
+
lastError: Error | null;
|
|
11
|
+
connect: () => void;
|
|
12
|
+
disconnect: () => void;
|
|
13
|
+
setParams: (patch: Partial<ExotelAIAssistParams>) => void;
|
|
14
|
+
}
|
|
15
|
+
/** Internal extended return — adds botConfig for the UI component only. */
|
|
16
|
+
export interface UseExotelAIAssistInternalReturn extends UseExotelAIAssistReturn {
|
|
17
|
+
botConfig: BotConfig | null;
|
|
18
|
+
}
|
|
19
|
+
export declare function useExotelAIAssist(params: ExotelAIAssistParams): UseExotelAIAssistInternalReturn;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExotelAIAssistParams } from "./types";
|
|
2
|
+
export declare function mountExotelAIAssist(container: HTMLElement, params: ExotelAIAssistParams): void;
|
|
3
|
+
export declare function unmountExotelAIAssist(container: HTMLElement): void;
|
|
4
|
+
export { ExotelAIAssistController } from "./controller";
|
|
5
|
+
export type { ExotelAIAssistParams, Suggestion, TranscriptLine, Sentiment, ConnectionStatus } from "./types";
|