cogito-client 1.0.50 → 1.0.52
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 +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,19 @@ export declare interface CogitoCallCompletedWebhook {
|
|
|
82
82
|
startTime?: string;
|
|
83
83
|
endTime?: string;
|
|
84
84
|
messages?: CogitoMessage[];
|
|
85
|
+
callRecordings?: {
|
|
86
|
+
uri?: string;
|
|
87
|
+
fileName?: string;
|
|
88
|
+
[k: string]: unknown;
|
|
89
|
+
}[];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare interface CogitoCallStartedWebhook {
|
|
93
|
+
type?: "call-started";
|
|
94
|
+
conversationId: string;
|
|
95
|
+
callSid?: string;
|
|
96
|
+
from?: string;
|
|
97
|
+
to?: string;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
export declare interface CogitoChartSurface {
|
|
@@ -188,7 +201,7 @@ export declare interface CogitoConfig {
|
|
|
188
201
|
};
|
|
189
202
|
agents: CogitoAgent[];
|
|
190
203
|
webhooks?: {
|
|
191
|
-
events: ("message" | "call-completed")[];
|
|
204
|
+
events: ("message" | "call-completed" | "call-started")[];
|
|
192
205
|
uri: string;
|
|
193
206
|
[k: string]: unknown;
|
|
194
207
|
}[];
|
|
@@ -202,6 +215,10 @@ export declare interface CogitoConversation {
|
|
|
202
215
|
from?: string;
|
|
203
216
|
to?: string;
|
|
204
217
|
twilioCallSid?: string;
|
|
218
|
+
/**
|
|
219
|
+
* If specified, Cogito will make a POST to this URL with the call identifier (e.g. sid) to record and a file name to associate it with e.g. call.mp3
|
|
220
|
+
*/
|
|
221
|
+
recordCallUrl?: string;
|
|
205
222
|
/**
|
|
206
223
|
* The URL to use to blind transfer calls
|
|
207
224
|
*/
|
|
@@ -1053,6 +1070,7 @@ export declare interface CogitoToolMessage {
|
|
|
1053
1070
|
|
|
1054
1071
|
export declare interface CogitoUserMessage {
|
|
1055
1072
|
role: "user";
|
|
1073
|
+
name?: string;
|
|
1056
1074
|
id?: string;
|
|
1057
1075
|
date?: string;
|
|
1058
1076
|
content: string;
|
|
@@ -1327,7 +1345,7 @@ export declare interface CogitoWeatherSurface {
|
|
|
1327
1345
|
};
|
|
1328
1346
|
}
|
|
1329
1347
|
|
|
1330
|
-
export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallCompletedWebhook;
|
|
1348
|
+
export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallCompletedWebhook | CogitoCallStartedWebhook;
|
|
1331
1349
|
|
|
1332
1350
|
export declare type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
1333
1351
|
|