@voiceflow/dtos-interact 1.58.0 → 1.58.1-11bc435fb8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/cjs/socket/socket-action-trace.dto.d.ts +938 -84
  2. package/build/cjs/socket/socket-action-trace.dto.d.ts.map +1 -1
  3. package/build/cjs/socket/socket-message.dto.d.ts +1878 -170
  4. package/build/cjs/socket/socket-message.dto.d.ts.map +1 -1
  5. package/build/cjs/trace/any.dto.d.ts +793 -251
  6. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  7. package/build/cjs/trace/completion.dto.d.ts +271 -0
  8. package/build/cjs/trace/completion.dto.d.ts.map +1 -1
  9. package/build/cjs/trace/completion.dto.js +2 -0
  10. package/build/cjs/trace/completion.dto.js.map +1 -1
  11. package/build/cjs/trace/text.dto.d.ts +271 -0
  12. package/build/cjs/trace/text.dto.d.ts.map +1 -1
  13. package/build/cjs/trace/text.dto.js +2 -0
  14. package/build/cjs/trace/text.dto.js.map +1 -1
  15. package/build/esm/socket/socket-action-trace.dto.d.ts +938 -84
  16. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  17. package/build/esm/socket/socket-message.dto.d.ts +1878 -170
  18. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  19. package/build/esm/trace/any.dto.d.ts +793 -251
  20. package/build/esm/trace/any.dto.d.ts.map +1 -1
  21. package/build/esm/trace/completion.dto.d.ts +271 -0
  22. package/build/esm/trace/completion.dto.d.ts.map +1 -1
  23. package/build/esm/trace/completion.dto.js +2 -0
  24. package/build/esm/trace/completion.dto.js.map +1 -1
  25. package/build/esm/trace/text.dto.d.ts +271 -0
  26. package/build/esm/trace/text.dto.d.ts.map +1 -1
  27. package/build/esm/trace/text.dto.js +2 -0
  28. package/build/esm/trace/text.dto.js.map +1 -1
  29. package/package.json +2 -2
@@ -1219,10 +1219,203 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1219
1219
  state: "content";
