cogito-client 1.0.68 → 1.0.70

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare interface CogitoAgent {
4
4
  id: string;
5
5
  greeting?: CogitoMessage[];
6
6
  prompt: string;
7
+ tts?: CogitoTTSConfig;
7
8
  tools?: {
8
9
  [k: string]: CogitoTool;
9
10
  };
@@ -31,6 +32,10 @@ export declare interface CogitoApprovalCardSurface {
31
32
  export declare interface CogitoAssistantMessage {
32
33
  role: "assistant";
33
34
  id?: string;
35
+ /**
36
+ * The ID of the assistant that delivered this message
37
+ */
38
+ assistantId?: string;
34
39
  date?: string;
35
40
  content: string;
36
41
  /**
@@ -98,9 +103,21 @@ export declare interface CogitoCallCompletedWebhook {
98
103
  }[];
99
104
  }
100
105
 
106
+ export declare interface CogitoCallLogsWebhook {
107
+ type?: "logs";
108
+ mode?: string;
109
+ conversationId: string;
110
+ logs: {
111
+ message: string;
112
+ date: string;
113
+ [k: string]: unknown;
114
+ }[];
115
+ }
116
+
101
117
  export declare interface CogitoCallStartedWebhook {
102
118
  type?: "call-started";
103
119
  conversationId: string;
120
+ mode?: string;
104
121
  callSid?: string;
105
122
  from?: string;
106
123
  to?: string;
@@ -373,7 +390,7 @@ export declare interface CogitoHandoffTool {
373
390
  */
374
391
  targetName?: string;
375
392
  /**
376
- * The message to say to the caller before putting them on hold during the transfer process
393
+ * The message to say to the caller before putting them on hold during the warm transfer process or before handing them to another agent
377
394
  */
378
395
  messageToCaller?: string;
379
396
  /**
@@ -1408,7 +1425,7 @@ export declare interface CogitoWeatherSurface {
1408
1425
  };
1409
1426
  }
1410
1427
 
1411
- export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallCompletedWebhook | CogitoCallStartedWebhook;
1428
+ export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallCompletedWebhook | CogitoCallStartedWebhook | CogitoCallLogsWebhook;
1412
1429
 
1413
1430
  export declare type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
1414
1431
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogito-client",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"