@voicelayer/sdk 0.6.2 → 0.6.3
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 +254 -254
- package/dist/index.js +1034 -654
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +468 -100
- package/dist/{text-session-B-T33y5P.d.ts → text-session-B928dhkB.d.ts} +108 -108
- package/package.json +7 -7
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-B928dhkB.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-B928dhkB.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;
|
|
37
36
|
agentId: string;
|
|
38
37
|
turnId: string;
|
|
39
38
|
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;
|
|
49
48
|
agentId: string;
|
|
50
49
|
turnId: string;
|
|
51
50
|
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
|
-
replies: string[];
|
|
85
84
|
agentId: string;
|
|
85
|
+
replies: 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
|
-
replies: string[];
|
|
95
94
|
agentId: string;
|
|
95
|
+
replies: string[];
|
|
96
96
|
usage?: {
|
|
97
97
|
provider: string;
|
|
98
98
|
model: string;
|
|
@@ -150,6 +150,61 @@ 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"]>>>;
|
|
153
208
|
name: z.ZodOptional<z.ZodString>;
|
|
154
209
|
triggers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
210
|
on: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -157,22 +212,22 @@ declare const CallPlan: z.ZodObject<{
|
|
|
157
212
|
pattern: z.ZodString;
|
|
158
213
|
flags: z.ZodOptional<z.ZodString>;
|
|
159
214
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
pattern: string;
|
|
161
215
|
kind: "regex";
|
|
216
|
+
pattern: string;
|
|
162
217
|
flags?: string | undefined;
|
|
163
218
|
}, {
|
|
164
|
-
pattern: string;
|
|
165
219
|
kind: "regex";
|
|
220
|
+
pattern: string;
|
|
166
221
|
flags?: string | undefined;
|
|
167
222
|
}>, z.ZodObject<{
|
|
168
223
|
kind: z.ZodLiteral<"signal">;
|
|
169
224
|
name: z.ZodString;
|
|
170
225
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
name: string;
|
|
172
226
|
kind: "signal";
|
|
173
|
-
}, {
|
|
174
227
|
name: string;
|
|
228
|
+
}, {
|
|
175
229
|
kind: "signal";
|
|
230
|
+
name: string;
|
|
176
231
|
}>]>;
|
|
177
232
|
then: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
178
233
|
kind: z.ZodLiteral<"handoff">;
|
|
@@ -207,12 +262,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
207
262
|
kind: "say";
|
|
208
263
|
};
|
|
209
264
|
on: {
|
|
210
|
-
pattern: string;
|
|
211
265
|
kind: "regex";
|
|
266
|
+
pattern: string;
|
|
212
267
|
flags?: string | undefined;
|
|
213
268
|
} | {
|
|
214
|
-
name: string;
|
|
215
269
|
kind: "signal";
|
|
270
|
+
name: string;
|
|
216
271
|
};
|
|
217
272
|
onlyWhile?: string | undefined;
|
|
218
273
|
}, {
|
|
@@ -225,12 +280,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
225
280
|
kind: "say";
|
|
226
281
|
};
|
|
227
282
|
on: {
|
|
228
|
-
pattern: string;
|
|
229
283
|
kind: "regex";
|
|
284
|
+
pattern: string;
|
|
230
285
|
flags?: string | undefined;
|
|
231
286
|
} | {
|
|
232
|
-
name: string;
|
|
233
287
|
kind: "signal";
|
|
288
|
+
name: string;
|
|
234
289
|
};
|
|
235
290
|
onlyWhile?: string | undefined;
|
|
236
291
|
}>>>>;
|
|
@@ -244,61 +299,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
244
299
|
toolName: string;
|
|
245
300
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
246
301
|
}>, "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
|
-
timeoutMs?: number | undefined;
|
|
410
409
|
headers?: Record<string, string> | undefined;
|
|
410
|
+
timeoutMs?: number | undefined;
|
|
411
411
|
}, {
|
|
412
412
|
url: string;
|
|
413
|
-
timeoutMs?: number | undefined;
|
|
414
413
|
headers?: Record<string, string> | undefined;
|
|
414
|
+
timeoutMs?: number | 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
|
-
timeoutMs?: number | undefined;
|
|
431
430
|
headers?: Record<string, string> | undefined;
|
|
431
|
+
timeoutMs?: number | undefined;
|
|
432
432
|
} | undefined;
|
|
433
433
|
}, {
|
|
434
434
|
backendAck?: {
|
|
435
435
|
url: string;
|
|
436
|
-
timeoutMs?: number | undefined;
|
|
437
436
|
headers?: Record<string, string> | undefined;
|
|
437
|
+
timeoutMs?: number | undefined;
|
|
438
438
|
} | undefined;
|
|
439
439
|
collect?: Record<string, {
|
|
440
440
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -524,6 +524,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
524
524
|
}>, "many">>>;
|
|
525
525
|
draftUpdatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
stt?: {
|
|
528
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
529
|
+
model?: string | undefined;
|
|
530
|
+
language?: string | undefined;
|
|
531
|
+
endOfTurnConfidence?: number | undefined;
|
|
532
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
533
|
+
keywords?: string[] | undefined;
|
|
534
|
+
} | undefined;
|
|
535
|
+
realtime?: {
|
|
536
|
+
provider: "openai" | "google";
|
|
537
|
+
model: string;
|
|
538
|
+
voice?: string | undefined;
|
|
539
|
+
temperature?: number | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
voice?: {
|
|
542
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
543
|
+
voiceId: string;
|
|
544
|
+
model?: string | undefined;
|
|
545
|
+
rate?: number | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
527
548
|
name?: string | undefined;
|
|
528
549
|
triggers?: Record<string, {
|
|
529
550
|
then: {
|
|
@@ -535,12 +556,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
535
556
|
kind: "say";
|
|
536
557
|
};
|
|
537
558
|
on: {
|
|
538
|
-
pattern: string;
|
|
539
559
|
kind: "regex";
|
|
560
|
+
pattern: string;
|
|
540
561
|
flags?: string | undefined;
|
|
541
562
|
} | {
|
|
542
|
-
name: string;
|
|
543
563
|
kind: "signal";
|
|
564
|
+
name: string;
|
|
544
565
|
};
|
|
545
566
|
onlyWhile?: string | undefined;
|
|
546
567
|
}> | undefined;
|
|
@@ -548,27 +569,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
548
569
|
toolName: string;
|
|
549
570
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
550
571
|
}[] | undefined;
|
|
551
|
-
stt?: {
|
|
552
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
553
|
-
model?: string | undefined;
|
|
554
|
-
language?: string | undefined;
|
|
555
|
-
endOfTurnConfidence?: number | undefined;
|
|
556
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
557
|
-
keywords?: string[] | undefined;
|
|
558
|
-
} | undefined;
|
|
559
|
-
realtime?: {
|
|
560
|
-
provider: "openai" | "google";
|
|
561
|
-
model: string;
|
|
562
|
-
voice?: string | undefined;
|
|
563
|
-
temperature?: number | undefined;
|
|
564
|
-
} | undefined;
|
|
565
|
-
voice?: {
|
|
566
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
567
|
-
voiceId: string;
|
|
568
|
-
model?: string | undefined;
|
|
569
|
-
rate?: number | undefined;
|
|
570
|
-
} | undefined;
|
|
571
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
572
572
|
mode?: "realtime" | "cascade" | undefined;
|
|
573
573
|
model?: {
|
|
574
574
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -608,8 +608,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
608
608
|
completeWhen: "all-required-captured" | "all-captured";
|
|
609
609
|
backendAck?: {
|
|
610
610
|
url: string;
|
|
611
|
-
timeoutMs?: number | undefined;
|
|
612
611
|
headers?: Record<string, string> | undefined;
|
|
612
|
+
timeoutMs?: number | undefined;
|
|
613
613
|
} | undefined;
|
|
614
614
|
} | undefined;
|
|
615
615
|
tags?: string[] | undefined;
|
|
@@ -638,6 +638,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
638
638
|
}[] | undefined;
|
|
639
639
|
draftUpdatedAt?: string | undefined;
|
|
640
640
|
}, {
|
|
641
|
+
stt?: {
|
|
642
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
643
|
+
model?: string | undefined;
|
|
644
|
+
language?: string | undefined;
|
|
645
|
+
endOfTurnConfidence?: number | undefined;
|
|
646
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
647
|
+
keywords?: string[] | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
realtime?: {
|
|
650
|
+
provider: "openai" | "google";
|
|
651
|
+
model: string;
|
|
652
|
+
voice?: string | undefined;
|
|
653
|
+
temperature?: number | undefined;
|
|
654
|
+
} | undefined;
|
|
655
|
+
voice?: {
|
|
656
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
657
|
+
voiceId: string;
|
|
658
|
+
model?: string | undefined;
|
|
659
|
+
rate?: number | undefined;
|
|
660
|
+
} | undefined;
|
|
661
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
641
662
|
name?: string | undefined;
|
|
642
663
|
triggers?: Record<string, {
|
|
643
664
|
then: {
|
|
@@ -649,12 +670,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
649
670
|
kind: "say";
|
|
650
671
|
};
|
|
651
672
|
on: {
|
|
652
|
-
pattern: string;
|
|
653
673
|
kind: "regex";
|
|
674
|
+
pattern: string;
|
|
654
675
|
flags?: string | undefined;
|
|
655
676
|
} | {
|
|
656
|
-
name: string;
|
|
657
677
|
kind: "signal";
|
|
678
|
+
name: string;
|
|
658
679
|
};
|
|
659
680
|
onlyWhile?: string | undefined;
|
|
660
681
|
}> | undefined;
|
|
@@ -662,27 +683,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
662
683
|
toolName: string;
|
|
663
684
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
664
685
|
}[] | undefined;
|
|
665
|
-
stt?: {
|
|
666
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
667
|
-
model?: string | undefined;
|
|
668
|
-
language?: string | undefined;
|
|
669
|
-
endOfTurnConfidence?: number | undefined;
|
|
670
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
671
|
-
keywords?: string[] | undefined;
|
|
672
|
-
} | undefined;
|
|
673
|
-
realtime?: {
|
|
674
|
-
provider: "openai" | "google";
|
|
675
|
-
model: string;
|
|
676
|
-
voice?: string | undefined;
|
|
677
|
-
temperature?: number | undefined;
|
|
678
|
-
} | undefined;
|
|
679
|
-
voice?: {
|
|
680
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
681
|
-
voiceId: string;
|
|
682
|
-
model?: string | undefined;
|
|
683
|
-
rate?: number | undefined;
|
|
684
|
-
} | undefined;
|
|
685
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
686
686
|
mode?: "realtime" | "cascade" | undefined;
|
|
687
687
|
model?: {
|
|
688
688
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -711,8 +711,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
711
711
|
process?: {
|
|
712
712
|
backendAck?: {
|
|
713
713
|
url: string;
|
|
714
|
-
timeoutMs?: number | undefined;
|
|
715
714
|
headers?: Record<string, string> | undefined;
|
|
715
|
+
timeoutMs?: number | undefined;
|
|
716
716
|
} | undefined;
|
|
717
717
|
collect?: Record<string, {
|
|
718
718
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -759,14 +759,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
759
759
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
760
760
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
761
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
|
-
id: string;
|
|
763
762
|
kind: "decision" | "auth" | "fact";
|
|
763
|
+
id: string;
|
|
764
764
|
prompt: string;
|
|
765
765
|
deferrableToCallee: boolean;
|
|
766
766
|
options?: string[] | undefined;
|
|
767
767
|
}, {
|
|
768
|
-
id: string;
|
|
769
768
|
kind: "decision" | "auth" | "fact";
|
|
769
|
+
id: string;
|
|
770
770
|
prompt: string;
|
|
771
771
|
options?: string[] | undefined;
|
|
772
772
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -778,14 +778,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
778
778
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
779
779
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
780
780
|
}, "strip", z.ZodTypeAny, {
|
|
781
|
-
id: string;
|
|
782
781
|
kind: "decision" | "auth" | "fact";
|
|
782
|
+
id: string;
|
|
783
783
|
prompt: string;
|
|
784
784
|
deferrableToCallee: boolean;
|
|
785
785
|
options?: string[] | undefined;
|
|
786
786
|
}, {
|
|
787
|
-
id: string;
|
|
788
787
|
kind: "decision" | "auth" | "fact";
|
|
788
|
+
id: string;
|
|
789
789
|
prompt: string;
|
|
790
790
|
options?: string[] | undefined;
|
|
791
791
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -823,6 +823,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
823
823
|
e164?: string | undefined;
|
|
824
824
|
};
|
|
825
825
|
draftConfig: {
|
|
826
|
+
stt?: {
|
|
827
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
828
|
+
model?: string | undefined;
|
|
829
|
+
language?: string | undefined;
|
|
830
|
+
endOfTurnConfidence?: number | undefined;
|
|
831
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
832
|
+
keywords?: string[] | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
realtime?: {
|
|
835
|
+
provider: "openai" | "google";
|
|
836
|
+
model: string;
|
|
837
|
+
voice?: string | undefined;
|
|
838
|
+
temperature?: number | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
voice?: {
|
|
841
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
842
|
+
voiceId: string;
|
|
843
|
+
model?: string | undefined;
|
|
844
|
+
rate?: number | undefined;
|
|
845
|
+
} | undefined;
|
|
846
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
826
847
|
name?: string | undefined;
|
|
827
848
|
triggers?: Record<string, {
|
|
828
849
|
then: {
|
|
@@ -834,12 +855,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
834
855
|
kind: "say";
|
|
835
856
|
};
|
|
836
857
|
on: {
|
|
837
|
-
pattern: string;
|
|
838
858
|
kind: "regex";
|
|
859
|
+
pattern: string;
|
|
839
860
|
flags?: string | undefined;
|
|
840
861
|
} | {
|
|
841
|
-
name: string;
|
|
842
862
|
kind: "signal";
|
|
863
|
+
name: string;
|
|
843
864
|
};
|
|
844
865
|
onlyWhile?: string | undefined;
|
|
845
866
|
}> | undefined;
|
|
@@ -847,27 +868,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
847
868
|
toolName: string;
|
|
848
869
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
849
870
|
}[] | undefined;
|
|
850
|
-
stt?: {
|
|
851
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
852
|
-
model?: string | undefined;
|
|
853
|
-
language?: string | undefined;
|
|
854
|
-
endOfTurnConfidence?: number | undefined;
|
|
855
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
856
|
-
keywords?: string[] | undefined;
|
|
857
|
-
} | undefined;
|
|
858
|
-
realtime?: {
|
|
859
|
-
provider: "openai" | "google";
|
|
860
|
-
model: string;
|
|
861
|
-
voice?: string | undefined;
|
|
862
|
-
temperature?: number | undefined;
|
|
863
|
-
} | undefined;
|
|
864
|
-
voice?: {
|
|
865
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
866
|
-
voiceId: string;
|
|
867
|
-
model?: string | undefined;
|
|
868
|
-
rate?: number | undefined;
|
|
869
|
-
} | undefined;
|
|
870
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
871
871
|
mode?: "realtime" | "cascade" | undefined;
|
|
872
872
|
model?: {
|
|
873
873
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -907,8 +907,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
907
907
|
completeWhen: "all-required-captured" | "all-captured";
|
|
908
908
|
backendAck?: {
|
|
909
909
|
url: string;
|
|
910
|
-
timeoutMs?: number | undefined;
|
|
911
910
|
headers?: Record<string, string> | undefined;
|
|
911
|
+
timeoutMs?: number | undefined;
|
|
912
912
|
} | undefined;
|
|
913
913
|
} | undefined;
|
|
914
914
|
tags?: string[] | undefined;
|
|
@@ -938,15 +938,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
938
938
|
draftUpdatedAt?: string | undefined;
|
|
939
939
|
};
|
|
940
940
|
openQuestions: {
|
|
941
|
-
id: string;
|
|
942
941
|
kind: "decision" | "auth" | "fact";
|
|
942
|
+
id: string;
|
|
943
943
|
prompt: string;
|
|
944
944
|
deferrableToCallee: boolean;
|
|
945
945
|
options?: string[] | undefined;
|
|
946
946
|
}[];
|
|
947
947
|
unresolvedQuestions: {
|
|
948
|
-
id: string;
|
|
949
948
|
kind: "decision" | "auth" | "fact";
|
|
949
|
+
id: string;
|
|
950
950
|
prompt: string;
|
|
951
951
|
deferrableToCallee: boolean;
|
|
952
952
|
options?: string[] | undefined;
|
|
@@ -978,6 +978,27 @@ declare const CallPlan: z.ZodObject<{
|
|
|
978
978
|
secondary?: "ask_callee" | "fallback_phrase" | undefined;
|
|
979
979
|
};
|
|
980
980
|
draftConfig?: {
|
|
981
|
+
stt?: {
|
|
982
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
983
|
+
model?: string | undefined;
|
|
984
|
+
language?: string | undefined;
|
|
985
|
+
endOfTurnConfidence?: number | undefined;
|
|
986
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
987
|
+
keywords?: string[] | undefined;
|
|
988
|
+
} | undefined;
|
|
989
|
+
realtime?: {
|
|
990
|
+
provider: "openai" | "google";
|
|
991
|
+
model: string;
|
|
992
|
+
voice?: string | undefined;
|
|
993
|
+
temperature?: number | undefined;
|
|
994
|
+
} | undefined;
|
|
995
|
+
voice?: {
|
|
996
|
+
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
997
|
+
voiceId: string;
|
|
998
|
+
model?: string | undefined;
|
|
999
|
+
rate?: number | undefined;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
981
1002
|
name?: string | undefined;
|
|
982
1003
|
triggers?: Record<string, {
|
|
983
1004
|
then: {
|
|
@@ -989,12 +1010,12 @@ declare const CallPlan: z.ZodObject<{
|
|
|
989
1010
|
kind: "say";
|
|
990
1011
|
};
|
|
991
1012
|
on: {
|
|
992
|
-
pattern: string;
|
|
993
1013
|
kind: "regex";
|
|
1014
|
+
pattern: string;
|
|
994
1015
|
flags?: string | undefined;
|
|
995
1016
|
} | {
|
|
996
|
-
name: string;
|
|
997
1017
|
kind: "signal";
|
|
1018
|
+
name: string;
|
|
998
1019
|
};
|
|
999
1020
|
onlyWhile?: string | undefined;
|
|
1000
1021
|
}> | undefined;
|
|
@@ -1002,27 +1023,6 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1002
1023
|
toolName: string;
|
|
1003
1024
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
1004
1025
|
}[] | undefined;
|
|
1005
|
-
stt?: {
|
|
1006
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1007
|
-
model?: string | undefined;
|
|
1008
|
-
language?: string | undefined;
|
|
1009
|
-
endOfTurnConfidence?: number | undefined;
|
|
1010
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
1011
|
-
keywords?: string[] | undefined;
|
|
1012
|
-
} | undefined;
|
|
1013
|
-
realtime?: {
|
|
1014
|
-
provider: "openai" | "google";
|
|
1015
|
-
model: string;
|
|
1016
|
-
voice?: string | undefined;
|
|
1017
|
-
temperature?: number | undefined;
|
|
1018
|
-
} | undefined;
|
|
1019
|
-
voice?: {
|
|
1020
|
-
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
1021
|
-
voiceId: string;
|
|
1022
|
-
model?: string | undefined;
|
|
1023
|
-
rate?: number | undefined;
|
|
1024
|
-
} | undefined;
|
|
1025
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1026
1026
|
mode?: "realtime" | "cascade" | undefined;
|
|
1027
1027
|
model?: {
|
|
1028
1028
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -1051,8 +1051,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1051
1051
|
process?: {
|
|
1052
1052
|
backendAck?: {
|
|
1053
1053
|
url: string;
|
|
1054
|
-
timeoutMs?: number | undefined;
|
|
1055
1054
|
headers?: Record<string, string> | undefined;
|
|
1055
|
+
timeoutMs?: number | undefined;
|
|
1056
1056
|
} | undefined;
|
|
1057
1057
|
collect?: Record<string, {
|
|
1058
1058
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -1093,15 +1093,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1093
1093
|
draftUpdatedAt?: string | undefined;
|
|
1094
1094
|
} | undefined;
|
|
1095
1095
|
openQuestions?: {
|
|
1096
|
-
id: string;
|
|
1097
1096
|
kind: "decision" | "auth" | "fact";
|
|
1097
|
+
id: string;
|
|
1098
1098
|
prompt: string;
|
|
1099
1099
|
options?: string[] | undefined;
|
|
1100
1100
|
deferrableToCallee?: boolean | undefined;
|
|
1101
1101
|
}[] | undefined;
|
|
1102
1102
|
unresolvedQuestions?: {
|
|
1103
|
-
id: string;
|
|
1104
1103
|
kind: "decision" | "auth" | "fact";
|
|
1104
|
+
id: string;
|
|
1105
1105
|
prompt: string;
|
|
1106
1106
|
options?: string[] | undefined;
|
|
1107
1107
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -1119,13 +1119,13 @@ declare const RelevantContext: z.ZodObject<{
|
|
|
1119
1119
|
account: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1120
1120
|
platform: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1121
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1122
|
-
call: Record<string, unknown>;
|
|
1123
1122
|
caller: Record<string, unknown>;
|
|
1123
|
+
call: Record<string, unknown>;
|
|
1124
1124
|
account: Record<string, unknown>;
|
|
1125
1125
|
platform: Record<string, unknown>;
|
|
1126
1126
|
}, {
|
|
1127
|
-
call: Record<string, unknown>;
|
|
1128
1127
|
caller: Record<string, unknown>;
|
|
1128
|
+
call: Record<string, unknown>;
|
|
1129
1129
|
account: Record<string, unknown>;
|
|
1130
1130
|
platform: Record<string, unknown>;
|
|
1131
1131
|
}>;
|
|
@@ -1141,38 +1141,38 @@ declare const ResolveCallerResponse: z.ZodObject<{
|
|
|
1141
1141
|
updatedAt: z.ZodString;
|
|
1142
1142
|
}, "strip", z.ZodTypeAny, {
|
|
1143
1143
|
id: string;
|
|
1144
|
-
displayName: string | null;
|
|
1145
1144
|
projectId: string;
|
|
1146
1145
|
createdAt: string;
|
|
1147
1146
|
updatedAt: string;
|
|
1147
|
+
displayName: string | null;
|
|
1148
1148
|
metadata: Record<string, unknown>;
|
|
1149
1149
|
externalKey: string;
|
|
1150
1150
|
}, {
|
|
1151
1151
|
id: string;
|
|
1152
|
-
displayName: string | null;
|
|
1153
1152
|
projectId: string;
|
|
1154
1153
|
createdAt: string;
|
|
1155
1154
|
updatedAt: string;
|
|
1155
|
+
displayName: string | null;
|
|
1156
1156
|
metadata: Record<string, unknown>;
|
|
1157
1157
|
externalKey: string;
|
|
1158
1158
|
}>;
|
|
1159
1159
|
}, "strip", z.ZodTypeAny, {
|
|
1160
1160
|
caller: {
|
|
1161
1161
|
id: string;
|
|
1162
|
-
displayName: string | null;
|
|
1163
1162
|
projectId: string;
|
|
1164
1163
|
createdAt: string;
|
|
1165
1164
|
updatedAt: string;
|
|
1165
|
+
displayName: string | null;
|
|
1166
1166
|
metadata: Record<string, unknown>;
|
|
1167
1167
|
externalKey: string;
|
|
1168
1168
|
};
|
|
1169
1169
|
}, {
|
|
1170
1170
|
caller: {
|
|
1171
1171
|
id: string;
|
|
1172
|
-
displayName: string | null;
|
|
1173
1172
|
projectId: string;
|
|
1174
1173
|
createdAt: string;
|
|
1175
1174
|
updatedAt: string;
|
|
1175
|
+
displayName: string | null;
|
|
1176
1176
|
metadata: Record<string, unknown>;
|
|
1177
1177
|
externalKey: string;
|
|
1178
1178
|
};
|
|
@@ -1183,10 +1183,10 @@ declare const DeleteCallerResponse: z.ZodObject<{
|
|
|
1183
1183
|
scopesPurged: z.ZodArray<z.ZodEnum<["call", "caller", "account", "platform"]>, "many">;
|
|
1184
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1185
1185
|
ok: true;
|
|
1186
|
-
scopesPurged: ("
|
|
1186
|
+
scopesPurged: ("caller" | "call" | "account" | "platform")[];
|
|
1187
1187
|
}, {
|
|
1188
1188
|
ok: true;
|
|
1189
|
-
scopesPurged: ("
|
|
1189
|
+
scopesPurged: ("caller" | "call" | "account" | "platform")[];
|
|
1190
1190
|
}>;
|
|
1191
1191
|
type DeleteCallerResponse = z.infer<typeof DeleteCallerResponse>;
|
|
1192
1192
|
|
|
@@ -1365,12 +1365,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1365
1365
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1366
1366
|
}, "strip", z.ZodTypeAny, {
|
|
1367
1367
|
url: string;
|
|
1368
|
-
timeoutMs?: number | undefined;
|
|
1369
1368
|
headers?: Record<string, string> | undefined;
|
|
1369
|
+
timeoutMs?: number | undefined;
|
|
1370
1370
|
}, {
|
|
1371
1371
|
url: string;
|
|
1372
|
-
timeoutMs?: number | undefined;
|
|
1373
1372
|
headers?: Record<string, string> | undefined;
|
|
1373
|
+
timeoutMs?: number | undefined;
|
|
1374
1374
|
}>>;
|
|
1375
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1376
1376
|
collect: Record<string, {
|
|
@@ -1386,14 +1386,14 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1386
1386
|
completeWhen: "all-required-captured" | "all-captured";
|
|
1387
1387
|
backendAck?: {
|
|
1388
1388
|
url: string;
|
|
1389
|
-
timeoutMs?: number | undefined;
|
|
1390
1389
|
headers?: Record<string, string> | undefined;
|
|
1390
|
+
timeoutMs?: number | undefined;
|
|
1391
1391
|
} | undefined;
|
|
1392
1392
|
}, {
|
|
1393
1393
|
backendAck?: {
|
|
1394
1394
|
url: string;
|
|
1395
|
-
timeoutMs?: number | undefined;
|
|
1396
1395
|
headers?: Record<string, string> | undefined;
|
|
1396
|
+
timeoutMs?: number | undefined;
|
|
1397
1397
|
} | undefined;
|
|
1398
1398
|
collect?: Record<string, {
|
|
1399
1399
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -1413,22 +1413,22 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1413
1413
|
pattern: z.ZodString;
|
|
1414
1414
|
flags: z.ZodOptional<z.ZodString>;
|
|
1415
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1416
|
-
pattern: string;
|
|
1417
1416
|
kind: "regex";
|
|
1417
|
+
pattern: string;
|
|
1418
1418
|
flags?: string | undefined;
|
|
1419
1419
|
}, {
|
|
1420
|
-
pattern: string;
|
|
1421
1420
|
kind: "regex";
|
|
1421
|
+
pattern: string;
|
|
1422
1422
|
flags?: string | undefined;
|
|
1423
1423
|
}>, z.ZodObject<{
|
|
1424
1424
|
kind: z.ZodLiteral<"signal">;
|
|
1425
1425
|
name: z.ZodString;
|
|
1426
1426
|
}, "strip", z.ZodTypeAny, {
|
|
1427
|
-
name: string;
|
|
1428
1427
|
kind: "signal";
|
|
1429
|
-
}, {
|
|
1430
1428
|
name: string;
|
|
1429
|
+
}, {
|
|
1431
1430
|
kind: "signal";
|
|
1431
|
+
name: string;
|
|
1432
1432
|
}>]>;
|
|
1433
1433
|
then: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1434
1434
|
kind: z.ZodLiteral<"handoff">;
|
|
@@ -1463,12 +1463,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1463
1463
|
kind: "say";
|
|
1464
1464
|
};
|
|
1465
1465
|
on: {
|
|
1466
|
-
pattern: string;
|
|
1467
1466
|
kind: "regex";
|
|
1467
|
+
pattern: string;
|
|
1468
1468
|
flags?: string | undefined;
|
|
1469
1469
|
} | {
|
|
1470
|
-
name: string;
|
|
1471
1470
|
kind: "signal";
|
|
1471
|
+
name: string;
|
|
1472
1472
|
};
|
|
1473
1473
|
onlyWhile?: string | undefined;
|
|
1474
1474
|
}, {
|
|
@@ -1481,12 +1481,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1481
1481
|
kind: "say";
|
|
1482
1482
|
};
|
|
1483
1483
|
on: {
|
|
1484
|
-
pattern: string;
|
|
1485
1484
|
kind: "regex";
|
|
1485
|
+
pattern: string;
|
|
1486
1486
|
flags?: string | undefined;
|
|
1487
1487
|
} | {
|
|
1488
|
-
name: string;
|
|
1489
1488
|
kind: "signal";
|
|
1489
|
+
name: string;
|
|
1490
1490
|
};
|
|
1491
1491
|
onlyWhile?: string | undefined;
|
|
1492
1492
|
}>>>;
|
|
@@ -1569,21 +1569,21 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1569
1569
|
updatedAt: z.ZodString;
|
|
1570
1570
|
draftUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
1571
1571
|
}, "strip", z.ZodTypeAny, {
|
|
1572
|
-
id: string;
|
|
1573
|
-
name: string;
|
|
1574
|
-
tools: {
|
|
1575
|
-
toolName: string;
|
|
1576
|
-
defaultArgs?: Record<string, unknown> | undefined;
|
|
1577
|
-
}[];
|
|
1578
1572
|
voice: {
|
|
1579
1573
|
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
1580
1574
|
voiceId: string;
|
|
1581
1575
|
model?: string | undefined;
|
|
1582
1576
|
rate?: number | undefined;
|
|
1583
1577
|
};
|
|
1578
|
+
id: string;
|
|
1584
1579
|
projectId: string;
|
|
1580
|
+
name: string;
|
|
1585
1581
|
createdAt: string;
|
|
1586
1582
|
updatedAt: string;
|
|
1583
|
+
tools: {
|
|
1584
|
+
toolName: string;
|
|
1585
|
+
defaultArgs?: Record<string, unknown> | undefined;
|
|
1586
|
+
}[];
|
|
1587
1587
|
mode: "realtime" | "cascade";
|
|
1588
1588
|
model: {
|
|
1589
1589
|
provider: "openai" | "anthropic" | "gemini";
|
|
@@ -1614,6 +1614,21 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1614
1614
|
enum?: string[] | undefined;
|
|
1615
1615
|
description?: string | undefined;
|
|
1616
1616
|
}[];
|
|
1617
|
+
stt?: {
|
|
1618
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1619
|
+
model?: string | undefined;
|
|
1620
|
+
language?: string | undefined;
|
|
1621
|
+
endOfTurnConfidence?: number | undefined;
|
|
1622
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
1623
|
+
keywords?: string[] | undefined;
|
|
1624
|
+
} | undefined;
|
|
1625
|
+
realtime?: {
|
|
1626
|
+
provider: "openai" | "google";
|
|
1627
|
+
model: string;
|
|
1628
|
+
voice?: string | undefined;
|
|
1629
|
+
temperature?: number | undefined;
|
|
1630
|
+
} | undefined;
|
|
1631
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1617
1632
|
triggers?: Record<string, {
|
|
1618
1633
|
then: {
|
|
1619
1634
|
kind: "handoff";
|
|
@@ -1624,30 +1639,15 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1624
1639
|
kind: "say";
|
|
1625
1640
|
};
|
|
1626
1641
|
on: {
|
|
1627
|
-
pattern: string;
|
|
1628
1642
|
kind: "regex";
|
|
1643
|
+
pattern: string;
|
|
1629
1644
|
flags?: string | undefined;
|
|
1630
1645
|
} | {
|
|
1631
|
-
name: string;
|
|
1632
1646
|
kind: "signal";
|
|
1647
|
+
name: string;
|
|
1633
1648
|
};
|
|
1634
1649
|
onlyWhile?: string | undefined;
|
|
1635
1650
|
}> | undefined;
|
|
1636
|
-
stt?: {
|
|
1637
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1638
|
-
model?: string | undefined;
|
|
1639
|
-
language?: string | undefined;
|
|
1640
|
-
endOfTurnConfidence?: number | undefined;
|
|
1641
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
1642
|
-
keywords?: string[] | undefined;
|
|
1643
|
-
} | undefined;
|
|
1644
|
-
realtime?: {
|
|
1645
|
-
provider: "openai" | "google";
|
|
1646
|
-
model: string;
|
|
1647
|
-
voice?: string | undefined;
|
|
1648
|
-
temperature?: number | undefined;
|
|
1649
|
-
} | undefined;
|
|
1650
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1651
1651
|
systemPrompt?: string | undefined;
|
|
1652
1652
|
routingInstructions?: string | undefined;
|
|
1653
1653
|
process?: {
|
|
@@ -1664,8 +1664,8 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1664
1664
|
completeWhen: "all-required-captured" | "all-captured";
|
|
1665
1665
|
backendAck?: {
|
|
1666
1666
|
url: string;
|
|
1667
|
-
timeoutMs?: number | undefined;
|
|
1668
1667
|
headers?: Record<string, string> | undefined;
|
|
1668
|
+
timeoutMs?: number | undefined;
|
|
1669
1669
|
} | undefined;
|
|
1670
1670
|
} | undefined;
|
|
1671
1671
|
tags?: string[] | undefined;
|
|
@@ -1687,15 +1687,15 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1687
1687
|
modeLocked?: boolean | undefined;
|
|
1688
1688
|
draftUpdatedAt?: string | undefined;
|
|
1689
1689
|
}, {
|
|
1690
|
-
id: string;
|
|
1691
|
-
name: string;
|
|
1692
1690
|
voice: {
|
|
1693
1691
|
provider: "deepgram" | "elevenlabs" | "openai" | "cartesia";
|
|
1694
1692
|
voiceId: string;
|
|
1695
1693
|
model?: string | undefined;
|
|
1696
1694
|
rate?: number | undefined;
|
|
1697
1695
|
};
|
|
1696
|
+
id: string;
|
|
1698
1697
|
projectId: string;
|
|
1698
|
+
name: string;
|
|
1699
1699
|
createdAt: string;
|
|
1700
1700
|
updatedAt: string;
|
|
1701
1701
|
model: {
|
|
@@ -1719,6 +1719,21 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1719
1719
|
normal?: number | undefined;
|
|
1720
1720
|
} | undefined;
|
|
1721
1721
|
};
|
|
1722
|
+
stt?: {
|
|
1723
|
+
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1724
|
+
model?: string | undefined;
|
|
1725
|
+
language?: string | undefined;
|
|
1726
|
+
endOfTurnConfidence?: number | undefined;
|
|
1727
|
+
endOfTurnTimeoutMs?: number | undefined;
|
|
1728
|
+
keywords?: string[] | undefined;
|
|
1729
|
+
} | undefined;
|
|
1730
|
+
realtime?: {
|
|
1731
|
+
provider: "openai" | "google";
|
|
1732
|
+
model: string;
|
|
1733
|
+
voice?: string | undefined;
|
|
1734
|
+
temperature?: number | undefined;
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1722
1737
|
triggers?: Record<string, {
|
|
1723
1738
|
then: {
|
|
1724
1739
|
kind: "handoff";
|
|
@@ -1729,12 +1744,12 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1729
1744
|
kind: "say";
|
|
1730
1745
|
};
|
|
1731
1746
|
on: {
|
|
1732
|
-
pattern: string;
|
|
1733
1747
|
kind: "regex";
|
|
1748
|
+
pattern: string;
|
|
1734
1749
|
flags?: string | undefined;
|
|
1735
1750
|
} | {
|
|
1736
|
-
name: string;
|
|
1737
1751
|
kind: "signal";
|
|
1752
|
+
name: string;
|
|
1738
1753
|
};
|
|
1739
1754
|
onlyWhile?: string | undefined;
|
|
1740
1755
|
}> | undefined;
|
|
@@ -1742,21 +1757,6 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1742
1757
|
toolName: string;
|
|
1743
1758
|
defaultArgs?: Record<string, unknown> | undefined;
|
|
1744
1759
|
}[] | undefined;
|
|
1745
|
-
stt?: {
|
|
1746
|
-
provider: "deepgram" | "cartesia" | "assemblyai";
|
|
1747
|
-
model?: string | undefined;
|
|
1748
|
-
language?: string | undefined;
|
|
1749
|
-
endOfTurnConfidence?: number | undefined;
|
|
1750
|
-
endOfTurnTimeoutMs?: number | undefined;
|
|
1751
|
-
keywords?: string[] | undefined;
|
|
1752
|
-
} | undefined;
|
|
1753
|
-
realtime?: {
|
|
1754
|
-
provider: "openai" | "google";
|
|
1755
|
-
model: string;
|
|
1756
|
-
voice?: string | undefined;
|
|
1757
|
-
temperature?: number | undefined;
|
|
1758
|
-
} | undefined;
|
|
1759
|
-
source?: "playbook" | "sdk" | "flow" | "connector" | undefined;
|
|
1760
1760
|
mode?: "realtime" | "cascade" | undefined;
|
|
1761
1761
|
language?: string | undefined;
|
|
1762
1762
|
systemPrompt?: string | undefined;
|
|
@@ -1764,8 +1764,8 @@ declare const AgentConfig: z.ZodObject<{
|
|
|
1764
1764
|
process?: {
|
|
1765
1765
|
backendAck?: {
|
|
1766
1766
|
url: string;
|
|
1767
|
-
timeoutMs?: number | undefined;
|
|
1768
1767
|
headers?: Record<string, string> | undefined;
|
|
1768
|
+
timeoutMs?: number | undefined;
|
|
1769
1769
|
} | undefined;
|
|
1770
1770
|
collect?: Record<string, {
|
|
1771
1771
|
type: "string" | "number" | "boolean" | "email" | "string[]" | "datetime" | "phone";
|
|
@@ -2243,8 +2243,8 @@ declare class AgentsClient {
|
|
|
2243
2243
|
agents: {
|
|
2244
2244
|
status: "online" | "offline" | "degraded";
|
|
2245
2245
|
id: string;
|
|
2246
|
-
name: string;
|
|
2247
2246
|
projectId: string;
|
|
2247
|
+
name: string;
|
|
2248
2248
|
createdAt: string;
|
|
2249
2249
|
updatedAt: string;
|
|
2250
2250
|
version: string;
|
|
@@ -2284,7 +2284,7 @@ declare class AgentsClient {
|
|
|
2284
2284
|
routes?: Record<string, string> | undefined;
|
|
2285
2285
|
} | undefined;
|
|
2286
2286
|
memory?: {
|
|
2287
|
-
scope?: "
|
|
2287
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
2288
2288
|
retentionDays?: number | undefined;
|
|
2289
2289
|
piiFields?: string[] | undefined;
|
|
2290
2290
|
} | undefined;
|
|
@@ -2300,8 +2300,8 @@ declare class AgentsClient {
|
|
|
2300
2300
|
} | undefined;
|
|
2301
2301
|
} | undefined;
|
|
2302
2302
|
prompts?: {
|
|
2303
|
-
id: string;
|
|
2304
2303
|
text: string;
|
|
2304
|
+
id: string;
|
|
2305
2305
|
}[] | undefined;
|
|
2306
2306
|
triggers?: {
|
|
2307
2307
|
then: string;
|
|
@@ -2311,32 +2311,32 @@ declare class AgentsClient {
|
|
|
2311
2311
|
}[] | undefined;
|
|
2312
2312
|
tools?: {
|
|
2313
2313
|
name: string;
|
|
2314
|
-
url: string;
|
|
2315
2314
|
description: string;
|
|
2316
2315
|
input: Record<string, "string" | "number" | "boolean">;
|
|
2316
|
+
url: string;
|
|
2317
2317
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2318
2318
|
auth: "none" | "connection";
|
|
2319
|
-
allowPrivateNetwork?: boolean | undefined;
|
|
2320
2319
|
headers?: Record<string, string> | undefined;
|
|
2321
2320
|
connectionRef?: string | undefined;
|
|
2321
|
+
allowPrivateNetwork?: boolean | undefined;
|
|
2322
2322
|
sendRealValues?: boolean | undefined;
|
|
2323
2323
|
}[] | undefined;
|
|
2324
2324
|
displayName?: string | undefined;
|
|
2325
2325
|
program?: {
|
|
2326
|
-
v: 1;
|
|
2327
2326
|
id: string;
|
|
2328
|
-
entry: string[];
|
|
2329
2327
|
nodes: Record<string, {
|
|
2330
|
-
type: "
|
|
2328
|
+
type: "llm" | "code" | "start" | "say" | "ask" | "confirm" | "tool" | "email" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
2331
2329
|
id: string;
|
|
2332
2330
|
config: Record<string, unknown>;
|
|
2333
2331
|
out: {
|
|
2334
2332
|
to: string;
|
|
2335
|
-
condition?: string | undefined;
|
|
2336
2333
|
sourceHandle?: string | undefined;
|
|
2337
2334
|
label?: string | undefined;
|
|
2335
|
+
condition?: string | undefined;
|
|
2338
2336
|
}[];
|
|
2339
2337
|
}>;
|
|
2338
|
+
v: 1;
|
|
2339
|
+
entry: string[];
|
|
2340
2340
|
completionGate: {
|
|
2341
2341
|
requiredFields: string[];
|
|
2342
2342
|
};
|
|
@@ -2643,8 +2643,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2643
2643
|
baseUrl: string;
|
|
2644
2644
|
}>>>;
|
|
2645
2645
|
}, "strip", z.ZodTypeAny, {
|
|
2646
|
-
id: string;
|
|
2647
2646
|
enabled: boolean;
|
|
2647
|
+
id: string;
|
|
2648
2648
|
mode: "tunnel" | "direct";
|
|
2649
2649
|
defaultModel: string | null;
|
|
2650
2650
|
connectionId: string | null;
|
|
@@ -2654,8 +2654,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2654
2654
|
baseUrl: string;
|
|
2655
2655
|
} | null | undefined;
|
|
2656
2656
|
}, {
|
|
2657
|
-
id: string;
|
|
2658
2657
|
enabled: boolean;
|
|
2658
|
+
id: string;
|
|
2659
2659
|
mode: "tunnel" | "direct";
|
|
2660
2660
|
defaultModel: string | null;
|
|
2661
2661
|
connectionId: string | null;
|
|
@@ -2667,8 +2667,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2667
2667
|
}>;
|
|
2668
2668
|
}, "strip", z.ZodTypeAny, {
|
|
2669
2669
|
connector: {
|
|
2670
|
-
id: string;
|
|
2671
2670
|
enabled: boolean;
|
|
2671
|
+
id: string;
|
|
2672
2672
|
mode: "tunnel" | "direct";
|
|
2673
2673
|
defaultModel: string | null;
|
|
2674
2674
|
connectionId: string | null;
|
|
@@ -2680,8 +2680,8 @@ declare const BrainConnectorConfig: z.ZodObject<{
|
|
|
2680
2680
|
};
|
|
2681
2681
|
}, {
|
|
2682
2682
|
connector: {
|
|
2683
|
-
id: string;
|
|
2684
2683
|
enabled: boolean;
|
|
2684
|
+
id: string;
|
|
2685
2685
|
mode: "tunnel" | "direct";
|
|
2686
2686
|
defaultModel: string | null;
|
|
2687
2687
|
connectionId: string | null;
|