@connekz/connekz-agent 0.13.0 → 0.15.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/connekz-agent.css +1 -1
- package/dist/connekz-agent.es.js +3 -3
- package/dist/connekz-agent.umd.js +1 -1
- package/package.json +5 -4
- package/types.d.ts +3 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@connekz/connekz-agent",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.15.0",
|
|
6
6
|
"description": "A package for Connekz clients to integrate Connekz Agent into their applications.",
|
|
7
7
|
"main": "./dist/connekz-agent.umd.js",
|
|
8
8
|
"module": "./dist/connekz-agent.es.js",
|
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
19
|
"types": {
|
|
20
|
-
"require": "./
|
|
21
|
-
"default": "./
|
|
20
|
+
"require": "./types.d.ts",
|
|
21
|
+
"default": "./types.d.ts"
|
|
22
22
|
},
|
|
23
23
|
"import": "./dist/connekz-agent.es.js",
|
|
24
24
|
"require": "./dist/connekz-agent.umd.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./connekz-agent.css": "./dist/connekz-agent.css"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"dev": "vite",
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ConnekzToolCallPayload = {
|
|
2
2
|
arguments: Record<string, any>;
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
@@ -6,7 +6,7 @@ export type ToolCallPayload = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Enum for voice agent statuses
|
|
8
8
|
*/
|
|
9
|
-
export enum
|
|
9
|
+
export enum ConnekzAgentStatus {
|
|
10
10
|
DISCONNECTED = 'DISCONNECTED',
|
|
11
11
|
STOPPED = 'STOPPED',
|
|
12
12
|
INITIATING = 'INITIATING',
|
|
@@ -20,7 +20,7 @@ export enum VoiceAgentStatus {
|
|
|
20
20
|
IDLE = 'IDLE',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export
|
|
23
|
+
export type ConnekzTranscript = {
|
|
24
24
|
role: 'user' | 'ai';
|
|
25
25
|
message: string;
|
|
26
26
|
at: string; // ISO date string
|
|
@@ -51,10 +51,6 @@ export type ConnekzOptions = {
|
|
|
51
51
|
baseUrl?: string; // Base URL for the connekz instance
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
export type ConnekzAgentStatus = VoiceAgentStatus;
|
|
55
|
-
export type ConnekzTranscript = ConnekzConversation;
|
|
56
|
-
export type ConnekzToolCallPayload = ToolCallPayload;
|
|
57
|
-
|
|
58
54
|
// New: Subscription types
|
|
59
55
|
export type Unsubscriber = () => void;
|
|
60
56
|
export interface SocketSubscribeAPI {
|