@voicelayer/sdk 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +34 -1184
- package/dist/index.js +209 -131
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +730 -16
- package/dist/text-session-D1j8nQac.d.ts +1996 -0
- package/package.json +4 -4
- package/dist/text-session-BoUmDEX9.d.ts +0 -837
package/dist/index.d.ts
CHANGED
|
@@ -1,1159 +1,9 @@
|
|
|
1
|
+
import { A as AgentDTO, a as AgentStatus, b as AgentEnvironment, P as ProcessSchemaDTO, c as AgentContext, d as Participant, C as CallInfo } from './text-session-D1j8nQac.js';
|
|
2
|
+
export { e as AgentTurnEvent, f as AudioProfile, g as AudioSurface, h as ChannelKind, D as DtmfEvent, i as DtmfHandler, E as EndCallControllerHandle, j as EndCallOutcome, F as FakeSessionAdapter, k as FloorControlConfig, I as InboundOptions, L as LK_AGENT_STATE_MAP, M as MemoryHandle, l as MetricsEvent, N as NON_BUSY_STATES, m as ParticipantId, n as ParticipantKind, o as ParticipantSet, p as ProcessSnapshot, R as RespondOptions, q as Room, r as RouteEntry, s as RoutingRule, t as RoutingSnapshot, u as RunTextSessionOptions, v as RunTextTranscriptOptions, S as SayOptions, w as SendDtmfOptions, x as SessionAdapter, y as SessionCapabilities, z as SessionErrorEvent, B as SessionEvent, G as SessionEventMap, H as SessionFactory, J as SessionFactoryInput, K as SessionOutbound, O as SessionState, Q as SpeechResult, T as SpeechTarget, U as StateChangeEvent, V as TextSession, W as TextTranscriptResult, X as TtsVoiceConfig, Y as TurnEvent, Z as Unsubscribe, _ as UserInputEvent, $ as UserTurn, a0 as applySpeechTurnHandling, a1 as dtmfCodeToDigit, a2 as dtmfDigitToCode, a3 as duck, a4 as mute, a5 as normalizeState, m as participantId, a6 as passthrough, a7 as runTextSession, a8 as runTextTranscript, a9 as transform } from './text-session-D1j8nQac.js';
|
|
1
3
|
import { z, ZodType } from 'zod';
|
|
2
|
-
import { A as AgentContext, P as Participant, C as CallInfo } from './text-session-BoUmDEX9.js';
|
|
3
|
-
export { a as AgentTurnEvent, b as AudioProfile, c as AudioSurface, d as ChannelKind, D as DtmfEvent, e as DtmfHandler, E as EndCallControllerHandle, f as EndCallOutcome, F as FakeSessionAdapter, g as FloorControlConfig, I as InboundOptions, L as LK_AGENT_STATE_MAP, M as MemoryHandle, h as MetricsEvent, N as NON_BUSY_STATES, i as ParticipantId, j as ParticipantKind, k as ParticipantSet, l as ProcessSnapshot, R as RespondOptions, m as Room, n as RouteEntry, o as RoutingRule, p as RoutingSnapshot, q as RunTextSessionOptions, r as RunTextTranscriptOptions, S as SayOptions, s as SendDtmfOptions, t as SessionAdapter, u as SessionCapabilities, v as SessionErrorEvent, w as SessionEvent, x as SessionEventMap, y as SessionFactory, z as SessionFactoryInput, B as SessionOutbound, G as SessionState, H as SpeechResult, J as SpeechTarget, K as StateChangeEvent, T as TextSession, O as TextTranscriptResult, Q as TtsVoiceConfig, U as TurnEvent, V as Unsubscribe, W as UserInputEvent, X as UserTurn, Y as applySpeechTurnHandling, Z as dtmfCodeToDigit, _ as dtmfDigitToCode, $ as duck, a0 as mute, a1 as normalizeState, i as participantId, a2 as passthrough, a3 as runTextSession, a4 as runTextTranscript, a5 as transform } from './text-session-BoUmDEX9.js';
|
|
4
4
|
import { llm } from '@livekit/agents';
|
|
5
5
|
import { Redis } from 'ioredis';
|
|
6
6
|
|
|
7
|
-
declare const AgentEnvironment: z.ZodEnum<["dev", "stg", "prd"]>;
|
|
8
|
-
type AgentEnvironment = z.infer<typeof AgentEnvironment>;
|
|
9
|
-
declare const AgentStatus: z.ZodEnum<["online", "offline", "degraded"]>;
|
|
10
|
-
type AgentStatus = z.infer<typeof AgentStatus>;
|
|
11
|
-
declare const ProcessSchemaDTO: z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
prompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
text: z.ZodString;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
id: string;
|
|
18
|
-
text: string;
|
|
19
|
-
}, {
|
|
20
|
-
id: string;
|
|
21
|
-
text: string;
|
|
22
|
-
}>, "many">>;
|
|
23
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
required: z.ZodBoolean;
|
|
26
|
-
type: z.ZodEnum<["string", "string[]", "number", "boolean", "datetime", "email", "phone"]>;
|
|
27
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
28
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
ask: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
34
|
-
name: string;
|
|
35
|
-
required: boolean;
|
|
36
|
-
ask?: string | undefined;
|
|
37
|
-
pattern?: string | undefined;
|
|
38
|
-
min?: number | undefined;
|
|
39
|
-
max?: number | undefined;
|
|
40
|
-
enum?: string[] | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
43
|
-
name: string;
|
|
44
|
-
required: boolean;
|
|
45
|
-
ask?: string | undefined;
|
|
46
|
-
pattern?: string | undefined;
|
|
47
|
-
min?: number | undefined;
|
|
48
|
-
max?: number | undefined;
|
|
49
|
-
enum?: string[] | undefined;
|
|
50
|
-
}>, "many">;
|
|
51
|
-
completionGate: z.ZodObject<{
|
|
52
|
-
requiredFields: z.ZodArray<z.ZodString, "many">;
|
|
53
|
-
backendAck: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
url: z.ZodString;
|
|
55
|
-
timeoutMs: z.ZodNumber;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
url: string;
|
|
58
|
-
timeoutMs: number;
|
|
59
|
-
}, {
|
|
60
|
-
url: string;
|
|
61
|
-
timeoutMs: number;
|
|
62
|
-
}>>;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
requiredFields: string[];
|
|
65
|
-
backendAck?: {
|
|
66
|
-
url: string;
|
|
67
|
-
timeoutMs: number;
|
|
68
|
-
} | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
requiredFields: string[];
|
|
71
|
-
backendAck?: {
|
|
72
|
-
url: string;
|
|
73
|
-
timeoutMs: number;
|
|
74
|
-
} | undefined;
|
|
75
|
-
}>;
|
|
76
|
-
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
on: z.ZodString;
|
|
79
|
-
then: z.ZodString;
|
|
80
|
-
onlyWhile: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
then: string;
|
|
83
|
-
name: string;
|
|
84
|
-
on: string;
|
|
85
|
-
onlyWhile?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
then: string;
|
|
88
|
-
name: string;
|
|
89
|
-
on: string;
|
|
90
|
-
onlyWhile?: string | undefined;
|
|
91
|
-
}>, "many">>;
|
|
92
|
-
handoff: z.ZodOptional<z.ZodObject<{
|
|
93
|
-
fallback: z.ZodOptional<z.ZodString>;
|
|
94
|
-
routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
fallback?: string | undefined;
|
|
97
|
-
routes?: Record<string, string> | undefined;
|
|
98
|
-
}, {
|
|
99
|
-
fallback?: string | undefined;
|
|
100
|
-
routes?: Record<string, string> | undefined;
|
|
101
|
-
}>>;
|
|
102
|
-
memory: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
scope: z.ZodOptional<z.ZodEnum<["call", "caller", "participant", "account", "platform"]>>;
|
|
104
|
-
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
108
|
-
retentionDays?: number | undefined;
|
|
109
|
-
piiFields?: string[] | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
112
|
-
retentionDays?: number | undefined;
|
|
113
|
-
piiFields?: string[] | undefined;
|
|
114
|
-
}>>;
|
|
115
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
|
-
name: z.ZodString;
|
|
117
|
-
description: z.ZodString;
|
|
118
|
-
input: z.ZodRecord<z.ZodString, z.ZodEnum<["string", "number", "boolean"]>>;
|
|
119
|
-
url: z.ZodString;
|
|
120
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
121
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
122
|
-
auth: z.ZodEnum<["none", "connection"]>;
|
|
123
|
-
connectionRef: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
name: string;
|
|
126
|
-
description: string;
|
|
127
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
128
|
-
url: string;
|
|
129
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
130
|
-
auth: "none" | "connection";
|
|
131
|
-
headers?: Record<string, string> | undefined;
|
|
132
|
-
connectionRef?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
name: string;
|
|
135
|
-
description: string;
|
|
136
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
137
|
-
url: string;
|
|
138
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
139
|
-
auth: "none" | "connection";
|
|
140
|
-
headers?: Record<string, string> | undefined;
|
|
141
|
-
connectionRef?: string | undefined;
|
|
142
|
-
}>, "many">>;
|
|
143
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
interruption: z.ZodOptional<z.ZodObject<{
|
|
145
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
minWords: z.ZodOptional<z.ZodNumber>;
|
|
147
|
-
minDuration: z.ZodOptional<z.ZodNumber>;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
enabled?: boolean | undefined;
|
|
150
|
-
minWords?: number | undefined;
|
|
151
|
-
minDuration?: number | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
enabled?: boolean | undefined;
|
|
154
|
-
minWords?: number | undefined;
|
|
155
|
-
minDuration?: number | undefined;
|
|
156
|
-
}>>;
|
|
157
|
-
endpointing: z.ZodOptional<z.ZodObject<{
|
|
158
|
-
minDelay: z.ZodOptional<z.ZodNumber>;
|
|
159
|
-
maxDelay: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
minDelay?: number | undefined;
|
|
162
|
-
maxDelay?: number | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
minDelay?: number | undefined;
|
|
165
|
-
maxDelay?: number | undefined;
|
|
166
|
-
}>>;
|
|
167
|
-
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
interruption?: {
|
|
169
|
-
enabled?: boolean | undefined;
|
|
170
|
-
minWords?: number | undefined;
|
|
171
|
-
minDuration?: number | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
endpointing?: {
|
|
174
|
-
minDelay?: number | undefined;
|
|
175
|
-
maxDelay?: number | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
interruption?: {
|
|
179
|
-
enabled?: boolean | undefined;
|
|
180
|
-
minWords?: number | undefined;
|
|
181
|
-
minDuration?: number | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
endpointing?: {
|
|
184
|
-
minDelay?: number | undefined;
|
|
185
|
-
maxDelay?: number | undefined;
|
|
186
|
-
} | undefined;
|
|
187
|
-
}>>;
|
|
188
|
-
program: z.ZodOptional<z.ZodObject<{
|
|
189
|
-
v: z.ZodLiteral<1>;
|
|
190
|
-
id: z.ZodString;
|
|
191
|
-
entry: z.ZodArray<z.ZodString, "many">;
|
|
192
|
-
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
193
|
-
id: z.ZodString;
|
|
194
|
-
type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "speech", "classify", "router", "note"]>;
|
|
195
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
196
|
-
out: z.ZodArray<z.ZodObject<{
|
|
197
|
-
to: z.ZodString;
|
|
198
|
-
condition: z.ZodOptional<z.ZodString>;
|
|
199
|
-
sourceHandle: z.ZodOptional<z.ZodString>;
|
|
200
|
-
label: z.ZodOptional<z.ZodString>;
|
|
201
|
-
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
to: string;
|
|
203
|
-
condition?: string | undefined;
|
|
204
|
-
sourceHandle?: string | undefined;
|
|
205
|
-
label?: string | undefined;
|
|
206
|
-
}, {
|
|
207
|
-
to: string;
|
|
208
|
-
condition?: string | undefined;
|
|
209
|
-
sourceHandle?: string | undefined;
|
|
210
|
-
label?: string | undefined;
|
|
211
|
-
}>, "many">;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
214
|
-
id: string;
|
|
215
|
-
config: Record<string, unknown>;
|
|
216
|
-
out: {
|
|
217
|
-
to: string;
|
|
218
|
-
condition?: string | undefined;
|
|
219
|
-
sourceHandle?: string | undefined;
|
|
220
|
-
label?: string | undefined;
|
|
221
|
-
}[];
|
|
222
|
-
}, {
|
|
223
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
224
|
-
id: string;
|
|
225
|
-
config: Record<string, unknown>;
|
|
226
|
-
out: {
|
|
227
|
-
to: string;
|
|
228
|
-
condition?: string | undefined;
|
|
229
|
-
sourceHandle?: string | undefined;
|
|
230
|
-
label?: string | undefined;
|
|
231
|
-
}[];
|
|
232
|
-
}>>;
|
|
233
|
-
completionGate: z.ZodObject<{
|
|
234
|
-
requiredFields: z.ZodArray<z.ZodString, "many">;
|
|
235
|
-
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
requiredFields: string[];
|
|
237
|
-
}, {
|
|
238
|
-
requiredFields: string[];
|
|
239
|
-
}>;
|
|
240
|
-
diagnostics: z.ZodOptional<z.ZodObject<{
|
|
241
|
-
acyclic: z.ZodBoolean;
|
|
242
|
-
droppedEdges: z.ZodArray<z.ZodString, "many">;
|
|
243
|
-
unsupportedNodes: z.ZodArray<z.ZodString, "many">;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
acyclic: boolean;
|
|
246
|
-
droppedEdges: string[];
|
|
247
|
-
unsupportedNodes: string[];
|
|
248
|
-
}, {
|
|
249
|
-
acyclic: boolean;
|
|
250
|
-
droppedEdges: string[];
|
|
251
|
-
unsupportedNodes: string[];
|
|
252
|
-
}>>;
|
|
253
|
-
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
v: 1;
|
|
255
|
-
id: string;
|
|
256
|
-
entry: string[];
|
|
257
|
-
nodes: Record<string, {
|
|
258
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
259
|
-
id: string;
|
|
260
|
-
config: Record<string, unknown>;
|
|
261
|
-
out: {
|
|
262
|
-
to: string;
|
|
263
|
-
condition?: string | undefined;
|
|
264
|
-
sourceHandle?: string | undefined;
|
|
265
|
-
label?: string | undefined;
|
|
266
|
-
}[];
|
|
267
|
-
}>;
|
|
268
|
-
completionGate: {
|
|
269
|
-
requiredFields: string[];
|
|
270
|
-
};
|
|
271
|
-
diagnostics?: {
|
|
272
|
-
acyclic: boolean;
|
|
273
|
-
droppedEdges: string[];
|
|
274
|
-
unsupportedNodes: string[];
|
|
275
|
-
} | undefined;
|
|
276
|
-
}, {
|
|
277
|
-
v: 1;
|
|
278
|
-
id: string;
|
|
279
|
-
entry: string[];
|
|
280
|
-
nodes: Record<string, {
|
|
281
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
282
|
-
id: string;
|
|
283
|
-
config: Record<string, unknown>;
|
|
284
|
-
out: {
|
|
285
|
-
to: string;
|
|
286
|
-
condition?: string | undefined;
|
|
287
|
-
sourceHandle?: string | undefined;
|
|
288
|
-
label?: string | undefined;
|
|
289
|
-
}[];
|
|
290
|
-
}>;
|
|
291
|
-
completionGate: {
|
|
292
|
-
requiredFields: string[];
|
|
293
|
-
};
|
|
294
|
-
diagnostics?: {
|
|
295
|
-
acyclic: boolean;
|
|
296
|
-
droppedEdges: string[];
|
|
297
|
-
unsupportedNodes: string[];
|
|
298
|
-
} | undefined;
|
|
299
|
-
}>>;
|
|
300
|
-
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
id: string;
|
|
302
|
-
completionGate: {
|
|
303
|
-
requiredFields: string[];
|
|
304
|
-
backendAck?: {
|
|
305
|
-
url: string;
|
|
306
|
-
timeoutMs: number;
|
|
307
|
-
} | undefined;
|
|
308
|
-
};
|
|
309
|
-
fields: {
|
|
310
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
311
|
-
name: string;
|
|
312
|
-
required: boolean;
|
|
313
|
-
ask?: string | undefined;
|
|
314
|
-
pattern?: string | undefined;
|
|
315
|
-
min?: number | undefined;
|
|
316
|
-
max?: number | undefined;
|
|
317
|
-
enum?: string[] | undefined;
|
|
318
|
-
}[];
|
|
319
|
-
handoff?: {
|
|
320
|
-
fallback?: string | undefined;
|
|
321
|
-
routes?: Record<string, string> | undefined;
|
|
322
|
-
} | undefined;
|
|
323
|
-
memory?: {
|
|
324
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
325
|
-
retentionDays?: number | undefined;
|
|
326
|
-
piiFields?: string[] | undefined;
|
|
327
|
-
} | undefined;
|
|
328
|
-
speech?: {
|
|
329
|
-
interruption?: {
|
|
330
|
-
enabled?: boolean | undefined;
|
|
331
|
-
minWords?: number | undefined;
|
|
332
|
-
minDuration?: number | undefined;
|
|
333
|
-
} | undefined;
|
|
334
|
-
endpointing?: {
|
|
335
|
-
minDelay?: number | undefined;
|
|
336
|
-
maxDelay?: number | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
} | undefined;
|
|
339
|
-
prompts?: {
|
|
340
|
-
id: string;
|
|
341
|
-
text: string;
|
|
342
|
-
}[] | undefined;
|
|
343
|
-
triggers?: {
|
|
344
|
-
then: string;
|
|
345
|
-
name: string;
|
|
346
|
-
on: string;
|
|
347
|
-
onlyWhile?: string | undefined;
|
|
348
|
-
}[] | undefined;
|
|
349
|
-
tools?: {
|
|
350
|
-
name: string;
|
|
351
|
-
description: string;
|
|
352
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
353
|
-
url: string;
|
|
354
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
355
|
-
auth: "none" | "connection";
|
|
356
|
-
headers?: Record<string, string> | undefined;
|
|
357
|
-
connectionRef?: string | undefined;
|
|
358
|
-
}[] | undefined;
|
|
359
|
-
program?: {
|
|
360
|
-
v: 1;
|
|
361
|
-
id: string;
|
|
362
|
-
entry: string[];
|
|
363
|
-
nodes: Record<string, {
|
|
364
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
365
|
-
id: string;
|
|
366
|
-
config: Record<string, unknown>;
|
|
367
|
-
out: {
|
|
368
|
-
to: string;
|
|
369
|
-
condition?: string | undefined;
|
|
370
|
-
sourceHandle?: string | undefined;
|
|
371
|
-
label?: string | undefined;
|
|
372
|
-
}[];
|
|
373
|
-
}>;
|
|
374
|
-
completionGate: {
|
|
375
|
-
requiredFields: string[];
|
|
376
|
-
};
|
|
377
|
-
diagnostics?: {
|
|
378
|
-
acyclic: boolean;
|
|
379
|
-
droppedEdges: string[];
|
|
380
|
-
unsupportedNodes: string[];
|
|
381
|
-
} | undefined;
|
|
382
|
-
} | undefined;
|
|
383
|
-
}, {
|
|
384
|
-
id: string;
|
|
385
|
-
completionGate: {
|
|
386
|
-
requiredFields: string[];
|
|
387
|
-
backendAck?: {
|
|
388
|
-
url: string;
|
|
389
|
-
timeoutMs: number;
|
|
390
|
-
} | undefined;
|
|
391
|
-
};
|
|
392
|
-
fields: {
|
|
393
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
394
|
-
name: string;
|
|
395
|
-
required: boolean;
|
|
396
|
-
ask?: string | undefined;
|
|
397
|
-
pattern?: string | undefined;
|
|
398
|
-
min?: number | undefined;
|
|
399
|
-
max?: number | undefined;
|
|
400
|
-
enum?: string[] | undefined;
|
|
401
|
-
}[];
|
|
402
|
-
handoff?: {
|
|
403
|
-
fallback?: string | undefined;
|
|
404
|
-
routes?: Record<string, string> | undefined;
|
|
405
|
-
} | undefined;
|
|
406
|
-
memory?: {
|
|
407
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
408
|
-
retentionDays?: number | undefined;
|
|
409
|
-
piiFields?: string[] | undefined;
|
|
410
|
-
} | undefined;
|
|
411
|
-
speech?: {
|
|
412
|
-
interruption?: {
|
|
413
|
-
enabled?: boolean | undefined;
|
|
414
|
-
minWords?: number | undefined;
|
|
415
|
-
minDuration?: number | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
endpointing?: {
|
|
418
|
-
minDelay?: number | undefined;
|
|
419
|
-
maxDelay?: number | undefined;
|
|
420
|
-
} | undefined;
|
|
421
|
-
} | undefined;
|
|
422
|
-
prompts?: {
|
|
423
|
-
id: string;
|
|
424
|
-
text: string;
|
|
425
|
-
}[] | undefined;
|
|
426
|
-
triggers?: {
|
|
427
|
-
then: string;
|
|
428
|
-
name: string;
|
|
429
|
-
on: string;
|
|
430
|
-
onlyWhile?: string | undefined;
|
|
431
|
-
}[] | undefined;
|
|
432
|
-
tools?: {
|
|
433
|
-
name: string;
|
|
434
|
-
description: string;
|
|
435
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
436
|
-
url: string;
|
|
437
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
438
|
-
auth: "none" | "connection";
|
|
439
|
-
headers?: Record<string, string> | undefined;
|
|
440
|
-
connectionRef?: string | undefined;
|
|
441
|
-
}[] | undefined;
|
|
442
|
-
program?: {
|
|
443
|
-
v: 1;
|
|
444
|
-
id: string;
|
|
445
|
-
entry: string[];
|
|
446
|
-
nodes: Record<string, {
|
|
447
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
448
|
-
id: string;
|
|
449
|
-
config: Record<string, unknown>;
|
|
450
|
-
out: {
|
|
451
|
-
to: string;
|
|
452
|
-
condition?: string | undefined;
|
|
453
|
-
sourceHandle?: string | undefined;
|
|
454
|
-
label?: string | undefined;
|
|
455
|
-
}[];
|
|
456
|
-
}>;
|
|
457
|
-
completionGate: {
|
|
458
|
-
requiredFields: string[];
|
|
459
|
-
};
|
|
460
|
-
diagnostics?: {
|
|
461
|
-
acyclic: boolean;
|
|
462
|
-
droppedEdges: string[];
|
|
463
|
-
unsupportedNodes: string[];
|
|
464
|
-
} | undefined;
|
|
465
|
-
} | undefined;
|
|
466
|
-
}>;
|
|
467
|
-
type ProcessSchemaDTO = z.infer<typeof ProcessSchemaDTO>;
|
|
468
|
-
declare const AgentDTO: z.ZodObject<{
|
|
469
|
-
id: z.ZodString;
|
|
470
|
-
projectId: z.ZodString;
|
|
471
|
-
name: z.ZodString;
|
|
472
|
-
version: z.ZodString;
|
|
473
|
-
environment: z.ZodEnum<["dev", "stg", "prd"]>;
|
|
474
|
-
status: z.ZodEnum<["online", "offline", "degraded"]>;
|
|
475
|
-
statusDetail: z.ZodNullable<z.ZodString>;
|
|
476
|
-
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
477
|
-
readiness: z.ZodArray<z.ZodObject<{
|
|
478
|
-
probe: z.ZodString;
|
|
479
|
-
ok: z.ZodBoolean;
|
|
480
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
481
|
-
}, "strip", z.ZodTypeAny, {
|
|
482
|
-
probe: string;
|
|
483
|
-
ok: boolean;
|
|
484
|
-
detail?: string | undefined;
|
|
485
|
-
}, {
|
|
486
|
-
probe: string;
|
|
487
|
-
ok: boolean;
|
|
488
|
-
detail?: string | undefined;
|
|
489
|
-
}>, "many">;
|
|
490
|
-
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
491
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
492
|
-
processSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
493
|
-
id: z.ZodString;
|
|
494
|
-
prompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
495
|
-
id: z.ZodString;
|
|
496
|
-
text: z.ZodString;
|
|
497
|
-
}, "strip", z.ZodTypeAny, {
|
|
498
|
-
id: string;
|
|
499
|
-
text: string;
|
|
500
|
-
}, {
|
|
501
|
-
id: string;
|
|
502
|
-
text: string;
|
|
503
|
-
}>, "many">>;
|
|
504
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
505
|
-
name: z.ZodString;
|
|
506
|
-
required: z.ZodBoolean;
|
|
507
|
-
type: z.ZodEnum<["string", "string[]", "number", "boolean", "datetime", "email", "phone"]>;
|
|
508
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
509
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
510
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
511
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
512
|
-
ask: z.ZodOptional<z.ZodString>;
|
|
513
|
-
}, "strip", z.ZodTypeAny, {
|
|
514
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
515
|
-
name: string;
|
|
516
|
-
required: boolean;
|
|
517
|
-
ask?: string | undefined;
|
|
518
|
-
pattern?: string | undefined;
|
|
519
|
-
min?: number | undefined;
|
|
520
|
-
max?: number | undefined;
|
|
521
|
-
enum?: string[] | undefined;
|
|
522
|
-
}, {
|
|
523
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
524
|
-
name: string;
|
|
525
|
-
required: boolean;
|
|
526
|
-
ask?: string | undefined;
|
|
527
|
-
pattern?: string | undefined;
|
|
528
|
-
min?: number | undefined;
|
|
529
|
-
max?: number | undefined;
|
|
530
|
-
enum?: string[] | undefined;
|
|
531
|
-
}>, "many">;
|
|
532
|
-
completionGate: z.ZodObject<{
|
|
533
|
-
requiredFields: z.ZodArray<z.ZodString, "many">;
|
|
534
|
-
backendAck: z.ZodOptional<z.ZodObject<{
|
|
535
|
-
url: z.ZodString;
|
|
536
|
-
timeoutMs: z.ZodNumber;
|
|
537
|
-
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
url: string;
|
|
539
|
-
timeoutMs: number;
|
|
540
|
-
}, {
|
|
541
|
-
url: string;
|
|
542
|
-
timeoutMs: number;
|
|
543
|
-
}>>;
|
|
544
|
-
}, "strip", z.ZodTypeAny, {
|
|
545
|
-
requiredFields: string[];
|
|
546
|
-
backendAck?: {
|
|
547
|
-
url: string;
|
|
548
|
-
timeoutMs: number;
|
|
549
|
-
} | undefined;
|
|
550
|
-
}, {
|
|
551
|
-
requiredFields: string[];
|
|
552
|
-
backendAck?: {
|
|
553
|
-
url: string;
|
|
554
|
-
timeoutMs: number;
|
|
555
|
-
} | undefined;
|
|
556
|
-
}>;
|
|
557
|
-
triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
558
|
-
name: z.ZodString;
|
|
559
|
-
on: z.ZodString;
|
|
560
|
-
then: z.ZodString;
|
|
561
|
-
onlyWhile: z.ZodOptional<z.ZodString>;
|
|
562
|
-
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
then: string;
|
|
564
|
-
name: string;
|
|
565
|
-
on: string;
|
|
566
|
-
onlyWhile?: string | undefined;
|
|
567
|
-
}, {
|
|
568
|
-
then: string;
|
|
569
|
-
name: string;
|
|
570
|
-
on: string;
|
|
571
|
-
onlyWhile?: string | undefined;
|
|
572
|
-
}>, "many">>;
|
|
573
|
-
handoff: z.ZodOptional<z.ZodObject<{
|
|
574
|
-
fallback: z.ZodOptional<z.ZodString>;
|
|
575
|
-
routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
576
|
-
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
fallback?: string | undefined;
|
|
578
|
-
routes?: Record<string, string> | undefined;
|
|
579
|
-
}, {
|
|
580
|
-
fallback?: string | undefined;
|
|
581
|
-
routes?: Record<string, string> | undefined;
|
|
582
|
-
}>>;
|
|
583
|
-
memory: z.ZodOptional<z.ZodObject<{
|
|
584
|
-
scope: z.ZodOptional<z.ZodEnum<["call", "caller", "participant", "account", "platform"]>>;
|
|
585
|
-
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
586
|
-
piiFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
587
|
-
}, "strip", z.ZodTypeAny, {
|
|
588
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
589
|
-
retentionDays?: number | undefined;
|
|
590
|
-
piiFields?: string[] | undefined;
|
|
591
|
-
}, {
|
|
592
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
593
|
-
retentionDays?: number | undefined;
|
|
594
|
-
piiFields?: string[] | undefined;
|
|
595
|
-
}>>;
|
|
596
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
597
|
-
name: z.ZodString;
|
|
598
|
-
description: z.ZodString;
|
|
599
|
-
input: z.ZodRecord<z.ZodString, z.ZodEnum<["string", "number", "boolean"]>>;
|
|
600
|
-
url: z.ZodString;
|
|
601
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
602
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
603
|
-
auth: z.ZodEnum<["none", "connection"]>;
|
|
604
|
-
connectionRef: z.ZodOptional<z.ZodString>;
|
|
605
|
-
}, "strip", z.ZodTypeAny, {
|
|
606
|
-
name: string;
|
|
607
|
-
description: string;
|
|
608
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
609
|
-
url: string;
|
|
610
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
611
|
-
auth: "none" | "connection";
|
|
612
|
-
headers?: Record<string, string> | undefined;
|
|
613
|
-
connectionRef?: string | undefined;
|
|
614
|
-
}, {
|
|
615
|
-
name: string;
|
|
616
|
-
description: string;
|
|
617
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
618
|
-
url: string;
|
|
619
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
620
|
-
auth: "none" | "connection";
|
|
621
|
-
headers?: Record<string, string> | undefined;
|
|
622
|
-
connectionRef?: string | undefined;
|
|
623
|
-
}>, "many">>;
|
|
624
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
625
|
-
interruption: z.ZodOptional<z.ZodObject<{
|
|
626
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
627
|
-
minWords: z.ZodOptional<z.ZodNumber>;
|
|
628
|
-
minDuration: z.ZodOptional<z.ZodNumber>;
|
|
629
|
-
}, "strip", z.ZodTypeAny, {
|
|
630
|
-
enabled?: boolean | undefined;
|
|
631
|
-
minWords?: number | undefined;
|
|
632
|
-
minDuration?: number | undefined;
|
|
633
|
-
}, {
|
|
634
|
-
enabled?: boolean | undefined;
|
|
635
|
-
minWords?: number | undefined;
|
|
636
|
-
minDuration?: number | undefined;
|
|
637
|
-
}>>;
|
|
638
|
-
endpointing: z.ZodOptional<z.ZodObject<{
|
|
639
|
-
minDelay: z.ZodOptional<z.ZodNumber>;
|
|
640
|
-
maxDelay: z.ZodOptional<z.ZodNumber>;
|
|
641
|
-
}, "strip", z.ZodTypeAny, {
|
|
642
|
-
minDelay?: number | undefined;
|
|
643
|
-
maxDelay?: number | undefined;
|
|
644
|
-
}, {
|
|
645
|
-
minDelay?: number | undefined;
|
|
646
|
-
maxDelay?: number | undefined;
|
|
647
|
-
}>>;
|
|
648
|
-
}, "strip", z.ZodTypeAny, {
|
|
649
|
-
interruption?: {
|
|
650
|
-
enabled?: boolean | undefined;
|
|
651
|
-
minWords?: number | undefined;
|
|
652
|
-
minDuration?: number | undefined;
|
|
653
|
-
} | undefined;
|
|
654
|
-
endpointing?: {
|
|
655
|
-
minDelay?: number | undefined;
|
|
656
|
-
maxDelay?: number | undefined;
|
|
657
|
-
} | undefined;
|
|
658
|
-
}, {
|
|
659
|
-
interruption?: {
|
|
660
|
-
enabled?: boolean | undefined;
|
|
661
|
-
minWords?: number | undefined;
|
|
662
|
-
minDuration?: number | undefined;
|
|
663
|
-
} | undefined;
|
|
664
|
-
endpointing?: {
|
|
665
|
-
minDelay?: number | undefined;
|
|
666
|
-
maxDelay?: number | undefined;
|
|
667
|
-
} | undefined;
|
|
668
|
-
}>>;
|
|
669
|
-
program: z.ZodOptional<z.ZodObject<{
|
|
670
|
-
v: z.ZodLiteral<1>;
|
|
671
|
-
id: z.ZodString;
|
|
672
|
-
entry: z.ZodArray<z.ZodString, "many">;
|
|
673
|
-
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
674
|
-
id: z.ZodString;
|
|
675
|
-
type: z.ZodEnum<["start", "say", "ask", "confirm", "tool", "decision", "handoff", "end", "trigger", "gate", "playbook", "menu", "code", "set", "subflow", "llm", "rag", "memory", "speech", "classify", "router", "note"]>;
|
|
676
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
677
|
-
out: z.ZodArray<z.ZodObject<{
|
|
678
|
-
to: z.ZodString;
|
|
679
|
-
condition: z.ZodOptional<z.ZodString>;
|
|
680
|
-
sourceHandle: z.ZodOptional<z.ZodString>;
|
|
681
|
-
label: z.ZodOptional<z.ZodString>;
|
|
682
|
-
}, "strip", z.ZodTypeAny, {
|
|
683
|
-
to: string;
|
|
684
|
-
condition?: string | undefined;
|
|
685
|
-
sourceHandle?: string | undefined;
|
|
686
|
-
label?: string | undefined;
|
|
687
|
-
}, {
|
|
688
|
-
to: string;
|
|
689
|
-
condition?: string | undefined;
|
|
690
|
-
sourceHandle?: string | undefined;
|
|
691
|
-
label?: string | undefined;
|
|
692
|
-
}>, "many">;
|
|
693
|
-
}, "strip", z.ZodTypeAny, {
|
|
694
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
695
|
-
id: string;
|
|
696
|
-
config: Record<string, unknown>;
|
|
697
|
-
out: {
|
|
698
|
-
to: string;
|
|
699
|
-
condition?: string | undefined;
|
|
700
|
-
sourceHandle?: string | undefined;
|
|
701
|
-
label?: string | undefined;
|
|
702
|
-
}[];
|
|
703
|
-
}, {
|
|
704
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
705
|
-
id: string;
|
|
706
|
-
config: Record<string, unknown>;
|
|
707
|
-
out: {
|
|
708
|
-
to: string;
|
|
709
|
-
condition?: string | undefined;
|
|
710
|
-
sourceHandle?: string | undefined;
|
|
711
|
-
label?: string | undefined;
|
|
712
|
-
}[];
|
|
713
|
-
}>>;
|
|
714
|
-
completionGate: z.ZodObject<{
|
|
715
|
-
requiredFields: z.ZodArray<z.ZodString, "many">;
|
|
716
|
-
}, "strip", z.ZodTypeAny, {
|
|
717
|
-
requiredFields: string[];
|
|
718
|
-
}, {
|
|
719
|
-
requiredFields: string[];
|
|
720
|
-
}>;
|
|
721
|
-
diagnostics: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
acyclic: z.ZodBoolean;
|
|
723
|
-
droppedEdges: z.ZodArray<z.ZodString, "many">;
|
|
724
|
-
unsupportedNodes: z.ZodArray<z.ZodString, "many">;
|
|
725
|
-
}, "strip", z.ZodTypeAny, {
|
|
726
|
-
acyclic: boolean;
|
|
727
|
-
droppedEdges: string[];
|
|
728
|
-
unsupportedNodes: string[];
|
|
729
|
-
}, {
|
|
730
|
-
acyclic: boolean;
|
|
731
|
-
droppedEdges: string[];
|
|
732
|
-
unsupportedNodes: string[];
|
|
733
|
-
}>>;
|
|
734
|
-
}, "strip", z.ZodTypeAny, {
|
|
735
|
-
v: 1;
|
|
736
|
-
id: string;
|
|
737
|
-
entry: string[];
|
|
738
|
-
nodes: Record<string, {
|
|
739
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
740
|
-
id: string;
|
|
741
|
-
config: Record<string, unknown>;
|
|
742
|
-
out: {
|
|
743
|
-
to: string;
|
|
744
|
-
condition?: string | undefined;
|
|
745
|
-
sourceHandle?: string | undefined;
|
|
746
|
-
label?: string | undefined;
|
|
747
|
-
}[];
|
|
748
|
-
}>;
|
|
749
|
-
completionGate: {
|
|
750
|
-
requiredFields: string[];
|
|
751
|
-
};
|
|
752
|
-
diagnostics?: {
|
|
753
|
-
acyclic: boolean;
|
|
754
|
-
droppedEdges: string[];
|
|
755
|
-
unsupportedNodes: string[];
|
|
756
|
-
} | undefined;
|
|
757
|
-
}, {
|
|
758
|
-
v: 1;
|
|
759
|
-
id: string;
|
|
760
|
-
entry: string[];
|
|
761
|
-
nodes: Record<string, {
|
|
762
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
763
|
-
id: string;
|
|
764
|
-
config: Record<string, unknown>;
|
|
765
|
-
out: {
|
|
766
|
-
to: string;
|
|
767
|
-
condition?: string | undefined;
|
|
768
|
-
sourceHandle?: string | undefined;
|
|
769
|
-
label?: string | undefined;
|
|
770
|
-
}[];
|
|
771
|
-
}>;
|
|
772
|
-
completionGate: {
|
|
773
|
-
requiredFields: string[];
|
|
774
|
-
};
|
|
775
|
-
diagnostics?: {
|
|
776
|
-
acyclic: boolean;
|
|
777
|
-
droppedEdges: string[];
|
|
778
|
-
unsupportedNodes: string[];
|
|
779
|
-
} | undefined;
|
|
780
|
-
}>>;
|
|
781
|
-
}, "strip", z.ZodTypeAny, {
|
|
782
|
-
id: string;
|
|
783
|
-
completionGate: {
|
|
784
|
-
requiredFields: string[];
|
|
785
|
-
backendAck?: {
|
|
786
|
-
url: string;
|
|
787
|
-
timeoutMs: number;
|
|
788
|
-
} | undefined;
|
|
789
|
-
};
|
|
790
|
-
fields: {
|
|
791
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
792
|
-
name: string;
|
|
793
|
-
required: boolean;
|
|
794
|
-
ask?: string | undefined;
|
|
795
|
-
pattern?: string | undefined;
|
|
796
|
-
min?: number | undefined;
|
|
797
|
-
max?: number | undefined;
|
|
798
|
-
enum?: string[] | undefined;
|
|
799
|
-
}[];
|
|
800
|
-
handoff?: {
|
|
801
|
-
fallback?: string | undefined;
|
|
802
|
-
routes?: Record<string, string> | undefined;
|
|
803
|
-
} | undefined;
|
|
804
|
-
memory?: {
|
|
805
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
806
|
-
retentionDays?: number | undefined;
|
|
807
|
-
piiFields?: string[] | undefined;
|
|
808
|
-
} | undefined;
|
|
809
|
-
speech?: {
|
|
810
|
-
interruption?: {
|
|
811
|
-
enabled?: boolean | undefined;
|
|
812
|
-
minWords?: number | undefined;
|
|
813
|
-
minDuration?: number | undefined;
|
|
814
|
-
} | undefined;
|
|
815
|
-
endpointing?: {
|
|
816
|
-
minDelay?: number | undefined;
|
|
817
|
-
maxDelay?: number | undefined;
|
|
818
|
-
} | undefined;
|
|
819
|
-
} | undefined;
|
|
820
|
-
prompts?: {
|
|
821
|
-
id: string;
|
|
822
|
-
text: string;
|
|
823
|
-
}[] | undefined;
|
|
824
|
-
triggers?: {
|
|
825
|
-
then: string;
|
|
826
|
-
name: string;
|
|
827
|
-
on: string;
|
|
828
|
-
onlyWhile?: string | undefined;
|
|
829
|
-
}[] | undefined;
|
|
830
|
-
tools?: {
|
|
831
|
-
name: string;
|
|
832
|
-
description: string;
|
|
833
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
834
|
-
url: string;
|
|
835
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
836
|
-
auth: "none" | "connection";
|
|
837
|
-
headers?: Record<string, string> | undefined;
|
|
838
|
-
connectionRef?: string | undefined;
|
|
839
|
-
}[] | undefined;
|
|
840
|
-
program?: {
|
|
841
|
-
v: 1;
|
|
842
|
-
id: string;
|
|
843
|
-
entry: string[];
|
|
844
|
-
nodes: Record<string, {
|
|
845
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
846
|
-
id: string;
|
|
847
|
-
config: Record<string, unknown>;
|
|
848
|
-
out: {
|
|
849
|
-
to: string;
|
|
850
|
-
condition?: string | undefined;
|
|
851
|
-
sourceHandle?: string | undefined;
|
|
852
|
-
label?: string | undefined;
|
|
853
|
-
}[];
|
|
854
|
-
}>;
|
|
855
|
-
completionGate: {
|
|
856
|
-
requiredFields: string[];
|
|
857
|
-
};
|
|
858
|
-
diagnostics?: {
|
|
859
|
-
acyclic: boolean;
|
|
860
|
-
droppedEdges: string[];
|
|
861
|
-
unsupportedNodes: string[];
|
|
862
|
-
} | undefined;
|
|
863
|
-
} | undefined;
|
|
864
|
-
}, {
|
|
865
|
-
id: string;
|
|
866
|
-
completionGate: {
|
|
867
|
-
requiredFields: string[];
|
|
868
|
-
backendAck?: {
|
|
869
|
-
url: string;
|
|
870
|
-
timeoutMs: number;
|
|
871
|
-
} | undefined;
|
|
872
|
-
};
|
|
873
|
-
fields: {
|
|
874
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
875
|
-
name: string;
|
|
876
|
-
required: boolean;
|
|
877
|
-
ask?: string | undefined;
|
|
878
|
-
pattern?: string | undefined;
|
|
879
|
-
min?: number | undefined;
|
|
880
|
-
max?: number | undefined;
|
|
881
|
-
enum?: string[] | undefined;
|
|
882
|
-
}[];
|
|
883
|
-
handoff?: {
|
|
884
|
-
fallback?: string | undefined;
|
|
885
|
-
routes?: Record<string, string> | undefined;
|
|
886
|
-
} | undefined;
|
|
887
|
-
memory?: {
|
|
888
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
889
|
-
retentionDays?: number | undefined;
|
|
890
|
-
piiFields?: string[] | undefined;
|
|
891
|
-
} | undefined;
|
|
892
|
-
speech?: {
|
|
893
|
-
interruption?: {
|
|
894
|
-
enabled?: boolean | undefined;
|
|
895
|
-
minWords?: number | undefined;
|
|
896
|
-
minDuration?: number | undefined;
|
|
897
|
-
} | undefined;
|
|
898
|
-
endpointing?: {
|
|
899
|
-
minDelay?: number | undefined;
|
|
900
|
-
maxDelay?: number | undefined;
|
|
901
|
-
} | undefined;
|
|
902
|
-
} | undefined;
|
|
903
|
-
prompts?: {
|
|
904
|
-
id: string;
|
|
905
|
-
text: string;
|
|
906
|
-
}[] | undefined;
|
|
907
|
-
triggers?: {
|
|
908
|
-
then: string;
|
|
909
|
-
name: string;
|
|
910
|
-
on: string;
|
|
911
|
-
onlyWhile?: string | undefined;
|
|
912
|
-
}[] | undefined;
|
|
913
|
-
tools?: {
|
|
914
|
-
name: string;
|
|
915
|
-
description: string;
|
|
916
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
917
|
-
url: string;
|
|
918
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
919
|
-
auth: "none" | "connection";
|
|
920
|
-
headers?: Record<string, string> | undefined;
|
|
921
|
-
connectionRef?: string | undefined;
|
|
922
|
-
}[] | undefined;
|
|
923
|
-
program?: {
|
|
924
|
-
v: 1;
|
|
925
|
-
id: string;
|
|
926
|
-
entry: string[];
|
|
927
|
-
nodes: Record<string, {
|
|
928
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
929
|
-
id: string;
|
|
930
|
-
config: Record<string, unknown>;
|
|
931
|
-
out: {
|
|
932
|
-
to: string;
|
|
933
|
-
condition?: string | undefined;
|
|
934
|
-
sourceHandle?: string | undefined;
|
|
935
|
-
label?: string | undefined;
|
|
936
|
-
}[];
|
|
937
|
-
}>;
|
|
938
|
-
completionGate: {
|
|
939
|
-
requiredFields: string[];
|
|
940
|
-
};
|
|
941
|
-
diagnostics?: {
|
|
942
|
-
acyclic: boolean;
|
|
943
|
-
droppedEdges: string[];
|
|
944
|
-
unsupportedNodes: string[];
|
|
945
|
-
} | undefined;
|
|
946
|
-
} | undefined;
|
|
947
|
-
}>>>;
|
|
948
|
-
createdAt: z.ZodString;
|
|
949
|
-
updatedAt: z.ZodString;
|
|
950
|
-
}, "strip", z.ZodTypeAny, {
|
|
951
|
-
status: "online" | "offline" | "degraded";
|
|
952
|
-
id: string;
|
|
953
|
-
projectId: string;
|
|
954
|
-
name: string;
|
|
955
|
-
createdAt: string;
|
|
956
|
-
updatedAt: string;
|
|
957
|
-
version: string;
|
|
958
|
-
environment: "dev" | "stg" | "prd";
|
|
959
|
-
statusDetail: string | null;
|
|
960
|
-
capabilities: string[];
|
|
961
|
-
readiness: {
|
|
962
|
-
probe: string;
|
|
963
|
-
ok: boolean;
|
|
964
|
-
detail?: string | undefined;
|
|
965
|
-
}[];
|
|
966
|
-
metadata: Record<string, unknown>;
|
|
967
|
-
lastSeenAt: string | null;
|
|
968
|
-
processSchema?: {
|
|
969
|
-
id: string;
|
|
970
|
-
completionGate: {
|
|
971
|
-
requiredFields: string[];
|
|
972
|
-
backendAck?: {
|
|
973
|
-
url: string;
|
|
974
|
-
timeoutMs: number;
|
|
975
|
-
} | undefined;
|
|
976
|
-
};
|
|
977
|
-
fields: {
|
|
978
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
979
|
-
name: string;
|
|
980
|
-
required: boolean;
|
|
981
|
-
ask?: string | undefined;
|
|
982
|
-
pattern?: string | undefined;
|
|
983
|
-
min?: number | undefined;
|
|
984
|
-
max?: number | undefined;
|
|
985
|
-
enum?: string[] | undefined;
|
|
986
|
-
}[];
|
|
987
|
-
handoff?: {
|
|
988
|
-
fallback?: string | undefined;
|
|
989
|
-
routes?: Record<string, string> | undefined;
|
|
990
|
-
} | undefined;
|
|
991
|
-
memory?: {
|
|
992
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
993
|
-
retentionDays?: number | undefined;
|
|
994
|
-
piiFields?: string[] | undefined;
|
|
995
|
-
} | undefined;
|
|
996
|
-
speech?: {
|
|
997
|
-
interruption?: {
|
|
998
|
-
enabled?: boolean | undefined;
|
|
999
|
-
minWords?: number | undefined;
|
|
1000
|
-
minDuration?: number | undefined;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
endpointing?: {
|
|
1003
|
-
minDelay?: number | undefined;
|
|
1004
|
-
maxDelay?: number | undefined;
|
|
1005
|
-
} | undefined;
|
|
1006
|
-
} | undefined;
|
|
1007
|
-
prompts?: {
|
|
1008
|
-
id: string;
|
|
1009
|
-
text: string;
|
|
1010
|
-
}[] | undefined;
|
|
1011
|
-
triggers?: {
|
|
1012
|
-
then: string;
|
|
1013
|
-
name: string;
|
|
1014
|
-
on: string;
|
|
1015
|
-
onlyWhile?: string | undefined;
|
|
1016
|
-
}[] | undefined;
|
|
1017
|
-
tools?: {
|
|
1018
|
-
name: string;
|
|
1019
|
-
description: string;
|
|
1020
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
1021
|
-
url: string;
|
|
1022
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
1023
|
-
auth: "none" | "connection";
|
|
1024
|
-
headers?: Record<string, string> | undefined;
|
|
1025
|
-
connectionRef?: string | undefined;
|
|
1026
|
-
}[] | undefined;
|
|
1027
|
-
program?: {
|
|
1028
|
-
v: 1;
|
|
1029
|
-
id: string;
|
|
1030
|
-
entry: string[];
|
|
1031
|
-
nodes: Record<string, {
|
|
1032
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1033
|
-
id: string;
|
|
1034
|
-
config: Record<string, unknown>;
|
|
1035
|
-
out: {
|
|
1036
|
-
to: string;
|
|
1037
|
-
condition?: string | undefined;
|
|
1038
|
-
sourceHandle?: string | undefined;
|
|
1039
|
-
label?: string | undefined;
|
|
1040
|
-
}[];
|
|
1041
|
-
}>;
|
|
1042
|
-
completionGate: {
|
|
1043
|
-
requiredFields: string[];
|
|
1044
|
-
};
|
|
1045
|
-
diagnostics?: {
|
|
1046
|
-
acyclic: boolean;
|
|
1047
|
-
droppedEdges: string[];
|
|
1048
|
-
unsupportedNodes: string[];
|
|
1049
|
-
} | undefined;
|
|
1050
|
-
} | undefined;
|
|
1051
|
-
} | null | undefined;
|
|
1052
|
-
}, {
|
|
1053
|
-
status: "online" | "offline" | "degraded";
|
|
1054
|
-
id: string;
|
|
1055
|
-
projectId: string;
|
|
1056
|
-
name: string;
|
|
1057
|
-
createdAt: string;
|
|
1058
|
-
updatedAt: string;
|
|
1059
|
-
version: string;
|
|
1060
|
-
environment: "dev" | "stg" | "prd";
|
|
1061
|
-
statusDetail: string | null;
|
|
1062
|
-
capabilities: string[];
|
|
1063
|
-
readiness: {
|
|
1064
|
-
probe: string;
|
|
1065
|
-
ok: boolean;
|
|
1066
|
-
detail?: string | undefined;
|
|
1067
|
-
}[];
|
|
1068
|
-
metadata: Record<string, unknown>;
|
|
1069
|
-
lastSeenAt: string | null;
|
|
1070
|
-
processSchema?: {
|
|
1071
|
-
id: string;
|
|
1072
|
-
completionGate: {
|
|
1073
|
-
requiredFields: string[];
|
|
1074
|
-
backendAck?: {
|
|
1075
|
-
url: string;
|
|
1076
|
-
timeoutMs: number;
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
};
|
|
1079
|
-
fields: {
|
|
1080
|
-
type: "string" | "number" | "boolean" | "string[]" | "datetime" | "email" | "phone";
|
|
1081
|
-
name: string;
|
|
1082
|
-
required: boolean;
|
|
1083
|
-
ask?: string | undefined;
|
|
1084
|
-
pattern?: string | undefined;
|
|
1085
|
-
min?: number | undefined;
|
|
1086
|
-
max?: number | undefined;
|
|
1087
|
-
enum?: string[] | undefined;
|
|
1088
|
-
}[];
|
|
1089
|
-
handoff?: {
|
|
1090
|
-
fallback?: string | undefined;
|
|
1091
|
-
routes?: Record<string, string> | undefined;
|
|
1092
|
-
} | undefined;
|
|
1093
|
-
memory?: {
|
|
1094
|
-
scope?: "call" | "caller" | "account" | "participant" | "platform" | undefined;
|
|
1095
|
-
retentionDays?: number | undefined;
|
|
1096
|
-
piiFields?: string[] | undefined;
|
|
1097
|
-
} | undefined;
|
|
1098
|
-
speech?: {
|
|
1099
|
-
interruption?: {
|
|
1100
|
-
enabled?: boolean | undefined;
|
|
1101
|
-
minWords?: number | undefined;
|
|
1102
|
-
minDuration?: number | undefined;
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
endpointing?: {
|
|
1105
|
-
minDelay?: number | undefined;
|
|
1106
|
-
maxDelay?: number | undefined;
|
|
1107
|
-
} | undefined;
|
|
1108
|
-
} | undefined;
|
|
1109
|
-
prompts?: {
|
|
1110
|
-
id: string;
|
|
1111
|
-
text: string;
|
|
1112
|
-
}[] | undefined;
|
|
1113
|
-
triggers?: {
|
|
1114
|
-
then: string;
|
|
1115
|
-
name: string;
|
|
1116
|
-
on: string;
|
|
1117
|
-
onlyWhile?: string | undefined;
|
|
1118
|
-
}[] | undefined;
|
|
1119
|
-
tools?: {
|
|
1120
|
-
name: string;
|
|
1121
|
-
description: string;
|
|
1122
|
-
input: Record<string, "string" | "number" | "boolean">;
|
|
1123
|
-
url: string;
|
|
1124
|
-
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
1125
|
-
auth: "none" | "connection";
|
|
1126
|
-
headers?: Record<string, string> | undefined;
|
|
1127
|
-
connectionRef?: string | undefined;
|
|
1128
|
-
}[] | undefined;
|
|
1129
|
-
program?: {
|
|
1130
|
-
v: 1;
|
|
1131
|
-
id: string;
|
|
1132
|
-
entry: string[];
|
|
1133
|
-
nodes: Record<string, {
|
|
1134
|
-
type: "code" | "set" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
1135
|
-
id: string;
|
|
1136
|
-
config: Record<string, unknown>;
|
|
1137
|
-
out: {
|
|
1138
|
-
to: string;
|
|
1139
|
-
condition?: string | undefined;
|
|
1140
|
-
sourceHandle?: string | undefined;
|
|
1141
|
-
label?: string | undefined;
|
|
1142
|
-
}[];
|
|
1143
|
-
}>;
|
|
1144
|
-
completionGate: {
|
|
1145
|
-
requiredFields: string[];
|
|
1146
|
-
};
|
|
1147
|
-
diagnostics?: {
|
|
1148
|
-
acyclic: boolean;
|
|
1149
|
-
droppedEdges: string[];
|
|
1150
|
-
unsupportedNodes: string[];
|
|
1151
|
-
} | undefined;
|
|
1152
|
-
} | undefined;
|
|
1153
|
-
} | null | undefined;
|
|
1154
|
-
}>;
|
|
1155
|
-
type AgentDTO = z.infer<typeof AgentDTO>;
|
|
1156
|
-
|
|
1157
7
|
/**
|
|
1158
8
|
* The plan itself. Everything the agent needs to run the call without the
|
|
1159
9
|
* host being present turn-by-turn.
|
|
@@ -1218,11 +68,11 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1218
68
|
kind: z.ZodLiteral<"say">;
|
|
1219
69
|
text: z.ZodString;
|
|
1220
70
|
}, "strip", z.ZodTypeAny, {
|
|
1221
|
-
text: string;
|
|
1222
71
|
kind: "say";
|
|
1223
|
-
}, {
|
|
1224
72
|
text: string;
|
|
73
|
+
}, {
|
|
1225
74
|
kind: "say";
|
|
75
|
+
text: string;
|
|
1226
76
|
}>]>;
|
|
1227
77
|
onlyWhile: z.ZodOptional<z.ZodString>;
|
|
1228
78
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1231,8 +81,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1231
81
|
} | {
|
|
1232
82
|
kind: "endCall";
|
|
1233
83
|
} | {
|
|
1234
|
-
text: string;
|
|
1235
84
|
kind: "say";
|
|
85
|
+
text: string;
|
|
1236
86
|
};
|
|
1237
87
|
on: {
|
|
1238
88
|
kind: "regex";
|
|
@@ -1249,8 +99,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1249
99
|
} | {
|
|
1250
100
|
kind: "endCall";
|
|
1251
101
|
} | {
|
|
1252
|
-
text: string;
|
|
1253
102
|
kind: "say";
|
|
103
|
+
text: string;
|
|
1254
104
|
};
|
|
1255
105
|
on: {
|
|
1256
106
|
kind: "regex";
|
|
@@ -1506,8 +356,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1506
356
|
} | {
|
|
1507
357
|
kind: "endCall";
|
|
1508
358
|
} | {
|
|
1509
|
-
text: string;
|
|
1510
359
|
kind: "say";
|
|
360
|
+
text: string;
|
|
1511
361
|
};
|
|
1512
362
|
on: {
|
|
1513
363
|
kind: "regex";
|
|
@@ -1605,8 +455,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1605
455
|
} | {
|
|
1606
456
|
kind: "endCall";
|
|
1607
457
|
} | {
|
|
1608
|
-
text: string;
|
|
1609
458
|
kind: "say";
|
|
459
|
+
text: string;
|
|
1610
460
|
};
|
|
1611
461
|
on: {
|
|
1612
462
|
kind: "regex";
|
|
@@ -1703,14 +553,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1703
553
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1704
554
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
1705
555
|
}, "strip", z.ZodTypeAny, {
|
|
1706
|
-
id: string;
|
|
1707
556
|
kind: "decision" | "auth" | "fact";
|
|
557
|
+
id: string;
|
|
1708
558
|
prompt: string;
|
|
1709
559
|
deferrableToCallee: boolean;
|
|
1710
560
|
options?: string[] | undefined;
|
|
1711
561
|
}, {
|
|
1712
|
-
id: string;
|
|
1713
562
|
kind: "decision" | "auth" | "fact";
|
|
563
|
+
id: string;
|
|
1714
564
|
prompt: string;
|
|
1715
565
|
options?: string[] | undefined;
|
|
1716
566
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -1722,14 +572,14 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1722
572
|
options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1723
573
|
deferrableToCallee: z.ZodDefault<z.ZodBoolean>;
|
|
1724
574
|
}, "strip", z.ZodTypeAny, {
|
|
1725
|
-
id: string;
|
|
1726
575
|
kind: "decision" | "auth" | "fact";
|
|
576
|
+
id: string;
|
|
1727
577
|
prompt: string;
|
|
1728
578
|
deferrableToCallee: boolean;
|
|
1729
579
|
options?: string[] | undefined;
|
|
1730
580
|
}, {
|
|
1731
|
-
id: string;
|
|
1732
581
|
kind: "decision" | "auth" | "fact";
|
|
582
|
+
id: string;
|
|
1733
583
|
prompt: string;
|
|
1734
584
|
options?: string[] | undefined;
|
|
1735
585
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -1775,8 +625,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1775
625
|
} | {
|
|
1776
626
|
kind: "endCall";
|
|
1777
627
|
} | {
|
|
1778
|
-
text: string;
|
|
1779
628
|
kind: "say";
|
|
629
|
+
text: string;
|
|
1780
630
|
};
|
|
1781
631
|
on: {
|
|
1782
632
|
kind: "regex";
|
|
@@ -1867,15 +717,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1867
717
|
}[] | undefined;
|
|
1868
718
|
};
|
|
1869
719
|
openQuestions: {
|
|
1870
|
-
id: string;
|
|
1871
720
|
kind: "decision" | "auth" | "fact";
|
|
721
|
+
id: string;
|
|
1872
722
|
prompt: string;
|
|
1873
723
|
deferrableToCallee: boolean;
|
|
1874
724
|
options?: string[] | undefined;
|
|
1875
725
|
}[];
|
|
1876
726
|
unresolvedQuestions: {
|
|
1877
|
-
id: string;
|
|
1878
727
|
kind: "decision" | "auth" | "fact";
|
|
728
|
+
id: string;
|
|
1879
729
|
prompt: string;
|
|
1880
730
|
deferrableToCallee: boolean;
|
|
1881
731
|
options?: string[] | undefined;
|
|
@@ -1915,8 +765,8 @@ declare const CallPlan: z.ZodObject<{
|
|
|
1915
765
|
} | {
|
|
1916
766
|
kind: "endCall";
|
|
1917
767
|
} | {
|
|
1918
|
-
text: string;
|
|
1919
768
|
kind: "say";
|
|
769
|
+
text: string;
|
|
1920
770
|
};
|
|
1921
771
|
on: {
|
|
1922
772
|
kind: "regex";
|
|
@@ -2007,15 +857,15 @@ declare const CallPlan: z.ZodObject<{
|
|
|
2007
857
|
}[] | undefined;
|
|
2008
858
|
} | undefined;
|
|
2009
859
|
openQuestions?: {
|
|
2010
|
-
id: string;
|
|
2011
860
|
kind: "decision" | "auth" | "fact";
|
|
861
|
+
id: string;
|
|
2012
862
|
prompt: string;
|
|
2013
863
|
options?: string[] | undefined;
|
|
2014
864
|
deferrableToCallee?: boolean | undefined;
|
|
2015
865
|
}[] | undefined;
|
|
2016
866
|
unresolvedQuestions?: {
|
|
2017
|
-
id: string;
|
|
2018
867
|
kind: "decision" | "auth" | "fact";
|
|
868
|
+
id: string;
|
|
2019
869
|
prompt: string;
|
|
2020
870
|
options?: string[] | undefined;
|
|
2021
871
|
deferrableToCallee?: boolean | undefined;
|
|
@@ -2033,13 +883,13 @@ declare const RelevantContext: z.ZodObject<{
|
|
|
2033
883
|
account: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2034
884
|
platform: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2035
885
|
}, "strip", z.ZodTypeAny, {
|
|
2036
|
-
call: Record<string, unknown>;
|
|
2037
886
|
caller: Record<string, unknown>;
|
|
887
|
+
call: Record<string, unknown>;
|
|
2038
888
|
account: Record<string, unknown>;
|
|
2039
889
|
platform: Record<string, unknown>;
|
|
2040
890
|
}, {
|
|
2041
|
-
call: Record<string, unknown>;
|
|
2042
891
|
caller: Record<string, unknown>;
|
|
892
|
+
call: Record<string, unknown>;
|
|
2043
893
|
account: Record<string, unknown>;
|
|
2044
894
|
platform: Record<string, unknown>;
|
|
2045
895
|
}>;
|
|
@@ -2097,10 +947,10 @@ declare const DeleteCallerResponse: z.ZodObject<{
|
|
|
2097
947
|
scopesPurged: z.ZodArray<z.ZodEnum<["call", "caller", "account", "platform"]>, "many">;
|
|
2098
948
|
}, "strip", z.ZodTypeAny, {
|
|
2099
949
|
ok: true;
|
|
2100
|
-
scopesPurged: ("
|
|
950
|
+
scopesPurged: ("caller" | "call" | "account" | "platform")[];
|
|
2101
951
|
}, {
|
|
2102
952
|
ok: true;
|
|
2103
|
-
scopesPurged: ("
|
|
953
|
+
scopesPurged: ("caller" | "call" | "account" | "platform")[];
|
|
2104
954
|
}>;
|
|
2105
955
|
type DeleteCallerResponse = z.infer<typeof DeleteCallerResponse>;
|
|
2106
956
|
|
|
@@ -2411,11 +1261,11 @@ declare const AgentConfig$1: z.ZodObject<{
|
|
|
2411
1261
|
kind: z.ZodLiteral<"say">;
|
|
2412
1262
|
text: z.ZodString;
|
|
2413
1263
|
}, "strip", z.ZodTypeAny, {
|
|
2414
|
-
text: string;
|
|
2415
1264
|
kind: "say";
|
|
2416
|
-
}, {
|
|
2417
1265
|
text: string;
|
|
1266
|
+
}, {
|
|
2418
1267
|
kind: "say";
|
|
1268
|
+
text: string;
|
|
2419
1269
|
}>]>;
|
|
2420
1270
|
onlyWhile: z.ZodOptional<z.ZodString>;
|
|
2421
1271
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2424,8 +1274,8 @@ declare const AgentConfig$1: z.ZodObject<{
|
|
|
2424
1274
|
} | {
|
|
2425
1275
|
kind: "endCall";
|
|
2426
1276
|
} | {
|
|
2427
|
-
text: string;
|
|
2428
1277
|
kind: "say";
|
|
1278
|
+
text: string;
|
|
2429
1279
|
};
|
|
2430
1280
|
on: {
|
|
2431
1281
|
kind: "regex";
|
|
@@ -2442,8 +1292,8 @@ declare const AgentConfig$1: z.ZodObject<{
|
|
|
2442
1292
|
} | {
|
|
2443
1293
|
kind: "endCall";
|
|
2444
1294
|
} | {
|
|
2445
|
-
text: string;
|
|
2446
1295
|
kind: "say";
|
|
1296
|
+
text: string;
|
|
2447
1297
|
};
|
|
2448
1298
|
on: {
|
|
2449
1299
|
kind: "regex";
|
|
@@ -2533,8 +1383,8 @@ declare const AgentConfig$1: z.ZodObject<{
|
|
|
2533
1383
|
} | {
|
|
2534
1384
|
kind: "endCall";
|
|
2535
1385
|
} | {
|
|
2536
|
-
text: string;
|
|
2537
1386
|
kind: "say";
|
|
1387
|
+
text: string;
|
|
2538
1388
|
};
|
|
2539
1389
|
on: {
|
|
2540
1390
|
kind: "regex";
|
|
@@ -2623,8 +1473,8 @@ declare const AgentConfig$1: z.ZodObject<{
|
|
|
2623
1473
|
} | {
|
|
2624
1474
|
kind: "endCall";
|
|
2625
1475
|
} | {
|
|
2626
|
-
text: string;
|
|
2627
1476
|
kind: "say";
|
|
1477
|
+
text: string;
|
|
2628
1478
|
};
|
|
2629
1479
|
on: {
|
|
2630
1480
|
kind: "regex";
|
|
@@ -2767,14 +1617,14 @@ declare const ConnectorUpFrame: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
2767
1617
|
code: z.ZodEnum<["upstream_timeout", "upstream_error", "bad_response", "normalize_failed", "unreachable"]>;
|
|
2768
1618
|
message: z.ZodString;
|
|
2769
1619
|
}, "strip", z.ZodTypeAny, {
|
|
2770
|
-
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
2771
1620
|
message: string;
|
|
2772
1621
|
kind: "brain.error";
|
|
1622
|
+
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
2773
1623
|
streamId: string;
|
|
2774
1624
|
}, {
|
|
2775
|
-
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
2776
1625
|
message: string;
|
|
2777
1626
|
kind: "brain.error";
|
|
1627
|
+
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
2778
1628
|
streamId: string;
|
|
2779
1629
|
}>]>;
|
|
2780
1630
|
type ConnectorUpFrame = z.infer<typeof ConnectorUpFrame>;
|
|
@@ -3053,7 +1903,7 @@ declare class AgentsClient {
|
|
|
3053
1903
|
routes?: Record<string, string> | undefined;
|
|
3054
1904
|
} | undefined;
|
|
3055
1905
|
memory?: {
|
|
3056
|
-
scope?: "
|
|
1906
|
+
scope?: "caller" | "call" | "account" | "participant" | "platform" | undefined;
|
|
3057
1907
|
retentionDays?: number | undefined;
|
|
3058
1908
|
piiFields?: string[] | undefined;
|
|
3059
1909
|
} | undefined;
|
|
@@ -3091,18 +1941,18 @@ declare class AgentsClient {
|
|
|
3091
1941
|
program?: {
|
|
3092
1942
|
v: 1;
|
|
3093
1943
|
id: string;
|
|
3094
|
-
entry: string[];
|
|
3095
1944
|
nodes: Record<string, {
|
|
3096
|
-
type: "code" | "
|
|
1945
|
+
type: "code" | "start" | "say" | "ask" | "confirm" | "tool" | "decision" | "handoff" | "end" | "trigger" | "gate" | "playbook" | "menu" | "set" | "subflow" | "llm" | "rag" | "memory" | "speech" | "classify" | "router" | "note";
|
|
3097
1946
|
id: string;
|
|
3098
1947
|
config: Record<string, unknown>;
|
|
3099
1948
|
out: {
|
|
3100
1949
|
to: string;
|
|
3101
|
-
condition?: string | undefined;
|
|
3102
1950
|
sourceHandle?: string | undefined;
|
|
3103
1951
|
label?: string | undefined;
|
|
1952
|
+
condition?: string | undefined;
|
|
3104
1953
|
}[];
|
|
3105
1954
|
}>;
|
|
1955
|
+
entry: string[];
|
|
3106
1956
|
completionGate: {
|
|
3107
1957
|
requiredFields: string[];
|
|
3108
1958
|
};
|