1220
1220
  }>, z.ZodObject<{
1221
1221
  state: z.ZodLiteral<"end">;
1222
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1223
+ type: z.ZodLiteral<"node">;
1224
+ nodeID: z.ZodString;
1225
+ nodeType: z.ZodString;
1226
+ diagramID: z.ZodString;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ type: "node";
1229
+ diagramID: string;
1230
+ nodeID: string;
1231
+ nodeType: string;
1232
+ }, {
1233
+ type: "node";
1234
+ diagramID: string;
1235
+ nodeID: string;
1236
+ nodeType: string;
1237
+ }>, z.ZodObject<{
1238
+ type: z.ZodLiteral<"agent">;
1239
+ nodeID: z.ZodString;
1240
+ agentID: z.ZodString;
1241
+ diagramID: z.ZodString;
1242
+ agentName: z.ZodOptional<z.ZodString>;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ type: "agent";
1245
+ diagramID: string;
1246
+ nodeID: string;
1247
+ agentID: string;
1248
+ agentName?: string | undefined;
1249
+ }, {
1250
+ type: "agent";
1251
+ diagramID: string;
1252
+ nodeID: string;
1253
+ agentID: string;
1254
+ agentName?: string | undefined;
1255
+ }>, z.ZodObject<{
1256
+ type: z.ZodLiteral<"prompt">;
1257
+ nodeID: z.ZodString;
1258
+ promptID: z.ZodString;
1259
+ diagramID: z.ZodString;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ type: "prompt";
1262
+ diagramID: string;
1263
+ nodeID: string;
1264
+ promptID: string;
1265
+ }, {
1266
+ type: "prompt";
1267
+ diagramID: string;
1268
+ nodeID: string;
1269
+ promptID: string;
1270
+ }>, z.ZodObject<{
1271
+ type: z.ZodLiteral<"api-tool">;
1272
+ nodeID: z.ZodString;
1273
+ diagramID: z.ZodString;
1274
+ apiToolID: z.ZodString;
1275
+ apiToolName: z.ZodOptional<z.ZodString>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ type: "api-tool";
1278
+ diagramID: string;
1279
+ nodeID: string;
1280
+ apiToolID: string;
1281
+ apiToolName?: string | undefined;
1282
+ }, {
1283
+ type: "api-tool";
1284
+ diagramID: string;
1285
+ nodeID: string;
1286
+ apiToolID: string;
1287
+ apiToolName?: string | undefined;
1288
+ }>, z.ZodObject<{
1289
+ type: z.ZodLiteral<"function">;
1290
+ nodeID: z.ZodString;
1291
+ diagramID: z.ZodString;
1292
+ functionID: z.ZodString;
1293
+ functionName: z.ZodOptional<z.ZodString>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "function";
1296
+ diagramID: string;
1297
+ nodeID: string;
1298
+ functionID: string;
1299
+ functionName?: string | undefined;
1300
+ }, {
1301
+ type: "function";
1302
+ diagramID: string;
1303
+ nodeID: string;
1304
+ functionID: string;
1305
+ functionName?: string | undefined;
1306
+ }>, z.ZodObject<{
1307
+ type: z.ZodLiteral<"integration-tool">;
1308
+ nodeID: z.ZodString;
1309
+ diagramID: z.ZodString;
1310
+ integrationToolName: z.ZodString;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ type: "integration-tool";
1313
+ diagramID: string;
1314
+ nodeID: string;
1315
+ integrationToolName: string;
1316
+ }, {
1317
+ type: "integration-tool";
1318
+ diagramID: string;
1319
+ nodeID: string;
1320
+ integrationToolName: string;
1321
+ }>, z.ZodObject<{
1322
+ type: z.ZodLiteral<"mcp-integration-tool">;
1323
+ nodeID: z.ZodString;
1324
+ diagramID: z.ZodString;
1325
+ mcpToolName: z.ZodString;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ type: "mcp-integration-tool";
1328
+ diagramID: string;
1329
+ nodeID: string;
1330
+ mcpToolName: string;
1331
+ }, {
1332
+ type: "mcp-integration-tool";
1333
+ diagramID: string;
1334
+ nodeID: string;
1335
+ mcpToolName: string;
1336
+ }>]>>;
1222
1337
  }, "strip", z.ZodTypeAny, {
1223
1338
  state: "end";
1339
+ ref?: {
1340
+ type: "node";
1341
+ diagramID: string;
1342
+ nodeID: string;
1343
+ nodeType: string;
1344
+ } | {
1345
+ type: "agent";
1346
+ diagramID: string;
1347
+ nodeID: string;
1348
+ agentID: string;
1349
+ agentName?: string | undefined;
1350
+ } | {
1351
+ type: "api-tool";
1352
+ diagramID: string;
1353
+ nodeID: string;
1354
+ apiToolID: string;
1355
+ apiToolName?: string | undefined;
1356
+ } | {
1357
+ type: "integration-tool";
1358
+ diagramID: string;
1359
+ nodeID: string;
1360
+ integrationToolName: string;
1361
+ } | {
1362
+ type: "mcp-integration-tool";
1363
+ diagramID: string;
1364
+ nodeID: string;
1365
+ mcpToolName: string;
1366
+ } | {
1367
+ type: "function";
1368
+ diagramID: string;
1369
+ nodeID: string;
1370
+ functionID: string;
1371
+ functionName?: string | undefined;
1372
+ } | {
1373
+ type: "prompt";
1374
+ diagramID: string;
1375
+ nodeID: string;
1376
+ promptID: string;
1377
+ } | undefined;
1224
1378
  }, {
1225
1379
  state: "end";
1380
+ ref?: {
1381
+ type: "node";
1382
+ diagramID: string;
1383
+ nodeID: string;
1384
+ nodeType: string;
1385
+ } | {
1386
+ type: "agent";
1387
+ diagramID: string;
1388
+ nodeID: string;
1389
+ agentID: string;
1390
+ agentName?: string | undefined;
1391
+ } | {
1392
+ type: "api-tool";
1393
+ diagramID: string;
1394
+ nodeID: string;
1395
+ apiToolID: string;
1396
+ apiToolName?: string | undefined;
1397
+ } | {
1398
+ type: "integration-tool";
1399
+ diagramID: string;
1400
+ nodeID: string;
1401
+ integrationToolName: string;
1402
+ } | {
1403
+ type: "mcp-integration-tool";
1404
+ diagramID: string;
1405
+ nodeID: string;
1406
+ mcpToolName: string;
1407
+ } | {
1408
+ type: "function";
1409
+ diagramID: string;
1410
+ nodeID: string;
1411
+ functionID: string;
1412
+ functionName?: string | undefined;
1413
+ } | {
1414
+ type: "prompt";
1415
+ diagramID: string;
1416
+ nodeID: string;
1417
+ promptID: string;
1418
+ } | undefined;
1226
1419
  }>]>;
1227
1420
  }, "strip", z.ZodTypeAny, {
1228
1421
  type: "completion";
@@ -1240,6 +1433,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1240
1433
  state: "content";
1241
1434
  } | {
1242
1435
  state: "end";
1436
+ ref?: {
1437
+ type: "node";
1438
+ diagramID: string;
1439
+ nodeID: string;
1440
+ nodeType: string;
1441
+ } | {
1442
+ type: "agent";
1443
+ diagramID: string;
1444
+ nodeID: string;
1445
+ agentID: string;
1446
+ agentName?: string | undefined;
1447
+ } | {
1448
+ type: "api-tool";
1449
+ diagramID: string;
1450
+ nodeID: string;
1451
+ apiToolID: string;
1452
+ apiToolName?: string | undefined;
1453
+ } | {
1454
+ type: "integration-tool";
1455
+ diagramID: string;
1456
+ nodeID: string;
1457
+ integrationToolName: string;
1458
+ } | {
1459
+ type: "mcp-integration-tool";
1460
+ diagramID: string;
1461
+ nodeID: string;
1462
+ mcpToolName: string;
1463
+ } | {
1464
+ type: "function";
1465
+ diagramID: string;
1466
+ nodeID: string;
1467
+ functionID: string;
1468
+ functionName?: string | undefined;
1469
+ } | {
1470
+ type: "prompt";
1471
+ diagramID: string;
1472
+ nodeID: string;
1473
+ promptID: string;
1474
+ } | undefined;
1243
1475
  };
1244
1476
  time?: number | undefined;
