cogito-client 1.0.46 → 1.0.49
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 +25 -2
- package/dist/index.js +2447 -2445
- package/dist/index.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export declare type CogitoBuiltInSurface = CogitoApprovalCardSurface | CogitoDat
|
|
|
76
76
|
export declare interface CogitoCallCompletedWebhook {
|
|
77
77
|
type?: "call-completed";
|
|
78
78
|
conversationId: string;
|
|
79
|
+
from?: string;
|
|
80
|
+
to?: string;
|
|
79
81
|
startTime?: string;
|
|
80
82
|
endTime?: string;
|
|
81
83
|
}
|
|
@@ -164,7 +166,25 @@ export declare interface CogitoCodeSurface {
|
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
export declare interface CogitoConfig {
|
|
167
|
-
|
|
169
|
+
stt?: {
|
|
170
|
+
model?: string;
|
|
171
|
+
language?: string;
|
|
172
|
+
[k: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
tts?: {
|
|
175
|
+
model?: string;
|
|
176
|
+
voice?: string;
|
|
177
|
+
language?: string;
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
};
|
|
180
|
+
llm?: {
|
|
181
|
+
model?: string;
|
|
182
|
+
extra_kwargs?: {
|
|
183
|
+
[k: string]: unknown;
|
|
184
|
+
};
|
|
185
|
+
[k: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
agents: CogitoAgent[];
|
|
168
188
|
webhooks?: {
|
|
169
189
|
events: ("message" | "call-completed")[];
|
|
170
190
|
uri: string;
|
|
@@ -175,6 +195,7 @@ export declare interface CogitoConfig {
|
|
|
175
195
|
|
|
176
196
|
export declare interface CogitoConversation {
|
|
177
197
|
id: string;
|
|
198
|
+
mode?: string;
|
|
178
199
|
configuration: CogitoConfig;
|
|
179
200
|
from?: string;
|
|
180
201
|
to?: string;
|
|
@@ -1307,7 +1328,7 @@ export declare type CogitoWebhookPayload = CogitoMessageWebhook | CogitoCallComp
|
|
|
1307
1328
|
|
|
1308
1329
|
export declare type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
1309
1330
|
|
|
1310
|
-
export declare function useCogito({ mode, server, configuration, id }: UseCogitoOptions): {
|
|
1331
|
+
export declare function useCogito({ mode, server, configuration, applicationId, tenantId, id }: UseCogitoOptions): {
|
|
1311
1332
|
messages: CogitoMessage[];
|
|
1312
1333
|
connectionState: ConnectionState;
|
|
1313
1334
|
isLoading: boolean;
|
|
@@ -1328,6 +1349,8 @@ declare interface UseCogitoOptions {
|
|
|
1328
1349
|
server: string;
|
|
1329
1350
|
mode: ChatMode;
|
|
1330
1351
|
configuration: string;
|
|
1352
|
+
applicationId: string;
|
|
1353
|
+
tenantId: string;
|
|
1331
1354
|
/** Optional unique identifier for localStorage conversation key.
|
|
1332
1355
|
* When provided, each id gets its own conversation history.
|
|
1333
1356
|
* Without it, all agents share a single global conversation. */
|