cogito-client 1.0.45 → 1.0.46
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 +9 -2
- package/package.json +50 -50
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,13 @@ export declare interface CogitoAudioSurface {
|
|
|
73
73
|
|
|
74
74
|
export declare type CogitoBuiltInSurface = CogitoApprovalCardSurface | CogitoDataTableSurface | CogitoImageSurface | CogitoImageGallerySurface | CogitoVideoSurface | CogitoAudioSurface | CogitoTerminalSurface | CogitoQuestionFlowSurface | CogitoPreferencesPanelSurface | CogitoParameterSliderSurface | CogitoOptionListSurface | CogitoProgressTrackerSurface | CogitoPlanSurface | CogitoOrderSummarySurface | CogitoCitationSurface | CogitoCodeSurface | CogitoWeatherSurface | CogitoStatsDisplaySurface | CogitoItemCarouselSurface | CogitoChartSurface | CogitoLinkPreviewSurface;
|
|
75
75
|
|
|
76
|
+
export declare interface CogitoCallCompletedWebhook {
|
|
77
|
+
type?: "call-completed";
|
|
78
|
+
conversationId: string;
|
|
79
|
+
startTime?: string;
|
|
80
|
+
endTime?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
76
83
|
export declare interface CogitoChartSurface {
|
|
77
84
|
type: "chart";
|
|
78
85
|
state: {
|
|
@@ -159,7 +166,7 @@ export declare interface CogitoCodeSurface {
|
|
|
159
166
|
export declare interface CogitoConfig {
|
|
160
167
|
agents?: CogitoAgent[];
|
|
161
168
|
webhooks?: {
|
|
162
|
-
events: "message"[];
|
|
169
|
+
events: ("message" | "call-completed")[];
|
|
163
170
|
uri: string;
|
|
164
171
|
[k: string]: unknown;
|
|
165
172
|
}[];
|
|
@@ -1296,7 +1303,7 @@ export declare interface CogitoWeatherSurface {
|
|
|
1296
1303
|
};
|
|
1297
1304
|
}
|
|
1298
1305
|
|
|
1299
|
-
export declare type CogitoWebhookPayload = CogitoMessageWebhook;
|
|
1306
|
+
export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallCompletedWebhook;
|
|
1300
1307
|
|
|
1301
1308
|
export declare type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
1302
1309
|
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cogito-client",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"main": "./dist/index.umd.cjs",
|
|
9
|
-
"module": "./dist/index.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"require": "./dist/index.umd.cjs"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"dev": "vite",
|
|
18
|
-
"build": "tsc -b && vite build",
|
|
19
|
-
"watch": "vite build --watch",
|
|
20
|
-
"lint": "eslint .",
|
|
21
|
-
"preview": "vite preview",
|
|
22
|
-
"schema gen (caution)": "sh schema-gen.sh",
|
|
23
|
-
"pub": "sh schema-gen.sh && npm version patch --force && tsc -b && vite build && npx dotenv-cli -e .env.local -- npm publish"
|
|
24
|
-
},
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"livekit-client": "^2.17.0",
|
|
27
|
-
"react": "^19.2.0",
|
|
28
|
-
"react-dom": "^19.2.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@eslint/js": "^9.39.1",
|
|
32
|
-
"@types/fs-extra": "^11.0.4",
|
|
33
|
-
"@types/node": "^24.10.1",
|
|
34
|
-
"@types/react": "^19.2.5",
|
|
35
|
-
"@types/react-dom": "^19.2.3",
|
|
36
|
-
"@vitejs/plugin-react": "^5.1.1",
|
|
37
|
-
"eslint": "^9.39.1",
|
|
38
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
39
|
-
"eslint-plugin-react-refresh": "^0.4.24",
|
|
40
|
-
"fs-extra": "^11.3.3",
|
|
41
|
-
"globals": "^16.5.0",
|
|
42
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
43
|
-
"react": "^19.2.0",
|
|
44
|
-
"react-dom": "^19.2.0",
|
|
45
|
-
"typescript": "~5.9.3",
|
|
46
|
-
"typescript-eslint": "^8.46.4",
|
|
47
|
-
"vite": "^7.2.4",
|
|
48
|
-
"vite-plugin-dts": "^4.5.4"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cogito-client",
|
|
3
|
+
"version": "1.0.46",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/index.umd.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.umd.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "tsc -b && vite build",
|
|
19
|
+
"watch": "vite build --watch",
|
|
20
|
+
"lint": "eslint .",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"schema gen (caution)": "sh schema-gen.sh",
|
|
23
|
+
"pub": "sh schema-gen.sh && npm version patch --force && tsc -b && vite build && npx dotenv-cli -e .env.local -- npm publish"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"livekit-client": "^2.17.0",
|
|
27
|
+
"react": "^19.2.0",
|
|
28
|
+
"react-dom": "^19.2.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.39.1",
|
|
32
|
+
"@types/fs-extra": "^11.0.4",
|
|
33
|
+
"@types/node": "^24.10.1",
|
|
34
|
+
"@types/react": "^19.2.5",
|
|
35
|
+
"@types/react-dom": "^19.2.3",
|
|
36
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
37
|
+
"eslint": "^9.39.1",
|
|
38
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
39
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
40
|
+
"fs-extra": "^11.3.3",
|
|
41
|
+
"globals": "^16.5.0",
|
|
42
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
43
|
+
"react": "^19.2.0",
|
|
44
|
+
"react-dom": "^19.2.0",
|
|
45
|
+
"typescript": "~5.9.3",
|
|
46
|
+
"typescript-eslint": "^8.46.4",
|
|
47
|
+
"vite": "^7.2.4",
|
|
48
|
+
"vite-plugin-dts": "^4.5.4"
|
|
49
|
+
}
|
|
50
|
+
}
|