1245
1477
  paths?: {
@@ -1270,6 +1502,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1270
1502
  state: "content";
1271
1503
  } | {
1272
1504
  state: "end";
1505
+ ref?: {
1506
+ type: "node";
1507
+ diagramID: string;
1508
+ nodeID: string;
1509
+ nodeType: string;
1510
+ } | {
1511
+ type: "agent";
1512
+ diagramID: string;
1513
+ nodeID: string;
1514
+ agentID: string;
1515
+ agentName?: string | undefined;
1516
+ } | {
1517
+ type: "api-tool";
1518
+ diagramID: string;
1519
+ nodeID: string;
1520
+ apiToolID: string;
1521
+ apiToolName?: string | undefined;
1522
+ } | {
1523
+ type: "integration-tool";
1524
+ diagramID: string;
1525
+ nodeID: string;
1526
+ integrationToolName: string;
1527
+ } | {
1528
+ type: "mcp-integration-tool";
1529
+ diagramID: string;
1530
+ nodeID: string;
1531
+ mcpToolName: string;
1532
+ } | {
1533
+ type: "function";
1534
+ diagramID: string;
1535
+ nodeID: string;
1536
+ functionID: string;
1537
+ functionName?: string | undefined;
1538
+ } | {
1539
+ type: "prompt";
1540
+ diagramID: string;
1541
+ nodeID: string;
1542
+ promptID: string;
1543
+ } | undefined;
1273
1544
  };
1274
1545
  time?: number | undefined;
1275
1546
  paths?: {
@@ -2720,6 +2991,121 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
2720
2991
  ai: z.ZodOptional<z.ZodBoolean>;
2721
2992
  message: z.ZodString;
2722
2993
  } & {
2994
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2995
+ type: z.ZodLiteral<"node">;
2996
+ nodeID: z.ZodString;
2997
+ nodeType: z.ZodString;
2998
+ diagramID: z.ZodString;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ type: "node";
3001
+ diagramID: string;
3002
+ nodeID: string;
3003
+ nodeType: string;
3004
+ }, {
3005
+ type: "node";
3006
+ diagramID: string;
3007
+ nodeID: string;
3008
+ nodeType: string;
3009
+ }>, z.ZodObject<{
3010
+ type: z.ZodLiteral<"agent">;
3011
+ nodeID: z.ZodString;
3012
+ agentID: z.ZodString;
3013
+ diagramID: z.ZodString;
3014
+ agentName: z.ZodOptional<z.ZodString>;
3015
+ }, "strip", z.ZodTypeAny, {
3016
+ type: "agent";
3017
+ diagramID: string;
3018
+ nodeID: string;
3019
+ agentID: string;
3020
+ agentName?: string | undefined;
3021
+ }, {
3022
+ type: "agent";
3023
+ diagramID: string;
3024
+ nodeID: string;
3025
+ agentID: string;
3026
+ agentName?: string | undefined;
3027
+ }>, z.ZodObject<{
3028
+ type: z.ZodLiteral<"prompt">;
3029
+ nodeID: z.ZodString;
3030
+ promptID: z.ZodString;
3031
+ diagramID: z.ZodString;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ type: "prompt";
3034
+ diagramID: string;
3035
+ nodeID: string;
3036
+ promptID: string;
3037
+ }, {
3038
+ type: "prompt";
3039
+ diagramID: string;
3040
+ nodeID: string;
3041
+ promptID: string;
3042
+ }>, z.ZodObject<{
3043
+ type: z.ZodLiteral<"api-tool">;
3044
+ nodeID: z.ZodString;
3045
+ diagramID: z.ZodString;
3046
+ apiToolID: z.ZodString;
3047
+ apiToolName: z.ZodOptional<z.ZodString>;
3048
+ }, "strip", z.ZodTypeAny, {
3049
+ type: "api-tool";
3050
+ diagramID: string;
3051
+ nodeID: string;
3052
+ apiToolID: string;
3053
+ apiToolName?: string | undefined;
3054
+ }, {
3055
+ type: "api-tool";
3056
+ diagramID: string;
3057
+ nodeID: string;
3058
+ apiToolID: string;
3059
+ apiToolName?: string | undefined;
3060
+ }>, z.ZodObject<{
3061
+ type: z.ZodLiteral<"function">;
3062
+ nodeID: z.ZodString;
3063
+ diagramID: z.ZodString;
3064
+ functionID: z.ZodString;
3065
+ functionName: z.ZodOptional<z.ZodString>;
3066
+ }, "strip", z.ZodTypeAny, {
3067
+ type: "function";
3068
+ diagramID: string;
3069
+ nodeID: string;
3070
+ functionID: string;
3071
+ functionName?: string | undefined;
3072
+ }, {
3073
+ type: "function";
3074
+ diagramID: string;
3075
+ nodeID: string;
3076
+ functionID: string;
3077
+ functionName?: string | undefined;
3078
+ }>, z.ZodObject<{
3079
+ type: z.ZodLiteral<"integration-tool">;
3080
+ nodeID: z.ZodString;
3081
+ diagramID: z.ZodString;
3082
+ integrationToolName: z.ZodString;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ type: "integration-tool";
3085
+ diagramID: string;
3086
+ nodeID: string;
3087
+ integrationToolName: string;
3088
+ }, {
3089
+ type: "integration-tool";
3090
+ diagramID: string;
3091
+ nodeID: string;
3092
+ integrationToolName: string;
3093
+ }>, z.ZodObject<{
3094
+ type: z.ZodLiteral<"mcp-integration-tool">;
3095
+ nodeID: z.ZodString;
3096
+ diagramID: z.ZodString;
3097
+ mcpToolName: z.ZodString;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ type: "mcp-integration-tool";
3100
+ diagramID: string;
3101
+ nodeID: string;
3102
+ mcpToolName: string;
3103
+ }, {
3104
+ type: "mcp-integration-tool";
3105
+ diagramID: string;
3106
+ nodeID: string;
3107
+ mcpToolName: string;
3108
+ }>]>>;
2723
3109
  slate: z.ZodObject<{
2724
3110
  id: z.ZodString;
2725
3111
  content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
@@ -2763,6 +3149,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
2763
3149
  } | undefined;
