@voiceflow/dtos-interact 1.17.0 → 1.17.2-2c0101ccec.712
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/build/cjs/text/text.dto.d.ts +54 -1
- package/build/cjs/text/text.dto.d.ts.map +1 -1
- package/build/cjs/text/text.dto.js +29 -2
- package/build/cjs/text/text.dto.js.map +1 -1
- package/build/cjs/trace/any.dto.d.ts +209 -13
- package/build/cjs/trace/any.dto.d.ts.map +1 -1
- package/build/cjs/trace/card.dto.d.ts +7 -7
- package/build/cjs/trace/carousel.dto.d.ts +8 -8
- package/build/cjs/trace/completion.dto.d.ts +2 -1
- package/build/cjs/trace/completion.dto.d.ts.map +1 -1
- package/build/cjs/trace/completion.dto.js.map +1 -1
- package/build/cjs/trace/debug.dto.d.ts +395 -0
- package/build/cjs/trace/debug.dto.d.ts.map +1 -1
- package/build/cjs/trace/debug.dto.js +56 -1
- package/build/cjs/trace/debug.dto.js.map +1 -1
- package/build/cjs/trace/text.dto.d.ts +4 -4
- package/build/cjs/widget-settings/widget-settings.dto.d.ts +6 -6
- package/build/esm/text/text.dto.d.ts +54 -1
- package/build/esm/text/text.dto.d.ts.map +1 -1
- package/build/esm/text/text.dto.js +26 -1
- package/build/esm/text/text.dto.js.map +1 -1
- package/build/esm/trace/any.dto.d.ts +209 -13
- package/build/esm/trace/any.dto.d.ts.map +1 -1
- package/build/esm/trace/card.dto.d.ts +7 -7
- package/build/esm/trace/carousel.dto.d.ts +8 -8
- package/build/esm/trace/completion.dto.d.ts +2 -1
- package/build/esm/trace/completion.dto.d.ts.map +1 -1
- package/build/esm/trace/completion.dto.js.map +1 -1
- package/build/esm/trace/debug.dto.d.ts +395 -0
- package/build/esm/trace/debug.dto.d.ts.map +1 -1
- package/build/esm/trace/debug.dto.js +55 -0
- package/build/esm/trace/debug.dto.js.map +1 -1
- package/build/esm/trace/text.dto.d.ts +4 -4
- package/build/esm/widget-settings/widget-settings.dto.d.ts +6 -6
- package/package.json +2 -2
|
@@ -1,4 +1,203 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Enum } from '../utils/enum.util.js';
|
|
3
|
+
export declare const DebugTraceRefType: {
|
|
4
|
+
readonly NODE: "node";
|
|
5
|
+
readonly AGENT: "agent";
|
|
6
|
+
readonly PROMPT: "prompt";
|
|
7
|
+
readonly FUNCTION: "function";
|
|
8
|
+
readonly API_TOOL: "api-tool";
|
|
9
|
+
readonly INTEGRATION_TOOL: "integration-tool";
|
|
10
|
+
};
|
|
11
|
+
export type DebugTraceRefType = Enum<typeof DebugTraceRefType>;
|
|
12
|
+
export declare const DebugTraceLevelType: {
|
|
13
|
+
readonly FATAL: "fatal";
|
|
14
|
+
readonly ERROR: "error";
|
|
15
|
+
readonly WARN: "warn";
|
|
16
|
+
readonly INFO: "info";
|
|
17
|
+
readonly DEBUG: "debug";
|
|
18
|
+
};
|
|
19
|
+
export type DebugTraceLevelType = Enum<typeof DebugTraceLevelType>;
|
|
20
|
+
export declare const DebugTraceBaseRefDTO: z.ZodObject<{
|
|
21
|
+
type: z.ZodNativeEnum<{
|
|
22
|
+
readonly NODE: "node";
|
|
23
|
+
readonly AGENT: "agent";
|
|
24
|
+
readonly PROMPT: "prompt";
|
|
25
|
+
readonly FUNCTION: "function";
|
|
26
|
+
readonly API_TOOL: "api-tool";
|
|
27
|
+
readonly INTEGRATION_TOOL: "integration-tool";
|
|
28
|
+
}>;
|
|
29
|
+
versionID: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type: "function" | "node" | "agent" | "prompt" | "api-tool" | "integration-tool";
|
|
32
|
+
versionID: string;
|
|
33
|
+
}, {
|
|
34
|
+
type: "function" | "node" | "agent" | "prompt" | "api-tool" | "integration-tool";
|
|
35
|
+
versionID: string;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const DebugTraceNodeRefDTO: z.ZodObject<{
|
|
38
|
+
versionID: z.ZodString;
|
|
39
|
+
type: z.ZodLiteral<"node">;
|
|
40
|
+
nodeID: z.ZodString;
|
|
41
|
+
diagramID: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
type: "node";
|
|
44
|
+
diagramID: string;
|
|
45
|
+
versionID: string;
|
|
46
|
+
nodeID: string;
|
|
47
|
+
}, {
|
|
48
|
+
type: "node";
|
|
49
|
+
diagramID: string;
|
|
50
|
+
versionID: string;
|
|
51
|
+
nodeID: string;
|
|
52
|
+
}>;
|
|
53
|
+
export type DebugTraceNodeRef = z.infer<typeof DebugTraceNodeRefDTO>;
|
|
54
|
+
export declare const DebugTraceAgentRefDTO: z.ZodObject<{
|
|
55
|
+
versionID: z.ZodString;
|
|
56
|
+
type: z.ZodLiteral<"agent">;
|
|
57
|
+
agentID: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: "agent";
|
|
60
|
+
versionID: string;
|
|
61
|
+
agentID: string;
|
|
62
|
+
}, {
|
|
63
|
+
type: "agent";
|
|
64
|
+
versionID: string;
|
|
65
|
+
agentID: string;
|
|
66
|
+
}>;
|
|
67
|
+
export type DebugTraceAgentRef = z.infer<typeof DebugTraceAgentRefDTO>;
|
|
68
|
+
export declare const DebugTraceAPIToolRefDTO: z.ZodObject<{
|
|
69
|
+
versionID: z.ZodString;
|
|
70
|
+
type: z.ZodLiteral<"api-tool">;
|
|
71
|
+
apiToolID: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
type: "api-tool";
|
|
74
|
+
versionID: string;
|
|
75
|
+
apiToolID: string;
|
|
76
|
+
}, {
|
|
77
|
+
type: "api-tool";
|
|
78
|
+
versionID: string;
|
|
79
|
+
apiToolID: string;
|
|
80
|
+
}>;
|
|
81
|
+
export type DebugTraceAPIToolRef = z.infer<typeof DebugTraceAPIToolRefDTO>;
|
|
82
|
+
export declare const DebugTraceIntegrationToolRefDTO: z.ZodObject<{
|
|
83
|
+
versionID: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
85
|
+
integrationToolID: z.ZodString;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
type: "integration-tool";
|
|
88
|
+
versionID: string;
|
|
89
|
+
integrationToolID: string;
|
|
90
|
+
}, {
|
|
91
|
+
type: "integration-tool";
|
|
92
|
+
versionID: string;
|
|
93
|
+
integrationToolID: string;
|
|
94
|
+
}>;
|
|
95
|
+
export type DebugTraceIntegrationToolRef = z.infer<typeof DebugTraceIntegrationToolRefDTO>;
|
|
96
|
+
export declare const DebugTraceFunctionRefDTO: z.ZodObject<{
|
|
97
|
+
versionID: z.ZodString;
|
|
98
|
+
type: z.ZodLiteral<"function">;
|
|
99
|
+
functionID: z.ZodString;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
type: "function";
|
|
102
|
+
versionID: string;
|
|
103
|
+
functionID: string;
|
|
104
|
+
}, {
|
|
105
|
+
type: "function";
|
|
106
|
+
versionID: string;
|
|
107
|
+
functionID: string;
|
|
108
|
+
}>;
|
|
109
|
+
export type DebugTraceFunctionRef = z.infer<typeof DebugTraceFunctionRefDTO>;
|
|
110
|
+
export declare const DebugTracePromptRefDTO: z.ZodObject<{
|
|
111
|
+
versionID: z.ZodString;
|
|
112
|
+
type: z.ZodLiteral<"prompt">;
|
|
113
|
+
promptID: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
type: "prompt";
|
|
116
|
+
versionID: string;
|
|
117
|
+
promptID: string;
|
|
118
|
+
}, {
|
|
119
|
+
type: "prompt";
|
|
120
|
+
versionID: string;
|
|
121
|
+
promptID: string;
|
|
122
|
+
}>;
|
|
123
|
+
export type DebugTracePromptRef = z.infer<typeof DebugTracePromptRefDTO>;
|
|
124
|
+
export declare const DebugTraceRefDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
125
|
+
versionID: z.ZodString;
|
|
126
|
+
type: z.ZodLiteral<"node">;
|
|
127
|
+
nodeID: z.ZodString;
|
|
128
|
+
diagramID: z.ZodString;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
type: "node";
|
|
131
|
+
diagramID: string;
|
|
132
|
+
versionID: string;
|
|
133
|
+
nodeID: string;
|
|
134
|
+
}, {
|
|
135
|
+
type: "node";
|
|
136
|
+
diagramID: string;
|
|
137
|
+
versionID: string;
|
|
138
|
+
nodeID: string;
|
|
139
|
+
}>, z.ZodObject<{
|
|
140
|
+
versionID: z.ZodString;
|
|
141
|
+
type: z.ZodLiteral<"agent">;
|
|
142
|
+
agentID: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
type: "agent";
|
|
145
|
+
versionID: string;
|
|
146
|
+
agentID: string;
|
|
147
|
+
}, {
|
|
148
|
+
type: "agent";
|
|
149
|
+
versionID: string;
|
|
150
|
+
agentID: string;
|
|
151
|
+
}>, z.ZodObject<{
|
|
152
|
+
versionID: z.ZodString;
|
|
153
|
+
type: z.ZodLiteral<"prompt">;
|
|
154
|
+
promptID: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
type: "prompt";
|
|
157
|
+
versionID: string;
|
|
158
|
+
promptID: string;
|
|
159
|
+
}, {
|
|
160
|
+
type: "prompt";
|
|
161
|
+
versionID: string;
|
|
162
|
+
promptID: string;
|
|
163
|
+
}>, z.ZodObject<{
|
|
164
|
+
versionID: z.ZodString;
|
|
165
|
+
type: z.ZodLiteral<"api-tool">;
|
|
166
|
+
apiToolID: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
type: "api-tool";
|
|
169
|
+
versionID: string;
|
|
170
|
+
apiToolID: string;
|
|
171
|
+
}, {
|
|
172
|
+
type: "api-tool";
|
|
173
|
+
versionID: string;
|
|
174
|
+
apiToolID: string;
|
|
175
|
+
}>, z.ZodObject<{
|
|
176
|
+
versionID: z.ZodString;
|
|
177
|
+
type: z.ZodLiteral<"function">;
|
|
178
|
+
functionID: z.ZodString;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
type: "function";
|
|
181
|
+
versionID: string;
|
|
182
|
+
functionID: string;
|
|
183
|
+
}, {
|
|
184
|
+
type: "function";
|
|
185
|
+
versionID: string;
|
|
186
|
+
functionID: string;
|
|
187
|
+
}>, z.ZodObject<{
|
|
188
|
+
versionID: z.ZodString;
|
|
189
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
190
|
+
integrationToolID: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
type: "integration-tool";
|
|
193
|
+
versionID: string;
|
|
194
|
+
integrationToolID: string;
|
|
195
|
+
}, {
|
|
196
|
+
type: "integration-tool";
|
|
197
|
+
versionID: string;
|
|
198
|
+
integrationToolID: string;
|
|
199
|
+
}>]>;
|
|
200
|
+
export type DebugTraceRef = z.infer<typeof DebugTraceRefDTO>;
|
|
2
201
|
export declare const DebugTraceDTO: z.ZodObject<{
|
|
3
202
|
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4
203
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -34,20 +233,188 @@ export declare const DebugTraceDTO: z.ZodObject<{
|
|
|
34
233
|
time: z.ZodOptional<z.ZodNumber>;
|
|
35
234
|
type: z.ZodLiteral<"debug">;
|
|
36
235
|
payload: z.ZodObject<{
|
|
236
|
+
ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
237
|
+
versionID: z.ZodString;
|
|
238
|
+
type: z.ZodLiteral<"node">;
|
|
239
|
+
nodeID: z.ZodString;
|
|
240
|
+
diagramID: z.ZodString;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
type: "node";
|
|
243
|
+
diagramID: string;
|
|
244
|
+
versionID: string;
|
|
245
|
+
nodeID: string;
|
|
246
|
+
}, {
|
|
247
|
+
type: "node";
|
|
248
|
+
diagramID: string;
|
|
249
|
+
versionID: string;
|
|
250
|
+
nodeID: string;
|
|
251
|
+
}>, z.ZodObject<{
|
|
252
|
+
versionID: z.ZodString;
|
|
253
|
+
type: z.ZodLiteral<"agent">;
|
|
254
|
+
agentID: z.ZodString;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
type: "agent";
|
|
257
|
+
versionID: string;
|
|
258
|
+
agentID: string;
|
|
259
|
+
}, {
|
|
260
|
+
type: "agent";
|
|
261
|
+
versionID: string;
|
|
262
|
+
agentID: string;
|
|
263
|
+
}>, z.ZodObject<{
|
|
264
|
+
versionID: z.ZodString;
|
|
265
|
+
type: z.ZodLiteral<"prompt">;
|
|
266
|
+
promptID: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
type: "prompt";
|
|
269
|
+
versionID: string;
|
|
270
|
+
promptID: string;
|
|
271
|
+
}, {
|
|
272
|
+
type: "prompt";
|
|
273
|
+
versionID: string;
|
|
274
|
+
promptID: string;
|
|
275
|
+
}>, z.ZodObject<{
|
|
276
|
+
versionID: z.ZodString;
|
|
277
|
+
type: z.ZodLiteral<"api-tool">;
|
|
278
|
+
apiToolID: z.ZodString;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
type: "api-tool";
|
|
281
|
+
versionID: string;
|
|
282
|
+
apiToolID: string;
|
|
283
|
+
}, {
|
|
284
|
+
type: "api-tool";
|
|
285
|
+
versionID: string;
|
|
286
|
+
apiToolID: string;
|
|
287
|
+
}>, z.ZodObject<{
|
|
288
|
+
versionID: z.ZodString;
|
|
289
|
+
type: z.ZodLiteral<"function">;
|
|
290
|
+
functionID: z.ZodString;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
type: "function";
|
|
293
|
+
versionID: string;
|
|
294
|
+
functionID: string;
|
|
295
|
+
}, {
|
|
296
|
+
type: "function";
|
|
297
|
+
versionID: string;
|
|
298
|
+
functionID: string;
|
|
299
|
+
}>, z.ZodObject<{
|
|
300
|
+
versionID: z.ZodString;
|
|
301
|
+
type: z.ZodLiteral<"integration-tool">;
|
|
302
|
+
integrationToolID: z.ZodString;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
type: "integration-tool";
|
|
305
|
+
versionID: string;
|
|
306
|
+
integrationToolID: string;
|
|
307
|
+
}, {
|
|
308
|
+
type: "integration-tool";
|
|
309
|
+
versionID: string;
|
|
310
|
+
integrationToolID: string;
|
|
311
|
+
}>]>>;
|
|
37
312
|
type: z.ZodOptional<z.ZodString>;
|
|
313
|
+
level: z.ZodOptional<z.ZodNativeEnum<{
|
|
314
|
+
readonly FATAL: "fatal";
|
|
315
|
+
readonly ERROR: "error";
|
|
316
|
+
readonly WARN: "warn";
|
|
317
|
+
readonly INFO: "info";
|
|
318
|
+
readonly DEBUG: "debug";
|
|
319
|
+
}>>;
|
|
38
320
|
message: z.ZodString;
|
|
321
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
322
|
}, "strip", z.ZodTypeAny, {
|
|
40
323
|
message: string;
|
|
324
|
+
ref?: {
|
|
325
|
+
type: "node";
|
|
326
|
+
diagramID: string;
|
|
327
|
+
versionID: string;
|
|
328
|
+
nodeID: string;
|
|
329
|
+
} | {
|
|
330
|
+
type: "agent";
|
|
331
|
+
versionID: string;
|
|
332
|
+
agentID: string;
|
|
333
|
+
} | {
|
|
334
|
+
type: "api-tool";
|
|
335
|
+
versionID: string;
|
|
336
|
+
apiToolID: string;
|
|
337
|
+
} | {
|
|
338
|
+
type: "integration-tool";
|
|
339
|
+
versionID: string;
|
|
340
|
+
integrationToolID: string;
|
|
341
|
+
} | {
|
|
342
|
+
type: "function";
|
|
343
|
+
versionID: string;
|
|
344
|
+
functionID: string;
|
|
345
|
+
} | {
|
|
346
|
+
type: "prompt";
|
|
347
|
+
versionID: string;
|
|
348
|
+
promptID: string;
|
|
349
|
+
} | undefined;
|
|
41
350
|
type?: string | undefined;
|
|
351
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
352
|
+
metadata?: Record<string, unknown> | undefined;
|
|
42
353
|
}, {
|
|
43
354
|
message: string;
|
|
355
|
+
ref?: {
|
|
356
|
+
type: "node";
|
|
357
|
+
diagramID: string;
|
|
358
|
+
versionID: string;
|
|
359
|
+
nodeID: string;
|
|
360
|
+
} | {
|
|
361
|
+
type: "agent";
|
|
362
|
+
versionID: string;
|
|
363
|
+
agentID: string;
|
|
364
|
+
} | {
|
|
365
|
+
type: "api-tool";
|
|
366
|
+
versionID: string;
|
|
367
|
+
apiToolID: string;
|
|
368
|
+
} | {
|
|
369
|
+
type: "integration-tool";
|
|
370
|
+
versionID: string;
|
|
371
|
+
integrationToolID: string;
|
|
372
|
+
} | {
|
|
373
|
+
type: "function";
|
|
374
|
+
versionID: string;
|
|
375
|
+
functionID: string;
|
|
376
|
+
} | {
|
|
377
|
+
type: "prompt";
|
|
378
|
+
versionID: string;
|
|
379
|
+
promptID: string;
|
|
380
|
+
} | undefined;
|
|
44
381
|
type?: string | undefined;
|
|
382
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
383
|
+
metadata?: Record<string, unknown> | undefined;
|
|
45
384
|
}>;
|
|
46
385
|
}, "strip", z.ZodTypeAny, {
|
|
47
386
|
type: "debug";
|
|
48
387
|
payload: {
|
|
49
388
|
message: string;
|
|
389
|
+
ref?: {
|
|
390
|
+
type: "node";
|
|
391
|
+
diagramID: string;
|
|
392
|
+
versionID: string;
|
|
393
|
+
nodeID: string;
|
|
394
|
+
} | {
|
|
395
|
+
type: "agent";
|
|
396
|
+
versionID: string;
|
|
397
|
+
agentID: string;
|
|
398
|
+
} | {
|
|
399
|
+
type: "api-tool";
|
|
400
|
+
versionID: string;
|
|
401
|
+
apiToolID: string;
|
|
402
|
+
} | {
|
|
403
|
+
type: "integration-tool";
|
|
404
|
+
versionID: string;
|
|
405
|
+
integrationToolID: string;
|
|
406
|
+
} | {
|
|
407
|
+
type: "function";
|
|
408
|
+
versionID: string;
|
|
409
|
+
functionID: string;
|
|
410
|
+
} | {
|
|
411
|
+
type: "prompt";
|
|
412
|
+
versionID: string;
|
|
413
|
+
promptID: string;
|
|
414
|
+
} | undefined;
|
|
50
415
|
type?: string | undefined;
|
|
416
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
417
|
+
metadata?: Record<string, unknown> | undefined;
|
|
51
418
|
};
|
|
52
419
|
paths?: {
|
|
53
420
|
label?: string | undefined;
|
|
@@ -63,7 +430,35 @@ export declare const DebugTraceDTO: z.ZodObject<{
|
|
|
63
430
|
type: "debug";
|
|
64
431
|
payload: {
|
|
65
432
|
message: string;
|
|
433
|
+
ref?: {
|
|
434
|
+
type: "node";
|
|
435
|
+
diagramID: string;
|
|
436
|
+
versionID: string;
|
|
437
|
+
nodeID: string;
|
|
438
|
+
} | {
|
|
439
|
+
type: "agent";
|
|
440
|
+
versionID: string;
|
|
441
|
+
agentID: string;
|
|
442
|
+
} | {
|
|
443
|
+
type: "api-tool";
|
|
444
|
+
versionID: string;
|
|
445
|
+
apiToolID: string;
|
|
446
|
+
} | {
|
|
447
|
+
type: "integration-tool";
|
|
448
|
+
versionID: string;
|
|
449
|
+
integrationToolID: string;
|
|
450
|
+
} | {
|
|
451
|
+
type: "function";
|
|
452
|
+
versionID: string;
|
|
453
|
+
functionID: string;
|
|
454
|
+
} | {
|
|
455
|
+
type: "prompt";
|
|
456
|
+
versionID: string;
|
|
457
|
+
promptID: string;
|
|
458
|
+
} | undefined;
|
|
66
459
|
type?: string | undefined;
|
|
460
|
+
level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
|
|
461
|
+
metadata?: Record<string, unknown> | undefined;
|
|
67
462
|
};
|
|
68
463
|
paths?: {
|
|
69
464
|
label?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/debug.dto.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AC,CAAC;AAE7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAGjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO3B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,11 +1,66 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { TraceType } from './trace-type.enum.js';
|
|
3
3
|
import { BaseTraceDTO } from './utils.dto.js';
|
|
4
|
+
export const DebugTraceRefType = {
|
|
5
|
+
NODE: 'node',
|
|
6
|
+
AGENT: 'agent',
|
|
7
|
+
PROMPT: 'prompt',
|
|
8
|
+
FUNCTION: 'function',
|
|
9
|
+
API_TOOL: 'api-tool',
|
|
10
|
+
INTEGRATION_TOOL: 'integration-tool',
|
|
11
|
+
};
|
|
12
|
+
export const DebugTraceLevelType = {
|
|
13
|
+
FATAL: 'fatal',
|
|
14
|
+
ERROR: 'error',
|
|
15
|
+
WARN: 'warn',
|
|
16
|
+
INFO: 'info',
|
|
17
|
+
DEBUG: 'debug',
|
|
18
|
+
};
|
|
19
|
+
export const DebugTraceBaseRefDTO = z.object({
|
|
20
|
+
type: z.nativeEnum(DebugTraceRefType),
|
|
21
|
+
versionID: z.string(),
|
|
22
|
+
});
|
|
23
|
+
export const DebugTraceNodeRefDTO = DebugTraceBaseRefDTO.extend({
|
|
24
|
+
type: z.literal(DebugTraceRefType.NODE),
|
|
25
|
+
nodeID: z.string(),
|
|
26
|
+
diagramID: z.string(),
|
|
27
|
+
});
|
|
28
|
+
export const DebugTraceAgentRefDTO = DebugTraceBaseRefDTO.extend({
|
|
29
|
+
type: z.literal(DebugTraceRefType.AGENT),
|
|
30
|
+
agentID: z.string(),
|
|
31
|
+
});
|
|
32
|
+
export const DebugTraceAPIToolRefDTO = DebugTraceBaseRefDTO.extend({
|
|
33
|
+
type: z.literal(DebugTraceRefType.API_TOOL),
|
|
34
|
+
apiToolID: z.string(),
|
|
35
|
+
});
|
|
36
|
+
export const DebugTraceIntegrationToolRefDTO = DebugTraceBaseRefDTO.extend({
|
|
37
|
+
type: z.literal(DebugTraceRefType.INTEGRATION_TOOL),
|
|
38
|
+
integrationToolID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
export const DebugTraceFunctionRefDTO = DebugTraceBaseRefDTO.extend({
|
|
41
|
+
type: z.literal(DebugTraceRefType.FUNCTION),
|
|
42
|
+
functionID: z.string(),
|
|
43
|
+
});
|
|
44
|
+
export const DebugTracePromptRefDTO = DebugTraceBaseRefDTO.extend({
|
|
45
|
+
type: z.literal(DebugTraceRefType.PROMPT),
|
|
46
|
+
promptID: z.string(),
|
|
47
|
+
});
|
|
48
|
+
export const DebugTraceRefDTO = z.discriminatedUnion('type', [
|
|
49
|
+
DebugTraceNodeRefDTO,
|
|
50
|
+
DebugTraceAgentRefDTO,
|
|
51
|
+
DebugTracePromptRefDTO,
|
|
52
|
+
DebugTraceAPIToolRefDTO,
|
|
53
|
+
DebugTraceFunctionRefDTO,
|
|
54
|
+
DebugTraceIntegrationToolRefDTO,
|
|
55
|
+
]);
|
|
4
56
|
export const DebugTraceDTO = BaseTraceDTO.extend({
|
|
5
57
|
type: z.literal(TraceType.DEBUG),
|
|
6
58
|
payload: z.object({
|
|
59
|
+
ref: DebugTraceRefDTO.optional(),
|
|
7
60
|
type: z.string().optional(),
|
|
61
|
+
level: z.nativeEnum(DebugTraceLevelType).optional(),
|
|
8
62
|
message: z.string(),
|
|
63
|
+
metadata: z.record(z.unknown()).optional(),
|
|
9
64
|
}),
|
|
10
65
|
});
|
|
11
66
|
//# sourceMappingURL=debug.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.dto.js","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"debug.dto.js","sourceRoot":"","sources":["../../../src/trace/debug.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAIX,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;I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AC,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3D,oBAAoB;IACpB,qBAAqB;IACrB,sBAAsB;IACtB,uBAAuB;IACvB,wBAAwB;IACxB,+BAA+B;CAChC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,GAAG,EAAE,gBAAgB,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,QAAQ,EAAE;QACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC3C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -38,9 +38,9 @@ export declare const TextTraceDTO: z.ZodObject<{
|
|
|
38
38
|
ai: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
slate: z.ZodObject<{
|
|
40
40
|
id: z.ZodString;
|
|
41
|
-
content: z.ZodArray<z.ZodAny, "many">;
|
|
41
|
+
content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement, any>, "many">;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
content:
|
|
43
|
+
content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
|
|
44
44
|
id: string;
|
|
45
45
|
}, {
|
|
46
46
|
content: any[];
|
|
@@ -58,7 +58,7 @@ export declare const TextTraceDTO: z.ZodObject<{
|
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
message: string;
|
|
60
60
|
slate: {
|
|
61
|
-
content:
|
|
61
|
+
content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
|
|
62
62
|
id: string;
|
|
63
63
|
};
|
|
64
64
|
ai?: boolean | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const TextTraceDTO: z.ZodObject<{
|
|
|
85
85
|
payload: {
|
|
86
86
|
message: string;
|
|
87
87
|
slate: {
|
|
88
|
-
content:
|
|
88
|
+
content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
|
|
89
89
|
id: string;
|
|
90
90
|
};
|
|
91
91
|
ai?: boolean | undefined;
|
|
@@ -535,10 +535,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
535
535
|
SESSION_STORAGE: string;
|
|
536
536
|
}>;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
fontFamily: string;
|
|
538
539
|
sideSpacing: string;
|
|
539
540
|
bottomSpacing: string;
|
|
540
541
|
position: "right" | "left";
|
|
541
|
-
fontFamily: string;
|
|
542
542
|
primaryColor: {
|
|
543
543
|
color: string;
|
|
544
544
|
palette: {
|
|
@@ -567,10 +567,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
567
567
|
};
|
|
568
568
|
persistence: string;
|
|
569
569
|
}, {
|
|
570
|
+
fontFamily: string;
|
|
570
571
|
sideSpacing: string;
|
|
571
572
|
bottomSpacing: string;
|
|
572
573
|
position: "right" | "left";
|
|
573
|
-
fontFamily: string;
|
|
574
574
|
primaryColor: {
|
|
575
575
|
color: string;
|
|
576
576
|
palette: {
|
|
@@ -947,10 +947,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
947
947
|
SESSION_STORAGE: string;
|
|
948
948
|
}>;
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
fontFamily: string;
|
|
950
951
|
sideSpacing: string;
|
|
951
952
|
bottomSpacing: string;
|
|
952
953
|
position: "right" | "left";
|
|
953
|
-
fontFamily: string;
|
|
954
954
|
primaryColor: {
|
|
955
955
|
color: string;
|
|
956
956
|
palette: {
|
|
@@ -979,10 +979,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
979
979
|
};
|
|
980
980
|
persistence: string;
|
|
981
981
|
}, {
|
|
982
|
+
fontFamily: string;
|
|
982
983
|
sideSpacing: string;
|
|
983
984
|
bottomSpacing: string;
|
|
984
985
|
position: "right" | "left";
|
|
985
|
-
fontFamily: string;
|
|
986
986
|
primaryColor: {
|
|
987
987
|
color: string;
|
|
988
988
|
palette: {
|
|
@@ -1084,10 +1084,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1084
1084
|
streamingDisabled?: boolean | undefined;
|
|
1085
1085
|
};
|
|
1086
1086
|
common: {
|
|
1087
|
+
fontFamily: string;
|
|
1087
1088
|
sideSpacing: string;
|
|
1088
1089
|
bottomSpacing: string;
|
|
1089
1090
|
position: "right" | "left";
|
|
1090
|
-
fontFamily: string;
|
|
1091
1091
|
primaryColor: {
|
|
1092
1092
|
color: string;
|
|
1093
1093
|
palette: {
|
|
@@ -1171,10 +1171,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1171
1171
|
streamingDisabled?: boolean | undefined;
|
|
1172
1172
|
};
|
|
1173
1173
|
common: {
|
|
1174
|
+
fontFamily: string;
|
|
1174
1175
|
sideSpacing: string;
|
|
1175
1176
|
bottomSpacing: string;
|
|
1176
1177
|
position: "right" | "left";
|
|
1177
|
-
fontFamily: string;
|
|
1178
1178
|
primaryColor: {
|
|
1179
1179
|
color: string;
|
|
1180
1180
|
palette: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dtos-interact",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.2-2c0101ccec.712+2c0101ccec",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./build/cjs/main.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "2c0101ccec5d7159ea5a10bba0119ba802258e49"
|
|
47
47
|
}
|