@roarkanalytics/sdk 7.9.0 → 8.0.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/CHANGELOG.md +16 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +18 -3
- package/client.js.map +1 -1
- package/client.mjs +18 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +197 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -294
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class AgentConversation extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Starts a voice conversation (`modality: voice`) or chat (`modality: chat`) with
|
|
11
|
+
* this Roark-hosted agent and returns its id right away.
|
|
12
|
+
*
|
|
13
|
+
* `channel: web` is a conversation in a browser on your site. Call this endpoint
|
|
14
|
+
* from your server, never the browser: it needs your API key. Give the page only
|
|
15
|
+
* `web.clientToken`; the web SDK spends it to join from one of `allowedOrigins`
|
|
16
|
+
* before `web.clientTokenExpiresAt`.
|
|
17
|
+
*
|
|
18
|
+
* Read it back with `GET /v1/conversation/{conversationId}` straight away:
|
|
19
|
+
* `PENDING` until the browser joins, `IN_PROGRESS`, then `ENDED`. One nobody joins
|
|
20
|
+
* ends without ever starting and is never billed. Starting a voice conversation
|
|
21
|
+
* needs `call:create`, a chat `chat:create`, and the agent a published version
|
|
22
|
+
* that takes that kind.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const agentConversation =
|
|
27
|
+
* await client.agentConversation.create(
|
|
28
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
29
|
+
* {
|
|
30
|
+
* allowedOrigins: ['https://app.example.com'],
|
|
31
|
+
* channel: 'web',
|
|
32
|
+
* modality: 'voice',
|
|
33
|
+
* },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
create(
|
|
38
|
+
agentID: string,
|
|
39
|
+
body: AgentConversationCreateParams,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<AgentConversationCreateResponse> {
|
|
42
|
+
return this._client.post(path`/v1/agent/${agentID}/conversations`, { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface AgentConversationCreateResponse {
|
|
47
|
+
data: AgentConversationCreateResponse.Data;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace AgentConversationCreateResponse {
|
|
51
|
+
export interface Data {
|
|
52
|
+
/**
|
|
53
|
+
* The conversation id. Read it with `GET /v1/conversation/{conversationId}`; once
|
|
54
|
+
* it is recorded it is also its call or chat id, and a call's tools get it as
|
|
55
|
+
* `{{conversation.id}}`.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
agentId: string;
|
|
60
|
+
|
|
61
|
+
channel: 'web';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* When it was created (ISO 8601).
|
|
65
|
+
*/
|
|
66
|
+
createdAt: string;
|
|
67
|
+
|
|
68
|
+
modality: 'voice' | 'chat';
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Waiting for the browser to join.
|
|
72
|
+
*/
|
|
73
|
+
status: 'PENDING';
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* What a browser needs to join the conversation.
|
|
77
|
+
*/
|
|
78
|
+
web: Data.Web;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export namespace Data {
|
|
82
|
+
/**
|
|
83
|
+
* What a browser needs to join the conversation.
|
|
84
|
+
*/
|
|
85
|
+
export interface Web {
|
|
86
|
+
/**
|
|
87
|
+
* The origins the browser may join from, normalized.
|
|
88
|
+
*/
|
|
89
|
+
allowedOrigins: Array<string>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A single-use token for the browser, and the only thing your page should get. The
|
|
93
|
+
* web SDK spends it to join from one of `allowedOrigins` before
|
|
94
|
+
* `clientTokenExpiresAt`, and runs the connection itself. It is not an API key.
|
|
95
|
+
*/
|
|
96
|
+
clientToken: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* When the browser can no longer join (ISO 8601).
|
|
100
|
+
*/
|
|
101
|
+
clientTokenExpiresAt: string;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type AgentConversationCreateParams = AgentConversationCreateParams.AgentConversationCreateParams;
|
|
107
|
+
|
|
108
|
+
export declare namespace AgentConversationCreateParams {
|
|
109
|
+
export interface AgentConversationCreateParams {
|
|
110
|
+
/**
|
|
111
|
+
* The origins your page may join from, exactly as the browser sends them: https
|
|
112
|
+
* only (http on localhost for development), no paths or wildcards.
|
|
113
|
+
*/
|
|
114
|
+
allowedOrigins: Array<string>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* How it is reached. `web`: in a browser on one of `allowedOrigins`, joined with
|
|
118
|
+
* the web SDK.
|
|
119
|
+
*/
|
|
120
|
+
channel: 'web';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* `voice` or `chat`. The agent must have that modality turned on.
|
|
124
|
+
*/
|
|
125
|
+
modality: 'voice' | 'chat' | 'call';
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* How long the browser has to join, in seconds. Default 120.
|
|
129
|
+
*/
|
|
130
|
+
clientTokenTtlSeconds?: number;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare namespace AgentConversation {
|
|
135
|
+
export {
|
|
136
|
+
type AgentConversationCreateResponse as AgentConversationCreateResponse,
|
|
137
|
+
type AgentConversationCreateParams as AgentConversationCreateParams,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -204,9 +204,9 @@ export namespace AgentDraftCreateResponse {
|
|
|
204
204
|
language: string | null;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* Whether the agent
|
|
207
|
+
* Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
|
|
208
208
|
*/
|
|
209
|
-
modalities: Array<'
|
|
209
|
+
modalities: Array<'voice' | 'chat'>;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* ISO 8601.
|
|
@@ -248,8 +248,22 @@ export namespace AgentDraftCreateResponse {
|
|
|
248
248
|
*/
|
|
249
249
|
updatedAt: string;
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* The longest silence the agent waits through when the caller sounds unfinished,
|
|
253
|
+
* never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
|
|
254
|
+
* default.
|
|
255
|
+
*/
|
|
256
|
+
vadMaxSilenceSecs: number | null;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Seconds of speech before it counts as the caller talking. Null uses the default.
|
|
260
|
+
*/
|
|
251
261
|
vadStartSecs: number | null;
|
|
252
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Seconds of silence before the agent checks whether the caller has finished. Null
|
|
265
|
+
* uses the default.
|
|
266
|
+
*/
|
|
253
267
|
vadStopSecs: number | null;
|
|
254
268
|
|
|
255
269
|
/**
|
|
@@ -364,7 +378,18 @@ export namespace AgentDraftCreateResponse {
|
|
|
364
378
|
*/
|
|
365
379
|
model: string;
|
|
366
380
|
|
|
367
|
-
provider:
|
|
381
|
+
provider:
|
|
382
|
+
| 'OPENAI'
|
|
383
|
+
| 'ANTHROPIC'
|
|
384
|
+
| 'GOOGLE'
|
|
385
|
+
| 'XAI'
|
|
386
|
+
| 'ULTRAVOX'
|
|
387
|
+
| 'AWS'
|
|
388
|
+
| 'ELEVENLABS'
|
|
389
|
+
| 'GROQ'
|
|
390
|
+
| 'META'
|
|
391
|
+
| 'RIME'
|
|
392
|
+
| 'PHONIC';
|
|
368
393
|
|
|
369
394
|
/**
|
|
370
395
|
* 0 to 2.
|
|
@@ -391,7 +416,7 @@ export namespace AgentDraftCreateResponse {
|
|
|
391
416
|
*/
|
|
392
417
|
model: string;
|
|
393
418
|
|
|
394
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
419
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
395
420
|
|
|
396
421
|
smartFormat: boolean | null;
|
|
397
422
|
|
|
@@ -407,7 +432,7 @@ export namespace AgentDraftCreateResponse {
|
|
|
407
432
|
*/
|
|
408
433
|
model: string;
|
|
409
434
|
|
|
410
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
435
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
411
436
|
|
|
412
437
|
/**
|
|
413
438
|
* 0 to 1, ElevenLabs.
|
|
@@ -462,7 +487,18 @@ export namespace AgentDraftCreateResponse {
|
|
|
462
487
|
*/
|
|
463
488
|
model: string;
|
|
464
489
|
|
|
465
|
-
provider:
|
|
490
|
+
provider:
|
|
491
|
+
| 'OPENAI'
|
|
492
|
+
| 'ANTHROPIC'
|
|
493
|
+
| 'GOOGLE'
|
|
494
|
+
| 'XAI'
|
|
495
|
+
| 'ULTRAVOX'
|
|
496
|
+
| 'AWS'
|
|
497
|
+
| 'ELEVENLABS'
|
|
498
|
+
| 'GROQ'
|
|
499
|
+
| 'META'
|
|
500
|
+
| 'RIME'
|
|
501
|
+
| 'PHONIC';
|
|
466
502
|
|
|
467
503
|
/**
|
|
468
504
|
* 0 to 2.
|
|
@@ -607,9 +643,9 @@ export namespace AgentDraftUpdateResponse {
|
|
|
607
643
|
language: string | null;
|
|
608
644
|
|
|
609
645
|
/**
|
|
610
|
-
* Whether the agent
|
|
646
|
+
* Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
|
|
611
647
|
*/
|
|
612
|
-
modalities: Array<'
|
|
648
|
+
modalities: Array<'voice' | 'chat'>;
|
|
613
649
|
|
|
614
650
|
/**
|
|
615
651
|
* ISO 8601.
|
|
@@ -651,8 +687,22 @@ export namespace AgentDraftUpdateResponse {
|
|
|
651
687
|
*/
|
|
652
688
|
updatedAt: string;
|
|
653
689
|
|
|
690
|
+
/**
|
|
691
|
+
* The longest silence the agent waits through when the caller sounds unfinished,
|
|
692
|
+
* never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
|
|
693
|
+
* default.
|
|
694
|
+
*/
|
|
695
|
+
vadMaxSilenceSecs: number | null;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Seconds of speech before it counts as the caller talking. Null uses the default.
|
|
699
|
+
*/
|
|
654
700
|
vadStartSecs: number | null;
|
|
655
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Seconds of silence before the agent checks whether the caller has finished. Null
|
|
704
|
+
* uses the default.
|
|
705
|
+
*/
|
|
656
706
|
vadStopSecs: number | null;
|
|
657
707
|
|
|
658
708
|
/**
|
|
@@ -767,7 +817,18 @@ export namespace AgentDraftUpdateResponse {
|
|
|
767
817
|
*/
|
|
768
818
|
model: string;
|
|
769
819
|
|
|
770
|
-
provider:
|
|
820
|
+
provider:
|
|
821
|
+
| 'OPENAI'
|
|
822
|
+
| 'ANTHROPIC'
|
|
823
|
+
| 'GOOGLE'
|
|
824
|
+
| 'XAI'
|
|
825
|
+
| 'ULTRAVOX'
|
|
826
|
+
| 'AWS'
|
|
827
|
+
| 'ELEVENLABS'
|
|
828
|
+
| 'GROQ'
|
|
829
|
+
| 'META'
|
|
830
|
+
| 'RIME'
|
|
831
|
+
| 'PHONIC';
|
|
771
832
|
|
|
772
833
|
/**
|
|
773
834
|
* 0 to 2.
|
|
@@ -794,7 +855,7 @@ export namespace AgentDraftUpdateResponse {
|
|
|
794
855
|
*/
|
|
795
856
|
model: string;
|
|
796
857
|
|
|
797
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
858
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
798
859
|
|
|
799
860
|
smartFormat: boolean | null;
|
|
800
861
|
|
|
@@ -810,7 +871,7 @@ export namespace AgentDraftUpdateResponse {
|
|
|
810
871
|
*/
|
|
811
872
|
model: string;
|
|
812
873
|
|
|
813
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
874
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
814
875
|
|
|
815
876
|
/**
|
|
816
877
|
* 0 to 1, ElevenLabs.
|
|
@@ -865,7 +926,18 @@ export namespace AgentDraftUpdateResponse {
|
|
|
865
926
|
*/
|
|
866
927
|
model: string;
|
|
867
928
|
|
|
868
|
-
provider:
|
|
929
|
+
provider:
|
|
930
|
+
| 'OPENAI'
|
|
931
|
+
| 'ANTHROPIC'
|
|
932
|
+
| 'GOOGLE'
|
|
933
|
+
| 'XAI'
|
|
934
|
+
| 'ULTRAVOX'
|
|
935
|
+
| 'AWS'
|
|
936
|
+
| 'ELEVENLABS'
|
|
937
|
+
| 'GROQ'
|
|
938
|
+
| 'META'
|
|
939
|
+
| 'RIME'
|
|
940
|
+
| 'PHONIC';
|
|
869
941
|
|
|
870
942
|
/**
|
|
871
943
|
* 0 to 2.
|
|
@@ -1010,9 +1082,9 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1010
1082
|
language: string | null;
|
|
1011
1083
|
|
|
1012
1084
|
/**
|
|
1013
|
-
* Whether the agent
|
|
1085
|
+
* Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
|
|
1014
1086
|
*/
|
|
1015
|
-
modalities: Array<'
|
|
1087
|
+
modalities: Array<'voice' | 'chat'>;
|
|
1016
1088
|
|
|
1017
1089
|
/**
|
|
1018
1090
|
* ISO 8601.
|
|
@@ -1054,8 +1126,22 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1054
1126
|
*/
|
|
1055
1127
|
updatedAt: string;
|
|
1056
1128
|
|
|
1129
|
+
/**
|
|
1130
|
+
* The longest silence the agent waits through when the caller sounds unfinished,
|
|
1131
|
+
* never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
|
|
1132
|
+
* default.
|
|
1133
|
+
*/
|
|
1134
|
+
vadMaxSilenceSecs: number | null;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Seconds of speech before it counts as the caller talking. Null uses the default.
|
|
1138
|
+
*/
|
|
1057
1139
|
vadStartSecs: number | null;
|
|
1058
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* Seconds of silence before the agent checks whether the caller has finished. Null
|
|
1143
|
+
* uses the default.
|
|
1144
|
+
*/
|
|
1059
1145
|
vadStopSecs: number | null;
|
|
1060
1146
|
|
|
1061
1147
|
/**
|
|
@@ -1170,7 +1256,18 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1170
1256
|
*/
|
|
1171
1257
|
model: string;
|
|
1172
1258
|
|
|
1173
|
-
provider:
|
|
1259
|
+
provider:
|
|
1260
|
+
| 'OPENAI'
|
|
1261
|
+
| 'ANTHROPIC'
|
|
1262
|
+
| 'GOOGLE'
|
|
1263
|
+
| 'XAI'
|
|
1264
|
+
| 'ULTRAVOX'
|
|
1265
|
+
| 'AWS'
|
|
1266
|
+
| 'ELEVENLABS'
|
|
1267
|
+
| 'GROQ'
|
|
1268
|
+
| 'META'
|
|
1269
|
+
| 'RIME'
|
|
1270
|
+
| 'PHONIC';
|
|
1174
1271
|
|
|
1175
1272
|
/**
|
|
1176
1273
|
* 0 to 2.
|
|
@@ -1197,7 +1294,7 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1197
1294
|
*/
|
|
1198
1295
|
model: string;
|
|
1199
1296
|
|
|
1200
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
1297
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
1201
1298
|
|
|
1202
1299
|
smartFormat: boolean | null;
|
|
1203
1300
|
|
|
@@ -1213,7 +1310,7 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1213
1310
|
*/
|
|
1214
1311
|
model: string;
|
|
1215
1312
|
|
|
1216
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
1313
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
1217
1314
|
|
|
1218
1315
|
/**
|
|
1219
1316
|
* 0 to 1, ElevenLabs.
|
|
@@ -1268,7 +1365,18 @@ export namespace AgentDraftDeleteResponse {
|
|
|
1268
1365
|
*/
|
|
1269
1366
|
model: string;
|
|
1270
1367
|
|
|
1271
|
-
provider:
|
|
1368
|
+
provider:
|
|
1369
|
+
| 'OPENAI'
|
|
1370
|
+
| 'ANTHROPIC'
|
|
1371
|
+
| 'GOOGLE'
|
|
1372
|
+
| 'XAI'
|
|
1373
|
+
| 'ULTRAVOX'
|
|
1374
|
+
| 'AWS'
|
|
1375
|
+
| 'ELEVENLABS'
|
|
1376
|
+
| 'GROQ'
|
|
1377
|
+
| 'META'
|
|
1378
|
+
| 'RIME'
|
|
1379
|
+
| 'PHONIC';
|
|
1272
1380
|
|
|
1273
1381
|
/**
|
|
1274
1382
|
* 0 to 2.
|
|
@@ -1413,9 +1521,9 @@ export namespace AgentDraftGetResponse {
|
|
|
1413
1521
|
language: string | null;
|
|
1414
1522
|
|
|
1415
1523
|
/**
|
|
1416
|
-
* Whether the agent
|
|
1524
|
+
* Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
|
|
1417
1525
|
*/
|
|
1418
|
-
modalities: Array<'
|
|
1526
|
+
modalities: Array<'voice' | 'chat'>;
|
|
1419
1527
|
|
|
1420
1528
|
/**
|
|
1421
1529
|
* ISO 8601.
|
|
@@ -1457,8 +1565,22 @@ export namespace AgentDraftGetResponse {
|
|
|
1457
1565
|
*/
|
|
1458
1566
|
updatedAt: string;
|
|
1459
1567
|
|
|
1568
|
+
/**
|
|
1569
|
+
* The longest silence the agent waits through when the caller sounds unfinished,
|
|
1570
|
+
* never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
|
|
1571
|
+
* default.
|
|
1572
|
+
*/
|
|
1573
|
+
vadMaxSilenceSecs: number | null;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Seconds of speech before it counts as the caller talking. Null uses the default.
|
|
1577
|
+
*/
|
|
1460
1578
|
vadStartSecs: number | null;
|
|
1461
1579
|
|
|
1580
|
+
/**
|
|
1581
|
+
* Seconds of silence before the agent checks whether the caller has finished. Null
|
|
1582
|
+
* uses the default.
|
|
1583
|
+
*/
|
|
1462
1584
|
vadStopSecs: number | null;
|
|
1463
1585
|
|
|
1464
1586
|
/**
|
|
@@ -1573,7 +1695,18 @@ export namespace AgentDraftGetResponse {
|
|
|
1573
1695
|
*/
|
|
1574
1696
|
model: string;
|
|
1575
1697
|
|
|
1576
|
-
provider:
|
|
1698
|
+
provider:
|
|
1699
|
+
| 'OPENAI'
|
|
1700
|
+
| 'ANTHROPIC'
|
|
1701
|
+
| 'GOOGLE'
|
|
1702
|
+
| 'XAI'
|
|
1703
|
+
| 'ULTRAVOX'
|
|
1704
|
+
| 'AWS'
|
|
1705
|
+
| 'ELEVENLABS'
|
|
1706
|
+
| 'GROQ'
|
|
1707
|
+
| 'META'
|
|
1708
|
+
| 'RIME'
|
|
1709
|
+
| 'PHONIC';
|
|
1577
1710
|
|
|
1578
1711
|
/**
|
|
1579
1712
|
* 0 to 2.
|
|
@@ -1600,7 +1733,7 @@ export namespace AgentDraftGetResponse {
|
|
|
1600
1733
|
*/
|
|
1601
1734
|
model: string;
|
|
1602
1735
|
|
|
1603
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
1736
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
1604
1737
|
|
|
1605
1738
|
smartFormat: boolean | null;
|
|
1606
1739
|
|
|
@@ -1616,7 +1749,7 @@ export namespace AgentDraftGetResponse {
|
|
|
1616
1749
|
*/
|
|
1617
1750
|
model: string;
|
|
1618
1751
|
|
|
1619
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
1752
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
1620
1753
|
|
|
1621
1754
|
/**
|
|
1622
1755
|
* 0 to 1, ElevenLabs.
|
|
@@ -1671,7 +1804,18 @@ export namespace AgentDraftGetResponse {
|
|
|
1671
1804
|
*/
|
|
1672
1805
|
model: string;
|
|
1673
1806
|
|
|
1674
|
-
provider:
|
|
1807
|
+
provider:
|
|
1808
|
+
| 'OPENAI'
|
|
1809
|
+
| 'ANTHROPIC'
|
|
1810
|
+
| 'GOOGLE'
|
|
1811
|
+
| 'XAI'
|
|
1812
|
+
| 'ULTRAVOX'
|
|
1813
|
+
| 'AWS'
|
|
1814
|
+
| 'ELEVENLABS'
|
|
1815
|
+
| 'GROQ'
|
|
1816
|
+
| 'META'
|
|
1817
|
+
| 'RIME'
|
|
1818
|
+
| 'PHONIC';
|
|
1675
1819
|
|
|
1676
1820
|
/**
|
|
1677
1821
|
* 0 to 2.
|
|
@@ -1816,9 +1960,9 @@ export namespace AgentDraftPublishResponse {
|
|
|
1816
1960
|
language: string | null;
|
|
1817
1961
|
|
|
1818
1962
|
/**
|
|
1819
|
-
* Whether the agent
|
|
1963
|
+
* Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
|
|
1820
1964
|
*/
|
|
1821
|
-
modalities: Array<'
|
|
1965
|
+
modalities: Array<'voice' | 'chat'>;
|
|
1822
1966
|
|
|
1823
1967
|
/**
|
|
1824
1968
|
* ISO 8601.
|
|
@@ -1860,8 +2004,22 @@ export namespace AgentDraftPublishResponse {
|
|
|
1860
2004
|
*/
|
|
1861
2005
|
updatedAt: string;
|
|
1862
2006
|
|
|
2007
|
+
/**
|
|
2008
|
+
* The longest silence the agent waits through when the caller sounds unfinished,
|
|
2009
|
+
* never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
|
|
2010
|
+
* default.
|
|
2011
|
+
*/
|
|
2012
|
+
vadMaxSilenceSecs: number | null;
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Seconds of speech before it counts as the caller talking. Null uses the default.
|
|
2016
|
+
*/
|
|
1863
2017
|
vadStartSecs: number | null;
|
|
1864
2018
|
|
|
2019
|
+
/**
|
|
2020
|
+
* Seconds of silence before the agent checks whether the caller has finished. Null
|
|
2021
|
+
* uses the default.
|
|
2022
|
+
*/
|
|
1865
2023
|
vadStopSecs: number | null;
|
|
1866
2024
|
|
|
1867
2025
|
/**
|
|
@@ -1976,7 +2134,18 @@ export namespace AgentDraftPublishResponse {
|
|
|
1976
2134
|
*/
|
|
1977
2135
|
model: string;
|
|
1978
2136
|
|
|
1979
|
-
provider:
|
|
2137
|
+
provider:
|
|
2138
|
+
| 'OPENAI'
|
|
2139
|
+
| 'ANTHROPIC'
|
|
2140
|
+
| 'GOOGLE'
|
|
2141
|
+
| 'XAI'
|
|
2142
|
+
| 'ULTRAVOX'
|
|
2143
|
+
| 'AWS'
|
|
2144
|
+
| 'ELEVENLABS'
|
|
2145
|
+
| 'GROQ'
|
|
2146
|
+
| 'META'
|
|
2147
|
+
| 'RIME'
|
|
2148
|
+
| 'PHONIC';
|
|
1980
2149
|
|
|
1981
2150
|
/**
|
|
1982
2151
|
* 0 to 2.
|
|
@@ -2003,7 +2172,7 @@ export namespace AgentDraftPublishResponse {
|
|
|
2003
2172
|
*/
|
|
2004
2173
|
model: string;
|
|
2005
2174
|
|
|
2006
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
2175
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
2007
2176
|
|
|
2008
2177
|
smartFormat: boolean | null;
|
|
2009
2178
|
|
|
@@ -2019,7 +2188,7 @@ export namespace AgentDraftPublishResponse {
|
|
|
2019
2188
|
*/
|
|
2020
2189
|
model: string;
|
|
2021
2190
|
|
|
2022
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
2191
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
2023
2192
|
|
|
2024
2193
|
/**
|
|
2025
2194
|
* 0 to 1, ElevenLabs.
|
|
@@ -2074,7 +2243,18 @@ export namespace AgentDraftPublishResponse {
|
|
|
2074
2243
|
*/
|
|
2075
2244
|
model: string;
|
|
2076
2245
|
|
|
2077
|
-
provider:
|
|
2246
|
+
provider:
|
|
2247
|
+
| 'OPENAI'
|
|
2248
|
+
| 'ANTHROPIC'
|
|
2249
|
+
| 'GOOGLE'
|
|
2250
|
+
| 'XAI'
|
|
2251
|
+
| 'ULTRAVOX'
|
|
2252
|
+
| 'AWS'
|
|
2253
|
+
| 'ELEVENLABS'
|
|
2254
|
+
| 'GROQ'
|
|
2255
|
+
| 'META'
|
|
2256
|
+
| 'RIME'
|
|
2257
|
+
| 'PHONIC';
|
|
2078
2258
|
|
|
2079
2259
|
/**
|
|
2080
2260
|
* 0 to 2.
|
|
@@ -2192,10 +2372,12 @@ export namespace AgentDraftUpdateParams {
|
|
|
2192
2372
|
|
|
2193
2373
|
language?: string | null;
|
|
2194
2374
|
|
|
2195
|
-
modalities?: Array<'
|
|
2375
|
+
modalities?: Array<'voice' | 'chat' | 'call'>;
|
|
2196
2376
|
|
|
2197
2377
|
subAgents?: Array<Settings.SubAgent>;
|
|
2198
2378
|
|
|
2379
|
+
vadMaxSilenceSecs?: number | null;
|
|
2380
|
+
|
|
2199
2381
|
vadStartSecs?: number | null;
|
|
2200
2382
|
|
|
2201
2383
|
vadStopSecs?: number | null;
|
|
@@ -2245,7 +2427,18 @@ export namespace AgentDraftUpdateParams {
|
|
|
2245
2427
|
export interface Llm {
|
|
2246
2428
|
model: string;
|
|
2247
2429
|
|
|
2248
|
-
provider:
|
|
2430
|
+
provider:
|
|
2431
|
+
| 'OPENAI'
|
|
2432
|
+
| 'ANTHROPIC'
|
|
2433
|
+
| 'GOOGLE'
|
|
2434
|
+
| 'XAI'
|
|
2435
|
+
| 'ULTRAVOX'
|
|
2436
|
+
| 'AWS'
|
|
2437
|
+
| 'ELEVENLABS'
|
|
2438
|
+
| 'GROQ'
|
|
2439
|
+
| 'META'
|
|
2440
|
+
| 'RIME'
|
|
2441
|
+
| 'PHONIC';
|
|
2249
2442
|
|
|
2250
2443
|
maxTokens?: number | null;
|
|
2251
2444
|
|
|
@@ -2255,7 +2448,7 @@ export namespace AgentDraftUpdateParams {
|
|
|
2255
2448
|
export interface Stt {
|
|
2256
2449
|
model: string;
|
|
2257
2450
|
|
|
2258
|
-
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
|
|
2451
|
+
provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
|
|
2259
2452
|
|
|
2260
2453
|
endpointingMs?: number | null;
|
|
2261
2454
|
|
|
@@ -2269,7 +2462,7 @@ export namespace AgentDraftUpdateParams {
|
|
|
2269
2462
|
export interface Tt {
|
|
2270
2463
|
model: string;
|
|
2271
2464
|
|
|
2272
|
-
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
|
|
2465
|
+
provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
|
|
2273
2466
|
|
|
2274
2467
|
voiceId: string;
|
|
2275
2468
|
|
|
@@ -2291,7 +2484,18 @@ export namespace AgentDraftUpdateParams {
|
|
|
2291
2484
|
export interface SpeechToSpeech {
|
|
2292
2485
|
model: string;
|
|
2293
2486
|
|
|
2294
|
-
provider:
|
|
2487
|
+
provider:
|
|
2488
|
+
| 'OPENAI'
|
|
2489
|
+
| 'ANTHROPIC'
|
|
2490
|
+
| 'GOOGLE'
|
|
2491
|
+
| 'XAI'
|
|
2492
|
+
| 'ULTRAVOX'
|
|
2493
|
+
| 'AWS'
|
|
2494
|
+
| 'ELEVENLABS'
|
|
2495
|
+
| 'GROQ'
|
|
2496
|
+
| 'META'
|
|
2497
|
+
| 'RIME'
|
|
2498
|
+
| 'PHONIC';
|
|
2295
2499
|
|
|
2296
2500
|
backendModel?: string | null;
|
|
2297
2501
|
|
|
@@ -126,7 +126,8 @@ export namespace AgentEndpointCreateResponse {
|
|
|
126
126
|
| 'ELEVENLABS_WS'
|
|
127
127
|
| 'KORE'
|
|
128
128
|
| 'GOOGLE_CES'
|
|
129
|
-
| 'DAILY'
|
|
129
|
+
| 'DAILY'
|
|
130
|
+
| 'ROARK_WEBRTC';
|
|
130
131
|
|
|
131
132
|
/**
|
|
132
133
|
* Last update timestamp
|
|
@@ -199,7 +200,8 @@ export namespace AgentEndpointUpdateResponse {
|
|
|
199
200
|
| 'ELEVENLABS_WS'
|
|
200
201
|
| 'KORE'
|
|
201
202
|
| 'GOOGLE_CES'
|
|
202
|
-
| 'DAILY'
|
|
203
|
+
| 'DAILY'
|
|
204
|
+
| 'ROARK_WEBRTC';
|
|
203
205
|
|
|
204
206
|
/**
|
|
205
207
|
* Last update timestamp
|
|
@@ -271,7 +273,8 @@ export namespace AgentEndpointListResponse {
|
|
|
271
273
|
| 'ELEVENLABS_WS'
|
|
272
274
|
| 'KORE'
|
|
273
275
|
| 'GOOGLE_CES'
|
|
274
|
-
| 'DAILY'
|
|
276
|
+
| 'DAILY'
|
|
277
|
+
| 'ROARK_WEBRTC';
|
|
275
278
|
|
|
276
279
|
/**
|
|
277
280
|
* Last update timestamp
|
|
@@ -361,7 +364,8 @@ export namespace AgentEndpointGetByIDResponse {
|
|
|
361
364
|
| 'ELEVENLABS_WS'
|
|
362
365
|
| 'KORE'
|
|
363
366
|
| 'GOOGLE_CES'
|
|
364
|
-
| 'DAILY'
|
|
367
|
+
| 'DAILY'
|
|
368
|
+
| 'ROARK_WEBRTC';
|
|
365
369
|
|
|
366
370
|
/**
|
|
367
371
|
* Last update timestamp
|