2764
3150
  ai?: boolean | undefined;
2765
3151
  delay?: number | undefined;
3152
+ ref?: {
3153
+ type: "node";
3154
+ diagramID: string;
3155
+ nodeID: string;
3156
+ nodeType: string;
3157
+ } | {
3158
+ type: "agent";
3159
+ diagramID: string;
3160
+ nodeID: string;
3161
+ agentID: string;
3162
+ agentName?: string | undefined;
3163
+ } | {
3164
+ type: "api-tool";
3165
+ diagramID: string;
3166
+ nodeID: string;
3167
+ apiToolID: string;
3168
+ apiToolName?: string | undefined;
3169
+ } | {
3170
+ type: "integration-tool";
3171
+ diagramID: string;
3172
+ nodeID: string;
3173
+ integrationToolName: string;
3174
+ } | {
3175
+ type: "mcp-integration-tool";
3176
+ diagramID: string;
3177
+ nodeID: string;
3178
+ mcpToolName: string;
3179
+ } | {
3180
+ type: "function";
3181
+ diagramID: string;
3182
+ nodeID: string;
3183
+ functionID: string;
3184
+ functionName?: string | undefined;
3185
+ } | {
3186
+ type: "prompt";
3187
+ diagramID: string;
3188
+ nodeID: string;
3189
+ promptID: string;
3190
+ } | undefined;
2766
3191
  sourceUrls?: {
2767
3192
  url: string;
2768
3193
  name?: string | undefined;
@@ -2780,6 +3205,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
2780
3205
  } | undefined;
2781
3206
  ai?: boolean | undefined;
2782
3207
  delay?: number | undefined;
3208
+ ref?: {
3209
+ type: "node";
3210
+ diagramID: string;
3211
+ nodeID: string;
3212
+ nodeType: string;
3213
+ } | {
3214
+ type: "agent";
3215
+ diagramID: string;
3216
+ nodeID: string;
3217
+ agentID: string;
3218
+ agentName?: string | undefined;
3219
+ } | {
3220
+ type: "api-tool";
3221
+ diagramID: string;
3222
+ nodeID: string;
3223
+ apiToolID: string;
3224
+ apiToolName?: string | undefined;
3225
+ } | {
3226
+ type: "integration-tool";
3227
+ diagramID: string;
3228
+ nodeID: string;
3229
+ integrationToolName: string;
3230
+ } | {
3231
+ type: "mcp-integration-tool";
3232
+ diagramID: string;
3233
+ nodeID: string;
3234
+ mcpToolName: string;
3235
+ } | {
3236
+ type: "function";
3237
+ diagramID: string;
3238
+ nodeID: string;
3239
+ functionID: string;
3240
+ functionName?: string | undefined;
3241
+ } | {
3242
+ type: "prompt";
3243
+ diagramID: string;
3244
+ nodeID: string;
3245
+ promptID: string;
3246
+ } | undefined;
2783
3247
  sourceUrls?: {
2784
3248
  url: string;
2785
3249
  name?: string | undefined;
@@ -2800,6 +3264,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
2800
3264
  } | undefined;
2801
3265
  ai?: boolean | undefined;
2802
3266
  delay?: number | undefined;
