@irisidea/kalrav-ai 1.0.9 → 1.0.11
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/README.md +1 -68
- package/dist/routeye-widget.js +1 -1
- package/dist/types-CrZb4oBn.d.mts +28 -0
- package/dist/types-CrZb4oBn.d.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface KalravConfig {
|
|
2
|
+
/** Your Kalrav API key */
|
|
3
|
+
apiKey: string;
|
|
4
|
+
/** Your agent/bot ID */
|
|
5
|
+
agentId: string;
|
|
6
|
+
/** Primary color for the widget (default: #4F46E5) */
|
|
7
|
+
primaryColor?: string;
|
|
8
|
+
/** Auto-load widget on initialization (default: true) */
|
|
9
|
+
autoLoad?: boolean;
|
|
10
|
+
/** Custom widget script URL */
|
|
11
|
+
widgetUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
interface KalravWidget {
|
|
14
|
+
/** Load the widget script */
|
|
15
|
+
load(): Promise<void>;
|
|
16
|
+
/** Unload the widget from the page */
|
|
17
|
+
unload(): void;
|
|
18
|
+
/** Open the chat widget */
|
|
19
|
+
open(): void;
|
|
20
|
+
/** Close the chat widget */
|
|
21
|
+
close(): void;
|
|
22
|
+
/** Check if the widget is loaded */
|
|
23
|
+
isLoaded(): boolean;
|
|
24
|
+
/** Call any widget method */
|
|
25
|
+
call(method: string, ...args: any[]): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type { KalravWidget as K, KalravConfig as a };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface KalravConfig {
|
|
2
|
+
/** Your Kalrav API key */
|
|
3
|
+
apiKey: string;
|
|
4
|
+
/** Your agent/bot ID */
|
|
5
|
+
agentId: string;
|
|
6
|
+
/** Primary color for the widget (default: #4F46E5) */
|
|
7
|
+
primaryColor?: string;
|
|
8
|
+
/** Auto-load widget on initialization (default: true) */
|
|
9
|
+
autoLoad?: boolean;
|
|
10
|
+
/** Custom widget script URL */
|
|
11
|
+
widgetUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
interface KalravWidget {
|
|
14
|
+
/** Load the widget script */
|
|
15
|
+
load(): Promise<void>;
|
|
16
|
+
/** Unload the widget from the page */
|
|
17
|
+
unload(): void;
|
|
18
|
+
/** Open the chat widget */
|
|
19
|
+
open(): void;
|
|
20
|
+
/** Close the chat widget */
|
|
21
|
+
close(): void;
|
|
22
|
+
/** Check if the widget is loaded */
|
|
23
|
+
isLoaded(): boolean;
|
|
24
|
+
/** Call any widget method */
|
|
25
|
+
call(method: string, ...args: any[]): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type { KalravWidget as K, KalravConfig as a };
|
package/package.json
CHANGED