@voicelayer/sdk 0.6.0 → 0.6.1
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/brain/index.d.ts +2 -2
- package/dist/index.d.ts +256 -254
- package/dist/index.js +379 -28
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +78 -5
- package/dist/{text-session-CoyEcdmg.d.ts → text-session-C4Z59gG4.d.ts} +108 -108
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentEnvironment, P as ProcessSchemaDTO, R as ReadinessProbe, a as AgentLifecycleEvent, b as AgentDTO, c as AgentEventEmitter, T as ToolDefinition, d as AgentConfig$1, e as ProcessField, M as ModelConfig, C as ConnectorInstance, f as ProviderFactory, S as STTProvider, g as TTSProvider, L as LLMProvider, h as RealtimeProvider, i as TurnDetectorProvider, V as VADProvider, j as ProcessDefinition, k as TriggerDefinition, H as HandoffConfig, l as MemoryConfig, m as SpeechConfig, n as ToolExecutor, o as AgentContext, p as ToolRunInfo, q as HostLookup } from './text-session-
|
|
2
|
-
export { r as AgentEventListener, s as AgentTurnEvent, t as AudioProfile, u as AudioSurface, v as CallInfo, w as CallOutcomeSummary, x as ChannelKind, y as CompletionStrategy, z as ComplianceTag, B as ConsultationPolicy, D as DtmfEvent, E as DtmfHandler, F as EndCallControllerHandle, G as EndCallInfo, I as EndCallOutcome, J as EndCallPolicy, K as EndCallTrigger, N as EndpointingConfig, O as FakeSessionAdapter, Q as FloorControlConfig, U as InboundOptions, W as InferProcessData, X as InterruptionConfig, Y as LK_AGENT_STATE_MAP, Z as MemoryHandle, _ as MemoryScope, $ as MetricsEvent, a0 as NON_BUSY_STATES, a1 as Participant, a2 as ParticipantId, a3 as ParticipantKind, a4 as ParticipantSet, a5 as ParticipantsConfig, a6 as ProcessBackendAck, a7 as ProcessFieldType, a8 as ProcessSnapshot, a9 as ReadinessReport, aa as ReadinessResult, ab as RespondOptions, ac as Room, ad as RouteEntry, ae as RoutingRule, af as RoutingSnapshot, ag as RunTextSessionOptions, ah as RunTextTranscriptOptions, ai as SayOptions, aj as SecurityConfig, ak as SendDtmfOptions, al as SessionAdapter, am as SessionCapabilities, an as SessionErrorEvent, ao as SessionEvent, ap as SessionEventMap, aq as SessionFactory, ar as SessionFactoryInput, as as SessionOutbound, at as SessionState, au as ShorthandPrimitive, av as SpeechResult, aw as SpeechTarget, ax as StateChangeEvent, ay as TextSession, az as TextTranscriptResult, aA as ToolInputShape, aB as TriggerAction, aC as TriggerCondition, aD as TtsVoiceConfig, aE as TurnEvent, aF as Unsubscribe, aG as UserInputEvent, aH as UserStateEvent, aI as UserTurn, aJ as VoiceLayerAuthError, aK as VoiceLayerError, aL as VoiceLayerHttpError, aM as VoiceLayerNetworkError, aN as VoiceLayerValidationError, aO as applySpeechTurnHandling, aP as asyncProbe, aQ as defineProcess, aR as dtmfCodeToDigit, aS as dtmfDigitToCode, aT as duck, aU as envProbe, aV as mute, aW as normalizeState, a2 as participantId, aX as passthrough, aY as runProbes, aZ as runTextSession, a_ as runTextTranscript, a$ as transform, b0 as urlProbe } from './text-session-
|
|
1
|
+
import { A as AgentEnvironment, P as ProcessSchemaDTO, R as ReadinessProbe, a as AgentLifecycleEvent, b as AgentDTO, c as AgentEventEmitter, T as ToolDefinition, d as AgentConfig$1, e as ProcessField, M as ModelConfig, C as ConnectorInstance, f as ProviderFactory, S as STTProvider, g as TTSProvider, L as LLMProvider, h as RealtimeProvider, i as TurnDetectorProvider, V as VADProvider, j as ProcessDefinition, k as TriggerDefinition, H as HandoffConfig, l as MemoryConfig, m as SpeechConfig, n as ToolExecutor, o as AgentContext, p as ToolRunInfo, q as HostLookup } from './text-session-C4Z59gG4.js';
|
|
2
|
+
export { r as AgentEventListener, s as AgentTurnEvent, t as AudioProfile, u as AudioSurface, v as CallInfo, w as CallOutcomeSummary, x as ChannelKind, y as CompletionStrategy, z as ComplianceTag, B as ConsultationPolicy, D as DtmfEvent, E as DtmfHandler, F as EndCallControllerHandle, G as EndCallInfo, I as EndCallOutcome, J as EndCallPolicy, K as EndCallTrigger, N as EndpointingConfig, O as FakeSessionAdapter, Q as FloorControlConfig, U as InboundOptions, W as InferProcessData, X as InterruptionConfig, Y as LK_AGENT_STATE_MAP, Z as MemoryHandle, _ as MemoryScope, $ as MetricsEvent, a0 as NON_BUSY_STATES, a1 as Participant, a2 as ParticipantId, a3 as ParticipantKind, a4 as ParticipantSet, a5 as ParticipantsConfig, a6 as ProcessBackendAck, a7 as ProcessFieldType, a8 as ProcessSnapshot, a9 as ReadinessReport, aa as ReadinessResult, ab as RespondOptions, ac as Room, ad as RouteEntry, ae as RoutingRule, af as RoutingSnapshot, ag as RunTextSessionOptions, ah as RunTextTranscriptOptions, ai as SayOptions, aj as SecurityConfig, ak as SendDtmfOptions, al as SessionAdapter, am as SessionCapabilities, an as SessionErrorEvent, ao as SessionEvent, ap as SessionEventMap, aq as SessionFactory, ar as SessionFactoryInput, as as SessionOutbound, at as SessionState, au as ShorthandPrimitive, av as SpeechResult, aw as SpeechTarget, ax as StateChangeEvent, ay as TextSession, az as TextTranscriptResult, aA as ToolInputShape, aB as TriggerAction, aC as TriggerCondition, aD as TtsVoiceConfig, aE as TurnEvent, aF as Unsubscribe, aG as UserInputEvent, aH as UserStateEvent, aI as UserTurn, aJ as VoiceLayerAuthError, aK as VoiceLayerError, aL as VoiceLayerHttpError, aM as VoiceLayerNetworkError, aN as VoiceLayerValidationError, aO as applySpeechTurnHandling, aP as asyncProbe, aQ as defineProcess, aR as dtmfCodeToDigit, aS as dtmfDigitToCode, aT as duck, aU as envProbe, aV as mute, aW as normalizeState, a2 as participantId, aX as passthrough, aY as runProbes, aZ as runTextSession, a_ as runTextTranscript, a$ as transform, b0 as urlProbe } from './text-session-C4Z59gG4.js';
|
|
3
3
|
import { z, ZodType } from 'zod';
|
|
4
4
|
import { O as OnQuery, B as BrainTransport } from './types-KqrAfY85.js';
|
|
5
5
|
export { a as BrainCallMetadata, b as BrainCapabilities, c as BrainChunk, d as BrainMessage, e as BrainRequest, f as OnQueryContext, g as OnQueryResult } from './types-KqrAfY85.js';
|
|
@@ -33,10 +33,10 @@ declare const TextTurn: z.ZodObject<{
|
|
|
33
33
|
deadlineAt: z.ZodString;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
text: string;
|
|
36
|
+
from: string;
|
|
36
37
|
agentId: string;
|
|
37
38
|
turnId: string;
|
|
38
39
|
channel: string;
|
|
39
|
-
from: string;
|
|
40
40
|
conversationKey: string;
|
|
41
41
|
history: {
|
|
42
42
|
role: "user" | "assistant";
|
|
@@ -45,10 +45,10 @@ declare const TextTurn: z.ZodObject<{
|
|
|
45
45
|
deadlineAt: string;
|
|
46
46
|
}, {
|
|
47
47
|
text: string;
|
|
48
|
+
from: string;
|
|
48
49
|
agentId: string;
|
|
49
50
|
turnId: string;
|
|
50
51
|
channel: string;
|
|
51
|
-
from: string;
|
|
52
52
|
conversationKey: string;
|
|
53
53
|
history: {
|
|
54
54
|
role: "user" | "assistant";
|
|
@@ -81,8 +81,8 @@ declare const TextTurnReply: z.ZodUnion<[z.ZodObject<{
|
|
|
81
81
|
byok: boolean;
|
|
82
82
|
}>, "many">>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
agentId: string;
|
|
85
84
|
replies: string[];
|
|
85
|
+
agentId: string;
|
|
86
86
|
usage: {
|
|
87
87
|
provider: string;
|
|
88
88
|
model: string;
|
|
@@ -91,8 +91,8 @@ declare const TextTurnReply: z.ZodUnion<[z.ZodObject<{
|
|
|
91
91
|
byok: boolean;
|
|
92
92
|
}[];
|
|
93
93
|
}, {
|
|
94
|
-
agentId: string;
|
|
95
94
|
replies: string[];
|
|
95
|
+
agentId: string;
|
|
96
96
|
usage?: {
|
|
97
97
|
provider: string;
|
|
98
98
|
model: string;
|
|
@@ -150,61 +150,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
150
150
|
e164?: string | undefined;
|
|
151
151
|
}>;
|
|
152
152
|
draftConfig: z.ZodDefault<z.ZodObject<{
|
|
153
|
-
stt: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
154
|
-
provider: z.ZodEnum<["deepgram", "cartesia", "assemblyai"]>;
|
|
155
|
-
model: z.ZodOptional<z.ZodString>;
|
|
156
|
-
language: z.ZodOptional<z.ZodString>;
|
|
157
|
-
endOfTurnConfidence: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
endOfTurnTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
159
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
162
|
-
model?: string | undefined;
|
|
163
|
-
language?: string | undefined;
|
|
164
|
-
endOfTurnConfidence?: number | undefined;
|
|
165
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
166
|
-
keywords?: string[] | undefined;
|
|
167
|
-
}, {
|
|
168
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
169
|
-
model?: string | undefined;
|
|
170
|
-
language?: string | undefined;
|
|
171
|
-
endOfTurnConfidence?: number | undefined;
|
|
172
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
173
|
-
keywords?: string[] | undefined;
|
|
174
|
-
}>>>;
|
|
175
|
-
realtime: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
176
|
-
provider: z.ZodEnum<["openai", "google"]>;
|
|
177
|
-
model: z.ZodString;
|
|
178
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
179
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
180
|
-
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
provider: "openai" | "google";
|
|
182
|
-
model: string;
|
|
183
|
-
voice?: string | undefined;
|
|
184
|
-
temperature?: number | undefined;
|
|
185
|
-
}, {
|
|
186
|
-
provider: "openai" | "google";
|
|
187
|
-
model: string;
|
|
188
|
-
voice?: string | undefined;
|
|
189
|
-
temperature?: number | undefined;
|
|
190
|
-
}>>>;
|
|
191
|
-
voice: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
provider: z.ZodEnum<["deepgram", "elevenlabs", "openai", "cartesia"]>;
|
|
193
|
-
voiceId: z.ZodString;
|
|
194
|
-
model: z.ZodOptional<z.ZodString>;
|
|
195
|
-
rate: z.ZodOptional<z.ZodNumber>;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
198
|
-
voiceId: string;
|
|
199
|
-
model?: string | undefined;
|
|
200
|
-
rate?: number | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
203
|
-
voiceId: string;
|
|
204
|
-
model?: string | undefined;
|
|
205
|
-
rate?: number | undefined;
|
|
206
|
-
}>>;
|
|
207
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<["sdk", "flow", "playbook", "connector"]>>>;
|
|
208
153
|
name: z.ZodOptional<z.ZodString>;
|
|
209
154
|
triggers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
210
155
|
on: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -212,22 +157,22 @@ declare const CallPlan: z.ZodObject<{
|
|
|
212
157
|
pattern: z.ZodString;
|
|
213
158
|
flags: z.ZodOptional<z.ZodString>;
|
|
214
159
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
kind: "regex";
|
|
216
160
|
pattern: string;
|
|
161
|
+
kind: "regex";
|
|
217
162
|
flags?: string | undefined;
|
|
218
163
|
}, {
|
|
219
|
-
kind: "regex";
|
|
220
164
|
pattern: string;
|
|
165
|
+
kind: "regex";
|
|
221
166
|
flags?: string | undefined;
|
|
222
167
|
}>, z.ZodObject<{
|
|
223
168
|
kind: z.ZodLiteral<"signal">;
|
|
224
169
|
name: z.ZodString;
|
|
225
170
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
kind: "signal";
|
|
227
171
|
name: string;
|
|
228
|
-
}, {
|
|
229
172
|
kind: "signal";
|
|
173
|
+
}, {
|
|
230
174
|
name: string;
|
|
175
|
+
kind: "signal";
|
|
231
176
|
}>]>;
|
|
232
177
|
then: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
233
178
|
kind: z.ZodLiteral<"handoff">;
|
|
@@ -262,12 +207,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
262
207
|
kind: "say";
|
|
263
208
|
};
|
|
264
209
|
on: {
|
|
265
|
-
kind: "regex";
|
|
266
210
|
pattern: string;
|
|
211
|
+
kind: "regex";
|
|
267
212
|
flags?: string | undefined;
|
|
268
213
|
} | {
|
|
269
|
-
kind: "signal";
|
|
270
214
|
name: string;
|
|
215
|
+
kind: "signal";
|
|
271
216
|
};
|
|
272
217
|
onlyWhile?: string | undefined;
|
|
273
218
|
}, {
|
|
@@ -280,12 +225,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
280
225
|
kind: "say";
|
|
281
226
|
};
|
|
282
227
|
on: {
|
|
283
|
-
kind: "regex";
|
|
284
228
|
pattern: string;
|
|
229
|
+
kind: "regex";
|
|
285
230
|
flags?: string | undefined;
|
|
286
231
|
} | {
|
|
287
|
-
kind: "signal";
|
|
288
232
|
name: string;
|
|
233
|
+
kind: "signal";
|
|
289
234
|
};
|
|
290
235
|
onlyWhile?: string | undefined;
|
|
291
236
|
}>>>>;
|
|
@@ -299,6 +244,61 @@ declare const CallPlan: z.ZodObject<{
|
|
|
299
244
|
toolName: string;
|
|
300
245
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
301
246
|
}>, "many">>>;
|
|
247
|
+
stt: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
248
|
+
provider: z.ZodEnum<["deepgram", "cartesia", "assemblyai"]>;
|
|
249
|
+
model: z.ZodOptional<z.ZodString>;
|
|
250
|
+
language: z.ZodOptional<z.ZodString>;
|
|
251
|
+
endOfTurnConfidence: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
endOfTurnTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
256
|
+
model?: string | undefined;
|
|
257
|
+
language?: string | undefined;
|
|
258
|
+
endOfTurnConfidence?: number | undefined;
|
|
259
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
260
|
+
keywords?: string[] | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
263
|
+
model?: string | undefined;
|
|
264
|
+
language?: string | undefined;
|
|
265
|
+
endOfTurnConfidence?: number | undefined;
|
|
266
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
267
|
+
keywords?: string[] | undefined;
|
|
268
|
+
}>>>;
|
|
269
|
+
realtime: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
270
|
+
provider: z.ZodEnum<["openai", "google"]>;
|
|
271
|
+
model: z.ZodString;
|
|
272
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
273
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
provider: "openai" | "google";
|
|
276
|
+
model: string;
|
|
277
|
+
voice?: string | undefined;
|
|
278
|
+
temperature?: number | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
provider: "openai" | "google";
|
|
281
|
+
model: string;
|
|
282
|
+
voice?: string | undefined;
|
|
283
|
+
temperature?: number | undefined;
|
|
284
|
+
}>>>;
|
|
285
|
+
voice: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
provider: z.ZodEnum<["deepgram", "elevenlabs", "openai", "cartesia"]>;
|
|
287
|
+
voiceId: z.ZodString;
|
|
288
|
+
model: z.ZodOptional<z.ZodString>;
|
|
289
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
292
|
+
voiceId: string;
|
|
293
|
+
model?: string | undefined;
|
|
294
|
+
rate?: number | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
297
|
+
voiceId: string;
|
|
298
|
+
model?: string | undefined;
|
|
299
|
+
rate?: number | undefined;
|
|
300
|
+
}>>;
|
|
301
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<["sdk", "flow", "playbook", "connector"]>>>;
|
|
302
302
|
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["cascade", "realtime"]>>>;
|
|
303
303
|
model: z.ZodOptional<z.ZodObject<{
|
|
304
304
|
provider: z.ZodEnum<["openai", "anthropic", "gemini"]>;
|
|
@@ -406,12 +406,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
406
406
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
url: string;
|
|
409
|
-
headers?: Record<string, string> | undefined;
|
|
410
409
|
timeoutMs?: number | undefined;
|
|
410
|
+
headers?: Record<string, string> | undefined;
|
|
411
411
|
}, {
|
|
412
412
|
url: string;
|
|
413
|
-
headers?: Record<string, string> | undefined;
|
|
414
413
|
timeoutMs?: number | undefined;
|
|
414
|
+
headers?: Record<string, string> | undefined;
|
|
415
415
|
}>>;
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
417
|
collect: Record<string, {
|
|
@@ -427,14 +427,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
427
427
|
completeWhen: "all-required-captured" | "all-captured";
|
|
428
428
|
backendAck?: {
|
|
429
429
|
url: string;
|
|
430
|
-
headers?: Record<string, string> | undefined;
|
|
431
430
|
timeoutMs?: number | undefined;
|
|
431
|
+
headers?: Record<string, string> | undefined;
|
|
432
432
|
} | undefined;
|
|
433
433
|
}, {
|
|
434
434
|
backendAck?: {
|
|
435
435
|
url: string;
|
|
436
|
-
headers?: Record<string, string> | undefined;
|
|
437
436
|
timeoutMs?: number | undefined;
|
|
437
|
+
headers?: Record<string, string> | undefined;
|
|
438
438
|
} | undefined;
|
|
439
439
|
collect?: Record<string, {
|
|
440
440
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -472,27 +472,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
472
472
|
}>, "many">>>;
|
|
473
473
|
draftUpdatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
474
474
|
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
stt?: {
|
|
476
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
477
|
-
model?: string | undefined;
|
|
478
|
-
language?: string | undefined;
|
|
479
|
-
endOfTurnConfidence?: number | undefined;
|
|
480
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
481
|
-
keywords?: string[] | undefined;
|
|
482
|
-
} | undefined;
|
|
483
|
-
realtime?: {
|
|
484
|
-
provider: "openai" | "google";
|
|
485
|
-
model: string;
|
|
486
|
-
voice?: string | undefined;
|
|
487
|
-
temperature?: number | undefined;
|
|
488
|
-
} | undefined;
|
|
489
|
-
voice?: {
|
|
490
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
491
|
-
voiceId: string;
|
|
492
|
-
model?: string | undefined;
|
|
493
|
-
rate?: number | undefined;
|
|
494
|
-
} | undefined;
|
|
495
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
496
475
|
name?: string | undefined;
|
|
497
476
|
triggers?: Record<string, {
|
|
498
477
|
then: {
|
|
@@ -504,12 +483,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
504
483
|
kind: "say";
|
|
505
484
|
};
|
|
506
485
|
on: {
|
|
507
|
-
kind: "regex";
|
|
508
486
|
pattern: string;
|
|
487
|
+
kind: "regex";
|
|
509
488
|
flags?: string | undefined;
|
|
510
489
|
} | {
|
|
511
|
-
kind: "signal";
|
|
512
490
|
name: string;
|
|
491
|
+
kind: "signal";
|
|
513
492
|
};
|
|
514
493
|
onlyWhile?: string | undefined;
|
|
515
494
|
}> | undefined;
|
|
@@ -517,6 +496,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
517
496
|
toolName: string;
|
|
518
497
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
519
498
|
}[] | undefined;
|
|
499
|
+
stt?: {
|
|
500
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
501
|
+
model?: string | undefined;
|
|
502
|
+
language?: string | undefined;
|
|
503
|
+
endOfTurnConfidence?: number | undefined;
|
|
504
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
505
|
+
keywords?: string[] | undefined;
|
|
506
|
+
} | undefined;
|
|
507
|
+
realtime?: {
|
|
508
|
+
provider: "openai" | "google";
|
|
509
|
+
model: string;
|
|
510
|
+
voice?: string | undefined;
|
|
511
|
+
temperature?: number | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
voice?: {
|
|
514
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
515
|
+
voiceId: string;
|
|
516
|
+
model?: string | undefined;
|
|
517
|
+
rate?: number | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
520
520
|
mode?: "realtime" | "cascade" | undefined;
|
|
521
521
|
model?: {
|
|
522
522
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -556,8 +556,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
556
556
|
completeWhen: "all-required-captured" | "all-captured";
|
|
557
557
|
backendAck?: {
|
|
558
558
|
url: string;
|
|
559
|
-
headers?: Record<string, string> | undefined;
|
|
560
559
|
timeoutMs?: number | undefined;
|
|
560
|
+
headers?: Record<string, string> | undefined;
|
|
561
561
|
} | undefined;
|
|
562
562
|
} | undefined;
|
|
563
563
|
tags?: string[] | undefined;
|
|
@@ -572,27 +572,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
572
572
|
}[] | undefined;
|
|
573
573
|
draftUpdatedAt?: string | undefined;
|
|
574
574
|
}, {
|
|
575
|
-
stt?: {
|
|
576
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
577
|
-
model?: string | undefined;
|
|
578
|
-
language?: string | undefined;
|
|
579
|
-
endOfTurnConfidence?: number | undefined;
|
|
580
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
581
|
-
keywords?: string[] | undefined;
|
|
582
|
-
} | undefined;
|
|
583
|
-
realtime?: {
|
|
584
|
-
provider: "openai" | "google";
|
|
585
|
-
model: string;
|
|
586
|
-
voice?: string | undefined;
|
|
587
|
-
temperature?: number | undefined;
|
|
588
|
-
} | undefined;
|
|
589
|
-
voice?: {
|
|
590
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
591
|
-
voiceId: string;
|
|
592
|
-
model?: string | undefined;
|
|
593
|
-
rate?: number | undefined;
|
|
594
|
-
} | undefined;
|
|
595
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
596
575
|
name?: string | undefined;
|
|
597
576
|
triggers?: Record<string, {
|
|
598
577
|
then: {
|
|
@@ -604,12 +583,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
604
583
|
kind: "say";
|
|
605
584
|
};
|
|
606
585
|
on: {
|
|
607
|
-
kind: "regex";
|
|
608
586
|
pattern: string;
|
|
587
|
+
kind: "regex";
|
|
609
588
|
flags?: string | undefined;
|
|
610
589
|
} | {
|
|
611
|
-
kind: "signal";
|
|
612
590
|
name: string;
|
|
591
|
+
kind: "signal";
|
|
613
592
|
};
|
|
614
593
|
onlyWhile?: string | undefined;
|
|
615
594
|
}> | undefined;
|
|
@@ -617,6 +596,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
617
596
|
toolName: string;
|
|
618
597
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
619
598
|
}[] | undefined;
|
|
599
|
+
stt?: {
|
|
600
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
601
|
+
model?: string | undefined;
|
|
602
|
+
language?: string | undefined;
|
|
603
|
+
endOfTurnConfidence?: number | undefined;
|
|
604
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
605
|
+
keywords?: string[] | undefined;
|
|
606
|
+
} | undefined;
|
|
607
|
+
realtime?: {
|
|
608
|
+
provider: "openai" | "google";
|
|
609
|
+
model: string;
|
|
610
|
+
voice?: string | undefined;
|
|
611
|
+
temperature?: number | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
voice?: {
|
|
614
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
615
|
+
voiceId: string;
|
|
616
|
+
model?: string | undefined;
|
|
617
|
+
rate?: number | undefined;
|
|
618
|
+
} | undefined;
|
|
619
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
620
620
|
mode?: "realtime" | "cascade" | undefined;
|
|
621
621
|
model?: {
|
|
622
622
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -645,8 +645,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
645
645
|
process?: {
|
|
646
646
|
backendAck?: {
|
|
647
647
|
url: string;
|
|
648
|
-
headers?: Record<string, string> | undefined;
|
|
649
648
|
timeoutMs?: number | undefined;
|
|
649
|
+
headers?: Record<string, string> | undefined;
|
|
650
650
|
} | undefined;
|
|
651
651
|
collect?: Record<string, {
|
|
652
652
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -679,14 +679,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
679
679
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
680
680
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
681
681
|
}, "strip", z.ZodTypeAny, {
|
|
682
|
-
kind: "decision" | "auth" | "fact";
|
|
683
682
|
id: string;
|
|
683
|
+
kind: "decision" | "auth" | "fact";
|
|
684
684
|
prompt: string;
|
|
685
685
|
deferrableToCallee: boolean;
|
|
686
686
|
options?: string[] | undefined;
|
|
687
687
|
}, {
|
|
688
|
-
kind: "decision" | "auth" | "fact";
|
|
689
688
|
id: string;
|
|
689
|
+
kind: "decision" | "auth" | "fact";
|
|
690
690
|
prompt: string;
|
|
691
691
|
options?: string[] | undefined;
|
|
692
692
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -698,14 +698,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
698
698
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
699
699
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
700
700
|
}, "strip", z.ZodTypeAny, {
|
|
701
|
-
kind: "decision" | "auth" | "fact";
|
|
702
701
|
id: string;
|
|
702
|
+
kind: "decision" | "auth" | "fact";
|
|
703
703
|
prompt: string;
|
|
704
704
|
deferrableToCallee: boolean;
|
|
705
705
|
options?: string[] | undefined;
|
|
706
706
|
}, {
|
|
707
|
-
kind: "decision" | "auth" | "fact";
|
|
708
707
|
id: string;
|
|
708
|
+
kind: "decision" | "auth" | "fact";
|
|
709
709
|
prompt: string;
|
|
710
710
|
options?: string[] | undefined;
|
|
711
711
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -743,27 +743,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
743
743
|
e164?: string | undefined;
|
|
744
744
|
};
|
|
745
745
|
draftConfig: {
|
|
746
|
-
stt?: {
|
|
747
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
748
|
-
model?: string | undefined;
|
|
749
|
-
language?: string | undefined;
|
|
750
|
-
endOfTurnConfidence?: number | undefined;
|
|
751
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
752
|
-
keywords?: string[] | undefined;
|
|
753
|
-
} | undefined;
|
|
754
|
-
realtime?: {
|
|
755
|
-
provider: "openai" | "google";
|
|
756
|
-
model: string;
|
|
757
|
-
voice?: string | undefined;
|
|
758
|
-
temperature?: number | undefined;
|
|
759
|
-
} | undefined;
|
|
760
|
-
voice?: {
|
|
761
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
762
|
-
voiceId: string;
|
|
763
|
-
model?: string | undefined;
|
|
764
|
-
rate?: number | undefined;
|
|
765
|
-
} | undefined;
|
|
766
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
767
746
|
name?: string | undefined;
|
|
768
747
|
triggers?: Record<string, {
|
|
769
748
|
then: {
|
|
@@ -775,12 +754,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
775
754
|
kind: "say";
|
|
776
755
|
};
|
|
777
756
|
on: {
|
|
778
|
-
kind: "regex";
|
|
779
757
|
pattern: string;
|
|
758
|
+
kind: "regex";
|
|
780
759
|
flags?: string | undefined;
|
|
781
760
|
} | {
|
|
782
|
-
kind: "signal";
|
|
783
761
|
name: string;
|
|
762
|
+
kind: "signal";
|
|
784
763
|
};
|
|
785
764
|
onlyWhile?: string | undefined;
|
|
786
765
|
}> | undefined;
|
|
@@ -788,6 +767,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
788
767
|
toolName: string;
|
|
789
768
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
790
769
|
}[] | undefined;
|
|
770
|
+
stt?: {
|
|
771
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
772
|
+
model?: string | undefined;
|
|
773
|
+
language?: string | undefined;
|
|
774
|
+
endOfTurnConfidence?: number | undefined;
|
|
775
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
776
|
+
keywords?: string[] | undefined;
|
|
777
|
+
} | undefined;
|
|
778
|
+
realtime?: {
|
|
779
|
+
provider: "openai" | "google";
|
|
780
|
+
model: string;
|
|
781
|
+
voice?: string | undefined;
|
|
782
|
+
temperature?: number | undefined;
|
|
783
|
+
} | undefined;
|
|
784
|
+
voice?: {
|
|
785
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
786
|
+
voiceId: string;
|
|
787
|
+
model?: string | undefined;
|
|
788
|
+
rate?: number | undefined;
|
|
789
|
+
} | undefined;
|
|
790
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
791
791
|
mode?: "realtime" | "cascade" | undefined;
|
|
792
792
|
model?: {
|
|
793
793
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -827,8 +827,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
827
827
|
completeWhen: "all-required-captured" | "all-captured";
|
|
828
828
|
backendAck?: {
|
|
829
829
|
url: string;
|
|
830
|
-
headers?: Record<string, string> | undefined;
|
|
831
830
|
timeoutMs?: number | undefined;
|
|
831
|
+
headers?: Record<string, string> | undefined;
|
|
832
832
|
} | undefined;
|
|
833
833
|
} | undefined;
|
|
834
834
|
tags?: string[] | undefined;
|
|
@@ -844,15 +844,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
844
844
|
draftUpdatedAt?: string | undefined;
|
|
845
845
|
};
|
|
846
846
|
openQuestions: {
|
|
847
|
-
kind: "decision" | "auth" | "fact";
|
|
848
847
|
id: string;
|
|
848
|
+
kind: "decision" | "auth" | "fact";
|
|
849
849
|
prompt: string;
|
|
850
850
|
deferrableToCallee: boolean;
|
|
851
851
|
options?: string[] | undefined;
|
|
852
852
|
}[];
|
|
853
853
|
unresolvedQuestions: {
|
|
854
|
-
kind: "decision" | "auth" | "fact";
|
|
855
854
|
id: string;
|
|
855
|
+
kind: "decision" | "auth" | "fact";
|
|
856
856
|
prompt: string;
|
|
857
857
|
deferrableToCallee: boolean;
|
|
858
858
|
options?: string[] | undefined;
|
|
@@ -884,27 +884,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
884
884
|
secondary?: "ask_callee" | "fallback_phrase" | undefined;
|
|
885
885
|
};
|
|
886
886
|
draftConfig?: {
|
|
887
|
-
stt?: {
|
|
888
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
889
|
-
model?: string | undefined;
|
|
890
|
-
language?: string | undefined;
|
|
891
|
-
endOfTurnConfidence?: number | undefined;
|
|
892
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
893
|
-
keywords?: string[] | undefined;
|
|
894
|
-
} | undefined;
|
|
895
|
-
realtime?: {
|
|
896
|
-
provider: "openai" | "google";
|
|
897
|
-
model: string;
|
|
898
|
-
voice?: string | undefined;
|
|
899
|
-
temperature?: number | undefined;
|
|
900
|
-
} | undefined;
|
|
901
|
-
voice?: {
|
|
902
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
903
|
-
voiceId: string;
|
|
904
|
-
model?: string | undefined;
|
|
905
|
-
rate?: number | undefined;
|
|
906
|
-
} | undefined;
|
|
907
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
908
887
|
name?: string | undefined;
|
|
909
888
|
triggers?: Record<string, {
|
|
910
889
|
then: {
|
|
@@ -916,12 +895,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
916
895
|
kind: "say";
|
|
917
896
|
};
|
|
918
897
|
on: {
|
|
919
|
-
kind: "regex";
|
|
920
898
|
pattern: string;
|
|
899
|
+
kind: "regex";
|
|
921
900
|
flags?: string | undefined;
|
|
922
901
|
} | {
|
|
923
|
-
kind: "signal";
|
|
924
902
|
name: string;
|
|
903
|
+
kind: "signal";
|
|
925
904
|
};
|
|
926
905
|
onlyWhile?: string | undefined;
|
|
927
906
|
}> | undefined;
|
|
@@ -929,6 +908,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
929
908
|
toolName: string;
|
|
930
909
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
931
910
|
}[] | undefined;
|
|
911
|
+
stt?: {
|
|
912
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
913
|
+
model?: string | undefined;
|
|
914
|
+
language?: string | undefined;
|
|
915
|
+
endOfTurnConfidence?: number | undefined;
|
|
916
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
917
|
+
keywords?: string[] | undefined;
|
|
918
|
+
} | undefined;
|
|
919
|
+
realtime?: {
|
|
920
|
+
provider: "openai" | "google";
|
|
921
|
+
model: string;
|
|
922
|
+
voice?: string | undefined;
|
|
923
|
+
temperature?: number | undefined;
|
|
924
|
+
} | undefined;
|
|
925
|
+
voice?: {
|
|
926
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
927
|
+
voiceId: string;
|
|
928
|
+
model?: string | undefined;
|
|
929
|
+
rate?: number | undefined;
|
|
930
|
+
} | undefined;
|
|
931
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
932
932
|
mode?: "realtime" | "cascade" | undefined;
|
|
933
933
|
model?: {
|
|
934
934
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -957,8 +957,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
957
957
|
process?: {
|
|
958
958
|
backendAck?: {
|
|
959
959
|
url: string;
|
|
960
|
-
headers?: Record<string, string> | undefined;
|
|
961
960
|
timeoutMs?: number | undefined;
|
|
961
|
+
headers?: Record<string, string> | undefined;
|
|
962
962
|
} | undefined;
|
|
963
963
|
collect?: Record<string, {
|
|
964
964
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -985,15 +985,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
985
985
|
draftUpdatedAt?: string | undefined;
|
|
986
986
|
} | undefined;
|
|
987
987
|
openQuestions?: {
|
|
988
|
-
kind: "decision" | "auth" | "fact";
|
|
989
988
|
id: string;
|
|
989
|
+
kind: "decision" | "auth" | "fact";
|
|
990
990
|
prompt: string;
|
|
991
991
|
options?: string[] | undefined;
|
|
992
992
|
deferrableToCallee?: boolean | undefined;
|
|
993
993
|
}[] | undefined;
|
|
994
994
|
unresolvedQuestions?: {
|
|
995
|
-
kind: "decision" | "auth" | "fact";
|
|
996
995
|
id: string;
|
|
996
|
+
kind: "decision" | "auth" | "fact";
|
|
997
997
|
prompt: string;
|
|
998
998
|
options?: string[] | undefined;
|
|
999
999
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -1011,13 +1011,13 @@ declare const RelevantContext: z.ZodObject<{
|
|
|
1011
1011
|
account: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1012
1012
|
platform: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1013
1013
|
}, "strip", z.ZodTypeAny, {
|
|
1014
|
-
caller: Record<string, unknown>;
|
|
1015
1014
|
call: Record<string, unknown>;
|
|
1015
|
+
caller: Record<string, unknown>;
|
|
1016
1016
|
account: Record<string, unknown>;
|
|
1017
1017
|
platform: Record<string, unknown>;
|
|
1018
1018
|
}, {
|
|
1019
|
-
caller: Record<string, unknown>;
|
|
1020
1019
|
call: Record<string, unknown>;
|
|
1020
|
+
caller: Record<string, unknown>;
|
|
1021
1021
|
account: Record<string, unknown>;
|
|
1022
1022
|
platform: Record<string, unknown>;
|
|
1023
1023
|
}>;
|
|
@@ -1033,38 +1033,38 @@ declare const ResolveCallerResponse: z.ZodObject<{
|
|
|
1033
1033
|
updatedAt: z.ZodString;
|
|
1034
1034
|
}, "strip", z.ZodTypeAny, {
|
|
1035
1035
|
id: string;
|
|
1036
|
+
displayName: string | null;
|
|
1036
1037
|
projectId: string;
|
|
1037
1038
|
createdAt: string;
|
|
1038
1039
|
updatedAt: string;
|
|
1039
|
-
displayName: string | null;
|
|
1040
1040
|
metadata: Record<string, unknown>;
|
|
1041
1041
|
externalKey: string;
|
|
1042
1042
|
}, {
|
|
1043
1043
|
id: string;
|
|
1044
|
+
displayName: string | null;
|
|
1044
1045
|
projectId: string;
|
|
1045
1046
|
createdAt: string;
|
|
1046
1047
|
updatedAt: string;
|
|
1047
|
-
displayName: string | null;
|
|
1048
1048
|
metadata: Record<string, unknown>;
|
|
1049
1049
|
externalKey: string;
|
|
1050
1050
|
}>;
|
|
1051
1051
|
}, "strip", z.ZodTypeAny, {
|
|
1052
1052
|
caller: {
|
|
1053
1053
|
id: string;
|
|
1054
|
+
displayName: string | null;
|
|
1054
1055
|
projectId: string;
|
|
1055
1056
|
createdAt: string;
|
|
1056
1057
|
updatedAt: string;
|
|
1057
|
-
displayName: string | null;
|
|
1058
1058
|
metadata: Record<string, unknown>;
|
|
1059
1059
|
externalKey: string;
|
|
1060
1060
|
};
|
|
1061
1061
|
}, {
|
|
1062
1062
|
caller: {
|
|
1063
1063
|
id: string;
|
|
1064
|
+
displayName: string | null;
|
|
1064
1065
|
projectId: string;
|
|
1065
1066
|
createdAt: string;
|
|
1066
1067
|
updatedAt: string;
|
|
1067
|
-
displayName: string | null;
|
|
1068
1068
|
metadata: Record<string, unknown>;
|
|
1069
1069
|
externalKey: string;
|
|
1070
1070
|
};
|
|
@@ -1075,10 +1075,10 @@ declare const DeleteCallerResponse: z.ZodObject<{
|
|
|
1075
1075
|
scopesPurged: z.ZodArray<z.ZodEnum<["call", "caller", "account", "platform"]>, "many">;
|
|
1076
1076
|
}, "strip", z.ZodTypeAny, {
|
|
1077
1077
|
ok: true;
|
|
1078
|
-
scopesPurged: ("
|
|
1078
|
+
scopesPurged: ("call" | "caller" | "account" | "platform")[];
|
|
1079
1079
|
}, {
|
|
1080
1080
|
ok: true;
|
|
1081
|
-
scopesPurged: ("
|
|
1081
|
+
scopesPurged: ("call" | "caller" | "account" | "platform")[];
|
|
1082
1082
|
}>;
|
|
1083
1083
|
type DeleteCallerResponse = z.infer<typeof DeleteCallerResponse>;
|
|
1084
1084
|
|
|
@@ -1257,12 +1257,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1257
1257
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1258
1258
|
}, "strip", z.ZodTypeAny, {
|
|
1259
1259
|
url: string;
|
|
1260
|
-
headers?: Record<string, string> | undefined;
|
|
1261
1260
|
timeoutMs?: number | undefined;
|
|
1261
|
+
headers?: Record<string, string> | undefined;
|
|
1262
1262
|
}, {
|
|
1263
1263
|
url: string;
|
|
1264
|
-
headers?: Record<string, string> | undefined;
|
|
1265
1264
|
timeoutMs?: number | undefined;
|
|
1265
|
+
headers?: Record<string, string> | undefined;
|
|
1266
1266
|
}>>;
|
|
1267
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1268
1268
|
collect: Record<string, {
|
|
@@ -1278,14 +1278,14 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1278
1278
|
completeWhen: "all-required-captured" | "all-captured";
|
|
1279
1279
|
backendAck?: {
|
|
1280
1280
|
url: string;
|
|
1281
|
-
headers?: Record<string, string> | undefined;
|
|
1282
1281
|
timeoutMs?: number | undefined;
|
|
1282
|
+
headers?: Record<string, string> | undefined;
|
|
1283
1283
|
} | undefined;
|
|
1284
1284
|
}, {
|
|
1285
1285
|
backendAck?: {
|
|
1286
1286
|
url: string;
|
|
1287
|
-
headers?: Record<string, string> | undefined;
|
|
1288
1287
|
timeoutMs?: number | undefined;
|
|
1288
|
+
headers?: Record<string, string> | undefined;
|
|
1289
1289
|
} | undefined;
|
|
1290
1290
|
collect?: Record<string, {
|
|
1291
1291
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -1305,22 +1305,22 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1305
1305
|
pattern: z.ZodString;
|
|
1306
1306
|
flags: z.ZodOptional<z.ZodString>;
|
|
1307
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1308
|
-
kind: "regex";
|
|
1309
1308
|
pattern: string;
|
|
1309
|
+
kind: "regex";
|
|
1310
1310
|
flags?: string | undefined;
|
|
1311
1311
|
}, {
|
|
1312
|
-
kind: "regex";
|
|
1313
1312
|
pattern: string;
|
|
1313
|
+
kind: "regex";
|
|
1314
1314
|
flags?: string | undefined;
|
|
1315
1315
|
}>, z.ZodObject<{
|
|
1316
1316
|
kind: z.ZodLiteral<"signal">;
|
|
1317
1317
|
name: z.ZodString;
|
|
1318
1318
|
}, "strip", z.ZodTypeAny, {
|
|
1319
|
-
kind: "signal";
|
|
1320
1319
|
name: string;
|
|
1321
|
-
}, {
|
|
1322
1320
|
kind: "signal";
|
|
1321
|
+
}, {
|
|
1323
1322
|
name: string;
|
|
1323
|
+
kind: "signal";
|
|
1324
1324
|
}>]>;
|
|
1325
1325
|
then: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1326
1326
|
kind: z.ZodLiteral<"handoff">;
|
|
@@ -1355,12 +1355,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1355
1355
|
kind: "say";
|
|
1356
1356
|
};
|
|
1357
1357
|
on: {
|
|
1358
|
-
kind: "regex";
|
|
1359
1358
|
pattern: string;
|
|
1359
|
+
kind: "regex";
|
|
1360
1360
|
flags?: string | undefined;
|
|
1361
1361
|
} | {
|
|
1362
|
-
kind: "signal";
|
|
1363
1362
|
name: string;
|
|
1363
|
+
kind: "signal";
|
|
1364
1364
|
};
|
|
1365
1365
|
onlyWhile?: string | undefined;
|
|
1366
1366
|
}, {
|
|
@@ -1373,12 +1373,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1373
1373
|
kind: "say";
|
|
1374
1374
|
};
|
|
1375
1375
|
on: {
|
|
1376
|
-
kind: "regex";
|
|
1377
1376
|
pattern: string;
|
|
1377
|
+
kind: "regex";
|
|
1378
1378
|
flags?: string | undefined;
|
|
1379
1379
|
} | {
|
|
1380
|
-
kind: "signal";
|
|
1381
1380
|
name: string;
|
|
1381
|
+
kind: "signal";
|
|
1382
1382
|
};
|
|
1383
1383
|
onlyWhile?: string | undefined;
|
|
1384
1384
|
}>>>;
|
|
@@ -1409,21 +1409,21 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1409
1409
|
updatedAt: z.ZodString;
|
|
1410
1410
|
draftUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
1411
1411
|
}, "strip", z.ZodTypeAny, {
|
|
1412
|
+
id: string;
|
|
1413
|
+
name: string;
|
|
1414
|
+
tools: {
|
|
1415
|
+
toolName: string;
|
|
1416
|
+
defaultArgs?: Record<string, unknown> | undefined;
|
|
1417
|
+
}[];
|
|
1412
1418
|
voice: {
|
|
1413
1419
|
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
1414
1420
|
voiceId: string;
|
|
1415
1421
|
model?: string | undefined;
|
|
1416
1422
|
rate?: number | undefined;
|
|
1417
1423
|
};
|
|
1418
|
-
id: string;
|
|
1419
1424
|
projectId: string;
|
|
1420
|
-
name: string;
|
|
1421
1425
|
createdAt: string;
|
|
1422
1426
|
updatedAt: string;
|
|
1423
|
-
tools: {
|
|
1424
|
-
toolName: string;
|
|
1425
|
-
defaultArgs?: Record<string, unknown> | undefined;
|
|
1426
|
-
}[];
|
|
1427
1427
|
mode: "realtime" | "cascade";
|
|
1428
1428
|
model: {
|
|
1429
1429
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -1454,21 +1454,6 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1454
1454
|
enum?: string[] | undefined;
|
|
1455
1455
|
description?: string | undefined;
|
|
1456
1456
|
}[];
|
|
1457
|
-
stt?: {
|
|
1458
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1459
|
-
model?: string | undefined;
|
|
1460
|
-
language?: string | undefined;
|
|
1461
|
-
endOfTurnConfidence?: number | undefined;
|
|
1462
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
1463
|
-
keywords?: string[] | undefined;
|
|
1464
|
-
} | undefined;
|
|
1465
|
-
realtime?: {
|
|
1466
|
-
provider: "openai" | "google";
|
|
1467
|
-
model: string;
|
|
1468
|
-
voice?: string | undefined;
|
|
1469
|
-
temperature?: number | undefined;
|
|
1470
|
-
} | undefined;
|
|
1471
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1472
1457
|
triggers?: Record<string, {
|
|
1473
1458
|
then: {
|
|
1474
1459
|
kind: "handoff";
|
|
@@ -1479,15 +1464,30 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1479
1464
|
kind: "say";
|
|
1480
1465
|
};
|
|
1481
1466
|
on: {
|
|
1482
|
-
kind: "regex";
|
|
1483
1467
|
pattern: string;
|
|
1468
|
+
kind: "regex";
|
|
1484
1469
|
flags?: string | undefined;
|
|
1485
1470
|
} | {
|
|
1486
|
-
kind: "signal";
|
|
1487
1471
|
name: string;
|
|
1472
|
+
kind: "signal";
|
|
1488
1473
|
};
|
|
1489
1474
|
onlyWhile?: string | undefined;
|
|
1490
1475
|
}> | undefined;
|
|
1476
|
+
stt?: {
|
|
1477
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1478
|
+
model?: string | undefined;
|
|
1479
|
+
language?: string | undefined;
|
|
1480
|
+
endOfTurnConfidence?: number | undefined;
|
|
1481
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
1482
|
+
keywords?: string[] | undefined;
|
|
1483
|
+
} | undefined;
|
|
1484
|
+
realtime?: {
|
|
1485
|
+
provider: "openai" | "google";
|
|
1486
|
+
model: string;
|
|
1487
|
+
voice?: string | undefined;
|
|
1488
|
+
temperature?: number | undefined;
|
|
1489
|
+
} | undefined;
|
|
1490
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1491
1491
|
systemPrompt?: string | undefined;
|
|
1492
1492
|
routingInstructions?: string | undefined;
|
|
1493
1493
|
process?: {
|
|
@@ -1504,8 +1504,8 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1504
1504
|
completeWhen: "all-required-captured" | "all-captured";
|
|
1505
1505
|
backendAck?: {
|
|
1506
1506
|
url: string;
|
|
1507
|
-
headers?: Record<string, string> | undefined;
|
|
1508
1507
|
timeoutMs?: number | undefined;
|
|
1508
|
+
headers?: Record<string, string> | undefined;
|
|
1509
1509
|
} | undefined;
|
|
1510
1510
|
} | undefined;
|
|
1511
1511
|
tags?: string[] | undefined;
|
|
@@ -1513,15 +1513,15 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1513
1513
|
modeLocked?: boolean | undefined;
|
|
1514
1514
|
draftUpdatedAt?: string | undefined;
|
|
1515
1515
|
}, {
|
|
1516
|
+
id: string;
|
|
1517
|
+
name: string;
|
|
1516
1518
|
voice: {
|
|
1517
1519
|
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
1518
1520
|
voiceId: string;
|
|
1519
1521
|
model?: string | undefined;
|
|
1520
1522
|
rate?: number | undefined;
|
|
1521
1523
|
};
|
|
1522
|
-
id: string;
|
|
1523
1524
|
projectId: string;
|
|
1524
|
-
name: string;
|
|
1525
1525
|
createdAt: string;
|
|
1526
1526
|
updatedAt: string;
|
|
1527
1527
|
model: {
|
|
@@ -1545,21 +1545,6 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1545
1545
|
normal?: number | undefined;
|
|
1546
1546
|
} | undefined;
|
|
1547
1547
|
};
|
|
1548
|
-
stt?: {
|
|
1549
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1550
|
-
model?: string | undefined;
|
|
1551
|
-
language?: string | undefined;
|
|
1552
|
-
endOfTurnConfidence?: number | undefined;
|
|
1553
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
1554
|
-
keywords?: string[] | undefined;
|
|
1555
|
-
} | undefined;
|
|
1556
|
-
realtime?: {
|
|
1557
|
-
provider: "openai" | "google";
|
|
1558
|
-
model: string;
|
|
1559
|
-
voice?: string | undefined;
|
|
1560
|
-
temperature?: number | undefined;
|
|
1561
|
-
} | undefined;
|
|
1562
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1563
1548
|
triggers?: Record<string, {
|
|
1564
1549
|
then: {
|
|
1565
1550
|
kind: "handoff";
|
|
@@ -1570,12 +1555,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1570
1555
|
kind: "say";
|
|
1571
1556
|
};
|
|
1572
1557
|
on: {
|
|
1573
|
-
kind: "regex";
|
|
1574
1558
|
pattern: string;
|
|
1559
|
+
kind: "regex";
|
|
1575
1560
|
flags?: string | undefined;
|
|
1576
1561
|
} | {
|
|
1577
|
-
kind: "signal";
|
|
1578
1562
|
name: string;
|
|
1563
|
+
kind: "signal";
|
|
1579
1564
|
};
|
|
1580
1565
|
onlyWhile?: string | undefined;
|
|
1581
1566
|
}> | undefined;
|
|
@@ -1583,6 +1568,21 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1583
1568
|
toolName: string;
|
|
1584
1569
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
1585
1570
|
}[] | undefined;
|
|
1571
|
+
stt?: {
|
|
1572
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1573
|
+
model?: string | undefined;
|
|
1574
|
+
language?: string | undefined;
|
|
1575
|
+
endOfTurnConfidence?: number | undefined;
|
|
1576
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
1577
|
+
keywords?: string[] | undefined;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
realtime?: {
|
|
1580
|
+
provider: "openai" | "google";
|
|
1581
|
+
model: string;
|
|
1582
|
+
voice?: string | undefined;
|
|
1583
|
+
temperature?: number | undefined;
|
|
1584
|
+
} | undefined;
|
|
1585
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1586
1586
|
mode?: "realtime" | "cascade" | undefined;
|
|
1587
1587
|
language?: string | undefined;
|
|
1588
1588
|
systemPrompt?: string | undefined;
|
|
@@ -1590,8 +1590,8 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1590
1590
|
process?: {
|
|
1591
1591
|
backendAck?: {
|
|
1592
1592
|
url: string;
|
|
1593
|
-
headers?: Record<string, string> | undefined;
|
|
1594
1593
|
timeoutMs?: number | undefined;
|
|
1594
|
+
headers?: Record<string, string> | undefined;
|
|
1595
1595
|
} | undefined;
|
|
1596
1596
|
collect?: Record<string, {
|
|
1597
1597
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -1818,8 +1818,8 @@ declare class AgentsClient {
|
|
|
1818
1818
|
agents: {
|
|
1819
1819
|
status: "online" | "offline" | "degraded";
|
|
1820
1820
|
id: string;
|
|
1821
|
-
projectId: string;
|
|
1822
1821
|
name: string;
|
|
1822
|
+
projectId: string;
|
|
1823
1823
|
createdAt: string;
|
|
1824
1824
|
updatedAt: string;
|
|
1825
1825
|
version: string;
|
|
@@ -1859,7 +1859,7 @@ declare class AgentsClient {
|
|
|
1859
1859
|
routes?: Record<string, string> | undefined;
|
|
1860
1860
|
} | undefined;
|
|
1861
1861
|
memory?: {
|
|
1862
|
-
scope?: "
|
|
1862
|
+
scope?: "call" | "caller" | "participant" | "account" | "platform" | undefined;
|
|
1863
1863
|
retentionDays?: number | undefined;
|
|
1864
1864
|
piiFields?: string[] | undefined;
|
|
1865
1865
|
} | undefined;
|
|
@@ -1875,8 +1875,8 @@ declare class AgentsClient {
|
|
|
1875
1875
|
} | undefined;
|
|
1876
1876
|
} | undefined;
|
|
1877
1877
|
prompts?: {
|
|
1878
|
-
text: string;
|
|
1879
1878
|
id: string;
|
|
1879
|
+
text: string;
|
|
1880
1880
|
}[] | undefined;
|
|
1881
1881
|
triggers?: {
|
|
1882
1882
|
then: string;
|
|
@@ -1886,32 +1886,32 @@ declare class AgentsClient {
|
|
|
1886
1886
|
}[] | undefined;
|
|
1887
1887
|
tools?: {
|
|
1888
1888
|
name: string;
|
|
1889
|
+
url: string;
|
|
1889
1890
|
description: string;
|
|
1890
1891
|
input: Record<string, "string" | "number" | "boolean">;
|
|
1891
|
-
url: string;
|
|
1892
1892
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1893
1893
|
auth: "none" | "connection";
|
|
1894
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
1894
1895
|
headers?: Record<string, string> | undefined;
|
|
1895
1896
|
connectionRef?: string | undefined;
|
|
1896
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
1897
1897
|
sendRealValues?: boolean | undefined;
|
|
1898
1898
|
}[] | undefined;
|
|
1899
1899
|
displayName?: string | undefined;
|
|
1900
1900
|
program?: {
|
|
1901
|
+
v: 1;
|
|
1901
1902
|
id: string;
|
|
1903
|
+
entry: string[];
|
|
1902
1904
|
nodes: Record<string, {
|
|
1903
|
-
type: "
|
|
1905
|
+
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1904
1906
|
id: string;
|
|
1905
1907
|
config: Record<string, unknown>;
|
|
1906
1908
|
out: {
|
|
1907
1909
|
to: string;
|
|
1910
|
+
condition?: string | undefined;
|
|
1908
1911
|
sourceHandle?: string | undefined;
|
|
1909
1912
|
label?: string | undefined;
|
|
1910
|
-
condition?: string | undefined;
|
|
1911
1913
|
}[];
|
|
1912
1914
|
}>;
|
|
1913
|
-
v: 1;
|
|
1914
|
-
entry: string[];
|
|
1915
1915
|
completionGate: {
|
|
1916
1916
|
requiredFields: string[];
|
|
1917
1917
|
};
|
|
@@ -1991,6 +1991,8 @@ interface CallUsageReport {
|
|
|
1991
1991
|
readonly model: string;
|
|
1992
1992
|
readonly inputTokens: number;
|
|
1993
1993
|
readonly outputTokens: number;
|
|
1994
|
+
/** Whose key paid, when the worker knows (its own helper calls): true waives the line, false bills it. */
|
|
1995
|
+
readonly byok?: boolean;
|
|
1994
1996
|
}[];
|
|
1995
1997
|
readonly tts: readonly {
|
|
1996
1998
|
readonly provider: string;
|
|
@@ -2193,8 +2195,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2193
2195
|
baseUrl: string;
|
|
2194
2196
|
}>>>;
|
|
2195
2197
|
}, "strip", z.ZodTypeAny, {
|
|
2196
|
-
enabled: boolean;
|
|
2197
2198
|
id: string;
|
|
2199
|
+
enabled: boolean;
|
|
2198
2200
|
mode: "tunnel" | "direct";
|
|
2199
2201
|
defaultModel: string | null;
|
|
2200
2202
|
connectionId: string | null;
|
|
@@ -2204,8 +2206,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2204
2206
|
baseUrl: string;
|
|
2205
2207
|
} | null | undefined;
|
|
2206
2208
|
}, {
|
|
2207
|
-
enabled: boolean;
|
|
2208
2209
|
id: string;
|
|
2210
|
+
enabled: boolean;
|
|
2209
2211
|
mode: "tunnel" | "direct";
|
|
2210
2212
|
defaultModel: string | null;
|
|
2211
2213
|
connectionId: string | null;
|
|
@@ -2217,8 +2219,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2217
2219
|
}>;
|
|
2218
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2219
2221
|
connector: {
|
|
2220
|
-
enabled: boolean;
|
|
2221
2222
|
id: string;
|
|
2223
|
+
enabled: boolean;
|
|
2222
2224
|
mode: "tunnel" | "direct";
|
|
2223
2225
|
defaultModel: string | null;
|
|
2224
2226
|
connectionId: string | null;
|
|
@@ -2230,8 +2232,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2230
2232
|
};
|
|
2231
2233
|
}, {
|
|
2232
2234
|
connector: {
|
|
2233
|
-
enabled: boolean;
|
|
2234
2235
|
id: string;
|
|
2236
|
+
enabled: boolean;
|
|
2235
2237
|
mode: "tunnel" | "direct";
|
|
2236
2238
|
defaultModel: string | null;
|
|
2237
2239
|
connectionId: string | null;
|