3267
+ ref?: {
3268
+ type: "node";
3269
+ diagramID: string;
3270
+ nodeID: string;
3271
+ nodeType: string;
3272
+ } | {
3273
+ type: "agent";
3274
+ diagramID: string;
3275
+ nodeID: string;
3276
+ agentID: string;
3277
+ agentName?: string | undefined;
3278
+ } | {
3279
+ type: "api-tool";
3280
+ diagramID: string;
3281
+ nodeID: string;
3282
+ apiToolID: string;
3283
+ apiToolName?: string | undefined;
3284
+ } | {
3285
+ type: "integration-tool";
3286
+ diagramID: string;
3287
+ nodeID: string;
3288
+ integrationToolName: string;
3289
+ } | {
3290
+ type: "mcp-integration-tool";
3291
+ diagramID: string;
3292
+ nodeID: string;
3293
+ mcpToolName: string;
3294
+ } | {
3295
+ type: "function";
3296
+ diagramID: string;
3297
+ nodeID: string;
3298
+ functionID: string;
3299
+ functionName?: string | undefined;
3300
+ } | {
3301
+ type: "prompt";
3302
+ diagramID: string;
3303
+ nodeID: string;
3304
+ promptID: string;
3305
+ } | undefined;
2803
3306
  sourceUrls?: {
2804
3307
  url: string;
2805
3308
  name?: string | undefined;
@@ -2831,8 +3334,47 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
2831
3334
  audio?: {
2832
3335
  src: string;
2833
3336
  } | undefined;
2834
- ai?: boolean | undefined;
2835
- delay?: number | undefined;
3337
+ ai?: boolean | undefined;
3338
+ delay?: number | undefined;
3339
+ ref?: {
3340
+ type: "node";
3341
+ diagramID: string;
3342
+ nodeID: string;
3343
+ nodeType: string;
3344
+ } | {
3345
+ type: "agent";
3346
+ diagramID: string;
3347
+ nodeID: string;
3348
+ agentID: string;
3349
+ agentName?: string | undefined;
3350
+ } | {
3351
+ type: "api-tool";
3352
+ diagramID: string;
3353
+ nodeID: string;
3354
+ apiToolID: string;
3355
+ apiToolName?: string | undefined;
3356
+ } | {
3357
+ type: "integration-tool";
3358
+ diagramID: string;
3359
+ nodeID: string;
3360
+ integrationToolName: string;
3361
+ } | {
3362
+ type: "mcp-integration-tool";
3363
+ diagramID: string;
3364
+ nodeID: string;
3365
+ mcpToolName: string;
3366
+ } | {
3367
+ type: "function";
3368
+ diagramID: string;
3369
+ nodeID: string;
3370
+ functionID: string;
3371
+ functionName?: string | undefined;
3372
+ } | {
3373
+ type: "prompt";
3374
+ diagramID: string;
3375
+ nodeID: string;
3376
+ promptID: string;
3377
+ } | undefined;
2836
3378
  sourceUrls?: {
2837
3379
  url: string;
2838
3380
  name?: string | undefined;
@@ -3961,21 +4503,52 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
3961
4503
  turnID?: string | undefined;
3962
4504
  handleID?: string | undefined;
3963
4505
  } | {
3964
- type: "completion";
4506
+ type: "debug";
3965
4507
  payload: {
3966
- messageID: string;
3967
- state: "start";
3968
- ai?: boolean | undefined;
3969
- delay?: number | undefined;
3970
- sourceUrls?: {
3971
- url: string;
3972
- name?: string | undefined;
3973
- }[] | undefined;
3974
- } | {
3975
- content: string;
3976
- state: "content";
3977
- } | {
3978
- state: "end";
4508
+ message: string;
4509
+ type?: string | undefined;
4510
+ metadata?: Record<string, unknown> | undefined;
4511
+ ref?: {
4512
+ type: "node";
4513
+ diagramID: string;
4514
+ nodeID: string;
4515
+ nodeType: string;
4516
+ } | {
4517
+ type: "agent";
4518
+ diagramID: string;
4519
+ nodeID: string;
4520
+ agentID: string;
4521
+ agentName?: string | undefined;
4522
+ } | {
4523
+ type: "api-tool";
4524
+ diagramID: string;
4525
+ nodeID: string;
4526
+ apiToolID: string;
4527
+ apiToolName?: string | undefined;
4528
+ } | {
4529
+ type: "integration-tool";
4530
+ diagramID: string;
4531
+ nodeID: string;
4532
+ integrationToolName: string;
4533
+ } | {
4534
+ type: "mcp-integration-tool";
4535
+ diagramID: string;
4536
+ nodeID: string;
4537
+ mcpToolName: string;
4538
+ } | {
4539
+ type: "function";
4540
+ diagramID: string;
4541
+ nodeID: string;
4542
+ functionID: string;
4543
+ functionName?: string | undefined;
4544
+ } | {
4545
+ type: "prompt";
4546
+ diagramID: string;
4547
+ nodeID: string;
4548
+ promptID: string;
4549
+ } | undefined;
4550
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
4551
+ context?: string | undefined;
3979
4552
  };
3980
4553
  time?: number | undefined;
3981
4554
  paths?: {
@@ -3991,11 +4564,21 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
3991
4564
  turnID?: string | undefined;
3992
4565
  handleID?: string | undefined;
3993
4566
  } | {
3994
- type: "debug";
4567
+ type: "completion";
3995
4568
  payload: {
3996
- message: string;
3997
- type?: string | undefined;
3998
- metadata?: Record<string, unknown> | undefined;
4569
+ messageID: string;
4570
+ state: "start";
4571
+ ai?: boolean | undefined;
4572
+ delay?: number | undefined;
4573
+ sourceUrls?: {
4574
+ url: string;
4575
+ name?: string | undefined;
4576
+ }[] | undefined;
4577
+ } | {
4578
+ content: string;
4579
+ state: "content";
4580
+ } | {
4581
+ state: "end";
3999
4582
  ref?: {
4000
4583
  type: "node";
4001
4584
  diagramID: string;
@@ -4035,8 +4618,6 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
4035
4618
  nodeID: string;
4036
4619
  promptID: string;
4037
4620
  } | undefined;
4038
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
4039
- context?: string | undefined;
4040
4621
  };
4041
4622
  time?: number | undefined;
4042
4623
  paths?: {
@@ -4417,6 +4998,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
4417
4998
  } | undefined;
4418
4999
  ai?: boolean | undefined;
4419
5000
  delay?: number | undefined;
5001
+ ref?: {
5002
+ type: "node";
5003
+ diagramID: string;
5004
+ nodeID: string;
5005
+ nodeType: string;
5006
+ } | {
5007
+ type: "agent";
5008
+ diagramID: string;
5009
+ nodeID: string;
5010
+ agentID: string;
5011
+ agentName?: string | undefined;
5012
+ } | {
5013
+ type: "api-tool";
5014
+ diagramID: string;
5015
+ nodeID: string;
5016
+ apiToolID: string;
5017
+ apiToolName?: string | undefined;
5018
+ } | {
5019
+ type: "integration-tool";
5020
+ diagramID: string;
5021
+ nodeID: string;
5022
+ integrationToolName: string;
5023
+ } | {
5024
+ type: "mcp-integration-tool";
5025
+ diagramID: string;
5026
+ nodeID: string;
5027
+ mcpToolName: string;
5028
+ } | {
5029
+ type: "function";
5030
+ diagramID: string;
5031
+ nodeID: string;
5032
+ functionID: string;
5033
+ functionName?: string | undefined;
5034
+ } | {
5035
+ type: "prompt";
5036
+ diagramID: string;
5037
+ nodeID: string;
5038
+ promptID: string;
5039
+ } | undefined;
4420
5040
  sourceUrls?: {
4421
5041
  url: string;
4422
5042
  name?: string | undefined;
@@ -4649,21 +5269,52 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
4649
5269
  turnID?: string | undefined;
4650
5270
  handleID?: string | undefined;
4651
5271
  } | {
4652
- type: "completion";
5272
+ type: "debug";
4653
5273
  payload: {
4654
- messageID: string;
4655
- state: "start";
4656
- ai?: boolean | undefined;
4657
- delay?: number | undefined;
4658
- sourceUrls?: {
4659
- url: string;
4660
- name?: string | undefined;
4661
- }[] | undefined;
4662
- } | {
4663
- content: string;
4664
- state: "content";
4665
- } | {
4666
- state: "end";
5274
+ message: string;
5275
+ type?: string | undefined;
5276
+ metadata?: Record<string, unknown> | undefined;
5277
+ ref?: {
5278
+ type: "node";
5279
+ diagramID: string;
5280
+ nodeID: string;
5281
+ nodeType: string;
5282
+ } | {
5283
+ type: "agent";
5284
+ diagramID: string;
5285
+ nodeID: string;
5286
+ agentID: string;
5287
+ agentName?: string | undefined;
5288
+ } | {
5289
+ type: "api-tool";
5290
+ diagramID: string;
5291
+ nodeID: string;
5292
+ apiToolID: string;
5293
+ apiToolName?: string | undefined;
5294
+ } | {
5295
+ type: "integration-tool";
5296
+ diagramID: string;
5297
+ nodeID: string;
5298
+ integrationToolName: string;
5299
+ } | {
5300
+ type: "mcp-integration-tool";
5301
+ diagramID: string;
5302
+ nodeID: string;
5303
+ mcpToolName: string;
5304
+ } | {
5305
+ type: "function";
5306
+ diagramID: string;
5307
+ nodeID: string;
5308
+ functionID: string;
5309
+ functionName?: string | undefined;
5310
+ } | {
5311
+ type: "prompt";
5312
+ diagramID: string;
5313
+ nodeID: string;
5314
+ promptID: string;
5315
+ } | undefined;
5316
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
5317
+ context?: string | undefined;
4667
5318
  };
4668
5319
  time?: number | undefined;
4669
5320
  paths?: {
@@ -4679,11 +5330,21 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
4679
5330
  turnID?: string | undefined;
4680
5331
  handleID?: string | undefined;
4681
5332
  } | {
4682
- type: "debug";
5333
+ type: "completion";
4683
5334
  payload: {
4684
- message: string;
4685
- type?: string | undefined;
4686
- metadata?: Record<string, unknown> | undefined;
5335
+ messageID: string;
5336
+ state: "start";
5337
+ ai?: boolean | undefined;
5338
+ delay?: number | undefined;
5339
+ sourceUrls?: {
5340
+ url: string;
5341
+ name?: string | undefined;
5342
+ }[] | undefined;
5343
+ } | {
5344
+ content: string;
5345
+ state: "content";
5346
+ } | {
5347
+ state: "end";
4687
5348
  ref?: {
4688
5349
  type: "node";
4689
5350
  diagramID: string;
@@ -4723,8 +5384,6 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
4723
5384
  nodeID: string;
4724
5385
  promptID: string;
4725
5386
  } | undefined;
4726
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
4727
- context?: string | undefined;
4728
5387
  };
4729
5388
  time?: number | undefined;
4730
5389
  paths?: {
@@ -5103,8 +5762,47 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
5103
5762
  audio?: {
5104
5763
  src: string;
5105
5764
  } | undefined;
5106
- ai?: boolean | undefined;
5107
- delay?: number | undefined;
5765
+ ai?: boolean | undefined;
5766
+ delay?: number | undefined;
5767
+ ref?: {
5768
+ type: "node";
5769
+ diagramID: string;
5770
+ nodeID: string;
5771
+ nodeType: string;
5772
+ } | {
5773
+ type: "agent";
5774
+ diagramID: string;
5775
+ nodeID: string;
5776
+ agentID: string;
5777
+ agentName?: string | undefined;
5778
+ } | {
5779
+ type: "api-tool";
5780
+ diagramID: string;
5781
+ nodeID: string;
5782
+ apiToolID: string;
5783
+ apiToolName?: string | undefined;
5784
+ } | {
5785
+ type: "integration-tool";
5786
+ diagramID: string;
5787
+ nodeID: string;
5788
+ integrationToolName: string;
5789
+ } | {
5790
+ type: "mcp-integration-tool";
5791
+ diagramID: string;
5792
+ nodeID: string;
5793
+ mcpToolName: string;
5794
+ } | {
5795
+ type: "function";
5796
+ diagramID: string;
5797
+ nodeID: string;
5798
+ functionID: string;
5799
+ functionName?: string | undefined;
5800
+ } | {
5801
+ type: "prompt";
5802
+ diagramID: string;
5803
+ nodeID: string;
5804
+ promptID: string;
5805
+ } | undefined;
5108
5806
  sourceUrls?: {
5109
5807
  url: string;
5110
5808
  name?: string | undefined;
@@ -5340,21 +6038,52 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
5340
6038
  turnID?: string | undefined;
5341
6039
  handleID?: string | undefined;
5342
6040
  } | {
5343
- type: "completion";
6041
+ type: "debug";
5344
6042
  payload: {
5345
- messageID: string;
5346
- state: "start";
5347
- ai?: boolean | undefined;
5348
- delay?: number | undefined;
5349
- sourceUrls?: {
5350
- url: string;
5351
- name?: string | undefined;
5352
- }[] | undefined;
5353
- } | {
5354
- content: string;
5355
- state: "content";
5356
- } | {
5357
- state: "end";
6043
+ message: string;
6044
+ type?: string | undefined;
6045
+ metadata?: Record<string, unknown> | undefined;
6046
+ ref?: {
6047
+ type: "node";
6048
+ diagramID: string;
6049
+ nodeID: string;
6050
+ nodeType: string;
6051
+ } | {
6052
+ type: "agent";
6053
+ diagramID: string;
6054
+ nodeID: string;
6055
+ agentID: string;
6056
+ agentName?: string | undefined;
6057
+ } | {
6058
+ type: "api-tool";
6059
+ diagramID: string;
6060
+ nodeID: string;
6061
+ apiToolID: string;
6062
+ apiToolName?: string | undefined;
6063
+ } | {
6064
+ type: "integration-tool";
6065
+ diagramID: string;
6066
+ nodeID: string;
6067
+ integrationToolName: string;
6068
+ } | {
6069
+ type: "mcp-integration-tool";
6070
+ diagramID: string;
6071
+ nodeID: string;
6072
+ mcpToolName: string;
6073
+ } | {
6074
+ type: "function";
6075
+ diagramID: string;
6076
+ nodeID: string;
6077
+ functionID: string;
6078
+ functionName?: string | undefined;
6079
+ } | {
6080
+ type: "prompt";
6081
+ diagramID: string;
6082
+ nodeID: string;
6083
+ promptID: string;
6084
+ } | undefined;
6085
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
6086
+ context?: string | undefined;
5358
6087
  };
5359
6088
  time?: number | undefined;
5360
6089
  paths?: {
@@ -5370,11 +6099,21 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
5370
6099
  turnID?: string | undefined;
5371
6100
  handleID?: string | undefined;
5372
6101
  } | {
5373
- type: "debug";
6102
+ type: "completion";
5374
6103
  payload: {
5375
- message: string;
5376
- type?: string | undefined;
5377
- metadata?: Record<string, unknown> | undefined;
6104
+ messageID: string;
6105
+ state: "start";
6106
+ ai?: boolean | undefined;
6107
+ delay?: number | undefined;
6108
+ sourceUrls?: {
6109
+ url: string;
6110
+ name?: string | undefined;
6111
+ }[] | undefined;
6112
+ } | {
6113
+ content: string;
6114
+ state: "content";
6115
+ } | {
6116
+ state: "end";
5378
6117
  ref?: {
5379
6118
  type: "node";
5380
6119
  diagramID: string;
@@ -5414,8 +6153,6 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
5414
6153
  nodeID: string;
5415
6154
  promptID: string;
5416
6155
  } | undefined;
5417
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
5418
- context?: string | undefined;
5419
6156
  };
5420
6157
  time?: number | undefined;
5421
6158
  paths?: {
@@ -5796,6 +6533,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
5796
6533
  } | undefined;
5797
6534
  ai?: boolean | undefined;
5798
6535
  delay?: number | undefined;
6536
+ ref?: {
6537
+ type: "node";
6538
+ diagramID: string;
6539
+ nodeID: string;
6540
+ nodeType: string;
6541
+ } | {
6542
+ type: "agent";
6543
+ diagramID: string;
6544
+ nodeID: string;
6545
+ agentID: string;
6546
+ agentName?: string | undefined;
6547
+ } | {
6548
+ type: "api-tool";
6549
+ diagramID: string;
6550
+ nodeID: string;
6551
+ apiToolID: string;
6552
+ apiToolName?: string | undefined;
6553
+ } | {
6554
+ type: "integration-tool";
6555
+ diagramID: string;
6556
+ nodeID: string;
6557
+ integrationToolName: string;
6558
+ } | {
6559
+ type: "mcp-integration-tool";
6560
+ diagramID: string;
6561
+ nodeID: string;
6562
+ mcpToolName: string;
6563
+ } | {
6564
+ type: "function";
6565
+ diagramID: string;
6566
+ nodeID: string;
6567
+ functionID: string;
6568
+ functionName?: string | undefined;
6569
+ } | {
6570
+ type: "prompt";
6571
+ diagramID: string;
6572
+ nodeID: string;
6573
+ promptID: string;
6574
+ } | undefined;
5799
6575
  sourceUrls?: {
5800
6576
  url: string;
5801
6577
  name?: string | undefined;
@@ -6031,21 +6807,52 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
6031
6807
  turnID?: string | undefined;
6032
6808
  handleID?: string | undefined;
6033
6809
  } | {
6034
- type: "completion";
6810
+ type: "debug";
6035
6811
  payload: {
6036
- messageID: string;
6037
- state: "start";
6038
- ai?: boolean | undefined;
6039
- delay?: number | undefined;
6040
- sourceUrls?: {
6041
- url: string;
6042
- name?: string | undefined;
6043
- }[] | undefined;
6044
- } | {
6045
- content: string;
6046
- state: "content";
6047
- } | {
6048
- state: "end";
6812
+ message: string;
6813
+ type?: string | undefined;
6814
+ metadata?: Record<string, unknown> | undefined;
6815
+ ref?: {
6816
+ type: "node";
6817
+ diagramID: string;
6818
+ nodeID: string;
6819
+ nodeType: string;
6820
+ } | {
6821
+ type: "agent";
6822
+ diagramID: string;
6823
+ nodeID: string;
6824
+ agentID: string;
6825
+ agentName?: string | undefined;
6826
+ } | {
6827
+ type: "api-tool";
6828
+ diagramID: string;
6829
+ nodeID: string;
6830
+ apiToolID: string;
6831
+ apiToolName?: string | undefined;
6832
+ } | {
6833
+ type: "integration-tool";
6834
+ diagramID: string;
6835
+ nodeID: string;
6836
+ integrationToolName: string;
6837
+ } | {
6838
+ type: "mcp-integration-tool";
6839
+ diagramID: string;
6840
+ nodeID: string;
6841
+ mcpToolName: string;
6842
+ } | {
6843
+ type: "function";
6844
+ diagramID: string;
6845
+ nodeID: string;
6846
+ functionID: string;
6847
+ functionName?: string | undefined;
6848
+ } | {
6849
+ type: "prompt";
6850
+ diagramID: string;
6851
+ nodeID: string;
6852
+ promptID: string;
6853
+ } | undefined;
6854
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
6855
+ context?: string | undefined;
6049
6856
  };
6050
6857
  time?: number | undefined;
6051
6858
  paths?: {
@@ -6061,11 +6868,21 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
6061
6868
  turnID?: string | undefined;
6062
6869
  handleID?: string | undefined;
6063
6870
  } | {
6064
- type: "debug";
6871
+ type: "completion";
6065
6872
  payload: {
6066
- message: string;
6067
- type?: string | undefined;
6068
- metadata?: Record<string, unknown> | undefined;
6873
+ messageID: string;
6874
+ state: "start";
6875
+ ai?: boolean | undefined;
6876
+ delay?: number | undefined;
6877
+ sourceUrls?: {
6878
+ url: string;
6879
+ name?: string | undefined;
6880
+ }[] | undefined;
6881
+ } | {
6882
+ content: string;
6883
+ state: "content";
6884
+ } | {
6885
+ state: "end";
6069
6886
  ref?: {
6070
6887
  type: "node";
6071
6888
  diagramID: string;
@@ -6105,8 +6922,6 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
6105
6922
  nodeID: string;
6106
6923
  promptID: string;
6107
6924
  } | undefined;
6108
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
6109
- context?: string | undefined;
6110
6925
  };
6111
6926
  time?: number | undefined;
6112
6927
  paths?: {
@@ -6487,6 +7302,45 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
6487
7302
  } | undefined;
6488
7303
  ai?: boolean | undefined;
6489
7304
  delay?: number | undefined;
7305
+ ref?: {
7306
+ type: "node";
7307
+ diagramID: string;
7308
+ nodeID: string;
7309
+ nodeType: string;
7310
+ } | {
7311
+ type: "agent";
7312
+ diagramID: string;
7313
+ nodeID: string;
7314
+ agentID: string;
7315
+ agentName?: string | undefined;
7316
+ } | {
7317
+ type: "api-tool";
7318
+ diagramID: string;
7319
+ nodeID: string;
7320
+ apiToolID: string;
7321
+ apiToolName?: string | undefined;
7322
+ } | {
7323
+ type: "integration-tool";
7324
+ diagramID: string;
7325
+ nodeID: string;
7326
+ integrationToolName: string;
7327
+ } | {
7328
+ type: "mcp-integration-tool";
7329
+ diagramID: string;
7330
+ nodeID: string;
7331
+ mcpToolName: string;
7332
+ } | {
7333
+ type: "function";
7334
+ diagramID: string;
7335
+ nodeID: string;
7336
+ functionID: string;
7337
+ functionName?: string | undefined;
7338
+ } | {
7339
+ type: "prompt";
7340
+ diagramID: string;
7341
+ nodeID: string;
7342
+ promptID: string;
7343
+ } | undefined;
6490
7344
  sourceUrls?: {
6491
7345
  url: string;
6492
7346
  name?: string | undefined;