@voiceflow/dtos-interact 1.60.0 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,11 +68,165 @@ export declare const CompletionTraceDTO: z.ZodObject<{
68
68
  }>, "many">>;
69
69
  delay: z.ZodOptional<z.ZodNumber>;
70
70
  messageID: z.ZodString;
71
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
72
+ type: z.ZodLiteral<"node">;
73
+ nodeID: z.ZodString;
74
+ nodeType: z.ZodString;
75
+ diagramID: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "node";
78
+ diagramID: string;
79
+ nodeID: string;
80
+ nodeType: string;
81
+ }, {
82
+ type: "node";
83
+ diagramID: string;
84
+ nodeID: string;
85
+ nodeType: string;
86
+ }>, z.ZodObject<{
87
+ type: z.ZodLiteral<"agent">;
88
+ nodeID: z.ZodString;
89
+ agentID: z.ZodString;
90
+ diagramID: z.ZodString;
91
+ agentName: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "agent";
94
+ diagramID: string;
95
+ nodeID: string;
96
+ agentID: string;
97
+ agentName?: string | undefined;
98
+ }, {
99
+ type: "agent";
100
+ diagramID: string;
101
+ nodeID: string;
102
+ agentID: string;
103
+ agentName?: string | undefined;
104
+ }>, z.ZodObject<{
105
+ type: z.ZodLiteral<"prompt">;
106
+ nodeID: z.ZodString;
107
+ promptID: z.ZodString;
108
+ diagramID: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: "prompt";
111
+ diagramID: string;
112
+ nodeID: string;
113
+ promptID: string;
114
+ }, {
115
+ type: "prompt";
116
+ diagramID: string;
117
+ nodeID: string;
118
+ promptID: string;
119
+ }>, z.ZodObject<{
120
+ type: z.ZodLiteral<"api-tool">;
121
+ nodeID: z.ZodString;
122
+ diagramID: z.ZodString;
123
+ apiToolID: z.ZodString;
124
+ apiToolName: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: "api-tool";
127
+ diagramID: string;
128
+ nodeID: string;
129
+ apiToolID: string;
130
+ apiToolName?: string | undefined;
131
+ }, {
132
+ type: "api-tool";
133
+ diagramID: string;
134
+ nodeID: string;
135
+ apiToolID: string;
136
+ apiToolName?: string | undefined;
137
+ }>, z.ZodObject<{
138
+ type: z.ZodLiteral<"function">;
139
+ nodeID: z.ZodString;
140
+ diagramID: z.ZodString;
141
+ functionID: z.ZodString;
142
+ functionName: z.ZodOptional<z.ZodString>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ type: "function";
145
+ diagramID: string;
146
+ nodeID: string;
147
+ functionID: string;
148
+ functionName?: string | undefined;
149
+ }, {
150
+ type: "function";
151
+ diagramID: string;
152
+ nodeID: string;
153
+ functionID: string;
154
+ functionName?: string | undefined;
155
+ }>, z.ZodObject<{
156
+ type: z.ZodLiteral<"integration-tool">;
157
+ nodeID: z.ZodString;
158
+ diagramID: z.ZodString;
159
+ integrationToolName: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ type: "integration-tool";
162
+ diagramID: string;
163
+ nodeID: string;
164
+ integrationToolName: string;
165
+ }, {
166
+ type: "integration-tool";
167
+ diagramID: string;
168
+ nodeID: string;
169
+ integrationToolName: string;
170
+ }>, z.ZodObject<{
171
+ type: z.ZodLiteral<"mcp-integration-tool">;
172
+ nodeID: z.ZodString;
173
+ diagramID: z.ZodString;
174
+ mcpToolName: z.ZodString;
175
+ }, "strip", z.ZodTypeAny, {
176
+ type: "mcp-integration-tool";
177
+ diagramID: string;
178
+ nodeID: string;
179
+ mcpToolName: string;
180
+ }, {
181
+ type: "mcp-integration-tool";
182
+ diagramID: string;
183
+ nodeID: string;
184
+ mcpToolName: string;
185
+ }>]>>;
71
186
  }, "strip", z.ZodTypeAny, {
72
187
  messageID: string;
73
188
  state: "start";
74
189
  ai?: boolean | undefined;
75
190
  delay?: number | undefined;
191
+ ref?: {
192
+ type: "node";
193
+ diagramID: string;
194
+ nodeID: string;
195
+ nodeType: string;
196
+ } | {
197
+ type: "agent";
198
+ diagramID: string;
199
+ nodeID: string;
200
+ agentID: string;
201
+ agentName?: string | undefined;
202
+ } | {
203
+ type: "api-tool";
204
+ diagramID: string;
205
+ nodeID: string;
206
+ apiToolID: string;
207
+ apiToolName?: string | undefined;
208
+ } | {
209
+ type: "integration-tool";
210
+ diagramID: string;
211
+ nodeID: string;
212
+ integrationToolName: string;
213
+ } | {
214
+ type: "mcp-integration-tool";
215
+ diagramID: string;
216
+ nodeID: string;
217
+ mcpToolName: string;
218
+ } | {
219
+ type: "function";
220
+ diagramID: string;
221
+ nodeID: string;
222
+ functionID: string;
223
+ functionName?: string | undefined;
224
+ } | {
225
+ type: "prompt";
226
+ diagramID: string;
227
+ nodeID: string;
228
+ promptID: string;
229
+ } | undefined;
76
230
  sourceUrls?: {
77
231
  url: string;
78
232
  name?: string | undefined;
@@ -82,6 +236,45 @@ export declare const CompletionTraceDTO: z.ZodObject<{
82
236
  state: "start";
83
237
  ai?: boolean | undefined;
84
238
  delay?: number | undefined;
239
+ ref?: {
240
+ type: "node";
241
+ diagramID: string;
242
+ nodeID: string;
243
+ nodeType: string;
244
+ } | {
245
+ type: "agent";
246
+ diagramID: string;
247
+ nodeID: string;
248
+ agentID: string;
249
+ agentName?: string | undefined;
250
+ } | {
251
+ type: "api-tool";
252
+ diagramID: string;
253
+ nodeID: string;
254
+ apiToolID: string;
255
+ apiToolName?: string | undefined;
256
+ } | {
257
+ type: "integration-tool";
258
+ diagramID: string;
259
+ nodeID: string;
260
+ integrationToolName: string;
261
+ } | {
262
+ type: "mcp-integration-tool";
263
+ diagramID: string;
264
+ nodeID: string;
265
+ mcpToolName: string;
266
+ } | {
267
+ type: "function";
268
+ diagramID: string;
269
+ nodeID: string;
270
+ functionID: string;
271
+ functionName?: string | undefined;
272
+ } | {
273
+ type: "prompt";
274
+ diagramID: string;
275
+ nodeID: string;
276
+ promptID: string;
277
+ } | undefined;
85
278
  sourceUrls?: {
86
279
  url: string;
87
280
  name?: string | undefined;
@@ -302,6 +495,45 @@ export declare const CompletionTraceDTO: z.ZodObject<{
302
495
  state: "start";
303
496
  ai?: boolean | undefined;
304
497
  delay?: number | undefined;
498
+ ref?: {
499
+ type: "node";
500
+ diagramID: string;
501
+ nodeID: string;
502
+ nodeType: string;
503
+ } | {
504
+ type: "agent";
505
+ diagramID: string;
506
+ nodeID: string;
507
+ agentID: string;
508
+ agentName?: string | undefined;
509
+ } | {
510
+ type: "api-tool";
511
+ diagramID: string;
512
+ nodeID: string;
513
+ apiToolID: string;
514
+ apiToolName?: string | undefined;
515
+ } | {
516
+ type: "integration-tool";
517
+ diagramID: string;
518
+ nodeID: string;
519
+ integrationToolName: string;
520
+ } | {
521
+ type: "mcp-integration-tool";
522
+ diagramID: string;
523
+ nodeID: string;
524
+ mcpToolName: string;
525
+ } | {
526
+ type: "function";
527
+ diagramID: string;
528
+ nodeID: string;
529
+ functionID: string;
530
+ functionName?: string | undefined;
531
+ } | {
532
+ type: "prompt";
533
+ diagramID: string;
534
+ nodeID: string;
535
+ promptID: string;
536
+ } | undefined;
305
537
  sourceUrls?: {
306
538
  url: string;
307
539
  name?: string | undefined;
@@ -372,6 +604,45 @@ export declare const CompletionTraceDTO: z.ZodObject<{
372
604
  state: "start";
373
605
  ai?: boolean | undefined;
374
606
  delay?: number | undefined;
607
+ ref?: {
608
+ type: "node";
609
+ diagramID: string;
610
+ nodeID: string;
611
+ nodeType: string;
612
+ } | {
613
+ type: "agent";
614
+ diagramID: string;
615
+ nodeID: string;
616
+ agentID: string;
617
+ agentName?: string | undefined;
618
+ } | {
619
+ type: "api-tool";
620
+ diagramID: string;
621
+ nodeID: string;
622
+ apiToolID: string;
623
+ apiToolName?: string | undefined;
624
+ } | {
625
+ type: "integration-tool";
626
+ diagramID: string;
627
+ nodeID: string;
628
+ integrationToolName: string;
629
+ } | {
630
+ type: "mcp-integration-tool";
631
+ diagramID: string;
632
+ nodeID: string;
633
+ mcpToolName: string;
634
+ } | {
635
+ type: "function";
636
+ diagramID: string;
637
+ nodeID: string;
638
+ functionID: string;
639
+ functionName?: string | undefined;
640
+ } | {
641
+ type: "prompt";
642
+ diagramID: string;
643
+ nodeID: string;
644
+ promptID: string;
645
+ } | undefined;
375
646
  sourceUrls?: {
376
647
  url: string;
377
648
  name?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"completion.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAM9C,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AA2B3D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"completion.dto.d.ts","sourceR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6 +21,7 @@ const CompletionStartStateDTO = zod_1.z.object({
21
21
  .optional(),
22
22
  delay: zod_1.z.number().optional(),
23
23
  messageID: zod_1.z.string(),
24
+ ref: debug_dto_1.DebugTraceRefDTO.optional(),
24
25
  });
25
26
  const CompletionContentStateDTO = zod_1.z.object({
26
27
  state: zod_1.z.literal(exports.CompletionState.CONTENT),
@@ -1 +1 @@
1
- {"version":3,"file":"completion.dto.js","sourceRoot":"","sources":["../../../src/trace/completion.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,2CAA+C;AAC/C,uDAA8C;AAC9C,2CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AAIX,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAe,CAAC,KAAK,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC;SACV,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC,CACH;SACA,QAAQ,EAAE;IACb,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,uBAAe,CAAC,OAAO,CAAC;IACzC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,E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